PiyushPatle26 opened a new pull request, #19005: URL: https://github.com/apache/nuttx/pull/19005
*Note: Please adhere to [Contributing Guidelines](https://github.com/apache/nuttx/blob/master/CONTRIBUTING.md).* ## Summary AM62x devices use TI System Firmware (TIFS/DM) to manage clocks, power domains, resets and other system resources. The Cortex-A53 running NuttX cannot directly access most peripherals until they have been enabled through the TISCI interface. This PR adds the basic TISCI support needed on AM62x and introduces GPIO and I2C drivers that use it. Added - TISCI client (`am62x_tisci.*`) - Secure Proxy mailbox transport - Firmware version query - Device power management - Reset control - Functional clock enable support - GPIO driver (`am62x_gpio.*`) - Support for GPIO banks 0 and 1 - Basic pin configuration and GPIO access - Automatic TISCI power-on before register access - I2C driver (`am62x_i2c.*`) - Support for main-domain OMAP I2C controllers - TISCI-based power management GPIO interrupt routing is not included in this PR and will be added later since it requires TISCI RM_IRQ_SET support. The drivers are integrated into the PocketBeagle2 and BeaglePlay board ports. ## Impact New functionality only; no existing behavior is changed. ## Testing - Successfully built for: 1. pocketbeagle2:nsh 2. beagleplay:nsh - Hardware Validation: Tested on a PocketBeagle2 (AM6232) running SYSFW 11.2.5 ("Fancy Rat"), ABI 4.0. TISCI initialization: AM62x TISCI: firmware "11.2.5--v11.02.05 (Fancy Rat)" rev 11 ABI 4.0 I2C scan: ``` nsh> i2c bus nsh> i2c dev -b 0 0x03 0x77 ``` Detected devices at: 0x20 & 0x50 GPIO LED test: ``` nsh> gpio -o 1 /dev/gpio3 nsh> gpio /dev/gpio3 nsh> gpio -o 0 /dev/gpio3 ``` LED state changes correctly and readback matches the output state. Ran nxstyle and checkpatch tests -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
