Skip to content

dts: arm64: ti: ti_am62x_a53: Add MAIN_I2C* #90637

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jun 2, 2025

Conversation

Ayush1325
Copy link
Member

Using the node naming scheme from linux kernel to use the domain prefix in nodes. It would be best if the naming scheme is followed for all new additions.

I will create PRs to migrate the already defined nodes to the prefix based naming scheme in the future.

Tested on Pocket Beagle 2

@github-actions github-actions bot added platform: TI K3 Texas Instruments Keystone 3 Processors area: I2C area: ARM64 ARM (64-bit) Architecture platform: BeagleBoard BeagleBoard.org Foundation labels May 27, 2025
@@ -14,4 +14,14 @@
main_uart6_tx_default: main_uart6_tx_default {
pinmux = <K3_PINMUX(0x0020, PIN_OUTPUT, MUX_MODE_3)>;
};

P1_26_i2c_default: P1_26_i2c_default {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is P1_26? This should be main_i2c2_sda_default.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, it is supposed to be the header numbering followed in pocketbeagle. However, it does seem like main_i2c2 cannot be pimuxed to other header header pins, so I am using main_i2c2_{sda/scl}_default now

@Ayush1325 Ayush1325 force-pushed the pb2-a53-i2c-upstream branch from d8fb3f0 to 708f1a1 Compare May 27, 2025 11:29
dnltz
dnltz previously approved these changes May 27, 2025
dnltz
dnltz previously approved these changes May 27, 2025
@@ -31,28 +31,28 @@ LOG_MODULE_REGISTER(omap_i2c, CONFIG_I2C_LOG_LEVEL);
typedef struct {
uint8_t RESERVED_0[0x10]; /**< Reserved, offset: 0x0 */

__IO uint32_t SYSC; /**< System Configuration, offset: 0x10 */
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure what this __IO was or where it came from, but I'm guessing it was defined as volatile somewhere. Thinking on that, anywhere i2c_omap_regs_t is used it will need to be volatile, maybe putting that in the DEV_I2C_BASE definition will help enforce that.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have made all uses of DEV_I2C_BASE volatile. This is similar to what is being done in gpio-davinic driver.

Ayush1325 added 3 commits May 28, 2025 10:09
Add all main domain i2cs.

Also using the naming scheme from linux kernel to use the domain prefix
in nodes. It would be best if the naming scheme is followed for all new
additions.

I will create PRs to migrate the already defined nodes to the prefix
based naming scheme in the future.

Signed-off-by: Ayush Singh <ayush@beagleboard.org>
Remove __IO macro.

Fix build errors for PocketBeagle 2 A53 target

Signed-off-by: Ayush Singh <ayush@beagleboard.org>
Add pimux for I2C on pins P1.26 and P1.28

Signed-off-by: Ayush Singh <ayush@beagleboard.org>
- Pins P1.26 and P1.28

Signed-off-by: Ayush Singh <ayush@beagleboard.org>
@Ayush1325 Ayush1325 force-pushed the pb2-a53-i2c-upstream branch from a66141d to 0a3b195 Compare May 28, 2025 04:39
@vaishnavachath vaishnavachath self-assigned this May 28, 2025
@Ayush1325
Copy link
Member Author

Not sure why that job failed. Maybe something is wrong with the runners.

Since the __IO macro use has been removed, make the whole reg pointer
volatile. This is similar to what is done in the gpio-davinci driver.

Signed-off-by: Ayush Singh <ayush@beagleboard.org>
@Ayush1325 Ayush1325 force-pushed the pb2-a53-i2c-upstream branch from 0a3b195 to d6b6409 Compare May 28, 2025 06:36
Copy link

@kartben kartben merged commit debdd80 into zephyrproject-rtos:main Jun 2, 2025
28 checks passed
@Ayush1325 Ayush1325 deleted the pb2-a53-i2c-upstream branch June 2, 2025 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: ARM64 ARM (64-bit) Architecture area: I2C platform: BeagleBoard BeagleBoard.org Foundation platform: TI K3 Texas Instruments Keystone 3 Processors
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants