| .. | .. |
|---|
| 21 | 21 | #clock-cells = <0>; |
|---|
| 22 | 22 | }; |
|---|
| 23 | 23 | |
|---|
| 24 | + xin32k: xin32k { |
|---|
| 25 | + compatible = "fixed-clock"; |
|---|
| 26 | + clock-frequency = <32768>; |
|---|
| 27 | + clock-output-names = "xin32k"; |
|---|
| 28 | + #clock-cells = <0>; |
|---|
| 29 | + }; |
|---|
| 30 | + |
|---|
| 24 | 31 | vcc_sd: sdmmc-regulator { |
|---|
| 25 | 32 | compatible = "regulator-fixed"; |
|---|
| 26 | 33 | gpio = <&gpio0 RK_PD6 GPIO_ACTIVE_LOW>; |
|---|
| 27 | 34 | pinctrl-names = "default"; |
|---|
| 28 | | - pinctrl-0 = <&sdmmc0m1_gpio>; |
|---|
| 35 | + pinctrl-0 = <&sdmmc0m1_pin>; |
|---|
| 29 | 36 | regulator-name = "vcc_sd"; |
|---|
| 30 | 37 | regulator-min-microvolt = <3300000>; |
|---|
| 31 | 38 | regulator-max-microvolt = <3300000>; |
|---|
| .. | .. |
|---|
| 34 | 41 | |
|---|
| 35 | 42 | vcc_host_5v: vcc-host-5v-regulator { |
|---|
| 36 | 43 | compatible = "regulator-fixed"; |
|---|
| 37 | | - enable-active-high; |
|---|
| 38 | | - gpio = <&gpio0 RK_PA0 GPIO_ACTIVE_HIGH>; |
|---|
| 44 | + gpio = <&gpio0 RK_PA2 GPIO_ACTIVE_LOW>; |
|---|
| 39 | 45 | pinctrl-names = "default"; |
|---|
| 40 | | - pinctrl-0 = <&usb30_host_drv>; |
|---|
| 46 | + pinctrl-0 = <&usb20_host_drv>; |
|---|
| 41 | 47 | regulator-name = "vcc_host_5v"; |
|---|
| 42 | 48 | regulator-always-on; |
|---|
| 43 | 49 | regulator-boot-on; |
|---|
| .. | .. |
|---|
| 64 | 70 | regulator-max-microvolt = <5000000>; |
|---|
| 65 | 71 | }; |
|---|
| 66 | 72 | |
|---|
| 67 | | - xin32k: xin32k { |
|---|
| 68 | | - compatible = "fixed-clock"; |
|---|
| 69 | | - clock-frequency = <32768>; |
|---|
| 70 | | - clock-output-names = "xin32k"; |
|---|
| 71 | | - #clock-cells = <0>; |
|---|
| 73 | + ir-receiver { |
|---|
| 74 | + compatible = "gpio-ir-receiver"; |
|---|
| 75 | + gpios = <&gpio2 RK_PA2 GPIO_ACTIVE_LOW>; |
|---|
| 76 | + pinctrl-0 = <&ir_int>; |
|---|
| 77 | + pinctrl-names = "default"; |
|---|
| 78 | + }; |
|---|
| 79 | + |
|---|
| 80 | + leds { |
|---|
| 81 | + compatible = "gpio-leds"; |
|---|
| 82 | + |
|---|
| 83 | + power_led: led-0 { |
|---|
| 84 | + gpios = <&rk805 1 GPIO_ACTIVE_LOW>; |
|---|
| 85 | + linux,default-trigger = "mmc0"; |
|---|
| 86 | + }; |
|---|
| 87 | + |
|---|
| 88 | + standby_led: led-1 { |
|---|
| 89 | + gpios = <&rk805 0 GPIO_ACTIVE_LOW>; |
|---|
| 90 | + linux,default-trigger = "heartbeat"; |
|---|
| 91 | + }; |
|---|
| 92 | + }; |
|---|
| 93 | + |
|---|
| 94 | + sound { |
|---|
| 95 | + compatible = "audio-graph-card"; |
|---|
| 96 | + label = "rockchip,rk3328"; |
|---|
| 97 | + dais = <&i2s1_p0 |
|---|
| 98 | + &spdif_p0>; |
|---|
| 99 | + }; |
|---|
| 100 | + |
|---|
| 101 | + spdif-dit { |
|---|
| 102 | + compatible = "linux,spdif-dit"; |
|---|
| 103 | + #sound-dai-cells = <0>; |
|---|
| 104 | + |
|---|
| 105 | + port { |
|---|
| 106 | + dit_p0_0: endpoint { |
|---|
| 107 | + remote-endpoint = <&spdif_p0_0>; |
|---|
| 108 | + }; |
|---|
| 109 | + }; |
|---|
| 110 | + }; |
|---|
| 111 | +}; |
|---|
| 112 | + |
|---|
| 113 | +&codec { |
|---|
| 114 | + mute-gpios = <&grf_gpio 0 GPIO_ACTIVE_LOW>; |
|---|
| 115 | + status = "okay"; |
|---|
| 116 | + |
|---|
| 117 | + port@0 { |
|---|
| 118 | + codec_p0_0: endpoint { |
|---|
| 119 | + remote-endpoint = <&i2s1_p0_0>; |
|---|
| 120 | + }; |
|---|
| 72 | 121 | }; |
|---|
| 73 | 122 | }; |
|---|
| 74 | 123 | |
|---|
| .. | .. |
|---|
| 117 | 166 | status = "okay"; |
|---|
| 118 | 167 | }; |
|---|
| 119 | 168 | |
|---|
| 169 | +&hdmi { |
|---|
| 170 | + status = "okay"; |
|---|
| 171 | +}; |
|---|
| 172 | + |
|---|
| 173 | +&hdmiphy { |
|---|
| 174 | + status = "okay"; |
|---|
| 175 | +}; |
|---|
| 176 | + |
|---|
| 120 | 177 | &i2c1 { |
|---|
| 121 | 178 | status = "okay"; |
|---|
| 122 | 179 | |
|---|
| .. | .. |
|---|
| 127 | 184 | interrupts = <6 IRQ_TYPE_LEVEL_LOW>; |
|---|
| 128 | 185 | #clock-cells = <1>; |
|---|
| 129 | 186 | clock-output-names = "rk805-clkout1", "rk805-clkout2"; |
|---|
| 187 | + gpio-controller; |
|---|
| 188 | + #gpio-cells = <2>; |
|---|
| 130 | 189 | pinctrl-names = "default"; |
|---|
| 131 | 190 | pinctrl-0 = <&pmic_int_l>; |
|---|
| 132 | 191 | rockchip,system-power-controller; |
|---|
| .. | .. |
|---|
| 188 | 247 | }; |
|---|
| 189 | 248 | |
|---|
| 190 | 249 | vcc_18: LDO_REG1 { |
|---|
| 191 | | - regulator-name = "vdd_18"; |
|---|
| 250 | + regulator-name = "vcc_18"; |
|---|
| 192 | 251 | regulator-min-microvolt = <1800000>; |
|---|
| 193 | 252 | regulator-max-microvolt = <1800000>; |
|---|
| 194 | 253 | regulator-always-on; |
|---|
| .. | .. |
|---|
| 200 | 259 | }; |
|---|
| 201 | 260 | |
|---|
| 202 | 261 | vcc18_emmc: LDO_REG2 { |
|---|
| 203 | | - regulator-name = "vcc_18emmc"; |
|---|
| 262 | + regulator-name = "vcc18_emmc"; |
|---|
| 204 | 263 | regulator-min-microvolt = <1800000>; |
|---|
| 205 | 264 | regulator-max-microvolt = <1800000>; |
|---|
| 206 | 265 | regulator-always-on; |
|---|
| .. | .. |
|---|
| 226 | 285 | }; |
|---|
| 227 | 286 | }; |
|---|
| 228 | 287 | |
|---|
| 288 | +&i2s1 { |
|---|
| 289 | + status = "okay"; |
|---|
| 290 | + |
|---|
| 291 | + i2s1_p0: port { |
|---|
| 292 | + i2s1_p0_0: endpoint { |
|---|
| 293 | + dai-format = "i2s"; |
|---|
| 294 | + mclk-fs = <256>; |
|---|
| 295 | + remote-endpoint = <&codec_p0_0>; |
|---|
| 296 | + }; |
|---|
| 297 | + }; |
|---|
| 298 | +}; |
|---|
| 299 | + |
|---|
| 229 | 300 | &io_domains { |
|---|
| 230 | 301 | status = "okay"; |
|---|
| 231 | 302 | |
|---|
| .. | .. |
|---|
| 239 | 310 | }; |
|---|
| 240 | 311 | |
|---|
| 241 | 312 | &pinctrl { |
|---|
| 313 | + ir { |
|---|
| 314 | + ir_int: ir-int { |
|---|
| 315 | + rockchip,pins = <2 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>; |
|---|
| 316 | + }; |
|---|
| 317 | + }; |
|---|
| 318 | + |
|---|
| 242 | 319 | pmic { |
|---|
| 243 | 320 | pmic_int_l: pmic-int-l { |
|---|
| 244 | 321 | rockchip,pins = <2 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>; |
|---|
| .. | .. |
|---|
| 248 | 325 | usb2 { |
|---|
| 249 | 326 | usb20_host_drv: usb20-host-drv { |
|---|
| 250 | 327 | rockchip,pins = <0 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>; |
|---|
| 251 | | - }; |
|---|
| 252 | | - }; |
|---|
| 253 | | - |
|---|
| 254 | | - usb3 { |
|---|
| 255 | | - usb30_host_drv: usb30-host-drv { |
|---|
| 256 | | - rockchip,pins = <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>; |
|---|
| 257 | 328 | }; |
|---|
| 258 | 329 | }; |
|---|
| 259 | 330 | }; |
|---|
| .. | .. |
|---|
| 270 | 341 | status = "okay"; |
|---|
| 271 | 342 | }; |
|---|
| 272 | 343 | |
|---|
| 344 | +&spdif { |
|---|
| 345 | + pinctrl-0 = <&spdifm0_tx>; |
|---|
| 346 | + status = "okay"; |
|---|
| 347 | + |
|---|
| 348 | + spdif_p0: port { |
|---|
| 349 | + spdif_p0_0: endpoint { |
|---|
| 350 | + remote-endpoint = <&dit_p0_0>; |
|---|
| 351 | + }; |
|---|
| 352 | + }; |
|---|
| 353 | +}; |
|---|
| 354 | + |
|---|
| 355 | +&spi0 { |
|---|
| 356 | + status = "okay"; |
|---|
| 357 | + |
|---|
| 358 | + spiflash@0 { |
|---|
| 359 | + compatible = "jedec,spi-nor"; |
|---|
| 360 | + reg = <0>; |
|---|
| 361 | + |
|---|
| 362 | + /* maximum speed for Rockchip SPI */ |
|---|
| 363 | + spi-max-frequency = <50000000>; |
|---|
| 364 | + }; |
|---|
| 365 | +}; |
|---|
| 366 | + |
|---|
| 273 | 367 | &tsadc { |
|---|
| 274 | 368 | rockchip,hw-tshut-mode = <0>; |
|---|
| 275 | 369 | rockchip,hw-tshut-polarity = <0>; |
|---|
| 370 | + status = "okay"; |
|---|
| 371 | +}; |
|---|
| 372 | + |
|---|
| 373 | +&uart2 { |
|---|
| 276 | 374 | status = "okay"; |
|---|
| 277 | 375 | }; |
|---|
| 278 | 376 | |
|---|
| .. | .. |
|---|
| 293 | 391 | status = "okay"; |
|---|
| 294 | 392 | }; |
|---|
| 295 | 393 | |
|---|
| 394 | +&usbdrd3 { |
|---|
| 395 | + dr_mode = "host"; |
|---|
| 396 | + status = "okay"; |
|---|
| 397 | +}; |
|---|
| 398 | + |
|---|
| 296 | 399 | &usb_host0_ehci { |
|---|
| 297 | 400 | status = "okay"; |
|---|
| 298 | 401 | }; |
|---|
| .. | .. |
|---|
| 300 | 403 | &usb_host0_ohci { |
|---|
| 301 | 404 | status = "okay"; |
|---|
| 302 | 405 | }; |
|---|
| 406 | + |
|---|
| 407 | +&vop { |
|---|
| 408 | + status = "okay"; |
|---|
| 409 | +}; |
|---|
| 410 | + |
|---|
| 411 | +&vop_mmu { |
|---|
| 412 | + status = "okay"; |
|---|
| 413 | +}; |
|---|