| .. | .. |
|---|
| 1 | 1 | // SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
|---|
| 2 | 2 | /* |
|---|
| 3 | | - * Copyright (c) 2018 Pine Microsystems Inc. (PINE64) |
|---|
| 4 | | - * Randy Li <ayaka@soulik.info> |
|---|
| 3 | + * Copyright (c) 2017 Fuzhou Rockchip Electronics Co., Ltd. |
|---|
| 4 | + * Copyright (c) 2018 Akash Gajjar <Akash_Gajjar@mentor.com> |
|---|
| 5 | + * Copyright (c) 2019 Katsuhiro Suzuki <katsuhiro@katsuster.net> |
|---|
| 5 | 6 | */ |
|---|
| 6 | 7 | |
|---|
| 7 | 8 | /dts-v1/; |
|---|
| 8 | | -#include <dt-bindings/pwm/pwm.h> |
|---|
| 9 | | -#include <dt-bindings/input/input.h> |
|---|
| 10 | | -#include "rk3399.dtsi" |
|---|
| 11 | | -#include "rk3399-opp.dtsi" |
|---|
| 9 | +#include "rk3399-rockpro64.dtsi" |
|---|
| 12 | 10 | |
|---|
| 13 | 11 | / { |
|---|
| 14 | | - model = "Pine64 RockPro64"; |
|---|
| 15 | | - compatible = "pine64,rockpro64", "rockchip,rk3399"; |
|---|
| 16 | | - |
|---|
| 17 | | - chosen { |
|---|
| 18 | | - bootargs = "earlycon=uart8250,mmio32,0xff1a0000 coherent_pool=1m"; |
|---|
| 19 | | - stdout-path = "serial2:1500000n8"; |
|---|
| 20 | | - }; |
|---|
| 21 | | - |
|---|
| 22 | | - /* first 64k(0xff8c0000~0xff8d0000) for ddr and suspend */ |
|---|
| 23 | | - iram: sram@ff8d0000 { |
|---|
| 24 | | - compatible = "mmio-sram"; |
|---|
| 25 | | - reg = <0x0 0xff8d0000 0x0 0x20000>; /* 128k */ |
|---|
| 26 | | - }; |
|---|
| 27 | | - |
|---|
| 28 | | - dc_12v: dc-12v { |
|---|
| 29 | | - compatible = "regulator-fixed"; |
|---|
| 30 | | - regulator-name = "dc_12v"; |
|---|
| 31 | | - regulator-always-on; |
|---|
| 32 | | - regulator-boot-on; |
|---|
| 33 | | - regulator-min-microvolt = <12000000>; |
|---|
| 34 | | - regulator-max-microvolt = <12000000>; |
|---|
| 35 | | - }; |
|---|
| 36 | | - |
|---|
| 37 | | - vcc3v3_pcie: vcc3v3-pcie-regulator { |
|---|
| 38 | | - compatible = "regulator-fixed"; |
|---|
| 39 | | - regulator-min-microvolt = <3300000>; |
|---|
| 40 | | - regulator-max-microvolt = <3300000>; |
|---|
| 41 | | - enable-active-high; |
|---|
| 42 | | - gpio = <&gpio1 RK_PD0 GPIO_ACTIVE_HIGH>; |
|---|
| 43 | | - pinctrl-names = "default"; |
|---|
| 44 | | - pinctrl-0 = <&pcie_pwr_en>; |
|---|
| 45 | | - regulator-name = "vcc3v3_pcie"; |
|---|
| 46 | | - vin-supply = <&dc_12v>; |
|---|
| 47 | | - }; |
|---|
| 48 | | - |
|---|
| 49 | | - vcc1v8_s0: vcc1v8-s0 { |
|---|
| 50 | | - compatible = "regulator-fixed"; |
|---|
| 51 | | - regulator-name = "vcc1v8_s0"; |
|---|
| 52 | | - regulator-min-microvolt = <1800000>; |
|---|
| 53 | | - regulator-max-microvolt = <1800000>; |
|---|
| 54 | | - regulator-always-on; |
|---|
| 55 | | - }; |
|---|
| 56 | | - |
|---|
| 57 | | - vcc_sys: vcc-sys { |
|---|
| 58 | | - compatible = "regulator-fixed"; |
|---|
| 59 | | - regulator-name = "vcc_sys"; |
|---|
| 60 | | - regulator-min-microvolt = <5000000>; |
|---|
| 61 | | - regulator-max-microvolt = <5000000>; |
|---|
| 62 | | - regulator-always-on; |
|---|
| 63 | | - vin-supply = <&dc_12v>; |
|---|
| 64 | | - }; |
|---|
| 65 | | - |
|---|
| 66 | | - vcc_phy: vcc-phy-regulator { |
|---|
| 67 | | - compatible = "regulator-fixed"; |
|---|
| 68 | | - regulator-name = "vcc_phy"; |
|---|
| 69 | | - regulator-always-on; |
|---|
| 70 | | - regulator-boot-on; |
|---|
| 71 | | - }; |
|---|
| 72 | | - |
|---|
| 73 | | - vcc3v3_sys: vcc3v3-sys { |
|---|
| 74 | | - compatible = "regulator-fixed"; |
|---|
| 75 | | - regulator-name = "vcc3v3_sys"; |
|---|
| 76 | | - regulator-min-microvolt = <3300000>; |
|---|
| 77 | | - regulator-max-microvolt = <3300000>; |
|---|
| 78 | | - regulator-always-on; |
|---|
| 79 | | - vin-supply = <&vcc_sys>; |
|---|
| 80 | | - }; |
|---|
| 81 | | - |
|---|
| 82 | | - vcc5v0_host: vcc5v0-host-regulator { |
|---|
| 83 | | - compatible = "regulator-fixed"; |
|---|
| 84 | | - enable-active-high; |
|---|
| 85 | | - gpio = <&gpio4 RK_PD2 GPIO_ACTIVE_HIGH>; |
|---|
| 86 | | - pinctrl-names = "default"; |
|---|
| 87 | | - pinctrl-0 = <&host_vbus_drv>; |
|---|
| 88 | | - regulator-name = "vcc5v0_host"; |
|---|
| 89 | | - regulator-always-on; |
|---|
| 90 | | - }; |
|---|
| 91 | | - |
|---|
| 92 | | - vdd_log: vdd-log { |
|---|
| 93 | | - compatible = "pwm-regulator"; |
|---|
| 94 | | - pwms = <&pwm2 0 25000 1>; |
|---|
| 95 | | - regulator-name = "vdd_log"; |
|---|
| 96 | | - regulator-min-microvolt = <800000>; |
|---|
| 97 | | - regulator-max-microvolt = <1400000>; |
|---|
| 98 | | - regulator-always-on; |
|---|
| 99 | | - regulator-boot-on; |
|---|
| 100 | | - |
|---|
| 101 | | - /* for rockchip boot on */ |
|---|
| 102 | | - rockchip,pwm_id= <2>; |
|---|
| 103 | | - rockchip,pwm_voltage = <900000>; |
|---|
| 104 | | - |
|---|
| 105 | | - vin-supply = <&vcc_sys>; |
|---|
| 106 | | - }; |
|---|
| 107 | | - |
|---|
| 108 | | - clkin_gmac: external-gmac-clock { |
|---|
| 109 | | - compatible = "fixed-clock"; |
|---|
| 110 | | - clock-frequency = <125000000>; |
|---|
| 111 | | - clock-output-names = "clkin_gmac"; |
|---|
| 112 | | - #clock-cells = <0>; |
|---|
| 113 | | - }; |
|---|
| 114 | | - |
|---|
| 115 | | - spdif-sound { |
|---|
| 116 | | - status = "disabled"; |
|---|
| 117 | | - compatible = "simple-audio-card"; |
|---|
| 118 | | - simple-audio-card,name = "ROCKCHIP,SPDIF"; |
|---|
| 119 | | - simple-audio-card,cpu { |
|---|
| 120 | | - sound-dai = <&spdif>; |
|---|
| 121 | | - }; |
|---|
| 122 | | - simple-audio-card,codec { |
|---|
| 123 | | - sound-dai = <&spdif_out>; |
|---|
| 124 | | - }; |
|---|
| 125 | | - }; |
|---|
| 126 | | - |
|---|
| 127 | | - spdif_out: spdif-out { |
|---|
| 128 | | - status = "disabled"; |
|---|
| 129 | | - compatible = "linux,spdif-dit"; |
|---|
| 130 | | - #sound-dai-cells = <0>; |
|---|
| 131 | | - }; |
|---|
| 132 | | - |
|---|
| 133 | | - sdio_pwrseq: sdio-pwrseq { |
|---|
| 134 | | - compatible = "mmc-pwrseq-simple"; |
|---|
| 135 | | - clocks = <&rk808 1>; |
|---|
| 136 | | - clock-names = "ext_clock"; |
|---|
| 137 | | - pinctrl-names = "default"; |
|---|
| 138 | | - pinctrl-0 = <&wifi_enable_h>; |
|---|
| 139 | | - |
|---|
| 140 | | - /* |
|---|
| 141 | | - * On the module itself this is one of these (depending |
|---|
| 142 | | - * on the actual card populated): |
|---|
| 143 | | - * - SDIO_RESET_L_WL_REG_ON |
|---|
| 144 | | - * - PDN (power down when low) |
|---|
| 145 | | - */ |
|---|
| 146 | | - reset-gpios = <&gpio0 RK_PB2 GPIO_ACTIVE_LOW>; |
|---|
| 147 | | - }; |
|---|
| 148 | | - |
|---|
| 149 | | - es8316-sound { |
|---|
| 150 | | - status = "okay"; |
|---|
| 151 | | - compatible = "simple-audio-card"; |
|---|
| 152 | | - simple-audio-card,format = "i2s"; |
|---|
| 153 | | - simple-audio-card,name = "rockchip,es8316-codec"; |
|---|
| 154 | | - simple-audio-card,mclk-fs = <256>; |
|---|
| 155 | | - simple-audio-card,widgets = |
|---|
| 156 | | - "Microphone", "Mic Jack", |
|---|
| 157 | | - "Headphone", "Headphone Jack"; |
|---|
| 158 | | - simple-audio-card,routing = |
|---|
| 159 | | - "Mic Jack", "MICBIAS1", |
|---|
| 160 | | - "IN1P", "Mic Jack", |
|---|
| 161 | | - "Headphone Jack", "HPOL", |
|---|
| 162 | | - "Headphone Jack", "HPOR"; |
|---|
| 163 | | - simple-audio-card,cpu { |
|---|
| 164 | | - sound-dai = <&i2s1>; |
|---|
| 165 | | - }; |
|---|
| 166 | | - simple-audio-card,codec { |
|---|
| 167 | | - sound-dai = <&es8316>; |
|---|
| 168 | | - }; |
|---|
| 169 | | - }; |
|---|
| 170 | | - |
|---|
| 171 | | - leds { |
|---|
| 172 | | - status = "okay"; |
|---|
| 173 | | - compatible = "gpio-leds"; |
|---|
| 174 | | - work-led { |
|---|
| 175 | | - gpios = <&gpio0 RK_PB3 GPIO_ACTIVE_HIGH>; |
|---|
| 176 | | - linux,default-trigger = "heartbeat"; |
|---|
| 177 | | - default-state = "on"; |
|---|
| 178 | | - }; |
|---|
| 179 | | - diy-led { |
|---|
| 180 | | - gpios = <&gpio0 RK_PA2 GPIO_ACTIVE_HIGH>; |
|---|
| 181 | | - linux,default-trigger = "none"; |
|---|
| 182 | | - default-state = "off"; |
|---|
| 183 | | - }; |
|---|
| 184 | | - }; |
|---|
| 185 | | - |
|---|
| 186 | | - rk_key: rockchip-key { |
|---|
| 187 | | - compatible = "rockchip,key"; |
|---|
| 188 | | - status = "okay"; |
|---|
| 189 | | - |
|---|
| 190 | | - io-channels = <&saradc 1>; |
|---|
| 191 | | - |
|---|
| 192 | | - power-key { |
|---|
| 193 | | - gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>; |
|---|
| 194 | | - linux,code = <116>; |
|---|
| 195 | | - label = "power"; |
|---|
| 196 | | - gpio-key,wakeup; |
|---|
| 197 | | - }; |
|---|
| 198 | | - }; |
|---|
| 199 | | - |
|---|
| 200 | | - hdmi_dp_sound: hdmi-dp-sound { |
|---|
| 201 | | - status = "okay"; |
|---|
| 202 | | - compatible = "rockchip,rk3399-hdmi-dp"; |
|---|
| 203 | | - rockchip,cpu = <&i2s2>; |
|---|
| 204 | | - rockchip,codec = <&hdmi>, <&cdn_dp>; |
|---|
| 205 | | - }; |
|---|
| 206 | | -}; |
|---|
| 207 | | - |
|---|
| 208 | | -&cdn_dp { |
|---|
| 209 | | - status = "okay"; |
|---|
| 210 | | - extcon = <&fusb0>; |
|---|
| 211 | | -}; |
|---|
| 212 | | - |
|---|
| 213 | | -&cluster0_opp { |
|---|
| 214 | | - opp-1512000000 { |
|---|
| 215 | | - opp-hz = /bits/ 64 <1512000000>; |
|---|
| 216 | | - opp-microvolt = <1200000>; |
|---|
| 217 | | - opp-microvolt-L0 = <1200000>; |
|---|
| 218 | | - opp-microvolt-L1 = <1175000>; |
|---|
| 219 | | - opp-microvolt-L2 = <1150000>; |
|---|
| 220 | | - opp-microvolt-L3 = <1125000>; |
|---|
| 221 | | - clock-latency-ns = <40000>; |
|---|
| 222 | | - }; |
|---|
| 223 | | -}; |
|---|
| 224 | | - |
|---|
| 225 | | -&cpu_l0 { |
|---|
| 226 | | - cpu-supply = <&vdd_cpu_l>; |
|---|
| 227 | | -}; |
|---|
| 228 | | - |
|---|
| 229 | | -&cpu_l1 { |
|---|
| 230 | | - cpu-supply = <&vdd_cpu_l>; |
|---|
| 231 | | -}; |
|---|
| 232 | | - |
|---|
| 233 | | -&cpu_l2 { |
|---|
| 234 | | - cpu-supply = <&vdd_cpu_l>; |
|---|
| 235 | | -}; |
|---|
| 236 | | - |
|---|
| 237 | | -&cpu_l3 { |
|---|
| 238 | | - cpu-supply = <&vdd_cpu_l>; |
|---|
| 239 | | -}; |
|---|
| 240 | | - |
|---|
| 241 | | -&cpu_b0 { |
|---|
| 242 | | - cpu-supply = <&vdd_cpu_b>; |
|---|
| 243 | | -}; |
|---|
| 244 | | - |
|---|
| 245 | | -&cpu_b1 { |
|---|
| 246 | | - cpu-supply = <&vdd_cpu_b>; |
|---|
| 247 | | -}; |
|---|
| 248 | | - |
|---|
| 249 | | -&dfi { |
|---|
| 250 | | - status = "okay"; |
|---|
| 251 | | -}; |
|---|
| 252 | | - |
|---|
| 253 | | -&dmc { |
|---|
| 254 | | - status = "okay"; |
|---|
| 255 | | - center-supply = <&vdd_center>; |
|---|
| 256 | | - upthreshold = <40>; |
|---|
| 257 | | - downdifferential = <20>; |
|---|
| 258 | | - system-status-freq = < |
|---|
| 259 | | - /*system status freq(KHz)*/ |
|---|
| 260 | | - SYS_STATUS_NORMAL 800000 |
|---|
| 261 | | - SYS_STATUS_REBOOT 400000 |
|---|
| 262 | | - SYS_STATUS_SUSPEND 400000 |
|---|
| 263 | | - SYS_STATUS_VIDEO_1080P 400000 |
|---|
| 264 | | - SYS_STATUS_VIDEO_4K 800000 |
|---|
| 265 | | - SYS_STATUS_VIDEO_4K_10B 800000 |
|---|
| 266 | | - SYS_STATUS_PERFORMANCE 800000 |
|---|
| 267 | | - SYS_STATUS_BOOST 400000 |
|---|
| 268 | | - SYS_STATUS_DUALVIEW 800000 |
|---|
| 269 | | - SYS_STATUS_ISP 800000 |
|---|
| 270 | | - >; |
|---|
| 271 | | - vop-bw-dmc-freq = < |
|---|
| 272 | | - /* min_bw(MB/s) max_bw(MB/s) freq(KHz) */ |
|---|
| 273 | | - 0 577 200000 |
|---|
| 274 | | - 578 1701 300000 |
|---|
| 275 | | - 1702 99999 400000 |
|---|
| 276 | | - >; |
|---|
| 277 | | - auto-min-freq = <400000>; |
|---|
| 278 | | - auto-freq-en = <0>; |
|---|
| 279 | | - |
|---|
| 280 | | -}; |
|---|
| 281 | | - |
|---|
| 282 | | -&dmc_opp_table { |
|---|
| 283 | | - compatible = "operating-points-v2"; |
|---|
| 284 | | - |
|---|
| 285 | | - opp-200000000 { |
|---|
| 286 | | - opp-hz = /bits/ 64 <200000000>; |
|---|
| 287 | | - opp-microvolt = <900000>; |
|---|
| 288 | | - status = "disabled"; |
|---|
| 289 | | - }; |
|---|
| 290 | | - opp-300000000 { |
|---|
| 291 | | - opp-hz = /bits/ 64 <300000000>; |
|---|
| 292 | | - opp-microvolt = <900000>; |
|---|
| 293 | | - status = "disabled"; |
|---|
| 294 | | - }; |
|---|
| 295 | | - opp-400000000 { |
|---|
| 296 | | - opp-hz = /bits/ 64 <400000000>; |
|---|
| 297 | | - opp-microvolt = <900000>; |
|---|
| 298 | | - }; |
|---|
| 299 | | - opp-528000000 { |
|---|
| 300 | | - opp-hz = /bits/ 64 <528000000>; |
|---|
| 301 | | - opp-microvolt = <900000>; |
|---|
| 302 | | - status = "disabled"; |
|---|
| 303 | | - }; |
|---|
| 304 | | - opp-600000000 { |
|---|
| 305 | | - opp-hz = /bits/ 64 <600000000>; |
|---|
| 306 | | - opp-microvolt = <900000>; |
|---|
| 307 | | - status = "disabled"; |
|---|
| 308 | | - }; |
|---|
| 309 | | - opp-800000000 { |
|---|
| 310 | | - opp-hz = /bits/ 64 <800000000>; |
|---|
| 311 | | - opp-microvolt = <900000>; |
|---|
| 312 | | - }; |
|---|
| 313 | | - opp-928000000 { |
|---|
| 314 | | - opp-hz = /bits/ 64 <928000000>; |
|---|
| 315 | | - opp-microvolt = <900000>; |
|---|
| 316 | | - status = "disabled"; |
|---|
| 317 | | - }; |
|---|
| 318 | | - opp-1056000000 { |
|---|
| 319 | | - opp-hz = /bits/ 64 <1056000000>; |
|---|
| 320 | | - opp-microvolt = <900000>; |
|---|
| 321 | | - status = "disabled"; |
|---|
| 322 | | - }; |
|---|
| 323 | | -}; |
|---|
| 324 | | - |
|---|
| 325 | | -&display_subsystem { |
|---|
| 326 | | - status = "okay"; |
|---|
| 327 | | - |
|---|
| 328 | | - ports = <&vopb_out>; |
|---|
| 329 | | - |
|---|
| 330 | | - route { |
|---|
| 331 | | - route_hdmi: route-hdmi { |
|---|
| 332 | | - status = "okay"; |
|---|
| 333 | | - connect = <&vopb_out_hdmi>; |
|---|
| 334 | | - }; |
|---|
| 335 | | - |
|---|
| 336 | | - route_dsi: route-dsi { |
|---|
| 337 | | - status = "disabled"; |
|---|
| 338 | | - connect = <&vopb_out_dsi>; |
|---|
| 339 | | - }; |
|---|
| 340 | | - |
|---|
| 341 | | - route_edp: route-edp { |
|---|
| 342 | | - status = "disabled"; |
|---|
| 343 | | - connect = <&vopb_out_edp>; |
|---|
| 344 | | - }; |
|---|
| 345 | | - }; |
|---|
| 346 | | -}; |
|---|
| 347 | | - |
|---|
| 348 | | -&dp_in_vopb { |
|---|
| 349 | | - status = "disabled"; |
|---|
| 350 | | -}; |
|---|
| 351 | | - |
|---|
| 352 | | -&edp { |
|---|
| 353 | | - /delete-node/ pinctrl-0; |
|---|
| 354 | | -}; |
|---|
| 355 | | - |
|---|
| 356 | | -&emmc_phy { |
|---|
| 357 | | - status = "okay"; |
|---|
| 358 | | -}; |
|---|
| 359 | | - |
|---|
| 360 | | -&i2c0 { |
|---|
| 361 | | - status = "okay"; |
|---|
| 362 | | - i2c-scl-rising-time-ns = <168>; |
|---|
| 363 | | - i2c-scl-falling-time-ns = <4>; |
|---|
| 364 | | - clock-frequency = <400000>; |
|---|
| 365 | | - |
|---|
| 366 | | - vdd_cpu_b: syr827@40 { |
|---|
| 367 | | - compatible = "silergy,syr827"; |
|---|
| 368 | | - reg = <0x40>; |
|---|
| 369 | | - regulator-compatible = "fan53555-reg"; |
|---|
| 370 | | - pinctrl-0 = <&vsel1_gpio>; |
|---|
| 371 | | - vsel-gpios = <&gpio1 RK_PC1 GPIO_ACTIVE_HIGH>; |
|---|
| 372 | | - regulator-name = "vdd_cpu_b"; |
|---|
| 373 | | - regulator-min-microvolt = <712500>; |
|---|
| 374 | | - regulator-max-microvolt = <1500000>; |
|---|
| 375 | | - regulator-ramp-delay = <1000>; |
|---|
| 376 | | - fcs,suspend-voltage-selector = <1>; |
|---|
| 377 | | - regulator-always-on; |
|---|
| 378 | | - regulator-boot-on; |
|---|
| 379 | | - vin-supply = <&vcc_sys>; |
|---|
| 380 | | - regulator-state-mem { |
|---|
| 381 | | - regulator-off-in-suspend; |
|---|
| 382 | | - }; |
|---|
| 383 | | - }; |
|---|
| 384 | | - |
|---|
| 385 | | - vdd_gpu: syr828@41 { |
|---|
| 386 | | - compatible = "silergy,syr828"; |
|---|
| 387 | | - reg = <0x41>; |
|---|
| 388 | | - regulator-compatible = "fan53555-reg"; |
|---|
| 389 | | - pinctrl-0 = <&vsel2_gpio>; |
|---|
| 390 | | - vsel-gpios = <&gpio1 RK_PB6 GPIO_ACTIVE_HIGH>; |
|---|
| 391 | | - regulator-name = "vdd_gpu"; |
|---|
| 392 | | - regulator-min-microvolt = <712500>; |
|---|
| 393 | | - regulator-max-microvolt = <1500000>; |
|---|
| 394 | | - regulator-ramp-delay = <1000>; |
|---|
| 395 | | - fcs,suspend-voltage-selector = <1>; |
|---|
| 396 | | - regulator-boot-on; |
|---|
| 397 | | - vin-supply = <&vcc_sys>; |
|---|
| 398 | | - regulator-initial-mode = <1>; /* 1:force PWM 2:auto */ |
|---|
| 399 | | - regulator-state-mem { |
|---|
| 400 | | - regulator-off-in-suspend; |
|---|
| 401 | | - }; |
|---|
| 402 | | - }; |
|---|
| 403 | | - |
|---|
| 404 | | - rk808: pmic@1b { |
|---|
| 405 | | - compatible = "rockchip,rk808"; |
|---|
| 406 | | - reg = <0x1b>; |
|---|
| 407 | | - interrupt-parent = <&gpio1>; |
|---|
| 408 | | - interrupts = <21 IRQ_TYPE_LEVEL_LOW>; |
|---|
| 409 | | - pinctrl-names = "default"; |
|---|
| 410 | | - pinctrl-0 = <&pmic_int_l>; |
|---|
| 411 | | - rockchip,system-power-controller; |
|---|
| 412 | | - wakeup-source; |
|---|
| 413 | | - #clock-cells = <1>; |
|---|
| 414 | | - clock-output-names = "xin32k", "rk808-clkout2"; |
|---|
| 415 | | - |
|---|
| 416 | | - vcc1-supply = <&vcc_sys>; |
|---|
| 417 | | - vcc2-supply = <&vcc_sys>; |
|---|
| 418 | | - vcc3-supply = <&vcc_sys>; |
|---|
| 419 | | - vcc4-supply = <&vcc_sys>; |
|---|
| 420 | | - vcc6-supply = <&vcc_sys>; |
|---|
| 421 | | - vcc7-supply = <&vcc_sys>; |
|---|
| 422 | | - vcc8-supply = <&vcc3v3_sys>; |
|---|
| 423 | | - vcc9-supply = <&vcc_sys>; |
|---|
| 424 | | - vcc10-supply = <&vcc_sys>; |
|---|
| 425 | | - vcc11-supply = <&vcc_sys>; |
|---|
| 426 | | - vcc12-supply = <&vcc3v3_sys>; |
|---|
| 427 | | - vddio-supply = <&vcc_1v8>; |
|---|
| 428 | | - |
|---|
| 429 | | - regulators { |
|---|
| 430 | | - vdd_center: DCDC_REG1 { |
|---|
| 431 | | - regulator-name = "vdd_center"; |
|---|
| 432 | | - regulator-min-microvolt = <750000>; |
|---|
| 433 | | - regulator-max-microvolt = <1350000>; |
|---|
| 434 | | - regulator-ramp-delay = <6001>; |
|---|
| 435 | | - regulator-always-on; |
|---|
| 436 | | - regulator-boot-on; |
|---|
| 437 | | - regulator-state-mem { |
|---|
| 438 | | - regulator-off-in-suspend; |
|---|
| 439 | | - }; |
|---|
| 440 | | - }; |
|---|
| 441 | | - |
|---|
| 442 | | - vdd_cpu_l: DCDC_REG2 { |
|---|
| 443 | | - regulator-name = "vdd_cpu_l"; |
|---|
| 444 | | - regulator-min-microvolt = <750000>; |
|---|
| 445 | | - regulator-max-microvolt = <1350000>; |
|---|
| 446 | | - regulator-ramp-delay = <6001>; |
|---|
| 447 | | - regulator-always-on; |
|---|
| 448 | | - regulator-boot-on; |
|---|
| 449 | | - regulator-state-mem { |
|---|
| 450 | | - regulator-off-in-suspend; |
|---|
| 451 | | - }; |
|---|
| 452 | | - }; |
|---|
| 453 | | - |
|---|
| 454 | | - vcc_ddr: DCDC_REG3 { |
|---|
| 455 | | - regulator-name = "vcc_ddr"; |
|---|
| 456 | | - regulator-always-on; |
|---|
| 457 | | - regulator-boot-on; |
|---|
| 458 | | - regulator-state-mem { |
|---|
| 459 | | - regulator-on-in-suspend; |
|---|
| 460 | | - }; |
|---|
| 461 | | - }; |
|---|
| 462 | | - |
|---|
| 463 | | - vcc_1v8: DCDC_REG4 { |
|---|
| 464 | | - regulator-name = "vcc_1v8"; |
|---|
| 465 | | - regulator-min-microvolt = <1800000>; |
|---|
| 466 | | - regulator-max-microvolt = <1800000>; |
|---|
| 467 | | - regulator-always-on; |
|---|
| 468 | | - regulator-boot-on; |
|---|
| 469 | | - regulator-state-mem { |
|---|
| 470 | | - regulator-on-in-suspend; |
|---|
| 471 | | - regulator-suspend-microvolt = <1800000>; |
|---|
| 472 | | - }; |
|---|
| 473 | | - }; |
|---|
| 474 | | - |
|---|
| 475 | | - vcc1v8_dvp: LDO_REG1 { |
|---|
| 476 | | - regulator-name = "vcc1v8_dvp"; |
|---|
| 477 | | - regulator-min-microvolt = <1800000>; |
|---|
| 478 | | - regulator-max-microvolt = <1800000>; |
|---|
| 479 | | - regulator-boot-on; |
|---|
| 480 | | - regulator-state-mem { |
|---|
| 481 | | - regulator-on-in-suspend; |
|---|
| 482 | | - regulator-suspend-microvolt = <1800000>; |
|---|
| 483 | | - }; |
|---|
| 484 | | - }; |
|---|
| 485 | | - |
|---|
| 486 | | - vcc3v0_touch: LDO_REG2 { |
|---|
| 487 | | - regulator-name = "vcc3v0_touch"; |
|---|
| 488 | | - regulator-min-microvolt = <3000000>; |
|---|
| 489 | | - regulator-max-microvolt = <3000000>; |
|---|
| 490 | | - regulator-boot-on; |
|---|
| 491 | | - regulator-state-mem { |
|---|
| 492 | | - regulator-on-in-suspend; |
|---|
| 493 | | - regulator-suspend-microvolt = <3000000>; |
|---|
| 494 | | - }; |
|---|
| 495 | | - }; |
|---|
| 496 | | - |
|---|
| 497 | | - vcc1v8_pmu: LDO_REG3 { |
|---|
| 498 | | - regulator-name = "vcc1v8_pmu"; |
|---|
| 499 | | - regulator-min-microvolt = <1800000>; |
|---|
| 500 | | - regulator-max-microvolt = <1800000>; |
|---|
| 501 | | - regulator-always-on; |
|---|
| 502 | | - regulator-boot-on; |
|---|
| 503 | | - regulator-state-mem { |
|---|
| 504 | | - regulator-on-in-suspend; |
|---|
| 505 | | - regulator-suspend-microvolt = <1800000>; |
|---|
| 506 | | - }; |
|---|
| 507 | | - }; |
|---|
| 508 | | - |
|---|
| 509 | | - vcc_sd: LDO_REG4 { |
|---|
| 510 | | - regulator-name = "vcc_sd"; |
|---|
| 511 | | - regulator-min-microvolt = <1800000>; |
|---|
| 512 | | - regulator-max-microvolt = <3300000>; |
|---|
| 513 | | - regulator-boot-on; |
|---|
| 514 | | - regulator-state-mem { |
|---|
| 515 | | - regulator-on-in-suspend; |
|---|
| 516 | | - regulator-suspend-microvolt = <3300000>; |
|---|
| 517 | | - }; |
|---|
| 518 | | - }; |
|---|
| 519 | | - |
|---|
| 520 | | - vcca3v0_codec: LDO_REG5 { |
|---|
| 521 | | - regulator-name = "vcca3v0_codec"; |
|---|
| 522 | | - regulator-min-microvolt = <3000000>; |
|---|
| 523 | | - regulator-max-microvolt = <3000000>; |
|---|
| 524 | | - regulator-always-on; |
|---|
| 525 | | - regulator-boot-on; |
|---|
| 526 | | - regulator-state-mem { |
|---|
| 527 | | - regulator-on-in-suspend; |
|---|
| 528 | | - regulator-suspend-microvolt = <3000000>; |
|---|
| 529 | | - }; |
|---|
| 530 | | - }; |
|---|
| 531 | | - |
|---|
| 532 | | - vcc_1v5: LDO_REG6 { |
|---|
| 533 | | - regulator-name = "vcc_1v5"; |
|---|
| 534 | | - regulator-min-microvolt = <1500000>; |
|---|
| 535 | | - regulator-max-microvolt = <1500000>; |
|---|
| 536 | | - regulator-always-on; |
|---|
| 537 | | - regulator-boot-on; |
|---|
| 538 | | - regulator-state-mem { |
|---|
| 539 | | - regulator-on-in-suspend; |
|---|
| 540 | | - regulator-suspend-microvolt = <1500000>; |
|---|
| 541 | | - }; |
|---|
| 542 | | - }; |
|---|
| 543 | | - |
|---|
| 544 | | - vcca1v8_codec: LDO_REG7 { |
|---|
| 545 | | - regulator-name = "vcca1v8_codec"; |
|---|
| 546 | | - regulator-min-microvolt = <1800000>; |
|---|
| 547 | | - regulator-max-microvolt = <1800000>; |
|---|
| 548 | | - regulator-always-on; |
|---|
| 549 | | - regulator-boot-on; |
|---|
| 550 | | - regulator-state-mem { |
|---|
| 551 | | - regulator-on-in-suspend; |
|---|
| 552 | | - regulator-suspend-microvolt = <1800000>; |
|---|
| 553 | | - }; |
|---|
| 554 | | - }; |
|---|
| 555 | | - |
|---|
| 556 | | - vcc_3v0: LDO_REG8 { |
|---|
| 557 | | - regulator-name = "vcc_3v0"; |
|---|
| 558 | | - regulator-min-microvolt = <3000000>; |
|---|
| 559 | | - regulator-max-microvolt = <3000000>; |
|---|
| 560 | | - regulator-always-on; |
|---|
| 561 | | - regulator-boot-on; |
|---|
| 562 | | - regulator-state-mem { |
|---|
| 563 | | - regulator-on-in-suspend; |
|---|
| 564 | | - regulator-suspend-microvolt = <3000000>; |
|---|
| 565 | | - }; |
|---|
| 566 | | - }; |
|---|
| 567 | | - |
|---|
| 568 | | - vcc3v3_s3: SWITCH_REG1 { |
|---|
| 569 | | - regulator-name = "vcc3v3_s3"; |
|---|
| 570 | | - regulator-always-on; |
|---|
| 571 | | - regulator-boot-on; |
|---|
| 572 | | - regulator-state-mem { |
|---|
| 573 | | - regulator-on-in-suspend; |
|---|
| 574 | | - }; |
|---|
| 575 | | - }; |
|---|
| 576 | | - |
|---|
| 577 | | - vcc3v3_s0: SWITCH_REG2 { |
|---|
| 578 | | - regulator-name = "vcc3v3_s0"; |
|---|
| 579 | | - regulator-always-on; |
|---|
| 580 | | - regulator-boot-on; |
|---|
| 581 | | - regulator-state-mem { |
|---|
| 582 | | - regulator-on-in-suspend; |
|---|
| 583 | | - }; |
|---|
| 584 | | - }; |
|---|
| 585 | | - }; |
|---|
| 586 | | - }; |
|---|
| 587 | | -}; |
|---|
| 588 | | - |
|---|
| 589 | | -&i2s0 { |
|---|
| 590 | | - status = "okay"; |
|---|
| 591 | | - rockchip,i2s-broken-burst-len; |
|---|
| 592 | | - rockchip,playback-channels = <8>; |
|---|
| 593 | | - rockchip,capture-channels = <8>; |
|---|
| 594 | | - #sound-dai-cells = <0>; |
|---|
| 12 | + model = "Pine64 RockPro64 v2.1"; |
|---|
| 13 | + compatible = "pine64,rockpro64-v2.1", "pine64,rockpro64", "rockchip,rk3399"; |
|---|
| 595 | 14 | }; |
|---|
| 596 | 15 | |
|---|
| 597 | 16 | &i2c1 { |
|---|
| 598 | | - status = "okay"; |
|---|
| 599 | | - i2c-scl-rising-time-ns = <168>; |
|---|
| 600 | | - i2c-scl-falling-time-ns = <4>; |
|---|
| 601 | | - |
|---|
| 602 | | - es8316: es8316@10 { |
|---|
| 603 | | - #sound-dai-cells = <0>; |
|---|
| 17 | + es8316: codec@11 { |
|---|
| 604 | 18 | compatible = "everest,es8316"; |
|---|
| 605 | | - reg = <0x10>; |
|---|
| 19 | + reg = <0x11>; |
|---|
| 606 | 20 | clocks = <&cru SCLK_I2S_8CH_OUT>; |
|---|
| 607 | 21 | clock-names = "mclk"; |
|---|
| 608 | | - pinctrl-names = "default"; |
|---|
| 609 | | - pinctrl-0 = <&i2s_8ch_mclk>; |
|---|
| 610 | | - hp-det-gpio = <&gpio1 RK_PB5 GPIO_ACTIVE_LOW>; |
|---|
| 611 | | - }; |
|---|
| 612 | | -}; |
|---|
| 22 | + #sound-dai-cells = <0>; |
|---|
| 613 | 23 | |
|---|
| 614 | | -&i2c4 { |
|---|
| 615 | | - status = "okay"; |
|---|
| 616 | | - fusb0: fusb30x@22 { |
|---|
| 617 | | - compatible = "fairchild,fusb302"; |
|---|
| 618 | | - reg = <0x22>; |
|---|
| 619 | | - pinctrl-names = "default"; |
|---|
| 620 | | - pinctrl-0 = <&fusb0_int>; |
|---|
| 621 | | - vbus-5v-gpios = <&gpio1 RK_PA3 GPIO_ACTIVE_HIGH>; |
|---|
| 622 | | - int-n-gpios = <&gpio1 RK_PA2 GPIO_ACTIVE_HIGH>; |
|---|
| 623 | | - status = "okay"; |
|---|
| 624 | | - }; |
|---|
| 625 | | -}; |
|---|
| 626 | | - |
|---|
| 627 | | -&i2s1 { |
|---|
| 628 | | - status = "okay"; |
|---|
| 629 | | - rockchip,i2s-broken-burst-len; |
|---|
| 630 | | - rockchip,playback-channels = <8>; |
|---|
| 631 | | - rockchip,capture-channels = <8>; |
|---|
| 632 | | - #sound-dai-cells = <0>; |
|---|
| 633 | | -}; |
|---|
| 634 | | - |
|---|
| 635 | | -&i2s2 { |
|---|
| 636 | | - #sound-dai-cells = <0>; |
|---|
| 637 | | - status = "okay"; |
|---|
| 638 | | -}; |
|---|
| 639 | | - |
|---|
| 640 | | -&gmac { |
|---|
| 641 | | - phy-supply = <&vcc_phy>; |
|---|
| 642 | | - phy-mode = "rgmii"; |
|---|
| 643 | | - clock_in_out = "input"; |
|---|
| 644 | | - snps,reset-gpio = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>; |
|---|
| 645 | | - snps,reset-active-low; |
|---|
| 646 | | - snps,reset-delays-us = <0 10000 50000>; |
|---|
| 647 | | - assigned-clocks = <&cru SCLK_RMII_SRC>; |
|---|
| 648 | | - assigned-clock-parents = <&clkin_gmac>; |
|---|
| 649 | | - pinctrl-names = "default", "sleep"; |
|---|
| 650 | | - pinctrl-0 = <&rgmii_pins>; |
|---|
| 651 | | - pinctrl-1 = <&rgmii_sleep_pins>; |
|---|
| 652 | | - tx_delay = <0x28>; |
|---|
| 653 | | - rx_delay = <0x20>; |
|---|
| 654 | | - status = "okay"; |
|---|
| 655 | | -}; |
|---|
| 656 | | - |
|---|
| 657 | | -&gpu { |
|---|
| 658 | | - status = "okay"; |
|---|
| 659 | | - mali-supply = <&vdd_gpu>; |
|---|
| 660 | | -}; |
|---|
| 661 | | - |
|---|
| 662 | | -&hdmi { |
|---|
| 663 | | - status = "okay"; |
|---|
| 664 | | -}; |
|---|
| 665 | | - |
|---|
| 666 | | -&io_domains { |
|---|
| 667 | | - status = "okay"; |
|---|
| 668 | | - |
|---|
| 669 | | - bt656-supply = <&vcc1v8_s0>; /* bt656_gpio2ab_ms */ |
|---|
| 670 | | - audio-supply = <&vcc1v8_s0>; /* audio_gpio3d4a_ms */ |
|---|
| 671 | | - sdmmc-supply = <&vcc_sd>; /* sdmmc_gpio4b_ms */ |
|---|
| 672 | | - gpio1830-supply = <&vcc_3v0>; /* gpio1833_gpio4cd_ms */ |
|---|
| 673 | | -}; |
|---|
| 674 | | - |
|---|
| 675 | | -&saradc { |
|---|
| 676 | | - status = "okay"; |
|---|
| 677 | | -}; |
|---|
| 678 | | - |
|---|
| 679 | | -&sdmmc { |
|---|
| 680 | | - clock-frequency = <50000000>; |
|---|
| 681 | | - clock-freq-min-max = <400000 150000000>; |
|---|
| 682 | | - supports-sd; |
|---|
| 683 | | - bus-width = <4>; |
|---|
| 684 | | - cap-mmc-highspeed; |
|---|
| 685 | | - cap-sd-highspeed; |
|---|
| 686 | | - disable-wp; |
|---|
| 687 | | - num-slots = <1>; |
|---|
| 688 | | - vqmmc-supply = <&vcc_sd>; |
|---|
| 689 | | - pinctrl-names = "default"; |
|---|
| 690 | | - pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>; |
|---|
| 691 | | - card-detect-delay = <800>; |
|---|
| 692 | | - status = "okay"; |
|---|
| 693 | | -}; |
|---|
| 694 | | - |
|---|
| 695 | | -&sdio0 { |
|---|
| 696 | | - clock-frequency = <50000000>; |
|---|
| 697 | | - clock-freq-min-max = <200000 50000000>; |
|---|
| 698 | | - supports-sdio; |
|---|
| 699 | | - bus-width = <4>; |
|---|
| 700 | | - disable-wp; |
|---|
| 701 | | - cap-sd-highspeed; |
|---|
| 702 | | - cap-sdio-irq; |
|---|
| 703 | | - keep-power-in-suspend; |
|---|
| 704 | | - mmc-pwrseq = <&sdio_pwrseq>; |
|---|
| 705 | | - non-removable; |
|---|
| 706 | | - num-slots = <1>; |
|---|
| 707 | | - pinctrl-names = "default"; |
|---|
| 708 | | - pinctrl-0 = <&sdio0_bus4 &sdio0_cmd &sdio0_clk>; |
|---|
| 709 | | - sd-uhs-sdr104; |
|---|
| 710 | | - status = "okay"; |
|---|
| 711 | | -}; |
|---|
| 712 | | - |
|---|
| 713 | | -&sdhci { |
|---|
| 714 | | - bus-width = <8>; |
|---|
| 715 | | - mmc-hs200-1_8v; |
|---|
| 716 | | - mmc-hs400-1_8v; |
|---|
| 717 | | - keep-power-in-suspend; |
|---|
| 718 | | - status = "okay"; |
|---|
| 719 | | -}; |
|---|
| 720 | | - |
|---|
| 721 | | -&spdif { |
|---|
| 722 | | - status = "disabled"; |
|---|
| 723 | | - pinctrl-0 = <&spdif_bus_1>; |
|---|
| 724 | | - #sound-dai-cells = <0>; |
|---|
| 725 | | -}; |
|---|
| 726 | | - |
|---|
| 727 | | -&spi1 { |
|---|
| 728 | | - status = "okay"; |
|---|
| 729 | | - flash@0 { |
|---|
| 730 | | - compatible = "gigadevice,gd25q128", "jedec,spi-nor"; |
|---|
| 731 | | - #address-cells = <1>; |
|---|
| 732 | | - #size-cells = <1>; |
|---|
| 733 | | - reg = <0>; |
|---|
| 734 | | - m25p,fast-read; |
|---|
| 735 | | - spi-max-frequency = <24000000>; |
|---|
| 736 | | - }; |
|---|
| 737 | | -}; |
|---|
| 738 | | - |
|---|
| 739 | | -&tcphy0 { |
|---|
| 740 | | - extcon = <&fusb0>; |
|---|
| 741 | | - status = "okay"; |
|---|
| 742 | | -}; |
|---|
| 743 | | - |
|---|
| 744 | | -&tcphy1 { |
|---|
| 745 | | - status = "okay"; |
|---|
| 746 | | -}; |
|---|
| 747 | | - |
|---|
| 748 | | -&tsadc { |
|---|
| 749 | | - /* tshut mode 0:CRU 1:GPIO */ |
|---|
| 750 | | - rockchip,hw-tshut-mode = <1>; |
|---|
| 751 | | - /* tshut polarity 0:LOW 1:HIGH */ |
|---|
| 752 | | - rockchip,hw-tshut-polarity = <1>; |
|---|
| 753 | | - rockchip,hw-tshut-temp = <110000>; |
|---|
| 754 | | - status = "okay"; |
|---|
| 755 | | -}; |
|---|
| 756 | | - |
|---|
| 757 | | -&u2phy0 { |
|---|
| 758 | | - status = "okay"; |
|---|
| 759 | | - extcon = <&fusb0>; |
|---|
| 760 | | - |
|---|
| 761 | | - u2phy0_otg: otg-port { |
|---|
| 762 | | - status = "okay"; |
|---|
| 763 | | - }; |
|---|
| 764 | | - |
|---|
| 765 | | - u2phy0_host: host-port { |
|---|
| 766 | | - phy-supply = <&vcc5v0_host>; |
|---|
| 767 | | - status = "okay"; |
|---|
| 768 | | - }; |
|---|
| 769 | | -}; |
|---|
| 770 | | - |
|---|
| 771 | | -&u2phy1 { |
|---|
| 772 | | - status = "okay"; |
|---|
| 773 | | - |
|---|
| 774 | | - u2phy1_otg: otg-port { |
|---|
| 775 | | - status = "okay"; |
|---|
| 776 | | - }; |
|---|
| 777 | | - |
|---|
| 778 | | - u2phy1_host: host-port { |
|---|
| 779 | | - phy-supply = <&vcc5v0_host>; |
|---|
| 780 | | - status = "okay"; |
|---|
| 781 | | - }; |
|---|
| 782 | | -}; |
|---|
| 783 | | - |
|---|
| 784 | | -&uart0 { |
|---|
| 785 | | - pinctrl-names = "default"; |
|---|
| 786 | | - pinctrl-0 = <&uart0_xfer &uart0_cts>; |
|---|
| 787 | | - status = "disabled"; |
|---|
| 788 | | -}; |
|---|
| 789 | | - |
|---|
| 790 | | -&uart2 { |
|---|
| 791 | | - status = "okay"; |
|---|
| 792 | | -}; |
|---|
| 793 | | - |
|---|
| 794 | | -&usb_host0_ehci { |
|---|
| 795 | | - status = "okay"; |
|---|
| 796 | | -}; |
|---|
| 797 | | - |
|---|
| 798 | | -&usb_host0_ohci { |
|---|
| 799 | | - status = "okay"; |
|---|
| 800 | | -}; |
|---|
| 801 | | - |
|---|
| 802 | | -&usb_host1_ehci { |
|---|
| 803 | | - status = "okay"; |
|---|
| 804 | | -}; |
|---|
| 805 | | - |
|---|
| 806 | | -&usb_host1_ohci { |
|---|
| 807 | | - status = "okay"; |
|---|
| 808 | | -}; |
|---|
| 809 | | - |
|---|
| 810 | | -&usbdrd3_0 { |
|---|
| 811 | | - status = "okay"; |
|---|
| 812 | | -}; |
|---|
| 813 | | - |
|---|
| 814 | | -&usbdrd_dwc3_0 { |
|---|
| 815 | | - dr_mode = "otg"; |
|---|
| 816 | | - status = "okay"; |
|---|
| 817 | | - extcon = <&fusb0>; |
|---|
| 818 | | -}; |
|---|
| 819 | | - |
|---|
| 820 | | -&usbdrd3_1 { |
|---|
| 821 | | - status = "okay"; |
|---|
| 822 | | -}; |
|---|
| 823 | | - |
|---|
| 824 | | -&usbdrd_dwc3_1 { |
|---|
| 825 | | - dr_mode = "host"; |
|---|
| 826 | | - status = "okay"; |
|---|
| 827 | | -}; |
|---|
| 828 | | - |
|---|
| 829 | | -&pwm2 { |
|---|
| 830 | | - status = "okay"; |
|---|
| 831 | | - pinctrl-names = "active"; |
|---|
| 832 | | - pinctrl-0 = <&pwm2_pin_pull_down>; |
|---|
| 833 | | -}; |
|---|
| 834 | | - |
|---|
| 835 | | -&pwm3 { |
|---|
| 836 | | - status = "okay"; |
|---|
| 837 | | - |
|---|
| 838 | | - interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH 0>; |
|---|
| 839 | | - compatible = "rockchip,remotectl-pwm"; |
|---|
| 840 | | - remote_pwm_id = <3>; |
|---|
| 841 | | - handle_cpu_id = <1>; |
|---|
| 842 | | - remote_support_psci = <1>; |
|---|
| 843 | | - |
|---|
| 844 | | - ir_key1 { |
|---|
| 845 | | - rockchip,usercode = <0x4040>; |
|---|
| 846 | | - rockchip,key_table = |
|---|
| 847 | | - <0xf2 KEY_REPLY>, |
|---|
| 848 | | - <0xba KEY_BACK>, |
|---|
| 849 | | - <0xf4 KEY_UP>, |
|---|
| 850 | | - <0xf1 KEY_DOWN>, |
|---|
| 851 | | - <0xef KEY_LEFT>, |
|---|
| 852 | | - <0xee KEY_RIGHT>, |
|---|
| 853 | | - <0xbd KEY_HOME>, |
|---|
| 854 | | - <0xea KEY_VOLUMEUP>, |
|---|
| 855 | | - <0xe3 KEY_VOLUMEDOWN>, |
|---|
| 856 | | - <0xe2 KEY_SEARCH>, |
|---|
| 857 | | - <0xb2 KEY_POWER>, |
|---|
| 858 | | - <0xbc KEY_MUTE>, |
|---|
| 859 | | - <0xec KEY_MENU>, |
|---|
| 860 | | - <0xbf 0x190>, |
|---|
| 861 | | - <0xe0 0x191>, |
|---|
| 862 | | - <0xe1 0x192>, |
|---|
| 863 | | - <0xe9 183>, |
|---|
| 864 | | - <0xe6 248>, |
|---|
| 865 | | - <0xe8 185>, |
|---|
| 866 | | - <0xe7 186>, |
|---|
| 867 | | - <0xf0 388>, |
|---|
| 868 | | - <0xbe 0x175>; |
|---|
| 869 | | - }; |
|---|
| 870 | | - |
|---|
| 871 | | - ir_key2 { |
|---|
| 872 | | - rockchip,usercode = <0xff00>; |
|---|
| 873 | | - rockchip,key_table = |
|---|
| 874 | | - <0xf9 KEY_HOME>, |
|---|
| 875 | | - <0xbf KEY_BACK>, |
|---|
| 876 | | - <0xfb KEY_MENU>, |
|---|
| 877 | | - <0xaa KEY_REPLY>, |
|---|
| 878 | | - <0xb9 KEY_UP>, |
|---|
| 879 | | - <0xe9 KEY_DOWN>, |
|---|
| 880 | | - <0xb8 KEY_LEFT>, |
|---|
| 881 | | - <0xea KEY_RIGHT>, |
|---|
| 882 | | - <0xeb KEY_VOLUMEDOWN>, |
|---|
| 883 | | - <0xef KEY_VOLUMEUP>, |
|---|
| 884 | | - <0xf7 KEY_MUTE>, |
|---|
| 885 | | - <0xe7 KEY_POWER>, |
|---|
| 886 | | - <0xfc KEY_POWER>, |
|---|
| 887 | | - <0xa9 KEY_VOLUMEDOWN>, |
|---|
| 888 | | - <0xa8 KEY_VOLUMEDOWN>, |
|---|
| 889 | | - <0xe0 KEY_VOLUMEDOWN>, |
|---|
| 890 | | - <0xa5 KEY_VOLUMEDOWN>, |
|---|
| 891 | | - <0xab 183>, |
|---|
| 892 | | - <0xb7 388>, |
|---|
| 893 | | - <0xe8 388>, |
|---|
| 894 | | - <0xf8 184>, |
|---|
| 895 | | - <0xaf 185>, |
|---|
| 896 | | - <0xed KEY_VOLUMEDOWN>, |
|---|
| 897 | | - <0xee 186>, |
|---|
| 898 | | - <0xb3 KEY_VOLUMEDOWN>, |
|---|
| 899 | | - <0xf1 KEY_VOLUMEDOWN>, |
|---|
| 900 | | - <0xf2 KEY_VOLUMEDOWN>, |
|---|
| 901 | | - <0xf3 KEY_SEARCH>, |
|---|
| 902 | | - <0xb4 KEY_VOLUMEDOWN>, |
|---|
| 903 | | - <0xbe KEY_SEARCH>; |
|---|
| 904 | | - }; |
|---|
| 905 | | - |
|---|
| 906 | | - ir_key3 { |
|---|
| 907 | | - rockchip,usercode = <0x1dcc>; |
|---|
| 908 | | - rockchip,key_table = |
|---|
| 909 | | - <0xee KEY_REPLY>, |
|---|
| 910 | | - <0xf0 KEY_BACK>, |
|---|
| 911 | | - <0xf8 KEY_UP>, |
|---|
| 912 | | - <0xbb KEY_DOWN>, |
|---|
| 913 | | - <0xef KEY_LEFT>, |
|---|
| 914 | | - <0xed KEY_RIGHT>, |
|---|
| 915 | | - <0xfc KEY_HOME>, |
|---|
| 916 | | - <0xf1 KEY_VOLUMEUP>, |
|---|
| 917 | | - <0xfd KEY_VOLUMEDOWN>, |
|---|
| 918 | | - <0xb7 KEY_SEARCH>, |
|---|
| 919 | | - <0xff KEY_POWER>, |
|---|
| 920 | | - <0xf3 KEY_MUTE>, |
|---|
| 921 | | - <0xbf KEY_MENU>, |
|---|
| 922 | | - <0xf9 0x191>, |
|---|
| 923 | | - <0xf5 0x192>, |
|---|
| 924 | | - <0xb3 388>, |
|---|
| 925 | | - <0xbe KEY_1>, |
|---|
| 926 | | - <0xba KEY_2>, |
|---|
| 927 | | - <0xb2 KEY_3>, |
|---|
| 928 | | - <0xbd KEY_4>, |
|---|
| 929 | | - <0xf9 KEY_5>, |
|---|
| 930 | | - <0xb1 KEY_6>, |
|---|
| 931 | | - <0xfc KEY_7>, |
|---|
| 932 | | - <0xf8 KEY_8>, |
|---|
| 933 | | - <0xb0 KEY_9>, |
|---|
| 934 | | - <0xb6 KEY_0>, |
|---|
| 935 | | - <0xb5 KEY_BACKSPACE>; |
|---|
| 936 | | - }; |
|---|
| 937 | | -}; |
|---|
| 938 | | - |
|---|
| 939 | | -&pinctrl { |
|---|
| 940 | | - fusb30x { |
|---|
| 941 | | - fusb0_int: fusb0-int { |
|---|
| 942 | | - rockchip,pins = |
|---|
| 943 | | - <1 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up>; |
|---|
| 24 | + port { |
|---|
| 25 | + es8316_p0_0: endpoint { |
|---|
| 26 | + remote-endpoint = <&i2s1_p0_0>; |
|---|
| 27 | + }; |
|---|
| 944 | 28 | }; |
|---|
| 945 | 29 | }; |
|---|
| 946 | | - |
|---|
| 947 | | - gmac { |
|---|
| 948 | | - rgmii_sleep_pins: rgmii-sleep-pins { |
|---|
| 949 | | - rockchip,pins = |
|---|
| 950 | | - <3 RK_PB7 RK_FUNC_GPIO &pcfg_output_low>; |
|---|
| 951 | | - }; |
|---|
| 952 | | - }; |
|---|
| 953 | | - |
|---|
| 954 | | - pcie { |
|---|
| 955 | | - pcie_pwr_en: pcie-pwr-en { |
|---|
| 956 | | - rockchip,pins = |
|---|
| 957 | | - <1 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>; |
|---|
| 958 | | - }; |
|---|
| 959 | | - pcie_3g_drv: pcie-3g-drv { |
|---|
| 960 | | - rockchip,pins = |
|---|
| 961 | | - <0 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up>; |
|---|
| 962 | | - }; |
|---|
| 963 | | - }; |
|---|
| 964 | | - |
|---|
| 965 | | - pmic { |
|---|
| 966 | | - pmic_int_l: pmic-int-l { |
|---|
| 967 | | - rockchip,pins = |
|---|
| 968 | | - <1 RK_PC5 RK_FUNC_GPIO &pcfg_pull_up>; |
|---|
| 969 | | - }; |
|---|
| 970 | | - |
|---|
| 971 | | - vsel1_gpio: vsel1-gpio { |
|---|
| 972 | | - rockchip,pins = |
|---|
| 973 | | - <1 RK_PC1 RK_FUNC_GPIO &pcfg_pull_down>; |
|---|
| 974 | | - }; |
|---|
| 975 | | - |
|---|
| 976 | | - vsel2_gpio: vsel2-gpio { |
|---|
| 977 | | - rockchip,pins = |
|---|
| 978 | | - <1 RK_PB6 RK_FUNC_GPIO &pcfg_pull_down>; |
|---|
| 979 | | - }; |
|---|
| 980 | | - }; |
|---|
| 981 | | - |
|---|
| 982 | | - sdio-pwrseq { |
|---|
| 983 | | - wifi_enable_h: wifi-enable-h { |
|---|
| 984 | | - rockchip,pins = |
|---|
| 985 | | - <0 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>; |
|---|
| 986 | | - }; |
|---|
| 987 | | - }; |
|---|
| 988 | | - |
|---|
| 989 | | - sdio0 { |
|---|
| 990 | | - sdio0_bus1: sdio0-bus1 { |
|---|
| 991 | | - rockchip,pins = |
|---|
| 992 | | - <2 RK_PC4 1 &pcfg_pull_up_20ma>; |
|---|
| 993 | | - }; |
|---|
| 994 | | - |
|---|
| 995 | | - sdio0_bus4: sdio0-bus4 { |
|---|
| 996 | | - rockchip,pins = |
|---|
| 997 | | - <2 RK_PC4 1 &pcfg_pull_up_20ma>, |
|---|
| 998 | | - <2 RK_PC5 1 &pcfg_pull_up_20ma>, |
|---|
| 999 | | - <2 RK_PC6 1 &pcfg_pull_up_20ma>, |
|---|
| 1000 | | - <2 RK_PC7 1 &pcfg_pull_up_20ma>; |
|---|
| 1001 | | - }; |
|---|
| 1002 | | - |
|---|
| 1003 | | - sdio0_cmd: sdio0-cmd { |
|---|
| 1004 | | - rockchip,pins = |
|---|
| 1005 | | - <2 RK_PD0 1 &pcfg_pull_up_20ma>; |
|---|
| 1006 | | - }; |
|---|
| 1007 | | - |
|---|
| 1008 | | - sdio0_clk: sdio0-clk { |
|---|
| 1009 | | - rockchip,pins = |
|---|
| 1010 | | - <2 RK_PD1 1 &pcfg_pull_none_20ma>; |
|---|
| 1011 | | - }; |
|---|
| 1012 | | - }; |
|---|
| 1013 | | - |
|---|
| 1014 | | - sdmmc { |
|---|
| 1015 | | - sdmmc_bus1: sdmmc-bus1 { |
|---|
| 1016 | | - rockchip,pins = |
|---|
| 1017 | | - <4 RK_PB0 1 &pcfg_pull_up_8ma>; |
|---|
| 1018 | | - }; |
|---|
| 1019 | | - |
|---|
| 1020 | | - sdmmc_bus4: sdmmc-bus4 { |
|---|
| 1021 | | - rockchip,pins = |
|---|
| 1022 | | - <4 RK_PB0 1 &pcfg_pull_up_8ma>, |
|---|
| 1023 | | - <4 RK_PB1 1 &pcfg_pull_up_8ma>, |
|---|
| 1024 | | - <4 RK_PB2 1 &pcfg_pull_up_8ma>, |
|---|
| 1025 | | - <4 RK_PB3 1 &pcfg_pull_up_8ma>; |
|---|
| 1026 | | - }; |
|---|
| 1027 | | - |
|---|
| 1028 | | - sdmmc_clk: sdmmc-clk { |
|---|
| 1029 | | - rockchip,pins = |
|---|
| 1030 | | - <4 RK_PB4 1 &pcfg_pull_none_18ma>; |
|---|
| 1031 | | - }; |
|---|
| 1032 | | - |
|---|
| 1033 | | - sdmmc_cmd: sdmmc-cmd { |
|---|
| 1034 | | - rockchip,pins = |
|---|
| 1035 | | - <4 RK_PB5 1 &pcfg_pull_up_8ma>; |
|---|
| 1036 | | - }; |
|---|
| 1037 | | - }; |
|---|
| 1038 | | - |
|---|
| 1039 | | - usb2 { |
|---|
| 1040 | | - host_vbus_drv: host-vbus-drv { |
|---|
| 1041 | | - rockchip,pins = |
|---|
| 1042 | | - <4 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>; |
|---|
| 1043 | | - }; |
|---|
| 1044 | | - }; |
|---|
| 1045 | | - |
|---|
| 1046 | | - wireless-bluetooth { |
|---|
| 1047 | | - uart0_gpios: uart0-gpios { |
|---|
| 1048 | | - rockchip,pins = |
|---|
| 1049 | | - <2 RK_PC3 RK_FUNC_GPIO &pcfg_pull_none>; |
|---|
| 1050 | | - }; |
|---|
| 1051 | | - }; |
|---|
| 1052 | | -}; |
|---|
| 1053 | | - |
|---|
| 1054 | | -&pvtm { |
|---|
| 1055 | | - status = "okay"; |
|---|
| 1056 | | -}; |
|---|
| 1057 | | - |
|---|
| 1058 | | -&pmu_pvtm { |
|---|
| 1059 | | - status = "okay"; |
|---|
| 1060 | | -}; |
|---|
| 1061 | | - |
|---|
| 1062 | | -&pmu_io_domains { |
|---|
| 1063 | | - status = "okay"; |
|---|
| 1064 | | - pmu1830-supply = <&vcc_3v0>; |
|---|
| 1065 | | -}; |
|---|
| 1066 | | - |
|---|
| 1067 | | -&pcie_phy { |
|---|
| 1068 | | - status = "okay"; |
|---|
| 1069 | | -}; |
|---|
| 1070 | | - |
|---|
| 1071 | | -&pcie0 { |
|---|
| 1072 | | - assigned-clocks = <&cru SCLK_PCIEPHY_REF>; |
|---|
| 1073 | | - assigned-clock-parents = <&cru SCLK_PCIEPHY_REF100M>; |
|---|
| 1074 | | - assigned-clock-rates = <100000000>; |
|---|
| 1075 | | - ep-gpios = <&gpio2 RK_PD4 GPIO_ACTIVE_HIGH>; |
|---|
| 1076 | | - num-lanes = <4>; |
|---|
| 1077 | | - max-link-speed = <2>; |
|---|
| 1078 | | - pinctrl-names = "default"; |
|---|
| 1079 | | - pinctrl-0 = <&pcie_clkreqn>; |
|---|
| 1080 | | - vpcie3v3-supply = <&vcc3v3_pcie>; |
|---|
| 1081 | | - status = "okay"; |
|---|
| 1082 | | -}; |
|---|
| 1083 | | - |
|---|
| 1084 | | -&rkvdec { |
|---|
| 1085 | | - status = "okay"; |
|---|
| 1086 | | -}; |
|---|
| 1087 | | - |
|---|
| 1088 | | -&rockchip_suspend { |
|---|
| 1089 | | - status = "okay"; |
|---|
| 1090 | | - rockchip,sleep-debug-en = <0>; |
|---|
| 1091 | | - rockchip,sleep-mode-config = < |
|---|
| 1092 | | - (0 |
|---|
| 1093 | | - | RKPM_SLP_ARMPD |
|---|
| 1094 | | - | RKPM_SLP_PERILPPD |
|---|
| 1095 | | - | RKPM_SLP_DDR_RET |
|---|
| 1096 | | - | RKPM_SLP_PLLPD |
|---|
| 1097 | | - | RKPM_SLP_CENTER_PD |
|---|
| 1098 | | - | RKPM_SLP_AP_PWROFF |
|---|
| 1099 | | - ) |
|---|
| 1100 | | - >; |
|---|
| 1101 | | - rockchip,wakeup-config = < |
|---|
| 1102 | | - (0 |
|---|
| 1103 | | - | RKPM_GPIO_WKUP_EN |
|---|
| 1104 | | - | RKPM_PWM_WKUP_EN |
|---|
| 1105 | | - ) |
|---|
| 1106 | | - >; |
|---|
| 1107 | | - rockchip,pwm-regulator-config = < |
|---|
| 1108 | | - (0 |
|---|
| 1109 | | - | PWM2_REGULATOR_EN |
|---|
| 1110 | | - ) |
|---|
| 1111 | | - >; |
|---|
| 1112 | | - rockchip,power-ctrl = |
|---|
| 1113 | | - <&gpio1 RK_PC1 GPIO_ACTIVE_HIGH>, |
|---|
| 1114 | | - <&gpio1 RK_PB6 GPIO_ACTIVE_HIGH>; |
|---|
| 1115 | | -}; |
|---|
| 1116 | | - |
|---|
| 1117 | | -&vdec_mmu { |
|---|
| 1118 | | - status = "okay"; |
|---|
| 1119 | | -}; |
|---|
| 1120 | | - |
|---|
| 1121 | | -&vpu { |
|---|
| 1122 | | - status = "okay"; |
|---|
| 1123 | | -}; |
|---|
| 1124 | | - |
|---|
| 1125 | | -&vpu_mmu { |
|---|
| 1126 | | - status = "okay"; |
|---|
| 1127 | | -}; |
|---|
| 1128 | | - |
|---|
| 1129 | | -&vopb { |
|---|
| 1130 | | - status = "okay"; |
|---|
| 1131 | | - assigned-clocks = <&cru DCLK_VOP0_DIV>; |
|---|
| 1132 | | - assigned-clock-parents = <&cru PLL_VPLL>; |
|---|
| 1133 | | -}; |
|---|
| 1134 | | - |
|---|
| 1135 | | -&vopb_mmu { |
|---|
| 1136 | | - status = "okay"; |
|---|
| 1137 | 30 | }; |
|---|