Commit 20b77926 authored by Yixun Lan's avatar Yixun Lan
Browse files

riscv: dts: spacemit: k3: add GPIO support

Add GPIO node in the Device Tree, so devices are able to request GPIO
resource properly.

Link: https://lore.kernel.org/r/20260304-01-dts-uart-full-v1-3-50a0aa53a245@kernel.org


Signed-off-by: default avatarYixun Lan <dlan@kernel.org>
parent d8944577
Loading
Loading
Loading
Loading
+18 −0
Original line number Diff line number Diff line
@@ -536,6 +536,24 @@ uart9: serial@d4017800 {
			status = "disabled";
		};

		gpio: gpio@d4019000 {
			compatible = "spacemit,k3-gpio";
			reg = <0x0 0xd4019000 0x0 0x100>;
			clocks = <&syscon_apbc CLK_APBC_GPIO>,
				 <&syscon_apbc CLK_APBC_GPIO_BUS>;
			clock-names = "core", "bus";
			gpio-controller;
			#gpio-cells = <3>;
			interrupts = <58 IRQ_TYPE_LEVEL_HIGH>;
			interrupt-parent = <&saplic>;
			interrupt-controller;
			#interrupt-cells = <3>;
			gpio-ranges = <&pinctrl 0 0 0 32>,
				      <&pinctrl 1 0 32 32>,
				      <&pinctrl 2 0 64 32>,
				      <&pinctrl 3 0 96 32>;
		};

		pinctrl: pinctrl@d401e000 {
			compatible = "spacemit,k3-pinctrl";
			reg = <0x0 0xd401e000 0x0 0x1000>;