Skip to content

Commit c07da6d

Browse files
Nikolaos Pasaloukosarndb
authored andcommitted
arm64: dts: blaize-blzp1600: Enable GPIO support
Blaize BLZP1600 uses the custom silicon provided from VeriSilicon to add GPIO support. This interface is used to control signals on many other peripherals, such as Ethernet, USB, SD and eMMC. Signed-off-by: Nikolaos Pasaloukos <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnd Bergmann <[email protected]>
1 parent 7e358b8 commit c07da6d

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed

arch/arm64/boot/dts/blaize/blaize-blzp1600-cb2.dts

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,39 @@
8181
"UART1_TO_RSP"; /* GPIO_15 */
8282
};
8383
};
84+
85+
&gpio0 {
86+
status = "okay";
87+
gpio-line-names = "PERST_N", /* GPIO_0 */
88+
"LM96063_ALERT_N", /* GPIO_1 */
89+
"INA3221_PV", /* GPIO_2 */
90+
"INA3221_CRIT", /* GPIO_3 */
91+
"INA3221_WARN", /* GPIO_4 */
92+
"INA3221_TC", /* GPIO_5 */
93+
"QSPI0_RST_N", /* GPIO_6 */
94+
"LM96063_TCRIT_N", /* GPIO_7 */
95+
"DSI_TCH_INT", /* GPIO_8 */
96+
"DSI_RST", /* GPIO_9 */
97+
"DSI_BL", /* GPIO_10 */
98+
"DSI_INT", /* GPIO_11 */
99+
"ETH_RST", /* GPIO_12 */
100+
"CSI0_RST", /* GPIO_13 */
101+
"CSI0_PWDN", /* GPIO_14 */
102+
"CSI1_RST", /* GPIO_15 */
103+
"CSI1_PWDN", /* GPIO_16 */
104+
"CSI2_RST", /* GPIO_17 */
105+
"CSI2_PWDN", /* GPIO_18 */
106+
"CSI3_RST", /* GPIO_19 */
107+
"CSI3_PWDN", /* GPIO_20 */
108+
"ADAC_RST", /* GPIO_21 */
109+
"SD_SW_VDD", /* GPIO_22 */
110+
"SD_PON_VDD", /* GPIO_23 */
111+
"GPIO_EXP_INT", /* GPIO_24 */
112+
"BOARD_ID_0", /* GPIO_25 */
113+
"SDIO1_SW_VDD", /* GPIO_26 */
114+
"SDIO1_PON_VDD", /* GPIO_27 */
115+
"SDIO2_SW_VDD", /* GPIO_28 */
116+
"SDIO2_PON_VDD", /* GPIO_29 */
117+
"BOARD_ID_1", /* GPIO_30 */
118+
"BOARD_ID_2"; /* GPIO_31 */
119+
};

arch/arm64/boot/dts/blaize/blaize-blzp1600.dtsi

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,18 @@
120120
IRQ_TYPE_LEVEL_LOW)>;
121121
};
122122

123+
gpio0: gpio@4c0000 {
124+
compatible = "blaize,blzp1600-gpio";
125+
reg = <0x4c0000 0x1000>;
126+
gpio-controller;
127+
#gpio-cells = <2>;
128+
ngpios = <32>;
129+
interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
130+
interrupt-controller;
131+
#interrupt-cells = <2>;
132+
status = "disabled";
133+
};
134+
123135
uart0: serial@4d0000 {
124136
compatible = "ns16550a";
125137
reg = <0x4d0000 0x1000>;

0 commit comments

Comments
 (0)