1*724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0 2*724ba675SRob Herring#include <dt-bindings/input/input.h> 3*724ba675SRob Herring#include <dt-bindings/gpio/gpio.h> 4*724ba675SRob Herring 5*724ba675SRob Herring#define MBUS_ID(target,attributes) (((target) << 24) | ((attributes) << 16)) 6*724ba675SRob Herring 7*724ba675SRob Herring/ { 8*724ba675SRob Herring #address-cells = <1>; 9*724ba675SRob Herring #size-cells = <1>; 10*724ba675SRob Herring compatible = "marvell,kirkwood"; 11*724ba675SRob Herring interrupt-parent = <&intc>; 12*724ba675SRob Herring 13*724ba675SRob Herring cpus { 14*724ba675SRob Herring #address-cells = <1>; 15*724ba675SRob Herring #size-cells = <0>; 16*724ba675SRob Herring 17*724ba675SRob Herring cpu@0 { 18*724ba675SRob Herring device_type = "cpu"; 19*724ba675SRob Herring compatible = "marvell,feroceon"; 20*724ba675SRob Herring reg = <0>; 21*724ba675SRob Herring clocks = <&core_clk 1>, <&core_clk 3>, <&gate_clk 11>; 22*724ba675SRob Herring clock-names = "cpu_clk", "ddrclk", "powersave"; 23*724ba675SRob Herring }; 24*724ba675SRob Herring }; 25*724ba675SRob Herring 26*724ba675SRob Herring aliases { 27*724ba675SRob Herring gpio0 = &gpio0; 28*724ba675SRob Herring gpio1 = &gpio1; 29*724ba675SRob Herring i2c0 = &i2c0; 30*724ba675SRob Herring }; 31*724ba675SRob Herring 32*724ba675SRob Herring mbus@f1000000 { 33*724ba675SRob Herring compatible = "marvell,kirkwood-mbus", "simple-bus"; 34*724ba675SRob Herring #address-cells = <2>; 35*724ba675SRob Herring #size-cells = <1>; 36*724ba675SRob Herring /* If a board file needs to change this ranges it must replace it completely */ 37*724ba675SRob Herring ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000 /* internal-regs */ 38*724ba675SRob Herring MBUS_ID(0x01, 0x2f) 0 0xf4000000 0x10000 /* nand flash */ 39*724ba675SRob Herring MBUS_ID(0x03, 0x01) 0 0xf5000000 0x10000 /* crypto sram */ 40*724ba675SRob Herring >; 41*724ba675SRob Herring controller = <&mbusc>; 42*724ba675SRob Herring pcie-mem-aperture = <0xe0000000 0x10000000>; /* 256 MiB memory space */ 43*724ba675SRob Herring pcie-io-aperture = <0xf2000000 0x100000>; /* 1 MiB I/O space */ 44*724ba675SRob Herring 45*724ba675SRob Herring nand: nand@12f { 46*724ba675SRob Herring #address-cells = <1>; 47*724ba675SRob Herring #size-cells = <1>; 48*724ba675SRob Herring cle = <0>; 49*724ba675SRob Herring ale = <1>; 50*724ba675SRob Herring bank-width = <1>; 51*724ba675SRob Herring compatible = "marvell,orion-nand"; 52*724ba675SRob Herring reg = <MBUS_ID(0x01, 0x2f) 0 0x400>; 53*724ba675SRob Herring chip-delay = <25>; 54*724ba675SRob Herring /* set partition map and/or chip-delay in board dts */ 55*724ba675SRob Herring clocks = <&gate_clk 7>; 56*724ba675SRob Herring pinctrl-0 = <&pmx_nand>; 57*724ba675SRob Herring pinctrl-names = "default"; 58*724ba675SRob Herring status = "disabled"; 59*724ba675SRob Herring }; 60*724ba675SRob Herring 61*724ba675SRob Herring crypto_sram: sa-sram@301 { 62*724ba675SRob Herring compatible = "mmio-sram"; 63*724ba675SRob Herring reg = <MBUS_ID(0x03, 0x01) 0x0 0x800>; 64*724ba675SRob Herring clocks = <&gate_clk 17>; 65*724ba675SRob Herring #address-cells = <1>; 66*724ba675SRob Herring #size-cells = <1>; 67*724ba675SRob Herring }; 68*724ba675SRob Herring }; 69*724ba675SRob Herring 70*724ba675SRob Herring ocp@f1000000 { 71*724ba675SRob Herring compatible = "simple-bus"; 72*724ba675SRob Herring ranges = <0x00000000 0xf1000000 0x0100000>; 73*724ba675SRob Herring #address-cells = <1>; 74*724ba675SRob Herring #size-cells = <1>; 75*724ba675SRob Herring 76*724ba675SRob Herring pinctrl: pin-controller@10000 { 77*724ba675SRob Herring /* set compatible property in SoC file */ 78*724ba675SRob Herring reg = <0x10000 0x20>; 79*724ba675SRob Herring 80*724ba675SRob Herring pmx_ge1: pmx-ge1 { 81*724ba675SRob Herring marvell,pins = "mpp20", "mpp21", "mpp22", "mpp23", 82*724ba675SRob Herring "mpp24", "mpp25", "mpp26", "mpp27", 83*724ba675SRob Herring "mpp30", "mpp31", "mpp32", "mpp33"; 84*724ba675SRob Herring marvell,function = "ge1"; 85*724ba675SRob Herring }; 86*724ba675SRob Herring 87*724ba675SRob Herring pmx_nand: pmx-nand { 88*724ba675SRob Herring marvell,pins = "mpp0", "mpp1", "mpp2", "mpp3", 89*724ba675SRob Herring "mpp4", "mpp5", "mpp18", "mpp19"; 90*724ba675SRob Herring marvell,function = "nand"; 91*724ba675SRob Herring }; 92*724ba675SRob Herring 93*724ba675SRob Herring /* 94*724ba675SRob Herring * Default SPI0 pinctrl setting with CSn on mpp0, 95*724ba675SRob Herring * overwrite marvell,pins on board level if required. 96*724ba675SRob Herring */ 97*724ba675SRob Herring pmx_spi: pmx-spi { 98*724ba675SRob Herring marvell,pins = "mpp0", "mpp1", "mpp2", "mpp3"; 99*724ba675SRob Herring marvell,function = "spi"; 100*724ba675SRob Herring }; 101*724ba675SRob Herring 102*724ba675SRob Herring pmx_twsi0: pmx-twsi0 { 103*724ba675SRob Herring marvell,pins = "mpp8", "mpp9"; 104*724ba675SRob Herring marvell,function = "twsi0"; 105*724ba675SRob Herring }; 106*724ba675SRob Herring 107*724ba675SRob Herring /* 108*724ba675SRob Herring * Default UART pinctrl setting without RTS/CTS, 109*724ba675SRob Herring * overwrite marvell,pins on board level if required. 110*724ba675SRob Herring */ 111*724ba675SRob Herring pmx_uart0: pmx-uart0 { 112*724ba675SRob Herring marvell,pins = "mpp10", "mpp11"; 113*724ba675SRob Herring marvell,function = "uart0"; 114*724ba675SRob Herring }; 115*724ba675SRob Herring 116*724ba675SRob Herring pmx_uart1: pmx-uart1 { 117*724ba675SRob Herring marvell,pins = "mpp13", "mpp14"; 118*724ba675SRob Herring marvell,function = "uart1"; 119*724ba675SRob Herring }; 120*724ba675SRob Herring }; 121*724ba675SRob Herring 122*724ba675SRob Herring core_clk: core-clocks@10030 { 123*724ba675SRob Herring compatible = "marvell,kirkwood-core-clock"; 124*724ba675SRob Herring reg = <0x10030 0x4>; 125*724ba675SRob Herring #clock-cells = <1>; 126*724ba675SRob Herring }; 127*724ba675SRob Herring 128*724ba675SRob Herring spi0: spi@10600 { 129*724ba675SRob Herring compatible = "marvell,orion-spi"; 130*724ba675SRob Herring #address-cells = <1>; 131*724ba675SRob Herring #size-cells = <0>; 132*724ba675SRob Herring cell-index = <0>; 133*724ba675SRob Herring interrupts = <23>; 134*724ba675SRob Herring reg = <0x10600 0x28>; 135*724ba675SRob Herring clocks = <&gate_clk 7>; 136*724ba675SRob Herring pinctrl-0 = <&pmx_spi>; 137*724ba675SRob Herring pinctrl-names = "default"; 138*724ba675SRob Herring status = "disabled"; 139*724ba675SRob Herring }; 140*724ba675SRob Herring 141*724ba675SRob Herring gpio0: gpio@10100 { 142*724ba675SRob Herring compatible = "marvell,orion-gpio"; 143*724ba675SRob Herring #gpio-cells = <2>; 144*724ba675SRob Herring gpio-controller; 145*724ba675SRob Herring reg = <0x10100 0x40>; 146*724ba675SRob Herring ngpios = <32>; 147*724ba675SRob Herring interrupt-controller; 148*724ba675SRob Herring #interrupt-cells = <2>; 149*724ba675SRob Herring interrupts = <35>, <36>, <37>, <38>; 150*724ba675SRob Herring clocks = <&gate_clk 7>; 151*724ba675SRob Herring }; 152*724ba675SRob Herring 153*724ba675SRob Herring gpio1: gpio@10140 { 154*724ba675SRob Herring compatible = "marvell,orion-gpio"; 155*724ba675SRob Herring #gpio-cells = <2>; 156*724ba675SRob Herring gpio-controller; 157*724ba675SRob Herring reg = <0x10140 0x40>; 158*724ba675SRob Herring ngpios = <18>; 159*724ba675SRob Herring interrupt-controller; 160*724ba675SRob Herring #interrupt-cells = <2>; 161*724ba675SRob Herring interrupts = <39>, <40>, <41>; 162*724ba675SRob Herring clocks = <&gate_clk 7>; 163*724ba675SRob Herring }; 164*724ba675SRob Herring 165*724ba675SRob Herring i2c0: i2c@11000 { 166*724ba675SRob Herring compatible = "marvell,mv64xxx-i2c"; 167*724ba675SRob Herring reg = <0x11000 0x20>; 168*724ba675SRob Herring #address-cells = <1>; 169*724ba675SRob Herring #size-cells = <0>; 170*724ba675SRob Herring interrupts = <29>; 171*724ba675SRob Herring clock-frequency = <100000>; 172*724ba675SRob Herring clocks = <&gate_clk 7>; 173*724ba675SRob Herring pinctrl-0 = <&pmx_twsi0>; 174*724ba675SRob Herring pinctrl-names = "default"; 175*724ba675SRob Herring status = "disabled"; 176*724ba675SRob Herring }; 177*724ba675SRob Herring 178*724ba675SRob Herring uart0: serial@12000 { 179*724ba675SRob Herring compatible = "ns16550a"; 180*724ba675SRob Herring reg = <0x12000 0x100>; 181*724ba675SRob Herring reg-shift = <2>; 182*724ba675SRob Herring interrupts = <33>; 183*724ba675SRob Herring clocks = <&gate_clk 7>; 184*724ba675SRob Herring pinctrl-0 = <&pmx_uart0>; 185*724ba675SRob Herring pinctrl-names = "default"; 186*724ba675SRob Herring status = "disabled"; 187*724ba675SRob Herring }; 188*724ba675SRob Herring 189*724ba675SRob Herring uart1: serial@12100 { 190*724ba675SRob Herring compatible = "ns16550a"; 191*724ba675SRob Herring reg = <0x12100 0x100>; 192*724ba675SRob Herring reg-shift = <2>; 193*724ba675SRob Herring interrupts = <34>; 194*724ba675SRob Herring clocks = <&gate_clk 7>; 195*724ba675SRob Herring pinctrl-0 = <&pmx_uart1>; 196*724ba675SRob Herring pinctrl-names = "default"; 197*724ba675SRob Herring status = "disabled"; 198*724ba675SRob Herring }; 199*724ba675SRob Herring 200*724ba675SRob Herring mbusc: mbus-controller@20000 { 201*724ba675SRob Herring compatible = "marvell,mbus-controller"; 202*724ba675SRob Herring reg = <0x20000 0x80>, <0x1500 0x20>; 203*724ba675SRob Herring }; 204*724ba675SRob Herring 205*724ba675SRob Herring sysc: system-controller@20000 { 206*724ba675SRob Herring compatible = "marvell,orion-system-controller"; 207*724ba675SRob Herring reg = <0x20000 0x120>; 208*724ba675SRob Herring }; 209*724ba675SRob Herring 210*724ba675SRob Herring bridge_intc: bridge-interrupt-ctrl@20110 { 211*724ba675SRob Herring compatible = "marvell,orion-bridge-intc"; 212*724ba675SRob Herring interrupt-controller; 213*724ba675SRob Herring #interrupt-cells = <1>; 214*724ba675SRob Herring reg = <0x20110 0x8>; 215*724ba675SRob Herring interrupts = <1>; 216*724ba675SRob Herring marvell,#interrupts = <6>; 217*724ba675SRob Herring }; 218*724ba675SRob Herring 219*724ba675SRob Herring gate_clk: clock-gating-control@2011c { 220*724ba675SRob Herring compatible = "marvell,kirkwood-gating-clock"; 221*724ba675SRob Herring reg = <0x2011c 0x4>; 222*724ba675SRob Herring clocks = <&core_clk 0>; 223*724ba675SRob Herring #clock-cells = <1>; 224*724ba675SRob Herring }; 225*724ba675SRob Herring 226*724ba675SRob Herring l2: l2-cache@20128 { 227*724ba675SRob Herring compatible = "marvell,kirkwood-cache"; 228*724ba675SRob Herring reg = <0x20128 0x4>; 229*724ba675SRob Herring }; 230*724ba675SRob Herring 231*724ba675SRob Herring intc: interrupt-controller@20200 { 232*724ba675SRob Herring compatible = "marvell,orion-intc"; 233*724ba675SRob Herring interrupt-controller; 234*724ba675SRob Herring #interrupt-cells = <1>; 235*724ba675SRob Herring reg = <0x20200 0x10>, <0x20210 0x10>; 236*724ba675SRob Herring }; 237*724ba675SRob Herring 238*724ba675SRob Herring timer: timer@20300 { 239*724ba675SRob Herring compatible = "marvell,orion-timer"; 240*724ba675SRob Herring reg = <0x20300 0x20>; 241*724ba675SRob Herring interrupt-parent = <&bridge_intc>; 242*724ba675SRob Herring interrupts = <1>, <2>; 243*724ba675SRob Herring clocks = <&core_clk 0>; 244*724ba675SRob Herring }; 245*724ba675SRob Herring 246*724ba675SRob Herring wdt: watchdog-timer@20300 { 247*724ba675SRob Herring compatible = "marvell,orion-wdt"; 248*724ba675SRob Herring reg = <0x20300 0x28>, <0x20108 0x4>; 249*724ba675SRob Herring interrupt-parent = <&bridge_intc>; 250*724ba675SRob Herring interrupts = <3>; 251*724ba675SRob Herring clocks = <&gate_clk 7>; 252*724ba675SRob Herring status = "okay"; 253*724ba675SRob Herring }; 254*724ba675SRob Herring 255*724ba675SRob Herring cesa: crypto@30000 { 256*724ba675SRob Herring compatible = "marvell,kirkwood-crypto"; 257*724ba675SRob Herring reg = <0x30000 0x10000>; 258*724ba675SRob Herring reg-names = "regs"; 259*724ba675SRob Herring interrupts = <22>; 260*724ba675SRob Herring clocks = <&gate_clk 17>; 261*724ba675SRob Herring marvell,crypto-srams = <&crypto_sram>; 262*724ba675SRob Herring marvell,crypto-sram-size = <0x800>; 263*724ba675SRob Herring status = "okay"; 264*724ba675SRob Herring }; 265*724ba675SRob Herring 266*724ba675SRob Herring usb0: ehci@50000 { 267*724ba675SRob Herring compatible = "marvell,orion-ehci"; 268*724ba675SRob Herring reg = <0x50000 0x1000>; 269*724ba675SRob Herring interrupts = <19>; 270*724ba675SRob Herring clocks = <&gate_clk 3>; 271*724ba675SRob Herring status = "okay"; 272*724ba675SRob Herring }; 273*724ba675SRob Herring 274*724ba675SRob Herring dma0: xor@60800 { 275*724ba675SRob Herring compatible = "marvell,orion-xor"; 276*724ba675SRob Herring reg = <0x60800 0x100 277*724ba675SRob Herring 0x60A00 0x100>; 278*724ba675SRob Herring status = "okay"; 279*724ba675SRob Herring clocks = <&gate_clk 8>; 280*724ba675SRob Herring 281*724ba675SRob Herring xor00 { 282*724ba675SRob Herring interrupts = <5>; 283*724ba675SRob Herring dmacap,memcpy; 284*724ba675SRob Herring dmacap,xor; 285*724ba675SRob Herring }; 286*724ba675SRob Herring xor01 { 287*724ba675SRob Herring interrupts = <6>; 288*724ba675SRob Herring dmacap,memcpy; 289*724ba675SRob Herring dmacap,xor; 290*724ba675SRob Herring dmacap,memset; 291*724ba675SRob Herring }; 292*724ba675SRob Herring }; 293*724ba675SRob Herring 294*724ba675SRob Herring dma1: xor@60900 { 295*724ba675SRob Herring compatible = "marvell,orion-xor"; 296*724ba675SRob Herring reg = <0x60900 0x100 297*724ba675SRob Herring 0x60B00 0x100>; 298*724ba675SRob Herring status = "okay"; 299*724ba675SRob Herring clocks = <&gate_clk 16>; 300*724ba675SRob Herring 301*724ba675SRob Herring xor00 { 302*724ba675SRob Herring interrupts = <7>; 303*724ba675SRob Herring dmacap,memcpy; 304*724ba675SRob Herring dmacap,xor; 305*724ba675SRob Herring }; 306*724ba675SRob Herring xor01 { 307*724ba675SRob Herring interrupts = <8>; 308*724ba675SRob Herring dmacap,memcpy; 309*724ba675SRob Herring dmacap,xor; 310*724ba675SRob Herring dmacap,memset; 311*724ba675SRob Herring }; 312*724ba675SRob Herring }; 313*724ba675SRob Herring 314*724ba675SRob Herring eth0: ethernet-controller@72000 { 315*724ba675SRob Herring compatible = "marvell,kirkwood-eth"; 316*724ba675SRob Herring #address-cells = <1>; 317*724ba675SRob Herring #size-cells = <0>; 318*724ba675SRob Herring reg = <0x72000 0x4000>; 319*724ba675SRob Herring clocks = <&gate_clk 0>; 320*724ba675SRob Herring marvell,tx-checksum-limit = <1600>; 321*724ba675SRob Herring status = "disabled"; 322*724ba675SRob Herring 323*724ba675SRob Herring eth0port: ethernet0-port@0 { 324*724ba675SRob Herring compatible = "marvell,kirkwood-eth-port"; 325*724ba675SRob Herring reg = <0>; 326*724ba675SRob Herring interrupts = <11>; 327*724ba675SRob Herring /* overwrite MAC address in bootloader */ 328*724ba675SRob Herring local-mac-address = [00 00 00 00 00 00]; 329*724ba675SRob Herring /* set phy-handle property in board file */ 330*724ba675SRob Herring }; 331*724ba675SRob Herring }; 332*724ba675SRob Herring 333*724ba675SRob Herring mdio: mdio-bus@72004 { 334*724ba675SRob Herring compatible = "marvell,orion-mdio"; 335*724ba675SRob Herring #address-cells = <1>; 336*724ba675SRob Herring #size-cells = <0>; 337*724ba675SRob Herring reg = <0x72004 0x84>; 338*724ba675SRob Herring interrupts = <46>; 339*724ba675SRob Herring clocks = <&gate_clk 0>; 340*724ba675SRob Herring status = "disabled"; 341*724ba675SRob Herring 342*724ba675SRob Herring /* add phy nodes in board file */ 343*724ba675SRob Herring }; 344*724ba675SRob Herring 345*724ba675SRob Herring eth1: ethernet-controller@76000 { 346*724ba675SRob Herring compatible = "marvell,kirkwood-eth"; 347*724ba675SRob Herring #address-cells = <1>; 348*724ba675SRob Herring #size-cells = <0>; 349*724ba675SRob Herring reg = <0x76000 0x4000>; 350*724ba675SRob Herring clocks = <&gate_clk 19>; 351*724ba675SRob Herring marvell,tx-checksum-limit = <1600>; 352*724ba675SRob Herring pinctrl-0 = <&pmx_ge1>; 353*724ba675SRob Herring pinctrl-names = "default"; 354*724ba675SRob Herring status = "disabled"; 355*724ba675SRob Herring 356*724ba675SRob Herring eth1port: ethernet1-port@0 { 357*724ba675SRob Herring compatible = "marvell,kirkwood-eth-port"; 358*724ba675SRob Herring reg = <0>; 359*724ba675SRob Herring interrupts = <15>; 360*724ba675SRob Herring /* overwrite MAC address in bootloader */ 361*724ba675SRob Herring local-mac-address = [00 00 00 00 00 00]; 362*724ba675SRob Herring /* set phy-handle property in board file */ 363*724ba675SRob Herring }; 364*724ba675SRob Herring }; 365*724ba675SRob Herring 366*724ba675SRob Herring sata_phy0: sata-phy@82000 { 367*724ba675SRob Herring compatible = "marvell,mvebu-sata-phy"; 368*724ba675SRob Herring reg = <0x82000 0x0334>; 369*724ba675SRob Herring clocks = <&gate_clk 14>; 370*724ba675SRob Herring clock-names = "sata"; 371*724ba675SRob Herring #phy-cells = <0>; 372*724ba675SRob Herring status = "okay"; 373*724ba675SRob Herring }; 374*724ba675SRob Herring 375*724ba675SRob Herring sata_phy1: sata-phy@84000 { 376*724ba675SRob Herring compatible = "marvell,mvebu-sata-phy"; 377*724ba675SRob Herring reg = <0x84000 0x0334>; 378*724ba675SRob Herring clocks = <&gate_clk 15>; 379*724ba675SRob Herring clock-names = "sata"; 380*724ba675SRob Herring #phy-cells = <0>; 381*724ba675SRob Herring status = "okay"; 382*724ba675SRob Herring }; 383*724ba675SRob Herring 384*724ba675SRob Herring audio0: audio-controller@a0000 { 385*724ba675SRob Herring compatible = "marvell,kirkwood-audio"; 386*724ba675SRob Herring #sound-dai-cells = <0>; 387*724ba675SRob Herring reg = <0xa0000 0x2210>; 388*724ba675SRob Herring interrupts = <24>; 389*724ba675SRob Herring clocks = <&gate_clk 9>; 390*724ba675SRob Herring clock-names = "internal"; 391*724ba675SRob Herring status = "disabled"; 392*724ba675SRob Herring }; 393*724ba675SRob Herring }; 394*724ba675SRob Herring}; 395