| 1 |
// SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
| 2 |
// Copyright (C) 2021-2022 Samuel Holland <[email protected]> |
| 3 |
|
| 4 |
#include <dt-bindings/clock/sun6i-rtc.h> |
| 5 |
#include <dt-bindings/clock/sun8i-de2.h> |
| 6 |
#include <dt-bindings/clock/sun8i-tcon-top.h> |
| 7 |
#include <dt-bindings/clock/sun20i-d1-ccu.h> |
| 8 |
#include <dt-bindings/clock/sun20i-d1-r-ccu.h> |
| 9 |
#include <dt-bindings/interrupt-controller/irq.h> |
| 10 |
#include <dt-bindings/reset/sun8i-de2.h> |
| 11 |
#include <dt-bindings/reset/sun20i-d1-ccu.h> |
| 12 |
#include <dt-bindings/reset/sun20i-d1-r-ccu.h> |
| 13 |
|
| 14 |
/ { |
| 15 |
#address-cells = <1>; |
| 16 |
#size-cells = <1>; |
| 17 |
|
| 18 |
dcxo: dcxo-clk { |
| 19 |
compatible = "fixed-clock"; |
| 20 |
clock-output-names = "dcxo"; |
| 21 |
#clock-cells = <0>; |
| 22 |
}; |
| 23 |
|
| 24 |
de: display-engine { |
| 25 |
compatible = "allwinner,sun20i-d1-display-engine"; |
| 26 |
allwinner,pipelines = <&mixer0>, <&mixer1>; |
| 27 |
status = "disabled"; |
| 28 |
}; |
| 29 |
|
| 30 |
soc { |
| 31 |
compatible = "simple-bus"; |
| 32 |
ranges; |
| 33 |
dma-noncoherent; |
| 34 |
#address-cells = <1>; |
| 35 |
#size-cells = <1>; |
| 36 |
|
| 37 |
pio: pinctrl@2000000 { |
| 38 |
compatible = "allwinner,sun20i-d1-pinctrl"; |
| 39 |
reg = <0x2000000 0x800>; |
| 40 |
interrupts = <SOC_PERIPHERAL_IRQ(69) IRQ_TYPE_LEVEL_HIGH>, |
| 41 |
<SOC_PERIPHERAL_IRQ(71) IRQ_TYPE_LEVEL_HIGH>, |
| 42 |
<SOC_PERIPHERAL_IRQ(73) IRQ_TYPE_LEVEL_HIGH>, |
| 43 |
<SOC_PERIPHERAL_IRQ(75) IRQ_TYPE_LEVEL_HIGH>, |
| 44 |
<SOC_PERIPHERAL_IRQ(77) IRQ_TYPE_LEVEL_HIGH>, |
| 45 |
<SOC_PERIPHERAL_IRQ(79) IRQ_TYPE_LEVEL_HIGH>; |
| 46 |
clocks = <&ccu CLK_APB0>, |
| 47 |
<&dcxo>, |
| 48 |
<&rtc CLK_OSC32K>; |
| 49 |
clock-names = "apb", "hosc", "losc"; |
| 50 |
gpio-controller; |
| 51 |
interrupt-controller; |
| 52 |
#gpio-cells = <3>; |
| 53 |
#interrupt-cells = <3>; |
| 54 |
|
| 55 |
/omit-if-no-ref/ |
| 56 |
can0_pins: can0-pins { |
| 57 |
pins = "PB2", "PB3"; |
| 58 |
function = "can0"; |
| 59 |
}; |
| 60 |
|
| 61 |
/omit-if-no-ref/ |
| 62 |
can1_pins: can1-pins { |
| 63 |
pins = "PB4", "PB5"; |
| 64 |
function = "can1"; |
| 65 |
}; |
| 66 |
|
| 67 |
/omit-if-no-ref/ |
| 68 |
clk_pg11_pin: clk-pg11-pin { |
| 69 |
pins = "PG11"; |
| 70 |
function = "clk"; |
| 71 |
}; |
| 72 |
|
| 73 |
/omit-if-no-ref/ |
| 74 |
dsi_4lane_pins: dsi-4lane-pins { |
| 75 |
pins = "PD0", "PD1", "PD2", "PD3", "PD4", "PD5", |
| 76 |
"PD6", "PD7", "PD8", "PD9"; |
| 77 |
drive-strength = <30>; |
| 78 |
function = "dsi"; |
| 79 |
}; |
| 80 |
|
| 81 |
/omit-if-no-ref/ |
| 82 |
i2c2_pd_pins: i2c2-pd-pins { |
| 83 |
pins = "PD20", "PD21"; |
| 84 |
function = "i2c2"; |
| 85 |
}; |
| 86 |
|
| 87 |
/omit-if-no-ref/ |
| 88 |
i2c3_pg_pins: i2c3-pg-pins { |
| 89 |
pins = "PG10", "PG11"; |
| 90 |
function = "i2c3"; |
| 91 |
}; |
| 92 |
|
| 93 |
/omit-if-no-ref/ |
| 94 |
i2s1_pins: i2s1-pins { |
| 95 |
pins = "PG12", "PG13"; |
| 96 |
function = "i2s1"; |
| 97 |
}; |
| 98 |
|
| 99 |
/omit-if-no-ref/ |
| 100 |
i2s1_din0_pin: i2s1-din0-pin { |
| 101 |
pins = "PG14"; |
| 102 |
function = "i2s1_din"; |
| 103 |
}; |
| 104 |
|
| 105 |
/omit-if-no-ref/ |
| 106 |
i2s1_dout0_pin: i2s1-dout0-pin { |
| 107 |
pins = "PG15"; |
| 108 |
function = "i2s1_dout"; |
| 109 |
}; |
| 110 |
|
| 111 |
/omit-if-no-ref/ |
| 112 |
lcd_rgb666_pins: lcd-rgb666-pins { |
| 113 |
pins = "PD0", "PD1", "PD2", "PD3", "PD4", "PD5", |
| 114 |
"PD6", "PD7", "PD8", "PD9", "PD10", "PD11", |
| 115 |
"PD12", "PD13", "PD14", "PD15", "PD16", "PD17", |
| 116 |
"PD18", "PD19", "PD20", "PD21"; |
| 117 |
function = "lcd0"; |
| 118 |
}; |
| 119 |
|
| 120 |
/omit-if-no-ref/ |
| 121 |
mmc0_pins: mmc0-pins { |
| 122 |
pins = "PF0", "PF1", "PF2", "PF3", "PF4", "PF5"; |
| 123 |
function = "mmc0"; |
| 124 |
}; |
| 125 |
|
| 126 |
/omit-if-no-ref/ |
| 127 |
mmc1_pins: mmc1-pins { |
| 128 |
pins = "PG0", "PG1", "PG2", "PG3", "PG4", "PG5"; |
| 129 |
function = "mmc1"; |
| 130 |
}; |
| 131 |
|
| 132 |
/omit-if-no-ref/ |
| 133 |
mmc2_pins: mmc2-pins { |
| 134 |
pins = "PC2", "PC3", "PC4", "PC5", "PC6", "PC7"; |
| 135 |
function = "mmc2"; |
| 136 |
}; |
| 137 |
|
| 138 |
/omit-if-no-ref/ |
| 139 |
rgmii_pe_pins: rgmii-pe-pins { |
| 140 |
pins = "PE0", "PE1", "PE2", "PE3", "PE4", |
| 141 |
"PE5", "PE6", "PE7", "PE8", "PE9", |
| 142 |
"PE11", "PE12", "PE13", "PE14", "PE15"; |
| 143 |
function = "emac"; |
| 144 |
}; |
| 145 |
|
| 146 |
/omit-if-no-ref/ |
| 147 |
rmii_pe_pins: rmii-pe-pins { |
| 148 |
pins = "PE0", "PE1", "PE2", "PE3", "PE4", |
| 149 |
"PE5", "PE6", "PE7", "PE8", "PE9"; |
| 150 |
function = "emac"; |
| 151 |
}; |
| 152 |
|
| 153 |
/omit-if-no-ref/ |
| 154 |
spi0_pins: spi0-pins { |
| 155 |
pins = "PC2", "PC3", "PC4", "PC5"; |
| 156 |
function = "spi0"; |
| 157 |
}; |
| 158 |
|
| 159 |
/omit-if-no-ref/ |
| 160 |
spi1_pins: spi1-pins { |
| 161 |
pins = "PD10", "PD11", "PD12", "PD13"; |
| 162 |
function = "spi1"; |
| 163 |
}; |
| 164 |
|
| 165 |
/omit-if-no-ref/ |
| 166 |
spi1_hold_pin: spi1-hold-pin { |
| 167 |
pins = "PD14"; |
| 168 |
function = "spi1"; |
| 169 |
}; |
| 170 |
|
| 171 |
/omit-if-no-ref/ |
| 172 |
spi1_wp_pin: spi1-wp-pin { |
| 173 |
pins = "PD15"; |
| 174 |
function = "spi1"; |
| 175 |
}; |
| 176 |
|
| 177 |
/omit-if-no-ref/ |
| 178 |
uart1_pg6_pins: uart1-pg6-pins { |
| 179 |
pins = "PG6", "PG7"; |
| 180 |
function = "uart1"; |
| 181 |
}; |
| 182 |
|
| 183 |
/omit-if-no-ref/ |
| 184 |
uart1_pg8_rts_cts_pins: uart1-pg8-rts-cts-pins { |
| 185 |
pins = "PG8", "PG9"; |
| 186 |
function = "uart1"; |
| 187 |
}; |
| 188 |
|
| 189 |
/omit-if-no-ref/ |
| 190 |
uart3_pb_pins: uart3-pb-pins { |
| 191 |
pins = "PB6", "PB7"; |
| 192 |
function = "uart3"; |
| 193 |
}; |
| 194 |
}; |
| 195 |
|
| 196 |
ccu: clock-controller@2001000 { |
| 197 |
compatible = "allwinner,sun20i-d1-ccu"; |
| 198 |
reg = <0x2001000 0x1000>; |
| 199 |
clocks = <&dcxo>, |
| 200 |
<&rtc CLK_OSC32K>, |
| 201 |
<&rtc CLK_IOSC>; |
| 202 |
clock-names = "hosc", "losc", "iosc"; |
| 203 |
#clock-cells = <1>; |
| 204 |
#reset-cells = <1>; |
| 205 |
}; |
| 206 |
|
| 207 |
ledc: led-controller@2008000 { |
| 208 |
compatible = "allwinner,sun20i-d1-ledc", |
| 209 |
"allwinner,sun50i-a100-ledc"; |
| 210 |
reg = <0x2008000 0x400>; |
| 211 |
interrupts = <SOC_PERIPHERAL_IRQ(20) IRQ_TYPE_LEVEL_HIGH>; |
| 212 |
clocks = <&ccu CLK_BUS_LEDC>, <&ccu CLK_LEDC>; |
| 213 |
clock-names = "bus", "mod"; |
| 214 |
resets = <&ccu RST_BUS_LEDC>; |
| 215 |
dmas = <&dma 42>; |
| 216 |
dma-names = "tx"; |
| 217 |
#address-cells = <1>; |
| 218 |
#size-cells = <0>; |
| 219 |
status = "disabled"; |
| 220 |
}; |
| 221 |
|
| 222 |
gpadc: adc@2009000 { |
| 223 |
compatible = "allwinner,sun20i-d1-gpadc"; |
| 224 |
reg = <0x2009000 0x400>; |
| 225 |
clocks = <&ccu CLK_BUS_GPADC>; |
| 226 |
resets = <&ccu RST_BUS_GPADC>; |
| 227 |
interrupts = <SOC_PERIPHERAL_IRQ(57) IRQ_TYPE_LEVEL_HIGH>; |
| 228 |
status = "disabled"; |
| 229 |
#io-channel-cells = <1>; |
| 230 |
}; |
| 231 |
|
| 232 |
ths: thermal-sensor@2009400 { |
| 233 |
compatible = "allwinner,sun20i-d1-ths"; |
| 234 |
reg = <0x2009400 0x400>; |
| 235 |
interrupts = <SOC_PERIPHERAL_IRQ(58) IRQ_TYPE_LEVEL_HIGH>; |
| 236 |
clocks = <&ccu CLK_BUS_THS>; |
| 237 |
clock-names = "bus"; |
| 238 |
resets = <&ccu RST_BUS_THS>; |
| 239 |
nvmem-cells = <&ths_calibration>; |
| 240 |
nvmem-cell-names = "calibration"; |
| 241 |
#thermal-sensor-cells = <0>; |
| 242 |
}; |
| 243 |
|
| 244 |
dmic: dmic@2031000 { |
| 245 |
compatible = "allwinner,sun20i-d1-dmic", |
| 246 |
"allwinner,sun50i-h6-dmic"; |
| 247 |
reg = <0x2031000 0x400>; |
| 248 |
interrupts = <SOC_PERIPHERAL_IRQ(24) IRQ_TYPE_LEVEL_HIGH>; |
| 249 |
clocks = <&ccu CLK_BUS_DMIC>, |
| 250 |
<&ccu CLK_DMIC>; |
| 251 |
clock-names = "bus", "mod"; |
| 252 |
resets = <&ccu RST_BUS_DMIC>; |
| 253 |
dmas = <&dma 8>; |
| 254 |
dma-names = "rx"; |
| 255 |
status = "disabled"; |
| 256 |
#sound-dai-cells = <0>; |
| 257 |
}; |
| 258 |
|
| 259 |
i2s1: i2s@2033000 { |
| 260 |
compatible = "allwinner,sun20i-d1-i2s", |
| 261 |
"allwinner,sun50i-r329-i2s"; |
| 262 |
reg = <0x2033000 0x1000>; |
| 263 |
interrupts = <SOC_PERIPHERAL_IRQ(27) IRQ_TYPE_LEVEL_HIGH>; |
| 264 |
clocks = <&ccu CLK_BUS_I2S1>, |
| 265 |
<&ccu CLK_I2S1>; |
| 266 |
clock-names = "apb", "mod"; |
| 267 |
resets = <&ccu RST_BUS_I2S1>; |
| 268 |
dmas = <&dma 4>, <&dma 4>; |
| 269 |
dma-names = "rx", "tx"; |
| 270 |
status = "disabled"; |
| 271 |
#sound-dai-cells = <0>; |
| 272 |
}; |
| 273 |
|
| 274 |
i2s2: i2s@2034000 { |
| 275 |
compatible = "allwinner,sun20i-d1-i2s", |
| 276 |
"allwinner,sun50i-r329-i2s"; |
| 277 |
reg = <0x2034000 0x1000>; |
| 278 |
interrupts = <SOC_PERIPHERAL_IRQ(28) IRQ_TYPE_LEVEL_HIGH>; |
| 279 |
clocks = <&ccu CLK_BUS_I2S2>, |
| 280 |
<&ccu CLK_I2S2>; |
| 281 |
clock-names = "apb", "mod"; |
| 282 |
resets = <&ccu RST_BUS_I2S2>; |
| 283 |
dmas = <&dma 5>, <&dma 5>; |
| 284 |
dma-names = "rx", "tx"; |
| 285 |
status = "disabled"; |
| 286 |
#sound-dai-cells = <0>; |
| 287 |
}; |
| 288 |
|
| 289 |
timer: timer@2050000 { |
| 290 |
compatible = "allwinner,sun20i-d1-timer", |
| 291 |
"allwinner,sun8i-a23-timer"; |
| 292 |
reg = <0x2050000 0xa0>; |
| 293 |
interrupts = <SOC_PERIPHERAL_IRQ(59) IRQ_TYPE_LEVEL_HIGH>, |
| 294 |
<SOC_PERIPHERAL_IRQ(60) IRQ_TYPE_LEVEL_HIGH>; |
| 295 |
clocks = <&dcxo>; |
| 296 |
}; |
| 297 |
|
| 298 |
wdt: watchdog@20500a0 { |
| 299 |
compatible = "allwinner,sun20i-d1-wdt-reset", |
| 300 |
"allwinner,sun20i-d1-wdt"; |
| 301 |
reg = <0x20500a0 0x20>; |
| 302 |
interrupts = <SOC_PERIPHERAL_IRQ(63) IRQ_TYPE_LEVEL_HIGH>; |
| 303 |
clocks = <&dcxo>, <&rtc CLK_OSC32K>; |
| 304 |
clock-names = "hosc", "losc"; |
| 305 |
status = "reserved"; |
| 306 |
}; |
| 307 |
|
| 308 |
uart0: serial@2500000 { |
| 309 |
compatible = "snps,dw-apb-uart"; |
| 310 |
reg = <0x2500000 0x400>; |
| 311 |
reg-io-width = <4>; |
| 312 |
reg-shift = <2>; |
| 313 |
interrupts = <SOC_PERIPHERAL_IRQ(2) IRQ_TYPE_LEVEL_HIGH>; |
| 314 |
clocks = <&ccu CLK_BUS_UART0>; |
| 315 |
resets = <&ccu RST_BUS_UART0>; |
| 316 |
dmas = <&dma 14>, <&dma 14>; |
| 317 |
dma-names = "tx", "rx"; |
| 318 |
status = "disabled"; |
| 319 |
}; |
| 320 |
|
| 321 |
uart1: serial@2500400 { |
| 322 |
compatible = "snps,dw-apb-uart"; |
| 323 |
reg = <0x2500400 0x400>; |
| 324 |
reg-io-width = <4>; |
| 325 |
reg-shift = <2>; |
| 326 |
interrupts = <SOC_PERIPHERAL_IRQ(3) IRQ_TYPE_LEVEL_HIGH>; |
| 327 |
clocks = <&ccu CLK_BUS_UART1>; |
| 328 |
resets = <&ccu RST_BUS_UART1>; |
| 329 |
dmas = <&dma 15>, <&dma 15>; |
| 330 |
dma-names = "tx", "rx"; |
| 331 |
status = "disabled"; |
| 332 |
}; |
| 333 |
|
| 334 |
uart2: serial@2500800 { |
| 335 |
compatible = "snps,dw-apb-uart"; |
| 336 |
reg = <0x2500800 0x400>; |
| 337 |
reg-io-width = <4>; |
| 338 |
reg-shift = <2>; |
| 339 |
interrupts = <SOC_PERIPHERAL_IRQ(4) IRQ_TYPE_LEVEL_HIGH>; |
| 340 |
clocks = <&ccu CLK_BUS_UART2>; |
| 341 |
resets = <&ccu RST_BUS_UART2>; |
| 342 |
dmas = <&dma 16>, <&dma 16>; |
| 343 |
dma-names = "tx", "rx"; |
| 344 |
status = "disabled"; |
| 345 |
}; |
| 346 |
|
| 347 |
uart3: serial@2500c00 { |
| 348 |
compatible = "snps,dw-apb-uart"; |
| 349 |
reg = <0x2500c00 0x400>; |
| 350 |
reg-io-width = <4>; |
| 351 |
reg-shift = <2>; |
| 352 |
interrupts = <SOC_PERIPHERAL_IRQ(5) IRQ_TYPE_LEVEL_HIGH>; |
| 353 |
clocks = <&ccu CLK_BUS_UART3>; |
| 354 |
resets = <&ccu RST_BUS_UART3>; |
| 355 |
dmas = <&dma 17>, <&dma 17>; |
| 356 |
dma-names = "tx", "rx"; |
| 357 |
status = "disabled"; |
| 358 |
}; |
| 359 |
|
| 360 |
uart4: serial@2501000 { |
| 361 |
compatible = "snps,dw-apb-uart"; |
| 362 |
reg = <0x2501000 0x400>; |
| 363 |
reg-io-width = <4>; |
| 364 |
reg-shift = <2>; |
| 365 |
interrupts = <SOC_PERIPHERAL_IRQ(6) IRQ_TYPE_LEVEL_HIGH>; |
| 366 |
clocks = <&ccu CLK_BUS_UART4>; |
| 367 |
resets = <&ccu RST_BUS_UART4>; |
| 368 |
dmas = <&dma 18>, <&dma 18>; |
| 369 |
dma-names = "tx", "rx"; |
| 370 |
status = "disabled"; |
| 371 |
}; |
| 372 |
|
| 373 |
uart5: serial@2501400 { |
| 374 |
compatible = "snps,dw-apb-uart"; |
| 375 |
reg = <0x2501400 0x400>; |
| 376 |
reg-io-width = <4>; |
| 377 |
reg-shift = <2>; |
| 378 |
interrupts = <SOC_PERIPHERAL_IRQ(7) IRQ_TYPE_LEVEL_HIGH>; |
| 379 |
clocks = <&ccu CLK_BUS_UART5>; |
| 380 |
resets = <&ccu RST_BUS_UART5>; |
| 381 |
dmas = <&dma 19>, <&dma 19>; |
| 382 |
dma-names = "tx", "rx"; |
| 383 |
status = "disabled"; |
| 384 |
}; |
| 385 |
|
| 386 |
i2c0: i2c@2502000 { |
| 387 |
compatible = "allwinner,sun20i-d1-i2c", |
| 388 |
"allwinner,sun8i-v536-i2c", |
| 389 |
"allwinner,sun6i-a31-i2c"; |
| 390 |
reg = <0x2502000 0x400>; |
| 391 |
interrupts = <SOC_PERIPHERAL_IRQ(9) IRQ_TYPE_LEVEL_HIGH>; |
| 392 |
clocks = <&ccu CLK_BUS_I2C0>; |
| 393 |
resets = <&ccu RST_BUS_I2C0>; |
| 394 |
dmas = <&dma 43>, <&dma 43>; |
| 395 |
dma-names = "rx", "tx"; |
| 396 |
status = "disabled"; |
| 397 |
#address-cells = <1>; |
| 398 |
#size-cells = <0>; |
| 399 |
}; |
| 400 |
|
| 401 |
i2c1: i2c@2502400 { |
| 402 |
compatible = "allwinner,sun20i-d1-i2c", |
| 403 |
"allwinner,sun8i-v536-i2c", |
| 404 |
"allwinner,sun6i-a31-i2c"; |
| 405 |
reg = <0x2502400 0x400>; |
| 406 |
interrupts = <SOC_PERIPHERAL_IRQ(10) IRQ_TYPE_LEVEL_HIGH>; |
| 407 |
clocks = <&ccu CLK_BUS_I2C1>; |
| 408 |
resets = <&ccu RST_BUS_I2C1>; |
| 409 |
dmas = <&dma 44>, <&dma 44>; |
| 410 |
dma-names = "rx", "tx"; |
| 411 |
status = "disabled"; |
| 412 |
#address-cells = <1>; |
| 413 |
#size-cells = <0>; |
| 414 |
}; |
| 415 |
|
| 416 |
i2c2: i2c@2502800 { |
| 417 |
compatible = "allwinner,sun20i-d1-i2c", |
| 418 |
"allwinner,sun8i-v536-i2c", |
| 419 |
"allwinner,sun6i-a31-i2c"; |
| 420 |
reg = <0x2502800 0x400>; |
| 421 |
interrupts = <SOC_PERIPHERAL_IRQ(11) IRQ_TYPE_LEVEL_HIGH>; |
| 422 |
clocks = <&ccu CLK_BUS_I2C2>; |
| 423 |
resets = <&ccu RST_BUS_I2C2>; |
| 424 |
dmas = <&dma 45>, <&dma 45>; |
| 425 |
dma-names = "rx", "tx"; |
| 426 |
status = "disabled"; |
| 427 |
#address-cells = <1>; |
| 428 |
#size-cells = <0>; |
| 429 |
}; |
| 430 |
|
| 431 |
i2c3: i2c@2502c00 { |
| 432 |
compatible = "allwinner,sun20i-d1-i2c", |
| 433 |
"allwinner,sun8i-v536-i2c", |
| 434 |
"allwinner,sun6i-a31-i2c"; |
| 435 |
reg = <0x2502c00 0x400>; |
| 436 |
interrupts = <SOC_PERIPHERAL_IRQ(12) IRQ_TYPE_LEVEL_HIGH>; |
| 437 |
clocks = <&ccu CLK_BUS_I2C3>; |
| 438 |
resets = <&ccu RST_BUS_I2C3>; |
| 439 |
dmas = <&dma 46>, <&dma 46>; |
| 440 |
dma-names = "rx", "tx"; |
| 441 |
status = "disabled"; |
| 442 |
#address-cells = <1>; |
| 443 |
#size-cells = <0>; |
| 444 |
}; |
| 445 |
|
| 446 |
can0: can@2504000 { |
| 447 |
compatible = "allwinner,sun20i-d1-can"; |
| 448 |
reg = <0x02504000 0x400>; |
| 449 |
interrupts = <SOC_PERIPHERAL_IRQ(21) IRQ_TYPE_LEVEL_HIGH>; |
| 450 |
clocks = <&ccu CLK_BUS_CAN0>; |
| 451 |
resets = <&ccu RST_BUS_CAN0>; |
| 452 |
pinctrl-names = "default"; |
| 453 |
pinctrl-0 = <&can0_pins>; |
| 454 |
status = "disabled"; |
| 455 |
}; |
| 456 |
|
| 457 |
can1: can@2504400 { |
| 458 |
compatible = "allwinner,sun20i-d1-can"; |
| 459 |
reg = <0x02504400 0x400>; |
| 460 |
interrupts = <SOC_PERIPHERAL_IRQ(22) IRQ_TYPE_LEVEL_HIGH>; |
| 461 |
clocks = <&ccu CLK_BUS_CAN1>; |
| 462 |
resets = <&ccu RST_BUS_CAN1>; |
| 463 |
pinctrl-names = "default"; |
| 464 |
pinctrl-0 = <&can1_pins>; |
| 465 |
status = "disabled"; |
| 466 |
}; |
| 467 |
|
| 468 |
syscon: syscon@3000000 { |
| 469 |
compatible = "allwinner,sun20i-d1-system-control"; |
| 470 |
reg = <0x3000000 0x1000>; |
| 471 |
ranges; |
| 472 |
#address-cells = <1>; |
| 473 |
#size-cells = <1>; |
| 474 |
|
| 475 |
regulators@3000150 { |
| 476 |
compatible = "allwinner,sun20i-d1-system-ldos"; |
| 477 |
reg = <0x3000150 0x4>; |
| 478 |
|
| 479 |
reg_ldoa: ldoa { |
| 480 |
}; |
| 481 |
|
| 482 |
reg_ldob: ldob { |
| 483 |
}; |
| 484 |
}; |
| 485 |
}; |
| 486 |
|
| 487 |
dma: dma-controller@3002000 { |
| 488 |
compatible = "allwinner,sun20i-d1-dma"; |
| 489 |
reg = <0x3002000 0x1000>; |
| 490 |
interrupts = <SOC_PERIPHERAL_IRQ(50) IRQ_TYPE_LEVEL_HIGH>; |
| 491 |
clocks = <&ccu CLK_BUS_DMA>, <&ccu CLK_MBUS_DMA>; |
| 492 |
clock-names = "bus", "mbus"; |
| 493 |
resets = <&ccu RST_BUS_DMA>; |
| 494 |
dma-channels = <16>; |
| 495 |
dma-requests = <48>; |
| 496 |
#dma-cells = <1>; |
| 497 |
}; |
| 498 |
|
| 499 |
sid: efuse@3006000 { |
| 500 |
compatible = "allwinner,sun20i-d1-sid"; |
| 501 |
reg = <0x3006000 0x1000>; |
| 502 |
#address-cells = <1>; |
| 503 |
#size-cells = <1>; |
| 504 |
|
| 505 |
ths_calibration: thermal-sensor-calibration@14 { |
| 506 |
reg = <0x14 0x8>; |
| 507 |
}; |
| 508 |
}; |
| 509 |
|
| 510 |
crypto: crypto@3040000 { |
| 511 |
compatible = "allwinner,sun20i-d1-crypto"; |
| 512 |
reg = <0x3040000 0x800>; |
| 513 |
interrupts = <SOC_PERIPHERAL_IRQ(52) IRQ_TYPE_LEVEL_HIGH>; |
| 514 |
clocks = <&ccu CLK_BUS_CE>, |
| 515 |
<&ccu CLK_CE>, |
| 516 |
<&ccu CLK_MBUS_CE>, |
| 517 |
<&rtc CLK_IOSC>; |
| 518 |
clock-names = "bus", "mod", "ram", "trng"; |
| 519 |
resets = <&ccu RST_BUS_CE>; |
| 520 |
}; |
| 521 |
|
| 522 |
mbus: dram-controller@3102000 { |
| 523 |
compatible = "allwinner,sun20i-d1-mbus"; |
| 524 |
reg = <0x3102000 0x1000>, |
| 525 |
<0x3103000 0x1000>; |
| 526 |
reg-names = "mbus", "dram"; |
| 527 |
interrupts = <SOC_PERIPHERAL_IRQ(43) IRQ_TYPE_LEVEL_HIGH>; |
| 528 |
clocks = <&ccu CLK_MBUS>, |
| 529 |
<&ccu CLK_DRAM>, |
| 530 |
<&ccu CLK_BUS_DRAM>; |
| 531 |
clock-names = "mbus", "dram", "bus"; |
| 532 |
dma-ranges = <0 0x40000000 0x80000000>; |
| 533 |
#address-cells = <1>; |
| 534 |
#size-cells = <1>; |
| 535 |
#interconnect-cells = <1>; |
| 536 |
}; |
| 537 |
|
| 538 |
mmc0: mmc@4020000 { |
| 539 |
compatible = "allwinner,sun20i-d1-mmc"; |
| 540 |
reg = <0x4020000 0x1000>; |
| 541 |
interrupts = <SOC_PERIPHERAL_IRQ(40) IRQ_TYPE_LEVEL_HIGH>; |
| 542 |
clocks = <&ccu CLK_BUS_MMC0>, <&ccu CLK_MMC0>; |
| 543 |
clock-names = "ahb", "mmc"; |
| 544 |
resets = <&ccu RST_BUS_MMC0>; |
| 545 |
reset-names = "ahb"; |
| 546 |
cap-sd-highspeed; |
| 547 |
max-frequency = <150000000>; |
| 548 |
no-mmc; |
| 549 |
status = "disabled"; |
| 550 |
#address-cells = <1>; |
| 551 |
#size-cells = <0>; |
| 552 |
}; |
| 553 |
|
| 554 |
mmc1: mmc@4021000 { |
| 555 |
compatible = "allwinner,sun20i-d1-mmc"; |
| 556 |
reg = <0x4021000 0x1000>; |
| 557 |
interrupts = <SOC_PERIPHERAL_IRQ(41) IRQ_TYPE_LEVEL_HIGH>; |
| 558 |
clocks = <&ccu CLK_BUS_MMC1>, <&ccu CLK_MMC1>; |
| 559 |
clock-names = "ahb", "mmc"; |
| 560 |
resets = <&ccu RST_BUS_MMC1>; |
| 561 |
reset-names = "ahb"; |
| 562 |
cap-sd-highspeed; |
| 563 |
max-frequency = <150000000>; |
| 564 |
no-mmc; |
| 565 |
status = "disabled"; |
| 566 |
#address-cells = <1>; |
| 567 |
#size-cells = <0>; |
| 568 |
}; |
| 569 |
|
| 570 |
mmc2: mmc@4022000 { |
| 571 |
compatible = "allwinner,sun20i-d1-emmc", |
| 572 |
"allwinner,sun50i-a100-emmc"; |
| 573 |
reg = <0x4022000 0x1000>; |
| 574 |
interrupts = <SOC_PERIPHERAL_IRQ(42) IRQ_TYPE_LEVEL_HIGH>; |
| 575 |
clocks = <&ccu CLK_BUS_MMC2>, <&ccu CLK_MMC2>; |
| 576 |
clock-names = "ahb", "mmc"; |
| 577 |
resets = <&ccu RST_BUS_MMC2>; |
| 578 |
reset-names = "ahb"; |
| 579 |
cap-mmc-highspeed; |
| 580 |
max-frequency = <150000000>; |
| 581 |
mmc-ddr-1_8v; |
| 582 |
mmc-ddr-3_3v; |
| 583 |
no-sd; |
| 584 |
no-sdio; |
| 585 |
status = "disabled"; |
| 586 |
#address-cells = <1>; |
| 587 |
#size-cells = <0>; |
| 588 |
}; |
| 589 |
|
| 590 |
spi0: spi@4025000 { |
| 591 |
compatible = "allwinner,sun20i-d1-spi", |
| 592 |
"allwinner,sun50i-r329-spi"; |
| 593 |
reg = <0x04025000 0x1000>; |
| 594 |
interrupts = <SOC_PERIPHERAL_IRQ(15) IRQ_TYPE_LEVEL_HIGH>; |
| 595 |
clocks = <&ccu CLK_BUS_SPI0>, <&ccu CLK_SPI0>; |
| 596 |
clock-names = "ahb", "mod"; |
| 597 |
dmas = <&dma 22>, <&dma 22>; |
| 598 |
dma-names = "rx", "tx"; |
| 599 |
resets = <&ccu RST_BUS_SPI0>; |
| 600 |
status = "disabled"; |
| 601 |
#address-cells = <1>; |
| 602 |
#size-cells = <0>; |
| 603 |
}; |
| 604 |
|
| 605 |
spi1: spi@4026000 { |
| 606 |
compatible = "allwinner,sun20i-d1-spi-dbi", |
| 607 |
"allwinner,sun50i-r329-spi-dbi", |
| 608 |
"allwinner,sun50i-r329-spi"; |
| 609 |
reg = <0x04026000 0x1000>; |
| 610 |
interrupts = <SOC_PERIPHERAL_IRQ(16) IRQ_TYPE_LEVEL_HIGH>; |
| 611 |
clocks = <&ccu CLK_BUS_SPI1>, <&ccu CLK_SPI1>; |
| 612 |
clock-names = "ahb", "mod"; |
| 613 |
dmas = <&dma 23>, <&dma 23>; |
| 614 |
dma-names = "rx", "tx"; |
| 615 |
resets = <&ccu RST_BUS_SPI1>; |
| 616 |
status = "disabled"; |
| 617 |
#address-cells = <1>; |
| 618 |
#size-cells = <0>; |
| 619 |
}; |
| 620 |
|
| 621 |
usb_otg: usb@4100000 { |
| 622 |
compatible = "allwinner,sun20i-d1-musb", |
| 623 |
"allwinner,sun8i-a33-musb"; |
| 624 |
reg = <0x4100000 0x400>; |
| 625 |
interrupts = <SOC_PERIPHERAL_IRQ(29) IRQ_TYPE_LEVEL_HIGH>; |
| 626 |
interrupt-names = "mc"; |
| 627 |
clocks = <&ccu CLK_BUS_OTG>; |
| 628 |
resets = <&ccu RST_BUS_OTG>; |
| 629 |
extcon = <&usbphy 0>; |
| 630 |
phys = <&usbphy 0>; |
| 631 |
phy-names = "usb"; |
| 632 |
status = "disabled"; |
| 633 |
}; |
| 634 |
|
| 635 |
usbphy: phy@4100400 { |
| 636 |
compatible = "allwinner,sun20i-d1-usb-phy"; |
| 637 |
reg = <0x4100400 0x100>, |
| 638 |
<0x4101800 0x100>, |
| 639 |
<0x4200800 0x100>; |
| 640 |
reg-names = "phy_ctrl", |
| 641 |
"pmu0", |
| 642 |
"pmu1"; |
| 643 |
clocks = <&dcxo>, |
| 644 |
<&dcxo>; |
| 645 |
clock-names = "usb0_phy", |
| 646 |
"usb1_phy"; |
| 647 |
resets = <&ccu RST_USB_PHY0>, |
| 648 |
<&ccu RST_USB_PHY1>; |
| 649 |
reset-names = "usb0_reset", |
| 650 |
"usb1_reset"; |
| 651 |
status = "disabled"; |
| 652 |
#phy-cells = <1>; |
| 653 |
}; |
| 654 |
|
| 655 |
ehci0: usb@4101000 { |
| 656 |
compatible = "allwinner,sun20i-d1-ehci", |
| 657 |
"generic-ehci"; |
| 658 |
reg = <0x4101000 0x100>; |
| 659 |
interrupts = <SOC_PERIPHERAL_IRQ(30) IRQ_TYPE_LEVEL_HIGH>; |
| 660 |
clocks = <&ccu CLK_BUS_OHCI0>, |
| 661 |
<&ccu CLK_BUS_EHCI0>, |
| 662 |
<&ccu CLK_USB_OHCI0>; |
| 663 |
resets = <&ccu RST_BUS_OHCI0>, |
| 664 |
<&ccu RST_BUS_EHCI0>; |
| 665 |
phys = <&usbphy 0>; |
| 666 |
phy-names = "usb"; |
| 667 |
status = "disabled"; |
| 668 |
}; |
| 669 |
|
| 670 |
ohci0: usb@4101400 { |
| 671 |
compatible = "allwinner,sun20i-d1-ohci", |
| 672 |
"generic-ohci"; |
| 673 |
reg = <0x4101400 0x100>; |
| 674 |
interrupts = <SOC_PERIPHERAL_IRQ(31) IRQ_TYPE_LEVEL_HIGH>; |
| 675 |
clocks = <&ccu CLK_BUS_OHCI0>, |
| 676 |
<&ccu CLK_USB_OHCI0>; |
| 677 |
resets = <&ccu RST_BUS_OHCI0>; |
| 678 |
phys = <&usbphy 0>; |
| 679 |
phy-names = "usb"; |
| 680 |
status = "disabled"; |
| 681 |
}; |
| 682 |
|
| 683 |
ehci1: usb@4200000 { |
| 684 |
compatible = "allwinner,sun20i-d1-ehci", |
| 685 |
"generic-ehci"; |
| 686 |
reg = <0x4200000 0x100>; |
| 687 |
interrupts = <SOC_PERIPHERAL_IRQ(33) IRQ_TYPE_LEVEL_HIGH>; |
| 688 |
clocks = <&ccu CLK_BUS_OHCI1>, |
| 689 |
<&ccu CLK_BUS_EHCI1>, |
| 690 |
<&ccu CLK_USB_OHCI1>; |
| 691 |
resets = <&ccu RST_BUS_OHCI1>, |
| 692 |
<&ccu RST_BUS_EHCI1>; |
| 693 |
phys = <&usbphy 1>; |
| 694 |
phy-names = "usb"; |
| 695 |
status = "disabled"; |
| 696 |
}; |
| 697 |
|
| 698 |
ohci1: usb@4200400 { |
| 699 |
compatible = "allwinner,sun20i-d1-ohci", |
| 700 |
"generic-ohci"; |
| 701 |
reg = <0x4200400 0x100>; |
| 702 |
interrupts = <SOC_PERIPHERAL_IRQ(34) IRQ_TYPE_LEVEL_HIGH>; |
| 703 |
clocks = <&ccu CLK_BUS_OHCI1>, |
| 704 |
<&ccu CLK_USB_OHCI1>; |
| 705 |
resets = <&ccu RST_BUS_OHCI1>; |
| 706 |
phys = <&usbphy 1>; |
| 707 |
phy-names = "usb"; |
| 708 |
status = "disabled"; |
| 709 |
}; |
| 710 |
|
| 711 |
emac: ethernet@4500000 { |
| 712 |
compatible = "allwinner,sun20i-d1-emac", |
| 713 |
"allwinner,sun50i-a64-emac"; |
| 714 |
reg = <0x4500000 0x10000>; |
| 715 |
interrupts = <SOC_PERIPHERAL_IRQ(46) IRQ_TYPE_LEVEL_HIGH>; |
| 716 |
interrupt-names = "macirq"; |
| 717 |
clocks = <&ccu CLK_BUS_EMAC>; |
| 718 |
clock-names = "stmmaceth"; |
| 719 |
resets = <&ccu RST_BUS_EMAC>; |
| 720 |
reset-names = "stmmaceth"; |
| 721 |
syscon = <&syscon>; |
| 722 |
status = "disabled"; |
| 723 |
|
| 724 |
mdio: mdio { |
| 725 |
compatible = "snps,dwmac-mdio"; |
| 726 |
#address-cells = <1>; |
| 727 |
#size-cells = <0>; |
| 728 |
}; |
| 729 |
}; |
| 730 |
|
| 731 |
display_clocks: clock-controller@5000000 { |
| 732 |
compatible = "allwinner,sun20i-d1-de2-clk", |
| 733 |
"allwinner,sun50i-h5-de2-clk"; |
| 734 |
reg = <0x5000000 0x10000>; |
| 735 |
clocks = <&ccu CLK_BUS_DE>, <&ccu CLK_DE>; |
| 736 |
clock-names = "bus", "mod"; |
| 737 |
resets = <&ccu RST_BUS_DE>; |
| 738 |
#clock-cells = <1>; |
| 739 |
#reset-cells = <1>; |
| 740 |
}; |
| 741 |
|
| 742 |
mixer0: mixer@5100000 { |
| 743 |
compatible = "allwinner,sun20i-d1-de2-mixer-0"; |
| 744 |
reg = <0x5100000 0x100000>; |
| 745 |
clocks = <&display_clocks CLK_BUS_MIXER0>, |
| 746 |
<&display_clocks CLK_MIXER0>; |
| 747 |
clock-names = "bus", "mod"; |
| 748 |
resets = <&display_clocks RST_MIXER0>; |
| 749 |
|
| 750 |
ports { |
| 751 |
#address-cells = <1>; |
| 752 |
#size-cells = <0>; |
| 753 |
|
| 754 |
mixer0_out: port@1 { |
| 755 |
reg = <1>; |
| 756 |
|
| 757 |
mixer0_out_tcon_top_mixer0: endpoint { |
| 758 |
remote-endpoint = <&tcon_top_mixer0_in_mixer0>; |
| 759 |
}; |
| 760 |
}; |
| 761 |
}; |
| 762 |
}; |
| 763 |
|
| 764 |
mixer1: mixer@5200000 { |
| 765 |
compatible = "allwinner,sun20i-d1-de2-mixer-1"; |
| 766 |
reg = <0x5200000 0x100000>; |
| 767 |
clocks = <&display_clocks CLK_BUS_MIXER1>, |
| 768 |
<&display_clocks CLK_MIXER1>; |
| 769 |
clock-names = "bus", "mod"; |
| 770 |
resets = <&display_clocks RST_MIXER1>; |
| 771 |
|
| 772 |
ports { |
| 773 |
#address-cells = <1>; |
| 774 |
#size-cells = <0>; |
| 775 |
|
| 776 |
mixer1_out: port@1 { |
| 777 |
reg = <1>; |
| 778 |
|
| 779 |
mixer1_out_tcon_top_mixer1: endpoint { |
| 780 |
remote-endpoint = <&tcon_top_mixer1_in_mixer1>; |
| 781 |
}; |
| 782 |
}; |
| 783 |
}; |
| 784 |
}; |
| 785 |
|
| 786 |
dsi: dsi@5450000 { |
| 787 |
compatible = "allwinner,sun20i-d1-mipi-dsi", |
| 788 |
"allwinner,sun50i-a100-mipi-dsi"; |
| 789 |
reg = <0x5450000 0x1000>; |
| 790 |
interrupts = <SOC_PERIPHERAL_IRQ(92) IRQ_TYPE_LEVEL_HIGH>; |
| 791 |
clocks = <&ccu CLK_BUS_MIPI_DSI>, |
| 792 |
<&tcon_top CLK_TCON_TOP_DSI>; |
| 793 |
clock-names = "bus", "mod"; |
| 794 |
resets = <&ccu RST_BUS_MIPI_DSI>; |
| 795 |
phys = <&dphy>; |
| 796 |
phy-names = "dphy"; |
| 797 |
status = "disabled"; |
| 798 |
|
| 799 |
port { |
| 800 |
dsi_in_tcon_lcd0: endpoint { |
| 801 |
remote-endpoint = <&tcon_lcd0_out_dsi>; |
| 802 |
}; |
| 803 |
}; |
| 804 |
}; |
| 805 |
|
| 806 |
dphy: phy@5451000 { |
| 807 |
compatible = "allwinner,sun20i-d1-mipi-dphy", |
| 808 |
"allwinner,sun50i-a100-mipi-dphy"; |
| 809 |
reg = <0x5451000 0x1000>; |
| 810 |
interrupts = <SOC_PERIPHERAL_IRQ(92) IRQ_TYPE_LEVEL_HIGH>; |
| 811 |
clocks = <&ccu CLK_BUS_MIPI_DSI>, |
| 812 |
<&ccu CLK_MIPI_DSI>; |
| 813 |
clock-names = "bus", "mod"; |
| 814 |
resets = <&ccu RST_BUS_MIPI_DSI>; |
| 815 |
#phy-cells = <0>; |
| 816 |
}; |
| 817 |
|
| 818 |
tcon_top: tcon-top@5460000 { |
| 819 |
compatible = "allwinner,sun20i-d1-tcon-top"; |
| 820 |
reg = <0x5460000 0x1000>; |
| 821 |
clocks = <&ccu CLK_BUS_DPSS_TOP>, |
| 822 |
<&ccu CLK_TCON_TV>, |
| 823 |
<&ccu CLK_TVE>, |
| 824 |
<&ccu CLK_TCON_LCD0>; |
| 825 |
clock-names = "bus", "tcon-tv0", "tve0", "dsi"; |
| 826 |
clock-output-names = "tcon-top-tv0", "tcon-top-dsi"; |
| 827 |
resets = <&ccu RST_BUS_DPSS_TOP>; |
| 828 |
#clock-cells = <1>; |
| 829 |
|
| 830 |
ports { |
| 831 |
#address-cells = <1>; |
| 832 |
#size-cells = <0>; |
| 833 |
|
| 834 |
tcon_top_mixer0_in: port@0 { |
| 835 |
reg = <0>; |
| 836 |
|
| 837 |
tcon_top_mixer0_in_mixer0: endpoint { |
| 838 |
remote-endpoint = <&mixer0_out_tcon_top_mixer0>; |
| 839 |
}; |
| 840 |
}; |
| 841 |
|
| 842 |
tcon_top_mixer0_out: port@1 { |
| 843 |
reg = <1>; |
| 844 |
#address-cells = <1>; |
| 845 |
#size-cells = <0>; |
| 846 |
|
| 847 |
tcon_top_mixer0_out_tcon_lcd0: endpoint@0 { |
| 848 |
reg = <0>; |
| 849 |
remote-endpoint = <&tcon_lcd0_in_tcon_top_mixer0>; |
| 850 |
}; |
| 851 |
|
| 852 |
tcon_top_mixer0_out_tcon_tv0: endpoint@2 { |
| 853 |
reg = <2>; |
| 854 |
remote-endpoint = <&tcon_tv0_in_tcon_top_mixer0>; |
| 855 |
}; |
| 856 |
}; |
| 857 |
|
| 858 |
tcon_top_mixer1_in: port@2 { |
| 859 |
reg = <2>; |
| 860 |
#address-cells = <1>; |
| 861 |
#size-cells = <0>; |
| 862 |
|
| 863 |
tcon_top_mixer1_in_mixer1: endpoint@1 { |
| 864 |
reg = <1>; |
| 865 |
remote-endpoint = <&mixer1_out_tcon_top_mixer1>; |
| 866 |
}; |
| 867 |
}; |
| 868 |
|
| 869 |
tcon_top_mixer1_out: port@3 { |
| 870 |
reg = <3>; |
| 871 |
#address-cells = <1>; |
| 872 |
#size-cells = <0>; |
| 873 |
|
| 874 |
tcon_top_mixer1_out_tcon_lcd0: endpoint@0 { |
| 875 |
reg = <0>; |
| 876 |
remote-endpoint = <&tcon_lcd0_in_tcon_top_mixer1>; |
| 877 |
}; |
| 878 |
|
| 879 |
tcon_top_mixer1_out_tcon_tv0: endpoint@2 { |
| 880 |
reg = <2>; |
| 881 |
remote-endpoint = <&tcon_tv0_in_tcon_top_mixer1>; |
| 882 |
}; |
| 883 |
}; |
| 884 |
|
| 885 |
tcon_top_hdmi_in: port@4 { |
| 886 |
reg = <4>; |
| 887 |
|
| 888 |
tcon_top_hdmi_in_tcon_tv0: endpoint { |
| 889 |
remote-endpoint = <&tcon_tv0_out_tcon_top_hdmi>; |
| 890 |
}; |
| 891 |
}; |
| 892 |
|
| 893 |
tcon_top_hdmi_out: port@5 { |
| 894 |
reg = <5>; |
| 895 |
}; |
| 896 |
}; |
| 897 |
}; |
| 898 |
|
| 899 |
tcon_lcd0: lcd-controller@5461000 { |
| 900 |
compatible = "allwinner,sun20i-d1-tcon-lcd"; |
| 901 |
reg = <0x5461000 0x1000>; |
| 902 |
interrupts = <SOC_PERIPHERAL_IRQ(90) IRQ_TYPE_LEVEL_HIGH>; |
| 903 |
clocks = <&ccu CLK_BUS_TCON_LCD0>, |
| 904 |
<&ccu CLK_TCON_LCD0>; |
| 905 |
clock-names = "ahb", "tcon-ch0"; |
| 906 |
clock-output-names = "tcon-pixel-clock"; |
| 907 |
resets = <&ccu RST_BUS_TCON_LCD0>, |
| 908 |
<&ccu RST_BUS_LVDS0>; |
| 909 |
reset-names = "lcd", "lvds"; |
| 910 |
#clock-cells = <0>; |
| 911 |
|
| 912 |
ports { |
| 913 |
#address-cells = <1>; |
| 914 |
#size-cells = <0>; |
| 915 |
|
| 916 |
tcon_lcd0_in: port@0 { |
| 917 |
reg = <0>; |
| 918 |
#address-cells = <1>; |
| 919 |
#size-cells = <0>; |
| 920 |
|
| 921 |
tcon_lcd0_in_tcon_top_mixer0: endpoint@0 { |
| 922 |
reg = <0>; |
| 923 |
remote-endpoint = <&tcon_top_mixer0_out_tcon_lcd0>; |
| 924 |
}; |
| 925 |
|
| 926 |
tcon_lcd0_in_tcon_top_mixer1: endpoint@1 { |
| 927 |
reg = <1>; |
| 928 |
remote-endpoint = <&tcon_top_mixer1_out_tcon_lcd0>; |
| 929 |
}; |
| 930 |
}; |
| 931 |
|
| 932 |
tcon_lcd0_out: port@1 { |
| 933 |
reg = <1>; |
| 934 |
#address-cells = <1>; |
| 935 |
#size-cells = <0>; |
| 936 |
|
| 937 |
tcon_lcd0_out_dsi: endpoint@1 { |
| 938 |
reg = <1>; |
| 939 |
remote-endpoint = <&dsi_in_tcon_lcd0>; |
| 940 |
}; |
| 941 |
}; |
| 942 |
}; |
| 943 |
}; |
| 944 |
|
| 945 |
tcon_tv0: lcd-controller@5470000 { |
| 946 |
compatible = "allwinner,sun20i-d1-tcon-tv"; |
| 947 |
reg = <0x5470000 0x1000>; |
| 948 |
interrupts = <SOC_PERIPHERAL_IRQ(91) IRQ_TYPE_LEVEL_HIGH>; |
| 949 |
clocks = <&ccu CLK_BUS_TCON_TV>, |
| 950 |
<&tcon_top CLK_TCON_TOP_TV0>; |
| 951 |
clock-names = "ahb", "tcon-ch1"; |
| 952 |
resets = <&ccu RST_BUS_TCON_TV>; |
| 953 |
reset-names = "lcd"; |
| 954 |
|
| 955 |
ports { |
| 956 |
#address-cells = <1>; |
| 957 |
#size-cells = <0>; |
| 958 |
|
| 959 |
tcon_tv0_in: port@0 { |
| 960 |
reg = <0>; |
| 961 |
#address-cells = <1>; |
| 962 |
#size-cells = <0>; |
| 963 |
|
| 964 |
tcon_tv0_in_tcon_top_mixer0: endpoint@0 { |
| 965 |
reg = <0>; |
| 966 |
remote-endpoint = <&tcon_top_mixer0_out_tcon_tv0>; |
| 967 |
}; |
| 968 |
|
| 969 |
tcon_tv0_in_tcon_top_mixer1: endpoint@1 { |
| 970 |
reg = <1>; |
| 971 |
remote-endpoint = <&tcon_top_mixer1_out_tcon_tv0>; |
| 972 |
}; |
| 973 |
}; |
| 974 |
|
| 975 |
tcon_tv0_out: port@1 { |
| 976 |
reg = <1>; |
| 977 |
|
| 978 |
tcon_tv0_out_tcon_top_hdmi: endpoint { |
| 979 |
remote-endpoint = <&tcon_top_hdmi_in_tcon_tv0>; |
| 980 |
}; |
| 981 |
}; |
| 982 |
}; |
| 983 |
}; |
| 984 |
|
| 985 |
ppu: power-controller@7001000 { |
| 986 |
compatible = "allwinner,sun20i-d1-ppu"; |
| 987 |
reg = <0x7001000 0x1000>; |
| 988 |
clocks = <&r_ccu CLK_BUS_R_PPU>; |
| 989 |
resets = <&r_ccu RST_BUS_R_PPU>; |
| 990 |
#power-domain-cells = <1>; |
| 991 |
}; |
| 992 |
|
| 993 |
r_ccu: clock-controller@7010000 { |
| 994 |
compatible = "allwinner,sun20i-d1-r-ccu"; |
| 995 |
reg = <0x7010000 0x400>; |
| 996 |
clocks = <&dcxo>, |
| 997 |
<&rtc CLK_OSC32K>, |
| 998 |
<&rtc CLK_IOSC>, |
| 999 |
<&ccu CLK_PLL_PERIPH0_DIV3>; |
| 1000 |
clock-names = "hosc", "losc", "iosc", "pll-periph"; |
| 1001 |
#clock-cells = <1>; |
| 1002 |
#reset-cells = <1>; |
| 1003 |
}; |
| 1004 |
|
| 1005 |
rtc: rtc@7090000 { |
| 1006 |
compatible = "allwinner,sun20i-d1-rtc", |
| 1007 |
"allwinner,sun50i-r329-rtc"; |
| 1008 |
reg = <0x7090000 0x400>; |
| 1009 |
interrupts = <SOC_PERIPHERAL_IRQ(144) IRQ_TYPE_LEVEL_HIGH>; |
| 1010 |
clocks = <&r_ccu CLK_BUS_R_RTC>, |
| 1011 |
<&dcxo>, |
| 1012 |
<&r_ccu CLK_R_AHB>; |
| 1013 |
clock-names = "bus", "hosc", "ahb"; |
| 1014 |
#clock-cells = <1>; |
| 1015 |
}; |
| 1016 |
}; |
| 1017 |
}; |