From 0088b90b25ac5f5d04f7d167bd3e7dd5a694b329 Mon Sep 17 00:00:00 2001 From: Junho Lee Date: Thu, 5 Dec 2024 17:13:45 +0900 Subject: [PATCH] dts: arm64: broadcom: bcm2712: Add node for RP1 GPIO Add RP1 GPIO node in the devicetree for BCM2712. Signed-off-by: Junho Lee --- dts/arm64/broadcom/bcm2712.dtsi | 58 +++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/dts/arm64/broadcom/bcm2712.dtsi b/dts/arm64/broadcom/bcm2712.dtsi index 9249cb3622c0..07084ffe75dc 100644 --- a/dts/arm64/broadcom/bcm2712.dtsi +++ b/dts/arm64/broadcom/bcm2712.dtsi @@ -87,4 +87,62 @@ #clock-cells = <0>; }; }; + + axi { + #address-cells = <2>; + #size-cells = <1>; + + pcie2: pcie@1000120000 { + compatible = "brcm,brcmstb-pcie"; + reg = <0x10 0x120000 0x9310>, + <0x0 0x410000 0x4000>, + <0x0 0x0 0x400000>, + <0x0 0x400000 0x4000>; + #address-cells = <3>; + #size-cells = <2>; + ranges = <0x02000000 0x0 0x0 0x1f 0x0 0x00 0xfffffffc>, + <0x43000000 0x4 0x0 0x1c 0x0 0x03 0x00000000>, + <0x02000000 0x0 0x0 0x1f 0x0 0x00 0x00400000>; + status = "okay"; + + rp1 { + #address-cells = <2>; + #size-cells = <1>; + + gpio0: gpio@1f000d0000 { + compatible = "simple-bus"; + reg = <0x1f 0xd0000 0x30000>; + #address-cells = <1>; + #size-cells = <0>; + + gpio0_0: gpio@0 { + compatible = "raspberrypi,rp1-gpio"; + reg = <0x0 0x10000 0x20000>; + #gpio-cells = <2>; + gpio-controller; + ngpios = <28>; + status = "disabled"; + }; + + gpio0_1: gpio@4000 { + compatible = "raspberrypi,rp1-gpio"; + reg = <0x4000 0x14000 0x24000>; + #gpio-cells = <2>; + gpio-controller; + ngpios = <6>; + status = "disabled"; + }; + + gpio0_2: gpio@8000 { + compatible = "raspberrypi,rp1-gpio"; + reg = <0x8000 0x18000 0x28000>; + #gpio-cells = <2>; + gpio-controller; + ngpios = <20>; + status = "disabled"; + }; + }; + }; + }; + }; };