mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-22 15:02:32 +00:00
975 lines
20 KiB
Diff
975 lines
20 KiB
Diff
|
From c4276e76a720c00d5115bc38d9834480552bcdbe Mon Sep 17 00:00:00 2001
|
||
|
From: Phil Elwell <phil@raspberrypi.com>
|
||
|
Date: Sun, 20 Feb 2022 16:27:11 +0000
|
||
|
Subject: [PATCH] ARM: dts: Add GPIO line names for downstream RPis
|
||
|
|
||
|
Largely copied from the upstream dts files, with a few additions and
|
||
|
tweaks.
|
||
|
|
||
|
See: https://github.com/raspberrypi/linux/issues/2760
|
||
|
|
||
|
Signed-off-by: Phil Elwell <phil@raspberrypi.com>
|
||
|
---
|
||
|
arch/arm/boot/dts/bcm2708-rpi-b-plus.dts | 66 +++++++++++++++++++
|
||
|
arch/arm/boot/dts/bcm2708-rpi-b-rev1.dts | 67 +++++++++++++++++++
|
||
|
arch/arm/boot/dts/bcm2708-rpi-b.dts | 66 +++++++++++++++++++
|
||
|
arch/arm/boot/dts/bcm2708-rpi-cm.dts | 65 ++++++++++++++++++
|
||
|
arch/arm/boot/dts/bcm2708-rpi-zero-w.dts | 67 +++++++++++++++++++
|
||
|
arch/arm/boot/dts/bcm2708-rpi-zero.dts | 65 ++++++++++++++++++
|
||
|
arch/arm/boot/dts/bcm2709-rpi-2-b.dts | 66 +++++++++++++++++++
|
||
|
arch/arm/boot/dts/bcm2710-rpi-2-b.dts | 66 +++++++++++++++++++
|
||
|
arch/arm/boot/dts/bcm2710-rpi-3-b-plus.dts | 76 ++++++++++++++++++++++
|
||
|
arch/arm/boot/dts/bcm2710-rpi-3-b.dts | 76 ++++++++++++++++++++++
|
||
|
arch/arm/boot/dts/bcm2710-rpi-cm3.dts | 72 ++++++++++++++++++++
|
||
|
arch/arm/boot/dts/bcm2710-rpi-zero-2-w.dts | 67 +++++++++++++++++++
|
||
|
12 files changed, 819 insertions(+)
|
||
|
|
||
|
--- a/arch/arm/boot/dts/bcm2708-rpi-b-plus.dts
|
||
|
+++ b/arch/arm/boot/dts/bcm2708-rpi-b-plus.dts
|
||
|
@@ -12,6 +12,72 @@
|
||
|
};
|
||
|
|
||
|
&gpio {
|
||
|
+ /*
|
||
|
+ * Taken from Raspberry-Pi-B-Plus-V1.2-Schematics.pdf
|
||
|
+ * RPI-BPLUS sheet 1
|
||
|
+ *
|
||
|
+ * 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 */
|
||
|
+ "TXD0",
|
||
|
+ "RXD0",
|
||
|
+ "GPIO16",
|
||
|
+ "GPIO17",
|
||
|
+ "GPIO18",
|
||
|
+ "GPIO19",
|
||
|
+ "GPIO20",
|
||
|
+ "GPIO21",
|
||
|
+ "GPIO22",
|
||
|
+ "GPIO23",
|
||
|
+ "GPIO24",
|
||
|
+ "GPIO25",
|
||
|
+ "GPIO26",
|
||
|
+ "GPIO27",
|
||
|
+ "SDA0",
|
||
|
+ "SCL0",
|
||
|
+ "NC", /* GPIO30 */
|
||
|
+ "LAN_RUN", /* GPIO31 */
|
||
|
+ "CAM_GPIO1", /* GPIO32 */
|
||
|
+ "NC", /* GPIO33 */
|
||
|
+ "NC", /* GPIO34 */
|
||
|
+ "PWR_LOW_N", /* GPIO35 */
|
||
|
+ "NC", /* GPIO36 */
|
||
|
+ "NC", /* GPIO37 */
|
||
|
+ "USB_LIMIT", /* GPIO38 */
|
||
|
+ "NC", /* GPIO39 */
|
||
|
+ "PWM0_OUT", /* GPIO40 */
|
||
|
+ "CAM_GPIO0", /* GPIO41 */
|
||
|
+ "NC", /* GPIO42 */
|
||
|
+ "NC", /* GPIO43 */
|
||
|
+ "ETH_CLK", /* GPIO44 */
|
||
|
+ "PWM1_OUT", /* GPIO45 */
|
||
|
+ "HDMI_HPD_N",
|
||
|
+ "STATUS_LED",
|
||
|
+ /* Used by SD Card */
|
||
|
+ "SD_CLK_R",
|
||
|
+ "SD_CMD_R",
|
||
|
+ "SD_DATA0_R",
|
||
|
+ "SD_DATA1_R",
|
||
|
+ "SD_DATA2_R",
|
||
|
+ "SD_DATA3_R";
|
||
|
+
|
||
|
spi0_pins: spi0_pins {
|
||
|
brcm,pins = <9 10 11>;
|
||
|
brcm,function = <4>; /* alt0 */
|
||
|
--- a/arch/arm/boot/dts/bcm2708-rpi-b-rev1.dts
|
||
|
+++ b/arch/arm/boot/dts/bcm2708-rpi-b-rev1.dts
|
||
|
@@ -11,6 +11,73 @@
|
||
|
};
|
||
|
|
||
|
&gpio {
|
||
|
+ /*
|
||
|
+ * Taken from Raspberry-Pi-Rev-1.0-Model-AB-Schematics.pdf
|
||
|
+ * RPI00021 sheet 02
|
||
|
+ *
|
||
|
+ * 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 = "SDA0",
|
||
|
+ "SCL0",
|
||
|
+ "SDA1",
|
||
|
+ "SCL1",
|
||
|
+ "GPIO_GCLK",
|
||
|
+ "CAM_GPIO1",
|
||
|
+ "LAN_RUN",
|
||
|
+ "SPI_CE1_N",
|
||
|
+ "SPI_CE0_N",
|
||
|
+ "SPI_MISO",
|
||
|
+ "SPI_MOSI",
|
||
|
+ "SPI_SCLK",
|
||
|
+ "NC", /* GPIO12 */
|
||
|
+ "NC", /* GPIO13 */
|
||
|
+ /* Serial port */
|
||
|
+ "TXD0",
|
||
|
+ "RXD0",
|
||
|
+ "STATUS_LED_N",
|
||
|
+ "GPIO17",
|
||
|
+ "GPIO18",
|
||
|
+ "NC", /* GPIO19 */
|
||
|
+ "NC", /* GPIO20 */
|
||
|
+ "GPIO21",
|
||
|
+ "GPIO22",
|
||
|
+ "GPIO23",
|
||
|
+ "GPIO24",
|
||
|
+ "GPIO25",
|
||
|
+ "NC", /* GPIO26 */
|
||
|
+ "CAM_GPIO0",
|
||
|
+ /* Binary number representing build/revision */
|
||
|
+ "CONFIG0",
|
||
|
+ "CONFIG1",
|
||
|
+ "CONFIG2",
|
||
|
+ "CONFIG3",
|
||
|
+ "NC", /* GPIO32 */
|
||
|
+ "NC", /* GPIO33 */
|
||
|
+ "NC", /* GPIO34 */
|
||
|
+ "NC", /* GPIO35 */
|
||
|
+ "NC", /* GPIO36 */
|
||
|
+ "NC", /* GPIO37 */
|
||
|
+ "NC", /* GPIO38 */
|
||
|
+ "NC", /* GPIO39 */
|
||
|
+ "PWM0_OUT",
|
||
|
+ "NC", /* GPIO41 */
|
||
|
+ "NC", /* GPIO42 */
|
||
|
+ "NC", /* GPIO43 */
|
||
|
+ "NC", /* GPIO44 */
|
||
|
+ "PWM1_OUT",
|
||
|
+ "HDMI_HPD_P",
|
||
|
+ "SD_CARD_DET",
|
||
|
+ /* Used by SD Card */
|
||
|
+ "SD_CLK_R",
|
||
|
+ "SD_CMD_R",
|
||
|
+ "SD_DATA0_R",
|
||
|
+ "SD_DATA1_R",
|
||
|
+ "SD_DATA2_R",
|
||
|
+ "SD_DATA3_R";
|
||
|
+
|
||
|
spi0_pins: spi0_pins {
|
||
|
brcm,pins = <9 10 11>;
|
||
|
brcm,function = <4>; /* alt0 */
|
||
|
--- a/arch/arm/boot/dts/bcm2708-rpi-b.dts
|
||
|
+++ b/arch/arm/boot/dts/bcm2708-rpi-b.dts
|
||
|
@@ -12,6 +12,72 @@
|
||
|
};
|
||
|
|
||
|
&gpio {
|
||
|
+ /*
|
||
|
+ * Taken from Raspberry-Pi-Rev-2.0-Model-AB-Schematics.pdf
|
||
|
+ * RPI00022 sheet 02
|
||
|
+ *
|
||
|
+ * 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 = "SDA0",
|
||
|
+ "SCL0",
|
||
|
+ "SDA1",
|
||
|
+ "SCL1",
|
||
|
+ "GPIO_GCLK",
|
||
|
+ "CAM_GPIO1",
|
||
|
+ "LAN_RUN",
|
||
|
+ "SPI_CE1_N",
|
||
|
+ "SPI_CE0_N",
|
||
|
+ "SPI_MISO",
|
||
|
+ "SPI_MOSI",
|
||
|
+ "SPI_SCLK",
|
||
|
+ "NC", /* GPIO12 */
|
||
|
+ "NC", /* GPIO13 */
|
||
|
+ /* Serial port */
|
||
|
+ "TXD0",
|
||
|
+ "RXD0",
|
||
|
+ "STATUS_LED_N",
|
||
|
+ "GPIO17",
|
||
|
+ "GPIO18",
|
||
|
+ "NC", /* GPIO19 */
|
||
|
+ "NC", /* GPIO20 */
|
||
|
+ "CAM_GPIO0",
|
||
|
+ "GPIO22",
|
||
|
+ "GPIO23",
|
||
|
+ "GPIO24",
|
||
|
+ "GPIO25",
|
||
|
+ "NC", /* GPIO26 */
|
||
|
+ "GPIO27",
|
||
|
+ "GPIO28",
|
||
|
+ "GPIO29",
|
||
|
+ "GPIO30",
|
||
|
+ "GPIO31",
|
||
|
+ "NC", /* GPIO32 */
|
||
|
+ "NC", /* GPIO33 */
|
||
|
+ "NC", /* GPIO34 */
|
||
|
+ "NC", /* GPIO35 */
|
||
|
+ "NC", /* GPIO36 */
|
||
|
+ "NC", /* GPIO37 */
|
||
|
+ "NC", /* GPIO38 */
|
||
|
+ "NC", /* GPIO39 */
|
||
|
+ "PWM0_OUT",
|
||
|
+ "NC", /* GPIO41 */
|
||
|
+ "NC", /* GPIO42 */
|
||
|
+ "NC", /* GPIO43 */
|
||
|
+ "NC", /* GPIO44 */
|
||
|
+ "PWM1_OUT",
|
||
|
+ "HDMI_HPD_P",
|
||
|
+ "SD_CARD_DET",
|
||
|
+ /* Used by SD Card */
|
||
|
+ "SD_CLK_R",
|
||
|
+ "SD_CMD_R",
|
||
|
+ "SD_DATA0_R",
|
||
|
+ "SD_DATA1_R",
|
||
|
+ "SD_DATA2_R",
|
||
|
+ "SD_DATA3_R";
|
||
|
+
|
||
|
spi0_pins: spi0_pins {
|
||
|
brcm,pins = <9 10 11>;
|
||
|
brcm,function = <4>; /* alt0 */
|
||
|
--- a/arch/arm/boot/dts/bcm2708-rpi-cm.dts
|
||
|
+++ b/arch/arm/boot/dts/bcm2708-rpi-cm.dts
|
||
|
@@ -24,6 +24,71 @@ cam0_reg: &cam0_regulator {
|
||
|
};
|
||
|
|
||
|
&gpio {
|
||
|
+ /*
|
||
|
+ * This is based on 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 = "GPIO0",
|
||
|
+ "GPIO1",
|
||
|
+ "GPIO2",
|
||
|
+ "GPIO3",
|
||
|
+ "GPIO4",
|
||
|
+ "GPIO5",
|
||
|
+ "GPIO6",
|
||
|
+ "GPIO7",
|
||
|
+ "GPIO8",
|
||
|
+ "GPIO9",
|
||
|
+ "GPIO10",
|
||
|
+ "GPIO11",
|
||
|
+ "GPIO12",
|
||
|
+ "GPIO13",
|
||
|
+ "GPIO14",
|
||
|
+ "GPIO15",
|
||
|
+ "GPIO16",
|
||
|
+ "GPIO17",
|
||
|
+ "GPIO18",
|
||
|
+ "GPIO19",
|
||
|
+ "GPIO20",
|
||
|
+ "GPIO21",
|
||
|
+ "GPIO22",
|
||
|
+ "GPIO23",
|
||
|
+ "GPIO24",
|
||
|
+ "GPIO25",
|
||
|
+ "GPIO26",
|
||
|
+ "GPIO27",
|
||
|
+ "GPIO28",
|
||
|
+ "GPIO29",
|
||
|
+ "GPIO30",
|
||
|
+ "GPIO31",
|
||
|
+ "GPIO32",
|
||
|
+ "GPIO33",
|
||
|
+ "GPIO34",
|
||
|
+ "GPIO35",
|
||
|
+ "GPIO36",
|
||
|
+ "GPIO37",
|
||
|
+ "GPIO38",
|
||
|
+ "GPIO39",
|
||
|
+ "GPIO40",
|
||
|
+ "GPIO41",
|
||
|
+ "GPIO42",
|
||
|
+ "GPIO43",
|
||
|
+ "GPIO44",
|
||
|
+ "GPIO45",
|
||
|
+ "HDMI_HPD_N",
|
||
|
+ /* Also used as ACT LED */
|
||
|
+ "EMMC_EN_N",
|
||
|
+ /* Used by eMMC */
|
||
|
+ "SD_CLK_R",
|
||
|
+ "SD_CMD_R",
|
||
|
+ "SD_DATA0_R",
|
||
|
+ "SD_DATA1_R",
|
||
|
+ "SD_DATA2_R",
|
||
|
+ "SD_DATA3_R";
|
||
|
+
|
||
|
spi0_pins: spi0_pins {
|
||
|
brcm,pins = <9 10 11>;
|
||
|
brcm,function = <4>; /* alt0 */
|
||
|
--- a/arch/arm/boot/dts/bcm2708-rpi-zero-w.dts
|
||
|
+++ b/arch/arm/boot/dts/bcm2708-rpi-zero-w.dts
|
||
|
@@ -22,6 +22,73 @@
|
||
|
};
|
||
|
|
||
|
&gpio {
|
||
|
+ /*
|
||
|
+ * This is based on 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 */
|
||
|
+ "TXD0",
|
||
|
+ "RXD0",
|
||
|
+ "GPIO16",
|
||
|
+ "GPIO17",
|
||
|
+ "GPIO18",
|
||
|
+ "GPIO19",
|
||
|
+ "GPIO20",
|
||
|
+ "GPIO21",
|
||
|
+ "GPIO22",
|
||
|
+ "GPIO23",
|
||
|
+ "GPIO24",
|
||
|
+ "GPIO25",
|
||
|
+ "GPIO26",
|
||
|
+ "GPIO27",
|
||
|
+ "SDA0",
|
||
|
+ "SCL0",
|
||
|
+ /* Used by BT module */
|
||
|
+ "CTS0",
|
||
|
+ "RTS0",
|
||
|
+ "TXD0",
|
||
|
+ "RXD0",
|
||
|
+ /* Used by Wifi */
|
||
|
+ "SD1_CLK",
|
||
|
+ "SD1_CMD",
|
||
|
+ "SD1_DATA0",
|
||
|
+ "SD1_DATA1",
|
||
|
+ "SD1_DATA2",
|
||
|
+ "SD1_DATA3",
|
||
|
+ "CAM_GPIO1", /* GPIO40 */
|
||
|
+ "WL_ON", /* GPIO41 */
|
||
|
+ "NC", /* GPIO42 */
|
||
|
+ "WIFI_CLK", /* GPIO43 */
|
||
|
+ "CAM_GPIO0", /* GPIO44 */
|
||
|
+ "BT_ON", /* GPIO45 */
|
||
|
+ "HDMI_HPD_N",
|
||
|
+ "STATUS_LED_N",
|
||
|
+ /* Used by SD Card */
|
||
|
+ "SD_CLK_R",
|
||
|
+ "SD_CMD_R",
|
||
|
+ "SD_DATA0_R",
|
||
|
+ "SD_DATA1_R",
|
||
|
+ "SD_DATA2_R",
|
||
|
+ "SD_DATA3_R";
|
||
|
+
|
||
|
spi0_pins: spi0_pins {
|
||
|
brcm,pins = <9 10 11>;
|
||
|
brcm,function = <4>; /* alt0 */
|
||
|
--- a/arch/arm/boot/dts/bcm2708-rpi-zero.dts
|
||
|
+++ b/arch/arm/boot/dts/bcm2708-rpi-zero.dts
|
||
|
@@ -15,6 +15,71 @@
|
||
|
};
|
||
|
|
||
|
&gpio {
|
||
|
+ /*
|
||
|
+ * This is based on 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 */
|
||
|
+ "TXD0",
|
||
|
+ "RXD0",
|
||
|
+ "GPIO16",
|
||
|
+ "GPIO17",
|
||
|
+ "GPIO18",
|
||
|
+ "GPIO19",
|
||
|
+ "GPIO20",
|
||
|
+ "GPIO21",
|
||
|
+ "GPIO22",
|
||
|
+ "GPIO23",
|
||
|
+ "GPIO24",
|
||
|
+ "GPIO25",
|
||
|
+ "GPIO26",
|
||
|
+ "GPIO27",
|
||
|
+ "SDA0",
|
||
|
+ "SCL0",
|
||
|
+ "NC", /* GPIO30 */
|
||
|
+ "NC", /* GPIO31 */
|
||
|
+ "CAM_GPIO1", /* GPIO32 */
|
||
|
+ "NC", /* GPIO33 */
|
||
|
+ "NC", /* GPIO34 */
|
||
|
+ "NC", /* GPIO35 */
|
||
|
+ "NC", /* GPIO36 */
|
||
|
+ "NC", /* GPIO37 */
|
||
|
+ "NC", /* GPIO38 */
|
||
|
+ "NC", /* GPIO39 */
|
||
|
+ "NC", /* GPIO40 */
|
||
|
+ "CAM_GPIO0", /* GPIO41 */
|
||
|
+ "NC", /* GPIO42 */
|
||
|
+ "NC", /* GPIO43 */
|
||
|
+ "NC", /* GPIO44 */
|
||
|
+ "NC", /* GPIO45 */
|
||
|
+ "HDMI_HPD_N",
|
||
|
+ "STATUS_LED_N",
|
||
|
+ /* Used by SD Card */
|
||
|
+ "SD_CLK_R",
|
||
|
+ "SD_CMD_R",
|
||
|
+ "SD_DATA0_R",
|
||
|
+ "SD_DATA1_R",
|
||
|
+ "SD_DATA2_R",
|
||
|
+ "SD_DATA3_R";
|
||
|
+
|
||
|
spi0_pins: spi0_pins {
|
||
|
brcm,pins = <9 10 11>;
|
||
|
brcm,function = <4>; /* alt0 */
|
||
|
--- a/arch/arm/boot/dts/bcm2709-rpi-2-b.dts
|
||
|
+++ b/arch/arm/boot/dts/bcm2709-rpi-2-b.dts
|
||
|
@@ -12,6 +12,72 @@
|
||
|
};
|
||
|
|
||
|
&gpio {
|
||
|
+ /*
|
||
|
+ * Taken from rpi_SCH_2b_1p2_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 */
|
||
|
+ "TXD0",
|
||
|
+ "RXD0",
|
||
|
+ "GPIO16",
|
||
|
+ "GPIO17",
|
||
|
+ "GPIO18",
|
||
|
+ "GPIO19",
|
||
|
+ "GPIO20",
|
||
|
+ "GPIO21",
|
||
|
+ "GPIO22",
|
||
|
+ "GPIO23",
|
||
|
+ "GPIO24",
|
||
|
+ "GPIO25",
|
||
|
+ "GPIO26",
|
||
|
+ "GPIO27",
|
||
|
+ "SDA0",
|
||
|
+ "SCL0",
|
||
|
+ "NC", /* GPIO30 */
|
||
|
+ "LAN_RUN",
|
||
|
+ "CAM_GPIO1",
|
||
|
+ "NC", /* GPIO33 */
|
||
|
+ "NC", /* GPIO34 */
|
||
|
+ "PWR_LOW_N",
|
||
|
+ "NC", /* GPIO36 */
|
||
|
+ "NC", /* GPIO37 */
|
||
|
+ "USB_LIMIT",
|
||
|
+ "NC", /* GPIO39 */
|
||
|
+ "PWM0_OUT",
|
||
|
+ "CAM_GPIO0",
|
||
|
+ "SMPS_SCL",
|
||
|
+ "SMPS_SDA",
|
||
|
+ "ETH_CLK",
|
||
|
+ "PWM1_OUT",
|
||
|
+ "HDMI_HPD_N",
|
||
|
+ "STATUS_LED",
|
||
|
+ /* Used by SD Card */
|
||
|
+ "SD_CLK_R",
|
||
|
+ "SD_CMD_R",
|
||
|
+ "SD_DATA0_R",
|
||
|
+ "SD_DATA1_R",
|
||
|
+ "SD_DATA2_R",
|
||
|
+ "SD_DATA3_R";
|
||
|
+
|
||
|
spi0_pins: spi0_pins {
|
||
|
brcm,pins = <9 10 11>;
|
||
|
brcm,function = <4>; /* alt0 */
|
||
|
--- a/arch/arm/boot/dts/bcm2710-rpi-2-b.dts
|
||
|
+++ b/arch/arm/boot/dts/bcm2710-rpi-2-b.dts
|
||
|
@@ -12,6 +12,72 @@
|
||
|
};
|
||
|
|
||
|
&gpio {
|
||
|
+ /*
|
||
|
+ * Taken from rpi_SCH_2b_1p2_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 */
|
||
|
+ "TXD0",
|
||
|
+ "RXD0",
|
||
|
+ "GPIO16",
|
||
|
+ "GPIO17",
|
||
|
+ "GPIO18",
|
||
|
+ "GPIO19",
|
||
|
+ "GPIO20",
|
||
|
+ "GPIO21",
|
||
|
+ "GPIO22",
|
||
|
+ "GPIO23",
|
||
|
+ "GPIO24",
|
||
|
+ "GPIO25",
|
||
|
+ "GPIO26",
|
||
|
+ "GPIO27",
|
||
|
+ "SDA0",
|
||
|
+ "SCL0",
|
||
|
+ "NC", /* GPIO30 */
|
||
|
+ "LAN_RUN",
|
||
|
+ "CAM_GPIO1",
|
||
|
+ "NC", /* GPIO33 */
|
||
|
+ "NC", /* GPIO34 */
|
||
|
+ "PWR_LOW_N",
|
||
|
+ "NC", /* GPIO36 */
|
||
|
+ "NC", /* GPIO37 */
|
||
|
+ "USB_LIMIT",
|
||
|
+ "NC", /* GPIO39 */
|
||
|
+ "PWM0_OUT",
|
||
|
+ "CAM_GPIO0",
|
||
|
+ "SMPS_SCL",
|
||
|
+ "SMPS_SDA",
|
||
|
+ "ETH_CLK",
|
||
|
+ "PWM1_OUT",
|
||
|
+ "HDMI_HPD_N",
|
||
|
+ "STATUS_LED",
|
||
|
+ /* Used by SD Card */
|
||
|
+ "SD_CLK_R",
|
||
|
+ "SD_CMD_R",
|
||
|
+ "SD_DATA0_R",
|
||
|
+ "SD_DATA1_R",
|
||
|
+ "SD_DATA2_R",
|
||
|
+ "SD_DATA3_R";
|
||
|
+
|
||
|
spi0_pins: spi0_pins {
|
||
|
brcm,pins = <9 10 11>;
|
||
|
brcm,function = <4>; /* alt0 */
|
||
|
--- a/arch/arm/boot/dts/bcm2710-rpi-3-b-plus.dts
|
||
|
+++ b/arch/arm/boot/dts/bcm2710-rpi-3-b-plus.dts
|
||
|
@@ -23,6 +23,74 @@
|
||
|
};
|
||
|
|
||
|
&gpio {
|
||
|
+ /*
|
||
|
+ * Taken from rpi_SCH_3bplus_1p0_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",
|
||
|
+ "HDMI_HPD_N",
|
||
|
+ "STATUS_LED_G",
|
||
|
+ /* Used by BT module */
|
||
|
+ "CTS0",
|
||
|
+ "RTS0",
|
||
|
+ "TXD0",
|
||
|
+ "RXD0",
|
||
|
+ /* Used by Wifi */
|
||
|
+ "SD1_CLK",
|
||
|
+ "SD1_CMD",
|
||
|
+ "SD1_DATA0",
|
||
|
+ "SD1_DATA1",
|
||
|
+ "SD1_DATA2",
|
||
|
+ "SD1_DATA3",
|
||
|
+ "PWM0_OUT",
|
||
|
+ "PWM1_OUT",
|
||
|
+ "ETH_CLK",
|
||
|
+ "WIFI_CLK",
|
||
|
+ "SDA0",
|
||
|
+ "SCL0",
|
||
|
+ "SMPS_SCL",
|
||
|
+ "SMPS_SDA",
|
||
|
+ /* Used by SD Card */
|
||
|
+ "SD_CLK_R",
|
||
|
+ "SD_CMD_R",
|
||
|
+ "SD_DATA0_R",
|
||
|
+ "SD_DATA1_R",
|
||
|
+ "SD_DATA2_R",
|
||
|
+ "SD_DATA3_R";
|
||
|
+
|
||
|
spi0_pins: spi0_pins {
|
||
|
brcm,pins = <9 10 11>;
|
||
|
brcm,function = <4>; /* alt0 */
|
||
|
@@ -97,6 +165,14 @@
|
||
|
compatible = "raspberrypi,firmware-gpio";
|
||
|
gpio-controller;
|
||
|
#gpio-cells = <2>;
|
||
|
+ gpio-line-names = "BT_ON",
|
||
|
+ "WL_ON",
|
||
|
+ "PWR_LED_R",
|
||
|
+ "LAN_RUN",
|
||
|
+ "NC",
|
||
|
+ "CAM_GPIO0",
|
||
|
+ "CAM_GPIO1",
|
||
|
+ "NC";
|
||
|
status = "okay";
|
||
|
};
|
||
|
};
|
||
|
--- a/arch/arm/boot/dts/bcm2710-rpi-3-b.dts
|
||
|
+++ b/arch/arm/boot/dts/bcm2710-rpi-3-b.dts
|
||
|
@@ -23,6 +23,74 @@
|
||
|
};
|
||
|
|
||
|
&gpio {
|
||
|
+ /*
|
||
|
+ * Taken from rpi_SCH_3b_1p2_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",
|
||
|
+ "NC", /* GPIO 28 */
|
||
|
+ "LAN_RUN_BOOT",
|
||
|
+ /* Used by BT module */
|
||
|
+ "CTS0",
|
||
|
+ "RTS0",
|
||
|
+ "TXD0",
|
||
|
+ "RXD0",
|
||
|
+ /* Used by Wifi */
|
||
|
+ "SD1_CLK",
|
||
|
+ "SD1_CMD",
|
||
|
+ "SD1_DATA0",
|
||
|
+ "SD1_DATA1",
|
||
|
+ "SD1_DATA2",
|
||
|
+ "SD1_DATA3",
|
||
|
+ "PWM0_OUT",
|
||
|
+ "PWM1_OUT",
|
||
|
+ "ETH_CLK",
|
||
|
+ "WIFI_CLK",
|
||
|
+ "SDA0",
|
||
|
+ "SCL0",
|
||
|
+ "SMPS_SCL",
|
||
|
+ "SMPS_SDA",
|
||
|
+ /* Used by SD Card */
|
||
|
+ "SD_CLK_R",
|
||
|
+ "SD_CMD_R",
|
||
|
+ "SD_DATA0_R",
|
||
|
+ "SD_DATA1_R",
|
||
|
+ "SD_DATA2_R",
|
||
|
+ "SD_DATA3_R";
|
||
|
+
|
||
|
spi0_pins: spi0_pins {
|
||
|
brcm,pins = <9 10 11>;
|
||
|
brcm,function = <4>; /* alt0 */
|
||
|
@@ -108,6 +176,14 @@
|
||
|
compatible = "raspberrypi,firmware-gpio";
|
||
|
gpio-controller;
|
||
|
#gpio-cells = <2>;
|
||
|
+ gpio-line-names = "BT_ON",
|
||
|
+ "WL_ON",
|
||
|
+ "STATUS_LED",
|
||
|
+ "LAN_RUN",
|
||
|
+ "HDMI_HPD_N",
|
||
|
+ "CAM_GPIO0",
|
||
|
+ "CAM_GPIO1",
|
||
|
+ "PWR_LOW_N";
|
||
|
status = "okay";
|
||
|
};
|
||
|
};
|
||
|
--- a/arch/arm/boot/dts/bcm2710-rpi-cm3.dts
|
||
|
+++ b/arch/arm/boot/dts/bcm2710-rpi-cm3.dts
|
||
|
@@ -24,6 +24,70 @@ cam0_reg: &cam0_regulator {
|
||
|
};
|
||
|
|
||
|
&gpio {
|
||
|
+ /*
|
||
|
+ * This is based on 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 = "GPIO0",
|
||
|
+ "GPIO1",
|
||
|
+ "GPIO2",
|
||
|
+ "GPIO3",
|
||
|
+ "GPIO4",
|
||
|
+ "GPIO5",
|
||
|
+ "GPIO6",
|
||
|
+ "GPIO7",
|
||
|
+ "GPIO8",
|
||
|
+ "GPIO9",
|
||
|
+ "GPIO10",
|
||
|
+ "GPIO11",
|
||
|
+ "GPIO12",
|
||
|
+ "GPIO13",
|
||
|
+ "GPIO14",
|
||
|
+ "GPIO15",
|
||
|
+ "GPIO16",
|
||
|
+ "GPIO17",
|
||
|
+ "GPIO18",
|
||
|
+ "GPIO19",
|
||
|
+ "GPIO20",
|
||
|
+ "GPIO21",
|
||
|
+ "GPIO22",
|
||
|
+ "GPIO23",
|
||
|
+ "GPIO24",
|
||
|
+ "GPIO25",
|
||
|
+ "GPIO26",
|
||
|
+ "GPIO27",
|
||
|
+ "GPIO28",
|
||
|
+ "GPIO29",
|
||
|
+ "GPIO30",
|
||
|
+ "GPIO31",
|
||
|
+ "GPIO32",
|
||
|
+ "GPIO33",
|
||
|
+ "GPIO34",
|
||
|
+ "GPIO35",
|
||
|
+ "GPIO36",
|
||
|
+ "GPIO37",
|
||
|
+ "GPIO38",
|
||
|
+ "GPIO39",
|
||
|
+ "GPIO40",
|
||
|
+ "GPIO41",
|
||
|
+ "GPIO42",
|
||
|
+ "GPIO43",
|
||
|
+ "GPIO44",
|
||
|
+ "GPIO45",
|
||
|
+ "SMPS_SCL",
|
||
|
+ "SMPS_SDA",
|
||
|
+ /* Used by eMMC */
|
||
|
+ "SD_CLK_R",
|
||
|
+ "SD_CMD_R",
|
||
|
+ "SD_DATA0_R",
|
||
|
+ "SD_DATA1_R",
|
||
|
+ "SD_DATA2_R",
|
||
|
+ "SD_DATA3_R";
|
||
|
+
|
||
|
spi0_pins: spi0_pins {
|
||
|
brcm,pins = <9 10 11>;
|
||
|
brcm,function = <4>; /* alt0 */
|
||
|
@@ -71,6 +135,14 @@ cam0_reg: &cam0_regulator {
|
||
|
compatible = "raspberrypi,firmware-gpio";
|
||
|
gpio-controller;
|
||
|
#gpio-cells = <2>;
|
||
|
+ gpio-line-names = "HDMI_HPD_N",
|
||
|
+ "EMMC_EN_N",
|
||
|
+ "NC",
|
||
|
+ "NC",
|
||
|
+ "NC",
|
||
|
+ "NC",
|
||
|
+ "NC",
|
||
|
+ "NC";
|
||
|
status = "okay";
|
||
|
};
|
||
|
};
|
||
|
--- a/arch/arm/boot/dts/bcm2710-rpi-zero-2-w.dts
|
||
|
+++ b/arch/arm/boot/dts/bcm2710-rpi-zero-2-w.dts
|
||
|
@@ -22,6 +22,73 @@
|
||
|
};
|
||
|
|
||
|
&gpio {
|
||
|
+ /*
|
||
|
+ * This is based on 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 */
|
||
|
+ "TXD0",
|
||
|
+ "RXD0",
|
||
|
+ "GPIO16",
|
||
|
+ "GPIO17",
|
||
|
+ "GPIO18",
|
||
|
+ "GPIO19",
|
||
|
+ "GPIO20",
|
||
|
+ "GPIO21",
|
||
|
+ "GPIO22",
|
||
|
+ "GPIO23",
|
||
|
+ "GPIO24",
|
||
|
+ "GPIO25",
|
||
|
+ "GPIO26",
|
||
|
+ "GPIO27",
|
||
|
+ "HDMI_HPD_N",
|
||
|
+ "STATUS_LED_N",
|
||
|
+ /* Used by BT module */
|
||
|
+ "CTS0",
|
||
|
+ "RTS0",
|
||
|
+ "TXD0",
|
||
|
+ "RXD0",
|
||
|
+ /* Used by Wifi */
|
||
|
+ "SD1_CLK",
|
||
|
+ "SD1_CMD",
|
||
|
+ "SD1_DATA0",
|
||
|
+ "SD1_DATA1",
|
||
|
+ "SD1_DATA2",
|
||
|
+ "SD1_DATA3",
|
||
|
+ "CAM_GPIO1", /* GPIO40 */
|
||
|
+ "WL_ON", /* GPIO41 */
|
||
|
+ "BT_ON", /* GPIO42 */
|
||
|
+ "WIFI_CLK", /* GPIO43 */
|
||
|
+ "SDA0", /* GPIO44 */
|
||
|
+ "SCL0", /* GPIO45 */
|
||
|
+ "SMPS_SCL", /* GPIO46 */
|
||
|
+ "SMPS_SDA", /* GPIO47 */
|
||
|
+ /* Used by SD Card */
|
||
|
+ "SD_CLK_R",
|
||
|
+ "SD_CMD_R",
|
||
|
+ "SD_DATA0_R",
|
||
|
+ "SD_DATA1_R",
|
||
|
+ "SD_DATA2_R",
|
||
|
+ "SD_DATA3_R";
|
||
|
+
|
||
|
spi0_pins: spi0_pins {
|
||
|
brcm,pins = <9 10 11>;
|
||
|
brcm,function = <4>; /* alt0 */
|