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