1 // SPDX-License-Identifier: GPL-2.0 << 2 #include <dt-bindings/clock/ath79-clk.h> 1 #include <dt-bindings/clock/ath79-clk.h> 3 2 4 / { 3 / { 5 compatible = "qca,ar9331"; 4 compatible = "qca,ar9331"; 6 5 7 #address-cells = <1>; 6 #address-cells = <1>; 8 #size-cells = <1>; 7 #size-cells = <1>; 9 8 10 cpus { 9 cpus { 11 #address-cells = <1>; 10 #address-cells = <1>; 12 #size-cells = <0>; 11 #size-cells = <0>; 13 12 14 cpu@0 { 13 cpu@0 { 15 device_type = "cpu"; 14 device_type = "cpu"; 16 compatible = "mips,mip 15 compatible = "mips,mips24Kc"; 17 clocks = <&pll ATH79_C 16 clocks = <&pll ATH79_CLK_CPU>; 18 reg = <0>; 17 reg = <0>; 19 }; 18 }; 20 }; 19 }; 21 20 22 cpuintc: interrupt-controller { 21 cpuintc: interrupt-controller { 23 compatible = "qca,ar7100-cpu-i 22 compatible = "qca,ar7100-cpu-intc"; 24 23 25 interrupt-controller; 24 interrupt-controller; 26 #interrupt-cells = <1>; 25 #interrupt-cells = <1>; 27 26 28 qca,ddr-wb-channel-interrupts 27 qca,ddr-wb-channel-interrupts = <2>, <3>; 29 qca,ddr-wb-channels = <&ddr_ct 28 qca,ddr-wb-channels = <&ddr_ctrl 3>, <&ddr_ctrl 2>; 30 }; 29 }; 31 30 32 ref: ref { 31 ref: ref { 33 compatible = "fixed-clock"; 32 compatible = "fixed-clock"; 34 #clock-cells = <0>; 33 #clock-cells = <0>; 35 }; 34 }; 36 35 37 ahb { 36 ahb { 38 compatible = "simple-bus"; 37 compatible = "simple-bus"; 39 ranges; 38 ranges; 40 39 41 #address-cells = <1>; 40 #address-cells = <1>; 42 #size-cells = <1>; 41 #size-cells = <1>; 43 42 44 interrupt-parent = <&cpuintc>; 43 interrupt-parent = <&cpuintc>; 45 44 46 apb { 45 apb { 47 compatible = "simple-b 46 compatible = "simple-bus"; 48 ranges; 47 ranges; 49 48 50 #address-cells = <1>; 49 #address-cells = <1>; 51 #size-cells = <1>; 50 #size-cells = <1>; 52 51 53 interrupt-parent = <&m 52 interrupt-parent = <&miscintc>; 54 53 55 ddr_ctrl: memory-contr 54 ddr_ctrl: memory-controller@18000000 { 56 compatible = " 55 compatible = "qca,ar7240-ddr-controller"; 57 reg = <0x18000 56 reg = <0x18000000 0x100>; 58 57 59 #qca,ddr-wb-ch 58 #qca,ddr-wb-channel-cells = <1>; 60 }; 59 }; 61 60 62 uart: serial@18020000 !! 61 uart: uart@18020000 { 63 compatible = " 62 compatible = "qca,ar9330-uart"; 64 reg = <0x18020 63 reg = <0x18020000 0x14>; 65 64 66 interrupts = < 65 interrupts = <3>; 67 66 68 clocks = <&ref 67 clocks = <&ref>; 69 clock-names = 68 clock-names = "uart"; 70 69 71 status = "disa 70 status = "disabled"; 72 }; 71 }; 73 72 74 gpio: gpio@18040000 { 73 gpio: gpio@18040000 { 75 compatible = " 74 compatible = "qca,ar7100-gpio"; 76 reg = <0x18040 75 reg = <0x18040000 0x34>; 77 interrupts = < 76 interrupts = <2>; 78 77 79 ngpios = <30>; 78 ngpios = <30>; 80 79 81 gpio-controlle 80 gpio-controller; 82 #gpio-cells = 81 #gpio-cells = <2>; 83 82 84 interrupt-cont 83 interrupt-controller; 85 #interrupt-cel 84 #interrupt-cells = <2>; 86 85 87 status = "disa 86 status = "disabled"; 88 }; 87 }; 89 88 90 pll: pll-controller@18 89 pll: pll-controller@18050000 { 91 compatible = " 90 compatible = "qca,ar9330-pll"; 92 reg = <0x18050 91 reg = <0x18050000 0x100>; 93 92 94 clocks = <&ref 93 clocks = <&ref>; 95 clock-names = 94 clock-names = "ref"; 96 95 97 #clock-cells = 96 #clock-cells = <1>; 98 }; 97 }; 99 98 100 miscintc: interrupt-co 99 miscintc: interrupt-controller@18060010 { 101 compatible = " 100 compatible = "qca,ar7240-misc-intc"; 102 reg = <0x18060 !! 101 reg = <0x18060010 0x4>; 103 102 104 interrupt-pare 103 interrupt-parent = <&cpuintc>; 105 interrupts = < 104 interrupts = <6>; 106 105 107 interrupt-cont 106 interrupt-controller; 108 #interrupt-cel 107 #interrupt-cells = <1>; 109 }; 108 }; 110 109 111 rst: reset-controller@ 110 rst: reset-controller@1806001c { 112 compatible = " 111 compatible = "qca,ar7100-reset"; 113 reg = <0x18060 112 reg = <0x1806001c 0x4>; 114 113 115 #reset-cells = 114 #reset-cells = <1>; 116 }; 115 }; 117 }; 116 }; 118 117 119 eth0: ethernet@19000000 { << 120 compatible = "qca,ar93 << 121 reg = <0x19000000 0x20 << 122 interrupts = <4>; << 123 << 124 resets = <&rst 9>, <&r << 125 reset-names = "mac", " << 126 clocks = <&pll ATH79_C << 127 clock-names = "eth", " << 128 << 129 phy-mode = "mii"; << 130 phy-handle = <&phy_por << 131 << 132 status = "disabled"; << 133 }; << 134 << 135 eth1: ethernet@1a000000 { << 136 compatible = "qca,ar93 << 137 reg = <0x1a000000 0x20 << 138 interrupts = <5>; << 139 resets = <&rst 13>, <& << 140 reset-names = "mac", " << 141 clocks = <&pll ATH79_C << 142 clock-names = "eth", " << 143 << 144 phy-mode = "gmii"; << 145 << 146 status = "disabled"; << 147 << 148 fixed-link { << 149 speed = <1000> << 150 full-duplex; << 151 pause; << 152 }; << 153 << 154 mdio { << 155 #address-cells << 156 #size-cells = << 157 << 158 switch10: swit << 159 #addre << 160 #size- << 161 << 162 compat << 163 reg = << 164 resets << 165 reset- << 166 << 167 interr << 168 interr << 169 << 170 interr << 171 #inter << 172 << 173 ports << 174 << 175 << 176 << 177 << 178 << 179 << 180 << 181 << 182 << 183 << 184 << 185 << 186 << 187 << 188 << 189 << 190 << 191 << 192 << 193 << 194 << 195 << 196 << 197 << 198 << 199 << 200 << 201 << 202 << 203 << 204 << 205 << 206 << 207 << 208 << 209 << 210 << 211 << 212 << 213 << 214 << 215 << 216 << 217 << 218 << 219 << 220 << 221 }; << 222 << 223 mdio { << 224 << 225 << 226 << 227 << 228 << 229 << 230 << 231 << 232 << 233 << 234 << 235 << 236 << 237 << 238 << 239 << 240 << 241 << 242 << 243 << 244 << 245 << 246 << 247 << 248 << 249 << 250 << 251 << 252 << 253 << 254 << 255 << 256 << 257 << 258 }; << 259 }; << 260 }; << 261 }; << 262 << 263 usb: usb@1b000100 { 118 usb: usb@1b000100 { 264 compatible = "chipidea 119 compatible = "chipidea,usb2"; 265 reg = <0x1b000000 0x20 120 reg = <0x1b000000 0x200>; 266 121 267 interrupts = <3>; 122 interrupts = <3>; 268 resets = <&rst 5>; 123 resets = <&rst 5>; 269 124 270 phy-names = "usb-phy"; 125 phy-names = "usb-phy"; 271 phys = <&usb_phy>; 126 phys = <&usb_phy>; 272 127 273 status = "disabled"; 128 status = "disabled"; 274 }; 129 }; 275 130 276 spi: spi@1f000000 { 131 spi: spi@1f000000 { 277 compatible = "qca,ar71 132 compatible = "qca,ar7100-spi"; 278 reg = <0x1f000000 0x10 133 reg = <0x1f000000 0x10>; 279 134 280 clocks = <&pll ATH79_C 135 clocks = <&pll ATH79_CLK_AHB>; 281 clock-names = "ahb"; 136 clock-names = "ahb"; 282 137 283 #address-cells = <1>; 138 #address-cells = <1>; 284 #size-cells = <0>; 139 #size-cells = <0>; 285 140 286 status = "disabled"; 141 status = "disabled"; 287 }; 142 }; 288 }; 143 }; 289 144 290 usb_phy: usb-phy { 145 usb_phy: usb-phy { 291 compatible = "qca,ar7100-usb-p 146 compatible = "qca,ar7100-usb-phy"; 292 147 293 reset-names = "phy", "suspend- !! 148 reset-names = "usb-phy", "usb-suspend-override"; 294 resets = <&rst 4>, <&rst 3>; 149 resets = <&rst 4>, <&rst 3>; 295 150 296 #phy-cells = <0>; 151 #phy-cells = <0>; 297 152 298 status = "disabled"; 153 status = "disabled"; 299 }; 154 }; 300 }; 155 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.