Message ID | 1580148908-4863-5-git-send-email-stefan.wahren@i2se.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | pinctrl: bcm2835: Add support for all BCM2711 GPIOs | expand |
On Mon Jan 27, 2020 at 7:15 PM, Stefan Wahren wrote: > This adds the labels for all the SoC GPIOs on the Raspberry Pi 4. > > Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com> > --- > arch/arm/boot/dts/bcm2711-rpi-4-b.dts | 74 > +++++++++++++++++++++++++++++++++++ > 1 file changed, 74 insertions(+) > > diff --git a/arch/arm/boot/dts/bcm2711-rpi-4-b.dts > b/arch/arm/boot/dts/bcm2711-rpi-4-b.dts > index 1b5a835..6607e2e 100644 > --- a/arch/arm/boot/dts/bcm2711-rpi-4-b.dts > +++ b/arch/arm/boot/dts/bcm2711-rpi-4-b.dts > @@ -71,6 +71,80 @@ > }; > }; > > +&gpio { > + /* > + * Parts taken from rpi_SCH_4b_4p0_reduced.pdf and > + * the official GPU firmware DT blob. > + * > + * Legend: > + * "NC" = not connected (no rail from the SoC) You could drop this comment as there are no NC uses. > + * "FOO" = GPIO line named "FOO" on the schematic > + * "FOO_N" = GPIO line named "FOO" on schematic, active low > + */ > + gpio-line-names = "ID_SDA", > + "ID_SCL", > + "SDA1", > + "SCL1", > + "GPIO_GCLK", > + "GPIO5", > + "GPIO6", > + "SPI_CE1_N", > + "SPI_CE0_N", > + "SPI_MISO", > + "SPI_MOSI", > + "SPI_SCLK", > + "GPIO12", > + "GPIO13", > + /* Serial port */ > + "TXD1", > + "RXD1", > + "GPIO16", > + "GPIO17", > + "GPIO18", > + "GPIO19", > + "GPIO20", > + "GPIO21", > + "GPIO22", > + "GPIO23", > + "GPIO24", > + "GPIO25", > + "GPIO26", > + "GPIO27", > + "RGMII_MDIO", > + "RGMIO_MDC", > + /* Used by BT module */ > + "CTS0", > + "RTS0", > + "TXD0", > + "RXD0", > + /* Used by Wifi */ > + "SD1_CLK", > + "SD1_CMD", > + "SD1_DATA0", > + "SD1_DATA1", > + "SD1_DATA2", > + "SD1_DATA3", > + /* Shared with SPI flash */ > + "PWM0_MISO", > + "PWM1_MOSI", > + "STATUS_LED_G_CLK", > + "SPIFLASH_CE_N", > + "SDA0", > + "SCL0", > + "RGMII_RXCLK", > + "RGMII_RXCTL", > + "RGMII_RXD0", > + "RGMII_RXD1", > + "RGMII_RXD2", > + "RGMII_RXD3", > + "RGMII_TXCLK", > + "RGMII_TXCTL", > + "RGMII_TXD0", > + "RGMII_TXD1", > + "RGMII_TXD2", > + "RGMII_TXD3"; > +}; > + > &pwm1 { > pinctrl-names = "default"; > pinctrl-0 = <&pwm1_0_gpio40 &pwm1_1_gpio41>; > -- > 2.7.4
On Mon, 2020-01-27 at 19:15 +0100, Stefan Wahren wrote: > This adds the labels for all the SoC GPIOs on the Raspberry Pi 4. > > Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com> > --- > arch/arm/boot/dts/bcm2711-rpi-4-b.dts | 74 > +++++++++++++++++++++++++++++++++++ > 1 file changed, 74 insertions(+) > > diff --git a/arch/arm/boot/dts/bcm2711-rpi-4-b.dts > b/arch/arm/boot/dts/bcm2711-rpi-4-b.dts > index 1b5a835..6607e2e 100644 > --- a/arch/arm/boot/dts/bcm2711-rpi-4-b.dts > +++ b/arch/arm/boot/dts/bcm2711-rpi-4-b.dts > @@ -71,6 +71,80 @@ > }; > }; > > +&gpio { > + /* > + * Parts taken from rpi_SCH_4b_4p0_reduced.pdf and > + * the official GPU firmware DT blob. > + * > + * Legend: > + * "NC" = not connected (no rail from the SoC) May be drop this from the legend, as it's not used. > + * "FOO" = GPIO line named "FOO" on the schematic > + * "FOO_N" = GPIO line named "FOO" on schematic, active low > + */ > + gpio-line-names = "ID_SDA", > + "ID_SCL", > + "SDA1", > + "SCL1", > + "GPIO_GCLK", > + "GPIO5", > + "GPIO6", > + "SPI_CE1_N", > + "SPI_CE0_N", > + "SPI_MISO", > + "SPI_MOSI", > + "SPI_SCLK", > + "GPIO12", > + "GPIO13", > + /* Serial port */ > + "TXD1", > + "RXD1", > + "GPIO16", > + "GPIO17", > + "GPIO18", > + "GPIO19", > + "GPIO20", > + "GPIO21", > + "GPIO22", > + "GPIO23", > + "GPIO24", > + "GPIO25", > + "GPIO26", > + "GPIO27", > + "RGMII_MDIO", > + "RGMIO_MDC", > + /* Used by BT module */ > + "CTS0", > + "RTS0", > + "TXD0", > + "RXD0", > + /* Used by Wifi */ > + "SD1_CLK", > + "SD1_CMD", > + "SD1_DATA0", > + "SD1_DATA1", > + "SD1_DATA2", > + "SD1_DATA3", > + /* Shared with SPI flash */ > + "PWM0_MISO", > + "PWM1_MOSI", > + "STATUS_LED_G_CLK", > + "SPIFLASH_CE_N", > + "SDA0", > + "SCL0", > + "RGMII_RXCLK", > + "RGMII_RXCTL", > + "RGMII_RXD0", > + "RGMII_RXD1", > + "RGMII_RXD2", > + "RGMII_RXD3", > + "RGMII_TXCLK", > + "RGMII_TXCTL", > + "RGMII_TXD0", > + "RGMII_TXD1", > + "RGMII_TXD2", > + "RGMII_TXD3"; > +}; > + > &pwm1 { > pinctrl-names = "default"; > pinctrl-0 = <&pwm1_0_gpio40 &pwm1_1_gpio41>;
diff --git a/arch/arm/boot/dts/bcm2711-rpi-4-b.dts b/arch/arm/boot/dts/bcm2711-rpi-4-b.dts index 1b5a835..6607e2e 100644 --- a/arch/arm/boot/dts/bcm2711-rpi-4-b.dts +++ b/arch/arm/boot/dts/bcm2711-rpi-4-b.dts @@ -71,6 +71,80 @@ }; }; +&gpio { + /* + * Parts taken from rpi_SCH_4b_4p0_reduced.pdf and + * the official GPU firmware DT blob. + * + * Legend: + * "NC" = not connected (no rail from the SoC) + * "FOO" = GPIO line named "FOO" on the schematic + * "FOO_N" = GPIO line named "FOO" on schematic, active low + */ + gpio-line-names = "ID_SDA", + "ID_SCL", + "SDA1", + "SCL1", + "GPIO_GCLK", + "GPIO5", + "GPIO6", + "SPI_CE1_N", + "SPI_CE0_N", + "SPI_MISO", + "SPI_MOSI", + "SPI_SCLK", + "GPIO12", + "GPIO13", + /* Serial port */ + "TXD1", + "RXD1", + "GPIO16", + "GPIO17", + "GPIO18", + "GPIO19", + "GPIO20", + "GPIO21", + "GPIO22", + "GPIO23", + "GPIO24", + "GPIO25", + "GPIO26", + "GPIO27", + "RGMII_MDIO", + "RGMIO_MDC", + /* Used by BT module */ + "CTS0", + "RTS0", + "TXD0", + "RXD0", + /* Used by Wifi */ + "SD1_CLK", + "SD1_CMD", + "SD1_DATA0", + "SD1_DATA1", + "SD1_DATA2", + "SD1_DATA3", + /* Shared with SPI flash */ + "PWM0_MISO", + "PWM1_MOSI", + "STATUS_LED_G_CLK", + "SPIFLASH_CE_N", + "SDA0", + "SCL0", + "RGMII_RXCLK", + "RGMII_RXCTL", + "RGMII_RXD0", + "RGMII_RXD1", + "RGMII_RXD2", + "RGMII_RXD3", + "RGMII_TXCLK", + "RGMII_TXCTL", + "RGMII_TXD0", + "RGMII_TXD1", + "RGMII_TXD2", + "RGMII_TXD3"; +}; + &pwm1 { pinctrl-names = "default"; pinctrl-0 = <&pwm1_0_gpio40 &pwm1_1_gpio41>;
This adds the labels for all the SoC GPIOs on the Raspberry Pi 4. Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com> --- arch/arm/boot/dts/bcm2711-rpi-4-b.dts | 74 +++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+)