Skip to contentSkip to conversation

arm64: dts: blaize-blzp1600: Enable GPIO support

PATCH Applied Nikolaos Pasaloukos 2 participants 2 messages May 12, 2025 – May 21, 2025

Subsystems (2)
lore
Share & tools
lore

Nikolaos Pasaloukos

author maintainer
#0 lore raw

PATCH 1/1 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.

---
Hi Arnd,

Could you please pick up this patch? Initial review happened here:
https://lore.kernel.org/all/20250327-kernel-upstreaming-add_gpio_support-v2-0-bbe51f8d66da@blaize.com/
The rest of the patches have already been accepted.

Kind regards,
Nikolaos Pasaloukos

---
 .../boot/dts/blaize/blaize-blzp1600-cb2.dts   | 36 +++++++++++++++++++
 .../boot/dts/blaize/blaize-blzp1600.dtsi      | 12 +++++++
 2 files changed, 48 insertions(+)
arch/arm64/boot/dts/blaize/blaize-blzp1600-cb2.dts +36 -0
index 7e3cef2ed352..fb5415eb347a 100644
@@ -81,3 +81,39 @@ gpio_expander_m2: gpio@75 {
 				  "UART1_TO_RSP";	/* GPIO_15 */
 	};
 };
+
+&gpio0 {
+	status = "okay";
+	gpio-line-names = "PERST_N",		/* GPIO_0 */
+			  "LM96063_ALERT_N",	/* GPIO_1 */
+			  "INA3221_PV",		/* GPIO_2 */
+			  "INA3221_CRIT",	/* GPIO_3 */
+			  "INA3221_WARN",	/* GPIO_4 */
+			  "INA3221_TC",		/* GPIO_5 */
+			  "QSPI0_RST_N",	/* GPIO_6 */
+			  "LM96063_TCRIT_N",	/* GPIO_7 */
+			  "DSI_TCH_INT",	/* GPIO_8 */
+			  "DSI_RST",		/* GPIO_9 */
+			  "DSI_BL",		/* GPIO_10 */
+			  "DSI_INT",		/* GPIO_11 */
+			  "ETH_RST",		/* GPIO_12 */
+			  "CSI0_RST",		/* GPIO_13 */
+			  "CSI0_PWDN",		/* GPIO_14 */
+			  "CSI1_RST",		/* GPIO_15 */
+			  "CSI1_PWDN",		/* GPIO_16 */
+			  "CSI2_RST",		/* GPIO_17 */
+			  "CSI2_PWDN",		/* GPIO_18 */
+			  "CSI3_RST",		/* GPIO_19 */
+			  "CSI3_PWDN",		/* GPIO_20 */
+			  "ADAC_RST",		/* GPIO_21 */
+			  "SD_SW_VDD",		/* GPIO_22 */
+			  "SD_PON_VDD",		/* GPIO_23 */
+			  "GPIO_EXP_INT",	/* GPIO_24 */
+			  "BOARD_ID_0",		/* GPIO_25 */
+			  "SDIO1_SW_VDD",	/* GPIO_26 */
+			  "SDIO1_PON_VDD",	/* GPIO_27 */
+			  "SDIO2_SW_VDD",	/* GPIO_28 */
+			  "SDIO2_PON_VDD",	/* GPIO_29 */
+			  "BOARD_ID_1",		/* GPIO_30 */
+			  "BOARD_ID_2";		/* GPIO_31 */
+};
arch/arm64/boot/dts/blaize/blaize-blzp1600.dtsi +12 -0
index 7d399e6a532f..5a6c882b2f57 100644
@@ -120,6 +120,18 @@ gic: interrupt-controller@410000 {
 						 IRQ_TYPE_LEVEL_LOW)>;
 		};
 
+		gpio0: gpio@4c0000 {
+			compatible = "blaize,blzp1600-gpio";
+			reg = <0x4c0000 0x1000>;
+			gpio-controller;
+			#gpio-cells = <2>;
+			ngpios = <32>;
+			interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
+			interrupt-controller;
+			#interrupt-cells = <2>;
+			status = "disabled";
+		};
+
 		uart0: serial@4d0000 {
 			compatible = "ns16550a";
 			reg = <0x4d0000 0x1000>;
Signature · 1 line
2.43.0
#1 lore raw
This patch was applied to soc/soc.git (for-next) by Arnd Bergmann <[email protected]>:

Hello:

This patch was applied to soc/soc.git (for-next)
by Arnd Bergmann <[email protected]>:

Quoted 8 lines · On Mon, 12 May 2025 13:33:17 +0000 you wrote:

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.

[...]

Here is the summary with links:
- [1/1] arm64: dts: blaize-blzp1600: Enable GPIO support

    https://git.kernel.org/soc/soc/c/c07da6de0eb8

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html