1 // SPDX-License-Identifier: GPL-2.0-or-later O 2 3 /dts-v1/; 4 #include <dt-bindings/gpio/gpio.h> 5 #include <dt-bindings/input/input.h> 6 #include <dt-bindings/leds/common.h> 7 #include <dt-bindings/pinctrl/rockchip.h> 8 #include <dt-bindings/soc/rockchip,vop2.h> 9 #include "rk3568.dtsi" 10 11 / { 12 chosen: chosen { 13 stdout-path = "serial2:1500000 14 }; 15 16 gpio-keys { 17 compatible = "gpio-keys"; 18 pinctrl-names = "default"; 19 pinctrl-0 = <&reset_button_pin 20 21 button-reset { 22 debounce-interval = <5 23 gpios = <&gpio0 RK_PB6 24 label = "reset"; 25 linux,code = <KEY_REST 26 }; 27 }; 28 29 gpio-leds { 30 compatible = "gpio-leds"; 31 pinctrl-names = "default"; 32 pinctrl-0 = <&status_led_pin>; 33 34 status_led: led-status { 35 color = <LED_COLOR_ID_ 36 function = LED_FUNCTIO 37 gpios = <&gpio0 RK_PC0 38 linux,default-trigger 39 }; 40 }; 41 42 vcc12v_dcin: vcc12v-dcin-regulator { 43 compatible = "regulator-fixed" 44 regulator-name = "vcc12v_dcin" 45 regulator-always-on; 46 regulator-boot-on; 47 regulator-min-microvolt = <120 48 regulator-max-microvolt = <120 49 }; 50 51 vcc3v3_pcie: vcc3v3-pcie-regulator { 52 compatible = "regulator-fixed" 53 regulator-name = "vcc3v3_pcie" 54 regulator-always-on; 55 regulator-boot-on; 56 regulator-min-microvolt = <330 57 regulator-max-microvolt = <330 58 vin-supply = <&vcc5v0_sys>; 59 }; 60 61 vcc3v3_sys: vcc3v3-sys-regulator { 62 compatible = "regulator-fixed" 63 regulator-name = "vcc3v3_sys"; 64 regulator-always-on; 65 regulator-boot-on; 66 regulator-min-microvolt = <330 67 regulator-max-microvolt = <330 68 vin-supply = <&vcc12v_dcin>; 69 }; 70 71 vcc5v0_sys: vcc5v0-sys-regulator { 72 compatible = "regulator-fixed" 73 regulator-name = "vcc5v0_sys"; 74 regulator-always-on; 75 regulator-boot-on; 76 regulator-min-microvolt = <500 77 regulator-max-microvolt = <500 78 vin-supply = <&vcc12v_dcin>; 79 }; 80 81 vcc5v0_usb_otg: vcc5v0-usb-otg-regulat 82 compatible = "regulator-fixed" 83 enable-active-high; 84 gpio = <&gpio0 RK_PA5 GPIO_ACT 85 pinctrl-names = "default"; 86 pinctrl-0 = <&vcc5v0_usb_otg_e 87 regulator-name = "vcc5v0_usb_o 88 regulator-min-microvolt = <500 89 regulator-max-microvolt = <500 90 vin-supply = <&vcc5v0_sys>; 91 }; 92 }; 93 94 &combphy0 { 95 status = "okay"; 96 }; 97 98 &combphy1 { 99 status = "okay"; 100 }; 101 102 &cpu0 { 103 cpu-supply = <&vdd_cpu>; 104 }; 105 106 &cpu1 { 107 cpu-supply = <&vdd_cpu>; 108 }; 109 110 &cpu2 { 111 cpu-supply = <&vdd_cpu>; 112 }; 113 114 &cpu3 { 115 cpu-supply = <&vdd_cpu>; 116 }; 117 118 &display_subsystem { 119 status = "disabled"; 120 }; 121 122 &gpu { 123 mali-supply = <&vdd_gpu>; 124 status = "okay"; 125 }; 126 127 &i2c0 { 128 status = "okay"; 129 130 vdd_cpu: regulator@1c { 131 compatible = "tcs,tcs4525"; 132 reg = <0x1c>; 133 fcs,suspend-voltage-selector = 134 regulator-name = "vdd_cpu"; 135 regulator-always-on; 136 regulator-boot-on; 137 regulator-min-microvolt = <800 138 regulator-max-microvolt = <115 139 regulator-ramp-delay = <2300>; 140 vin-supply = <&vcc5v0_sys>; 141 142 regulator-state-mem { 143 regulator-off-in-suspe 144 }; 145 }; 146 147 rk809: pmic@20 { 148 compatible = "rockchip,rk809"; 149 reg = <0x20>; 150 interrupt-parent = <&gpio0>; 151 interrupts = <RK_PA3 IRQ_TYPE_ 152 #clock-cells = <1>; 153 pinctrl-names = "default"; 154 pinctrl-0 = <&pmic_int>; 155 rockchip,system-power-controll 156 vcc1-supply = <&vcc3v3_sys>; 157 vcc2-supply = <&vcc3v3_sys>; 158 vcc3-supply = <&vcc3v3_sys>; 159 vcc4-supply = <&vcc3v3_sys>; 160 vcc5-supply = <&vcc3v3_sys>; 161 vcc6-supply = <&vcc3v3_sys>; 162 vcc7-supply = <&vcc3v3_sys>; 163 vcc8-supply = <&vcc3v3_sys>; 164 vcc9-supply = <&vcc3v3_sys>; 165 wakeup-source; 166 167 regulators { 168 vdd_logic: DCDC_REG1 { 169 regulator-name 170 regulator-alwa 171 regulator-boot 172 regulator-init 173 regulator-min- 174 regulator-max- 175 regulator-ramp 176 177 regulator-stat 178 regula 179 }; 180 }; 181 182 vdd_gpu: DCDC_REG2 { 183 regulator-name 184 regulator-alwa 185 regulator-init 186 regulator-min- 187 regulator-max- 188 regulator-ramp 189 190 regulator-stat 191 regula 192 }; 193 }; 194 195 vcc_ddr: DCDC_REG3 { 196 regulator-name 197 regulator-alwa 198 regulator-boot 199 regulator-init 200 201 regulator-stat 202 regula 203 }; 204 }; 205 206 vdd_npu: DCDC_REG4 { 207 regulator-name 208 regulator-init 209 regulator-min- 210 regulator-max- 211 regulator-ramp 212 213 regulator-stat 214 regula 215 }; 216 }; 217 218 vcc_1v8: DCDC_REG5 { 219 regulator-name 220 regulator-alwa 221 regulator-boot 222 regulator-min- 223 regulator-max- 224 225 regulator-stat 226 regula 227 }; 228 }; 229 230 vdda0v9_image: LDO_REG 231 regulator-name 232 regulator-min- 233 regulator-max- 234 235 regulator-stat 236 regula 237 }; 238 }; 239 240 vdda_0v9: LDO_REG2 { 241 regulator-name 242 regulator-alwa 243 regulator-boot 244 regulator-min- 245 regulator-max- 246 247 regulator-stat 248 regula 249 }; 250 }; 251 252 vdda0v9_pmu: LDO_REG3 253 regulator-name 254 regulator-alwa 255 regulator-boot 256 regulator-min- 257 regulator-max- 258 259 regulator-stat 260 regula 261 regula 262 }; 263 }; 264 265 vccio_acodec: LDO_REG4 266 regulator-name 267 regulator-alwa 268 regulator-min- 269 regulator-max- 270 271 regulator-stat 272 regula 273 }; 274 }; 275 276 vccio_sd: LDO_REG5 { 277 regulator-name 278 regulator-min- 279 regulator-max- 280 281 regulator-stat 282 regula 283 }; 284 }; 285 286 vcc3v3_pmu: LDO_REG6 { 287 regulator-name 288 regulator-alwa 289 regulator-boot 290 regulator-min- 291 regulator-max- 292 293 regulator-stat 294 regula 295 regula 296 }; 297 }; 298 299 vcca_1v8: LDO_REG7 { 300 regulator-name 301 regulator-alwa 302 regulator-boot 303 regulator-min- 304 regulator-max- 305 306 regulator-stat 307 regula 308 }; 309 }; 310 311 vcca1v8_pmu: LDO_REG8 312 regulator-name 313 regulator-alwa 314 regulator-boot 315 regulator-min- 316 regulator-max- 317 318 regulator-stat 319 regula 320 regula 321 }; 322 }; 323 324 vcca1v8_image: LDO_REG 325 regulator-name 326 regulator-min- 327 regulator-max- 328 329 regulator-stat 330 regula 331 regula 332 }; 333 }; 334 335 vcc_3v3: SWITCH_REG1 { 336 regulator-name 337 regulator-alwa 338 regulator-boot 339 340 regulator-stat 341 regula 342 }; 343 }; 344 345 vcc3v3_sd: SWITCH_REG2 346 regulator-name 347 348 regulator-stat 349 regula 350 }; 351 }; 352 }; 353 }; 354 }; 355 356 &pcie30phy { 357 data-lanes = <1 2>; 358 status = "okay"; 359 }; 360 361 &pcie3x1 { 362 num-lanes = <1>; 363 reset-gpios = <&gpio0 RK_PC3 GPIO_ACTI 364 vpcie3v3-supply = <&vcc3v3_pcie>; 365 status = "okay"; 366 }; 367 368 &pcie3x2 { 369 num-lanes = <1>; 370 reset-gpios = <&gpio0 RK_PC6 GPIO_ACTI 371 vpcie3v3-supply = <&vcc3v3_pcie>; 372 status = "okay"; 373 }; 374 375 &pinctrl { 376 gpio-leds { 377 status_led_pin: status-led-pin 378 rockchip,pins = <0 RK_ 379 }; 380 }; 381 382 pmic { 383 pmic_int: pmic-int { 384 rockchip,pins = <0 RK_ 385 }; 386 }; 387 388 rockchip-key { 389 reset_button_pin: reset-button 390 rockchip,pins = <0 RK_ 391 }; 392 }; 393 394 usb { 395 vcc5v0_usb_otg_en: vcc5v0-usb- 396 rockchip,pins = <0 RK_ 397 }; 398 }; 399 }; 400 401 &pmu_io_domains { 402 pmuio1-supply = <&vcc3v3_pmu>; 403 pmuio2-supply = <&vcc3v3_pmu>; 404 vccio1-supply = <&vcc_3v3>; 405 vccio2-supply = <&vcc_1v8>; 406 vccio4-supply = <&vcc_1v8>; 407 vccio5-supply = <&vcc_3v3>; 408 vccio6-supply = <&vcc_1v8>; 409 vccio7-supply = <&vcc_3v3>; 410 status = "okay"; 411 }; 412 413 &saradc { 414 vref-supply = <&vcca_1v8>; 415 status = "okay"; 416 }; 417 418 &tsadc { 419 rockchip,hw-tshut-mode = <1>; 420 rockchip,hw-tshut-polarity = <0>; 421 status = "okay"; 422 }; 423 424 &uart2 { 425 status = "okay"; 426 }; 427 428 &usb_host0_xhci { 429 dr_mode = "host"; 430 extcon = <&usb2phy0>; 431 status = "okay"; 432 }; 433 434 &usb_host1_xhci { 435 status = "okay"; 436 }; 437 438 &usb2phy0 { 439 status = "okay"; 440 }; 441 442 &usb2phy0_host { 443 phy-supply = <&vcc5v0_sys>; 444 status = "okay"; 445 }; 446 447 &usb2phy0_otg { 448 phy-supply = <&vcc5v0_usb_otg>; 449 status = "okay"; 450 }; 451 452 &vop { 453 assigned-clocks = <&cru DCLK_VOP0>, <& 454 assigned-clock-parents = <&pmucru PLL_ 455 status = "okay"; 456 }; 457 458 &vop_mmu { 459 status = "okay"; 460 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.