Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: bcm63138: Add BCMBCA peripherals

All the BCMBCA SoCs share a set of peripherals at 0xff800000,
albeit at slightly varying memory locations on the bus and
with varying IRQ assignments.

Extend the peripheral interrupt window to 0x10000 as it need
to fit the DMA block.

Add the GPIO, RNG and LED and DMA blocks for the
BCM63138 based on the vendor files 63138_map_part.h and
63138_intr.h from the "bcmopen-consumer" code drop.

This SoC has up to 160 possible GPIOs due to having 5
registers with 32 GPIOs in each available.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: William Zhang <william.zhang@broadcom.com>
Link: https://lore.kernel.org/r/20250512-bcmbca-peripherals-arm-v3-6-86f97ab4326f@linaro.org
Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com>

authored by

Linus Walleij and committed by
Florian Fainelli
b7907e00 b7f8a3a5

+78 -1
+78 -1
arch/arm/boot/dts/broadcom/bcm63138.dtsi
··· 184 184 compatible = "simple-bus"; 185 185 #address-cells = <1>; 186 186 #size-cells = <1>; 187 - ranges = <0 0xfffe8000 0x8100>; 187 + ranges = <0 0xfffe8000 0x10000>; 188 188 189 189 timer: timer@80 { 190 190 compatible = "brcm,bcm6328-timer", "syscon"; 191 191 reg = <0x80 0x3c>; 192 + }; 193 + 194 + /* GPIOs 0 .. 31 */ 195 + gpio0: gpio@100 { 196 + compatible = "brcm,bcm6345-gpio"; 197 + reg = <0x100 0x04>, <0x114 0x04>; 198 + reg-names = "dirout", "dat"; 199 + gpio-controller; 200 + #gpio-cells = <2>; 201 + status = "disabled"; 202 + }; 203 + 204 + /* GPIOs 32 .. 63 */ 205 + gpio1: gpio@104 { 206 + compatible = "brcm,bcm6345-gpio"; 207 + reg = <0x104 0x04>, <0x118 0x04>; 208 + reg-names = "dirout", "dat"; 209 + gpio-controller; 210 + #gpio-cells = <2>; 211 + status = "disabled"; 212 + }; 213 + 214 + /* GPIOs 64 .. 95 */ 215 + gpio2: gpio@108 { 216 + compatible = "brcm,bcm6345-gpio"; 217 + reg = <0x108 0x04>, <0x11c 0x04>; 218 + reg-names = "dirout", "dat"; 219 + gpio-controller; 220 + #gpio-cells = <2>; 221 + status = "disabled"; 222 + }; 223 + 224 + /* GPIOs 96 .. 127 */ 225 + gpio3: gpio@10c { 226 + compatible = "brcm,bcm6345-gpio"; 227 + reg = <0x10c 0x04>, <0x120 0x04>; 228 + reg-names = "dirout", "dat"; 229 + gpio-controller; 230 + #gpio-cells = <2>; 231 + status = "disabled"; 232 + }; 233 + 234 + /* GPIOs 128 .. 159 */ 235 + gpio4: gpio@110 { 236 + compatible = "brcm,bcm6345-gpio"; 237 + reg = <0x110 0x04>, <0x124 0x04>; 238 + reg-names = "dirout", "dat"; 239 + gpio-controller; 240 + #gpio-cells = <2>; 241 + status = "disabled"; 242 + }; 243 + 244 + rng@300 { 245 + compatible = "brcm,iproc-rng200"; 246 + reg = <0x300 0x28>; 247 + interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>; 192 248 }; 193 249 194 250 serial0: serial@600 { ··· 262 206 interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>; 263 207 clocks = <&periph_clk>; 264 208 clock-names = "periph"; 209 + status = "disabled"; 210 + }; 211 + 212 + leds: led-controller@700 { 213 + #address-cells = <1>; 214 + #size-cells = <0>; 215 + compatible = "brcm,bcm63138-leds"; 216 + reg = <0x700 0xdc>; 265 217 status = "disabled"; 266 218 }; 267 219 ··· 310 246 bootlut: bootlut@8000 { 311 247 compatible = "brcm,bcm63138-bootlut"; 312 248 reg = <0x8000 0x50>; 249 + }; 250 + 251 + pl081_dma: dma-controller@d000 { 252 + compatible = "arm,pl081", "arm,primecell"; 253 + // The magic B105F00D info is missing 254 + arm,primecell-periphid = <0x00041081>; 255 + reg = <0xd000 0x1000>; 256 + interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>; 257 + memcpy-burst-size = <256>; 258 + memcpy-bus-width = <32>; 259 + clocks = <&periph_clk>; 260 + clock-names = "apb_pclk"; 261 + #dma-cells = <2>; 313 262 }; 314 263 315 264 reboot {