acassis commented on code in PR #18499:
URL: https://github.com/apache/nuttx/pull/18499#discussion_r2891822623
##########
boards/arm64/bcm2711/raspberrypi-4b/Kconfig:
##########
@@ -60,4 +60,151 @@ config RPI4B_FRAMEBUFFER
---help---
Registers a frame buffer character driver for graphical output.
+menu "Raspberry Pi 4B Pin Configuration"
+ config RPI4B_GPIO0
+ int "GPIO 0 (0:SDA0, 1:SA5, 2:PCLK, 3:SPI3_CE0_N, 4:TXD2, 5:SDA6, 6:IN,
7:OUT)"
+ range 0 7
+ default 0
+ ---help---
+ Reserved for I2C to Raspberry Pi HAT EEPROM. Disable EEPROM
forced read and FAN I/O to use it otherwise.
+
+ config RPI4B_GPIO1
+ int "GPIO 1 (0:SCL0, 1:SA4, 2:DE, 3:SPI3_MISO, 4:RXD2, 5:SCL6, 6:IN,
7:OUT)"
+ range 0 7
+ default 0
+ ---help---
+ Reserved for I2C to Raspberry Pi HAT EEPROM. Disable EEPROM
forced read and FAN I/O to use it otherwise.
+
+ config RPI4B_GPIO2
Review Comment:
@resyfer I think it is not a good idea to defined all GPIOs in the Kconfig,
because it will be difficult to track all ALT mode and usages. I think it is
better to use GPIO pins definition in the board source code, like in those
STM32 boards
--
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]