1 // SPDX-License-Identifier: GPL-2.0 1 // SPDX-License-Identifier: GPL-2.0 2 #include <dt-bindings/clock/ingenic,tcu.h> 2 #include <dt-bindings/clock/ingenic,tcu.h> 3 #include <dt-bindings/clock/ingenic,x1830-cgu. !! 3 #include <dt-bindings/clock/x1830-cgu.h> 4 #include <dt-bindings/dma/x1830-dma.h> 4 #include <dt-bindings/dma/x1830-dma.h> 5 5 6 / { 6 / { 7 #address-cells = <1>; 7 #address-cells = <1>; 8 #size-cells = <1>; 8 #size-cells = <1>; 9 compatible = "ingenic,x1830"; 9 compatible = "ingenic,x1830"; 10 10 11 cpus { 11 cpus { 12 #address-cells = <1>; 12 #address-cells = <1>; 13 #size-cells = <0>; 13 #size-cells = <0>; 14 14 15 cpu0: cpu@0 { 15 cpu0: cpu@0 { 16 device_type = "cpu"; 16 device_type = "cpu"; 17 compatible = "ingenic, 17 compatible = "ingenic,xburst-fpu2.0-mxu2.0"; 18 reg = <0>; 18 reg = <0>; 19 19 20 clocks = <&cgu X1830_C 20 clocks = <&cgu X1830_CLK_CPU>; 21 clock-names = "cpu"; 21 clock-names = "cpu"; 22 }; 22 }; 23 }; 23 }; 24 24 25 cpuintc: interrupt-controller { 25 cpuintc: interrupt-controller { 26 #address-cells = <0>; 26 #address-cells = <0>; 27 #interrupt-cells = <1>; 27 #interrupt-cells = <1>; 28 interrupt-controller; 28 interrupt-controller; 29 compatible = "mti,cpu-interrup 29 compatible = "mti,cpu-interrupt-controller"; 30 }; 30 }; 31 31 32 intc: interrupt-controller@10001000 { 32 intc: interrupt-controller@10001000 { 33 compatible = "ingenic,x1830-in 33 compatible = "ingenic,x1830-intc", "ingenic,jz4780-intc"; 34 reg = <0x10001000 0x50>; 34 reg = <0x10001000 0x50>; 35 35 36 interrupt-controller; 36 interrupt-controller; 37 #interrupt-cells = <1>; 37 #interrupt-cells = <1>; 38 38 39 interrupt-parent = <&cpuintc>; 39 interrupt-parent = <&cpuintc>; 40 interrupts = <2>; 40 interrupts = <2>; 41 }; 41 }; 42 42 43 exclk: ext { 43 exclk: ext { 44 compatible = "fixed-clock"; 44 compatible = "fixed-clock"; 45 #clock-cells = <0>; 45 #clock-cells = <0>; 46 }; 46 }; 47 47 48 rtclk: rtc { 48 rtclk: rtc { 49 compatible = "fixed-clock"; 49 compatible = "fixed-clock"; 50 #clock-cells = <0>; 50 #clock-cells = <0>; 51 clock-frequency = <32768>; 51 clock-frequency = <32768>; 52 }; 52 }; 53 53 54 cgu: x1830-cgu@10000000 { 54 cgu: x1830-cgu@10000000 { 55 compatible = "ingenic,x1830-cg 55 compatible = "ingenic,x1830-cgu", "simple-mfd"; 56 reg = <0x10000000 0x100>; 56 reg = <0x10000000 0x100>; 57 #address-cells = <1>; 57 #address-cells = <1>; 58 #size-cells = <1>; 58 #size-cells = <1>; 59 ranges = <0x0 0x10000000 0x100 59 ranges = <0x0 0x10000000 0x100>; 60 60 61 #clock-cells = <1>; 61 #clock-cells = <1>; 62 62 63 clocks = <&exclk>, <&rtclk>; 63 clocks = <&exclk>, <&rtclk>; 64 clock-names = "ext", "rtc"; 64 clock-names = "ext", "rtc"; 65 65 66 otg_phy: usb-phy@3c { 66 otg_phy: usb-phy@3c { 67 compatible = "ingenic, 67 compatible = "ingenic,x1830-phy"; 68 reg = <0x3c 0x10>; 68 reg = <0x3c 0x10>; 69 69 70 clocks = <&cgu X1830_C 70 clocks = <&cgu X1830_CLK_OTGPHY>; 71 71 72 #phy-cells = <0>; 72 #phy-cells = <0>; 73 73 74 status = "disabled"; 74 status = "disabled"; 75 }; 75 }; 76 76 77 mac_phy_ctrl: mac-phy-ctrl@e8 77 mac_phy_ctrl: mac-phy-ctrl@e8 { 78 compatible = "syscon"; 78 compatible = "syscon"; 79 reg = <0xe8 0x4>; 79 reg = <0xe8 0x4>; 80 }; 80 }; 81 }; 81 }; 82 82 83 ost: timer@12000000 { 83 ost: timer@12000000 { 84 compatible = "ingenic,x1830-os 84 compatible = "ingenic,x1830-ost", "ingenic,x1000-ost"; 85 reg = <0x12000000 0x3c>; 85 reg = <0x12000000 0x3c>; 86 86 87 #clock-cells = <1>; 87 #clock-cells = <1>; 88 88 89 clocks = <&cgu X1830_CLK_OST>; 89 clocks = <&cgu X1830_CLK_OST>; 90 clock-names = "ost"; 90 clock-names = "ost"; 91 91 92 interrupt-parent = <&cpuintc>; 92 interrupt-parent = <&cpuintc>; 93 interrupts = <4>; 93 interrupts = <4>; 94 }; 94 }; 95 95 96 tcu: timer@10002000 { 96 tcu: timer@10002000 { 97 compatible = "ingenic,x1830-tc 97 compatible = "ingenic,x1830-tcu", "ingenic,x1000-tcu", "simple-mfd"; 98 reg = <0x10002000 0x1000>; 98 reg = <0x10002000 0x1000>; 99 #address-cells = <1>; 99 #address-cells = <1>; 100 #size-cells = <1>; 100 #size-cells = <1>; 101 ranges = <0x0 0x10002000 0x100 101 ranges = <0x0 0x10002000 0x1000>; 102 102 103 #clock-cells = <1>; 103 #clock-cells = <1>; 104 104 105 clocks = <&cgu X1830_CLK_RTCLK 105 clocks = <&cgu X1830_CLK_RTCLK>, 106 <&cgu X1830_CLK_EXCLK 106 <&cgu X1830_CLK_EXCLK>, 107 <&cgu X1830_CLK_PCLK> !! 107 <&cgu X1830_CLK_PCLK>; 108 <&cgu X1830_CLK_TCU>; !! 108 clock-names = "rtc", "ext", "pclk"; 109 clock-names = "rtc", "ext", "p << 110 109 111 interrupt-controller; 110 interrupt-controller; 112 #interrupt-cells = <1>; 111 #interrupt-cells = <1>; 113 112 114 interrupt-parent = <&intc>; 113 interrupt-parent = <&intc>; 115 interrupts = <27 26 25>; 114 interrupts = <27 26 25>; 116 115 117 wdt: watchdog@0 { 116 wdt: watchdog@0 { 118 compatible = "ingenic, 117 compatible = "ingenic,x1830-watchdog", "ingenic,jz4780-watchdog"; 119 reg = <0x0 0x10>; 118 reg = <0x0 0x10>; 120 119 121 clocks = <&tcu TCU_CLK 120 clocks = <&tcu TCU_CLK_WDT>; 122 clock-names = "wdt"; 121 clock-names = "wdt"; 123 }; 122 }; 124 << 125 pwm: pwm@40 { << 126 compatible = "ingenic, << 127 reg = <0x40 0x80>; << 128 << 129 #pwm-cells = <3>; << 130 << 131 clocks = <&tcu TCU_CLK << 132 <&tcu TCU_CLK << 133 <&tcu TCU_CLK << 134 <&tcu TCU_CLK << 135 clock-names = "timer0" << 136 "timer4" << 137 }; << 138 }; 123 }; 139 124 140 rtc: rtc@10003000 { 125 rtc: rtc@10003000 { 141 compatible = "ingenic,x1830-rt 126 compatible = "ingenic,x1830-rtc", "ingenic,jz4780-rtc"; 142 reg = <0x10003000 0x4c>; 127 reg = <0x10003000 0x4c>; 143 128 144 interrupt-parent = <&intc>; 129 interrupt-parent = <&intc>; 145 interrupts = <32>; 130 interrupts = <32>; 146 131 147 clocks = <&cgu X1830_CLK_RTCLK 132 clocks = <&cgu X1830_CLK_RTCLK>; 148 clock-names = "rtc"; 133 clock-names = "rtc"; 149 }; 134 }; 150 135 151 pinctrl: pin-controller@10010000 { 136 pinctrl: pin-controller@10010000 { 152 compatible = "ingenic,x1830-pi 137 compatible = "ingenic,x1830-pinctrl"; 153 reg = <0x10010000 0x800>; 138 reg = <0x10010000 0x800>; 154 #address-cells = <1>; 139 #address-cells = <1>; 155 #size-cells = <0>; 140 #size-cells = <0>; 156 141 157 gpa: gpio@0 { 142 gpa: gpio@0 { 158 compatible = "ingenic, 143 compatible = "ingenic,x1830-gpio"; 159 reg = <0>; 144 reg = <0>; 160 145 161 gpio-controller; 146 gpio-controller; 162 gpio-ranges = <&pinctr 147 gpio-ranges = <&pinctrl 0 0 32>; 163 #gpio-cells = <2>; 148 #gpio-cells = <2>; 164 149 165 interrupt-controller; 150 interrupt-controller; 166 #interrupt-cells = <2> 151 #interrupt-cells = <2>; 167 152 168 interrupt-parent = <&i 153 interrupt-parent = <&intc>; 169 interrupts = <17>; 154 interrupts = <17>; 170 }; 155 }; 171 156 172 gpb: gpio@1 { 157 gpb: gpio@1 { 173 compatible = "ingenic, 158 compatible = "ingenic,x1830-gpio"; 174 reg = <1>; 159 reg = <1>; 175 160 176 gpio-controller; 161 gpio-controller; 177 gpio-ranges = <&pinctr 162 gpio-ranges = <&pinctrl 0 32 32>; 178 #gpio-cells = <2>; 163 #gpio-cells = <2>; 179 164 180 interrupt-controller; 165 interrupt-controller; 181 #interrupt-cells = <2> 166 #interrupt-cells = <2>; 182 167 183 interrupt-parent = <&i 168 interrupt-parent = <&intc>; 184 interrupts = <16>; 169 interrupts = <16>; 185 }; 170 }; 186 171 187 gpc: gpio@2 { 172 gpc: gpio@2 { 188 compatible = "ingenic, 173 compatible = "ingenic,x1830-gpio"; 189 reg = <2>; 174 reg = <2>; 190 175 191 gpio-controller; 176 gpio-controller; 192 gpio-ranges = <&pinctr 177 gpio-ranges = <&pinctrl 0 64 32>; 193 #gpio-cells = <2>; 178 #gpio-cells = <2>; 194 179 195 interrupt-controller; 180 interrupt-controller; 196 #interrupt-cells = <2> 181 #interrupt-cells = <2>; 197 182 198 interrupt-parent = <&i 183 interrupt-parent = <&intc>; 199 interrupts = <15>; 184 interrupts = <15>; 200 }; 185 }; 201 186 202 gpd: gpio@3 { 187 gpd: gpio@3 { 203 compatible = "ingenic, 188 compatible = "ingenic,x1830-gpio"; 204 reg = <3>; 189 reg = <3>; 205 190 206 gpio-controller; 191 gpio-controller; 207 gpio-ranges = <&pinctr 192 gpio-ranges = <&pinctrl 0 96 32>; 208 #gpio-cells = <2>; 193 #gpio-cells = <2>; 209 194 210 interrupt-controller; 195 interrupt-controller; 211 #interrupt-cells = <2> 196 #interrupt-cells = <2>; 212 197 213 interrupt-parent = <&i 198 interrupt-parent = <&intc>; 214 interrupts = <14>; 199 interrupts = <14>; 215 }; 200 }; 216 }; 201 }; 217 202 218 uart0: serial@10030000 { 203 uart0: serial@10030000 { 219 compatible = "ingenic,x1830-ua 204 compatible = "ingenic,x1830-uart", "ingenic,x1000-uart"; 220 reg = <0x10030000 0x100>; 205 reg = <0x10030000 0x100>; 221 206 222 interrupt-parent = <&intc>; 207 interrupt-parent = <&intc>; 223 interrupts = <51>; 208 interrupts = <51>; 224 209 225 clocks = <&exclk>, <&cgu X1830 210 clocks = <&exclk>, <&cgu X1830_CLK_UART0>; 226 clock-names = "baud", "module" 211 clock-names = "baud", "module"; 227 212 228 status = "disabled"; 213 status = "disabled"; 229 }; 214 }; 230 215 231 uart1: serial@10031000 { 216 uart1: serial@10031000 { 232 compatible = "ingenic,x1830-ua 217 compatible = "ingenic,x1830-uart", "ingenic,x1000-uart"; 233 reg = <0x10031000 0x100>; 218 reg = <0x10031000 0x100>; 234 219 235 interrupt-parent = <&intc>; 220 interrupt-parent = <&intc>; 236 interrupts = <50>; 221 interrupts = <50>; 237 222 238 clocks = <&exclk>, <&cgu X1830 223 clocks = <&exclk>, <&cgu X1830_CLK_UART1>; 239 clock-names = "baud", "module" 224 clock-names = "baud", "module"; 240 225 241 status = "disabled"; 226 status = "disabled"; 242 }; 227 }; 243 228 244 ssi0: spi@10043000 { << 245 compatible = "ingenic,x1830-sp << 246 reg = <0x10043000 0x20>; << 247 #address-cells = <1>; << 248 #size-cells = <0>; << 249 << 250 interrupt-parent = <&intc>; << 251 interrupts = <9>; << 252 << 253 clocks = <&cgu X1830_CLK_SSI0> << 254 clock-names = "spi"; << 255 << 256 dmas = <&pdma X1830_DMA_SSI0_R << 257 <&pdma X1830_DMA_SS << 258 dma-names = "rx", "tx"; << 259 << 260 status = "disabled"; << 261 }; << 262 << 263 ssi1: spi@10044000 { << 264 compatible = "ingenic,x1830-sp << 265 reg = <0x10044000 0x20>; << 266 #address-cells = <1>; << 267 #size-cells = <0>; << 268 << 269 interrupt-parent = <&intc>; << 270 interrupts = <8>; << 271 << 272 clocks = <&cgu X1830_CLK_SSI1> << 273 clock-names = "spi"; << 274 << 275 dmas = <&pdma X1830_DMA_SSI1_R << 276 <&pdma X1830_DMA_SS << 277 dma-names = "rx", "tx"; << 278 << 279 status = "disabled"; << 280 }; << 281 << 282 i2c0: i2c-controller@10050000 { 229 i2c0: i2c-controller@10050000 { 283 compatible = "ingenic,x1830-i2 230 compatible = "ingenic,x1830-i2c", "ingenic,x1000-i2c"; 284 reg = <0x10050000 0x1000>; 231 reg = <0x10050000 0x1000>; 285 #address-cells = <1>; 232 #address-cells = <1>; 286 #size-cells = <0>; 233 #size-cells = <0>; 287 234 288 interrupt-parent = <&intc>; 235 interrupt-parent = <&intc>; 289 interrupts = <60>; 236 interrupts = <60>; 290 237 291 clocks = <&cgu X1830_CLK_SMB0> 238 clocks = <&cgu X1830_CLK_SMB0>; 292 239 293 status = "disabled"; 240 status = "disabled"; 294 }; 241 }; 295 242 296 i2c1: i2c-controller@10051000 { 243 i2c1: i2c-controller@10051000 { 297 compatible = "ingenic,x1830-i2 244 compatible = "ingenic,x1830-i2c", "ingenic,x1000-i2c"; 298 reg = <0x10051000 0x1000>; 245 reg = <0x10051000 0x1000>; 299 #address-cells = <1>; 246 #address-cells = <1>; 300 #size-cells = <0>; 247 #size-cells = <0>; 301 248 302 interrupt-parent = <&intc>; 249 interrupt-parent = <&intc>; 303 interrupts = <59>; 250 interrupts = <59>; 304 251 305 clocks = <&cgu X1830_CLK_SMB1> 252 clocks = <&cgu X1830_CLK_SMB1>; 306 253 307 status = "disabled"; 254 status = "disabled"; 308 }; 255 }; 309 256 310 i2c2: i2c-controller@10052000 { 257 i2c2: i2c-controller@10052000 { 311 compatible = "ingenic,x1830-i2 258 compatible = "ingenic,x1830-i2c", "ingenic,x1000-i2c"; 312 reg = <0x10052000 0x1000>; 259 reg = <0x10052000 0x1000>; 313 #address-cells = <1>; 260 #address-cells = <1>; 314 #size-cells = <0>; 261 #size-cells = <0>; 315 262 316 interrupt-parent = <&intc>; 263 interrupt-parent = <&intc>; 317 interrupts = <58>; 264 interrupts = <58>; 318 265 319 clocks = <&cgu X1830_CLK_SMB2> 266 clocks = <&cgu X1830_CLK_SMB2>; 320 267 321 status = "disabled"; 268 status = "disabled"; 322 }; 269 }; 323 270 324 dtrng: trng@10072000 { 271 dtrng: trng@10072000 { 325 compatible = "ingenic,x1830-dt 272 compatible = "ingenic,x1830-dtrng"; 326 reg = <0x10072000 0xc>; 273 reg = <0x10072000 0xc>; 327 274 328 clocks = <&cgu X1830_CLK_DTRNG 275 clocks = <&cgu X1830_CLK_DTRNG>; 329 276 330 status = "disabled"; 277 status = "disabled"; 331 }; 278 }; 332 279 333 pdma: dma-controller@13420000 { 280 pdma: dma-controller@13420000 { 334 compatible = "ingenic,x1830-dm 281 compatible = "ingenic,x1830-dma"; 335 reg = <0x13420000 0x400>, <0x1 282 reg = <0x13420000 0x400>, <0x13421000 0x40>; 336 << 337 #dma-cells = <2>; 283 #dma-cells = <2>; 338 284 339 interrupt-parent = <&intc>; 285 interrupt-parent = <&intc>; 340 interrupts = <10>; 286 interrupts = <10>; 341 287 342 clocks = <&cgu X1830_CLK_PDMA> 288 clocks = <&cgu X1830_CLK_PDMA>; 343 }; 289 }; 344 290 345 msc0: mmc@13450000 { 291 msc0: mmc@13450000 { 346 compatible = "ingenic,x1830-mm 292 compatible = "ingenic,x1830-mmc", "ingenic,x1000-mmc"; 347 reg = <0x13450000 0x1000>; 293 reg = <0x13450000 0x1000>; 348 294 349 interrupt-parent = <&intc>; 295 interrupt-parent = <&intc>; 350 interrupts = <37>; 296 interrupts = <37>; 351 297 352 clocks = <&cgu X1830_CLK_MSC0> 298 clocks = <&cgu X1830_CLK_MSC0>; 353 clock-names = "mmc"; 299 clock-names = "mmc"; 354 300 355 cap-sd-highspeed; 301 cap-sd-highspeed; 356 cap-mmc-highspeed; 302 cap-mmc-highspeed; 357 cap-sdio-irq; 303 cap-sdio-irq; 358 304 359 dmas = <&pdma X1830_DMA_MSC0_R 305 dmas = <&pdma X1830_DMA_MSC0_RX 0xffffffff>, 360 <&pdma X1830_DMA_MS 306 <&pdma X1830_DMA_MSC0_TX 0xffffffff>; 361 dma-names = "rx", "tx"; 307 dma-names = "rx", "tx"; 362 308 363 status = "disabled"; 309 status = "disabled"; 364 }; 310 }; 365 311 366 msc1: mmc@13460000 { 312 msc1: mmc@13460000 { 367 compatible = "ingenic,x1830-mm 313 compatible = "ingenic,x1830-mmc", "ingenic,x1000-mmc"; 368 reg = <0x13460000 0x1000>; 314 reg = <0x13460000 0x1000>; 369 315 370 interrupt-parent = <&intc>; 316 interrupt-parent = <&intc>; 371 interrupts = <36>; 317 interrupts = <36>; 372 318 373 clocks = <&cgu X1830_CLK_MSC1> 319 clocks = <&cgu X1830_CLK_MSC1>; 374 clock-names = "mmc"; 320 clock-names = "mmc"; 375 321 376 cap-sd-highspeed; 322 cap-sd-highspeed; 377 cap-mmc-highspeed; 323 cap-mmc-highspeed; 378 cap-sdio-irq; 324 cap-sdio-irq; 379 325 380 dmas = <&pdma X1830_DMA_MSC1_R 326 dmas = <&pdma X1830_DMA_MSC1_RX 0xffffffff>, 381 <&pdma X1830_DMA_MS 327 <&pdma X1830_DMA_MSC1_TX 0xffffffff>; 382 dma-names = "rx", "tx"; 328 dma-names = "rx", "tx"; 383 329 384 status = "disabled"; 330 status = "disabled"; 385 }; 331 }; 386 332 387 mac: ethernet@134b0000 { 333 mac: ethernet@134b0000 { 388 compatible = "ingenic,x1830-ma 334 compatible = "ingenic,x1830-mac", "snps,dwmac"; 389 reg = <0x134b0000 0x2000>; 335 reg = <0x134b0000 0x2000>; 390 336 391 interrupt-parent = <&intc>; 337 interrupt-parent = <&intc>; 392 interrupts = <55>; 338 interrupts = <55>; 393 interrupt-names = "macirq"; 339 interrupt-names = "macirq"; 394 340 395 clocks = <&cgu X1830_CLK_MAC>; 341 clocks = <&cgu X1830_CLK_MAC>; 396 clock-names = "stmmaceth"; 342 clock-names = "stmmaceth"; 397 343 398 mode-reg = <&mac_phy_ctrl>; 344 mode-reg = <&mac_phy_ctrl>; 399 345 400 status = "disabled"; 346 status = "disabled"; 401 347 402 mdio: mdio { 348 mdio: mdio { 403 compatible = "snps,dwm 349 compatible = "snps,dwmac-mdio"; 404 #address-cells = <1>; 350 #address-cells = <1>; 405 #size-cells = <0>; 351 #size-cells = <0>; 406 352 407 status = "disabled"; 353 status = "disabled"; 408 }; 354 }; 409 }; 355 }; 410 356 411 otg: usb@13500000 { 357 otg: usb@13500000 { 412 compatible = "ingenic,x1830-ot !! 358 compatible = "ingenic,x1830-otg", "snps,dwc2"; 413 reg = <0x13500000 0x40000>; 359 reg = <0x13500000 0x40000>; 414 360 415 interrupt-parent = <&intc>; 361 interrupt-parent = <&intc>; 416 interrupts = <21>; 362 interrupts = <21>; 417 363 418 clocks = <&cgu X1830_CLK_OTG>; 364 clocks = <&cgu X1830_CLK_OTG>; 419 clock-names = "otg"; 365 clock-names = "otg"; 420 366 421 phys = <&otg_phy>; 367 phys = <&otg_phy>; 422 phy-names = "usb2-phy"; 368 phy-names = "usb2-phy"; 423 369 424 g-rx-fifo-size = <768>; 370 g-rx-fifo-size = <768>; 425 g-np-tx-fifo-size = <256>; 371 g-np-tx-fifo-size = <256>; 426 g-tx-fifo-size = <256 256 256 372 g-tx-fifo-size = <256 256 256 256 256 256 256 512>; 427 373 428 status = "disabled"; 374 status = "disabled"; 429 }; 375 }; 430 }; 376 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.