1c66ec88fSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2c66ec88fSEmmanuel Vadot/* 3c66ec88fSEmmanuel Vadot * Copyright (c) 2017 T-Chip Intelligent Technology Co., Ltd 4c66ec88fSEmmanuel Vadot */ 5c66ec88fSEmmanuel Vadot 6c66ec88fSEmmanuel Vadot/dts-v1/; 7c66ec88fSEmmanuel Vadot#include <dt-bindings/input/linux-event-codes.h> 8c66ec88fSEmmanuel Vadot#include <dt-bindings/pwm/pwm.h> 9c66ec88fSEmmanuel Vadot#include "rk3399.dtsi" 10c66ec88fSEmmanuel Vadot#include "rk3399-opp.dtsi" 11c66ec88fSEmmanuel Vadot 12c66ec88fSEmmanuel Vadot/ { 13c66ec88fSEmmanuel Vadot model = "Firefly ROC-RK3399-PC Board"; 14c66ec88fSEmmanuel Vadot compatible = "firefly,roc-rk3399-pc", "rockchip,rk3399"; 15c66ec88fSEmmanuel Vadot 162eb4d8dcSEmmanuel Vadot aliases { 17*8d13bc63SEmmanuel Vadot ethernet0 = &gmac; 182eb4d8dcSEmmanuel Vadot mmc0 = &sdmmc; 192eb4d8dcSEmmanuel Vadot mmc1 = &sdhci; 202eb4d8dcSEmmanuel Vadot }; 212eb4d8dcSEmmanuel Vadot 22c66ec88fSEmmanuel Vadot chosen { 23c66ec88fSEmmanuel Vadot stdout-path = "serial2:1500000n8"; 24c66ec88fSEmmanuel Vadot }; 25c66ec88fSEmmanuel Vadot 26c66ec88fSEmmanuel Vadot backlight: backlight { 27c66ec88fSEmmanuel Vadot compatible = "pwm-backlight"; 28c66ec88fSEmmanuel Vadot pwms = <&pwm0 0 25000 0>; 29c66ec88fSEmmanuel Vadot }; 30c66ec88fSEmmanuel Vadot 31c66ec88fSEmmanuel Vadot clkin_gmac: external-gmac-clock { 32c66ec88fSEmmanuel Vadot compatible = "fixed-clock"; 33c66ec88fSEmmanuel Vadot clock-frequency = <125000000>; 34c66ec88fSEmmanuel Vadot clock-output-names = "clkin_gmac"; 35c66ec88fSEmmanuel Vadot #clock-cells = <0>; 36c66ec88fSEmmanuel Vadot }; 37c66ec88fSEmmanuel Vadot 38c66ec88fSEmmanuel Vadot adc-keys { 39c66ec88fSEmmanuel Vadot compatible = "adc-keys"; 40c66ec88fSEmmanuel Vadot io-channels = <&saradc 1>; 41c66ec88fSEmmanuel Vadot io-channel-names = "buttons"; 42c66ec88fSEmmanuel Vadot keyup-threshold-microvolt = <1500000>; 43c66ec88fSEmmanuel Vadot poll-interval = <100>; 44c66ec88fSEmmanuel Vadot 457ef62cebSEmmanuel Vadot button-recovery { 46c66ec88fSEmmanuel Vadot label = "Recovery"; 47c66ec88fSEmmanuel Vadot linux,code = <KEY_VENDOR>; 48c66ec88fSEmmanuel Vadot press-threshold-microvolt = <18000>; 49c66ec88fSEmmanuel Vadot }; 50c66ec88fSEmmanuel Vadot }; 51c66ec88fSEmmanuel Vadot 52c66ec88fSEmmanuel Vadot gpio-keys { 53c66ec88fSEmmanuel Vadot compatible = "gpio-keys"; 54c66ec88fSEmmanuel Vadot autorepeat; 55c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 56c66ec88fSEmmanuel Vadot pinctrl-0 = <&pwr_key_l>; 57c66ec88fSEmmanuel Vadot 58b97ee269SEmmanuel Vadot key-power { 59c66ec88fSEmmanuel Vadot debounce-interval = <100>; 60c66ec88fSEmmanuel Vadot gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>; 61c66ec88fSEmmanuel Vadot label = "GPIO Key Power"; 62c66ec88fSEmmanuel Vadot linux,code = <KEY_POWER>; 63c66ec88fSEmmanuel Vadot wakeup-source; 64c66ec88fSEmmanuel Vadot }; 65c66ec88fSEmmanuel Vadot }; 66c66ec88fSEmmanuel Vadot 675956d97fSEmmanuel Vadot ir-receiver { 685956d97fSEmmanuel Vadot compatible = "gpio-ir-receiver"; 695956d97fSEmmanuel Vadot gpios = <&gpio0 RK_PA6 GPIO_ACTIVE_LOW>; 705956d97fSEmmanuel Vadot pinctrl-names = "default"; 715956d97fSEmmanuel Vadot pinctrl-0 = <&ir_int>; 725956d97fSEmmanuel Vadot }; 735956d97fSEmmanuel Vadot 74c66ec88fSEmmanuel Vadot leds { 75c66ec88fSEmmanuel Vadot compatible = "gpio-leds"; 76c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 77c66ec88fSEmmanuel Vadot pinctrl-0 = <&work_led_pin>, <&diy_led_pin>, <&yellow_led_pin>; 78c66ec88fSEmmanuel Vadot 79c66ec88fSEmmanuel Vadot work_led: led-0 { 80c66ec88fSEmmanuel Vadot label = "green:work"; 81c66ec88fSEmmanuel Vadot gpios = <&gpio2 RK_PD3 GPIO_ACTIVE_HIGH>; 82c66ec88fSEmmanuel Vadot default-state = "on"; 83c66ec88fSEmmanuel Vadot linux,default-trigger = "heartbeat"; 84c66ec88fSEmmanuel Vadot }; 85c66ec88fSEmmanuel Vadot 86c66ec88fSEmmanuel Vadot diy_led: led-1 { 87c66ec88fSEmmanuel Vadot label = "red:diy"; 88c66ec88fSEmmanuel Vadot gpios = <&gpio0 RK_PB5 GPIO_ACTIVE_HIGH>; 89c66ec88fSEmmanuel Vadot default-state = "off"; 906be33864SEmmanuel Vadot linux,default-trigger = "mmc2"; 91c66ec88fSEmmanuel Vadot }; 92c66ec88fSEmmanuel Vadot 93c66ec88fSEmmanuel Vadot yellow_led: led-2 { 94c66ec88fSEmmanuel Vadot label = "yellow:yellow-led"; 95c66ec88fSEmmanuel Vadot gpios = <&gpio0 RK_PA2 GPIO_ACTIVE_HIGH>; 96c66ec88fSEmmanuel Vadot default-state = "off"; 976be33864SEmmanuel Vadot linux,default-trigger = "mmc1"; 98c66ec88fSEmmanuel Vadot }; 99c66ec88fSEmmanuel Vadot }; 100c66ec88fSEmmanuel Vadot 101c66ec88fSEmmanuel Vadot sdio_pwrseq: sdio-pwrseq { 102c66ec88fSEmmanuel Vadot compatible = "mmc-pwrseq-simple"; 103c66ec88fSEmmanuel Vadot clocks = <&rk808 1>; 104c66ec88fSEmmanuel Vadot clock-names = "ext_clock"; 105c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 106c66ec88fSEmmanuel Vadot pinctrl-0 = <&wifi_enable_h>; 107c66ec88fSEmmanuel Vadot 108c66ec88fSEmmanuel Vadot /* 109c66ec88fSEmmanuel Vadot * On the module itself this is one of these (depending 110c66ec88fSEmmanuel Vadot * on the actual card populated): 111c66ec88fSEmmanuel Vadot * - SDIO_RESET_L_WL_REG_ON 112c66ec88fSEmmanuel Vadot * - PDN (power down when low) 113c66ec88fSEmmanuel Vadot */ 114c66ec88fSEmmanuel Vadot reset-gpios = <&gpio0 RK_PB2 GPIO_ACTIVE_LOW>; 115c66ec88fSEmmanuel Vadot }; 116c66ec88fSEmmanuel Vadot 117c66ec88fSEmmanuel Vadot vcc_vbus_typec0: vcc-vbus-typec0 { 118c66ec88fSEmmanuel Vadot compatible = "regulator-fixed"; 119c66ec88fSEmmanuel Vadot regulator-name = "vcc_vbus_typec0"; 120c66ec88fSEmmanuel Vadot regulator-always-on; 121c66ec88fSEmmanuel Vadot regulator-boot-on; 122c66ec88fSEmmanuel Vadot regulator-min-microvolt = <5000000>; 123c66ec88fSEmmanuel Vadot regulator-max-microvolt = <5000000>; 124c66ec88fSEmmanuel Vadot }; 125c66ec88fSEmmanuel Vadot 1266be33864SEmmanuel Vadot sys_12v: sys-12v { 1276be33864SEmmanuel Vadot compatible = "regulator-fixed"; 1286be33864SEmmanuel Vadot regulator-name = "sys_12v"; 1296be33864SEmmanuel Vadot regulator-always-on; 1306be33864SEmmanuel Vadot regulator-boot-on; 1316be33864SEmmanuel Vadot vin-supply = <&dc_12v>; 1326be33864SEmmanuel Vadot }; 1336be33864SEmmanuel Vadot 134c66ec88fSEmmanuel Vadot /* switched by pmic_sleep */ 135c66ec88fSEmmanuel Vadot vcc1v8_s3: vcca1v8_s3: vcc1v8-s3 { 136c66ec88fSEmmanuel Vadot compatible = "regulator-fixed"; 137c66ec88fSEmmanuel Vadot regulator-name = "vcc1v8_s3"; 138c66ec88fSEmmanuel Vadot regulator-always-on; 139c66ec88fSEmmanuel Vadot regulator-boot-on; 140c66ec88fSEmmanuel Vadot regulator-min-microvolt = <1800000>; 141c66ec88fSEmmanuel Vadot regulator-max-microvolt = <1800000>; 142c66ec88fSEmmanuel Vadot vin-supply = <&vcc_1v8>; 143c66ec88fSEmmanuel Vadot }; 144c66ec88fSEmmanuel Vadot 145c66ec88fSEmmanuel Vadot vcc3v0_sd: vcc3v0-sd { 146c66ec88fSEmmanuel Vadot compatible = "regulator-fixed"; 147c66ec88fSEmmanuel Vadot enable-active-high; 148c66ec88fSEmmanuel Vadot gpio = <&gpio4 RK_PD6 GPIO_ACTIVE_HIGH>; 149c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 150c66ec88fSEmmanuel Vadot pinctrl-0 = <&vcc3v0_sd_en>; 151c66ec88fSEmmanuel Vadot regulator-name = "vcc3v0_sd"; 152c66ec88fSEmmanuel Vadot regulator-boot-on; 153c66ec88fSEmmanuel Vadot regulator-min-microvolt = <3000000>; 154c66ec88fSEmmanuel Vadot regulator-max-microvolt = <3000000>; 155c66ec88fSEmmanuel Vadot vin-supply = <&vcc3v3_sys>; 156c66ec88fSEmmanuel Vadot }; 157c66ec88fSEmmanuel Vadot 158c66ec88fSEmmanuel Vadot vcc3v3_sys: vcc3v3-sys { 159c66ec88fSEmmanuel Vadot compatible = "regulator-fixed"; 160c66ec88fSEmmanuel Vadot regulator-name = "vcc3v3_sys"; 161c66ec88fSEmmanuel Vadot regulator-always-on; 162c66ec88fSEmmanuel Vadot regulator-boot-on; 163c66ec88fSEmmanuel Vadot regulator-min-microvolt = <3300000>; 164c66ec88fSEmmanuel Vadot regulator-max-microvolt = <3300000>; 1656be33864SEmmanuel Vadot vin-supply = <&sys_12v>; 166c66ec88fSEmmanuel Vadot }; 167c66ec88fSEmmanuel Vadot 168c66ec88fSEmmanuel Vadot vcca_0v9: vcca-0v9 { 169c66ec88fSEmmanuel Vadot compatible = "regulator-fixed"; 170c66ec88fSEmmanuel Vadot regulator-name = "vcca_0v9"; 171c66ec88fSEmmanuel Vadot regulator-always-on; 172c66ec88fSEmmanuel Vadot regulator-boot-on; 173c66ec88fSEmmanuel Vadot regulator-min-microvolt = <900000>; 174c66ec88fSEmmanuel Vadot regulator-max-microvolt = <900000>; 175c66ec88fSEmmanuel Vadot vin-supply = <&vcc3v3_sys>; 176c66ec88fSEmmanuel Vadot }; 177c66ec88fSEmmanuel Vadot 178c66ec88fSEmmanuel Vadot /* Actually 3 regulators (host0, 1, 2) controlled by the same gpio */ 179c66ec88fSEmmanuel Vadot vcc5v0_host: vcc5v0-host-regulator { 180c66ec88fSEmmanuel Vadot compatible = "regulator-fixed"; 181c66ec88fSEmmanuel Vadot enable-active-high; 182c66ec88fSEmmanuel Vadot gpio = <&gpio1 RK_PA0 GPIO_ACTIVE_HIGH>; 183c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 184c66ec88fSEmmanuel Vadot pinctrl-0 = <&vcc5v0_host_en &hub_rst>; 185c66ec88fSEmmanuel Vadot regulator-name = "vcc5v0_host"; 186c66ec88fSEmmanuel Vadot vin-supply = <&vcc_sys>; 187c66ec88fSEmmanuel Vadot }; 188c66ec88fSEmmanuel Vadot 189c66ec88fSEmmanuel Vadot vcc_vbus_typec1: vcc-vbus-typec1 { 190c66ec88fSEmmanuel Vadot compatible = "regulator-fixed"; 191c66ec88fSEmmanuel Vadot enable-active-high; 192c66ec88fSEmmanuel Vadot gpio = <&gpio1 RK_PB5 GPIO_ACTIVE_HIGH>; 193c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 194c66ec88fSEmmanuel Vadot pinctrl-0 = <&vcc_vbus_typec1_en>; 195c66ec88fSEmmanuel Vadot regulator-name = "vcc_vbus_typec1"; 196c66ec88fSEmmanuel Vadot regulator-always-on; 197c66ec88fSEmmanuel Vadot vin-supply = <&vcc_sys>; 198c66ec88fSEmmanuel Vadot }; 199c66ec88fSEmmanuel Vadot 200c66ec88fSEmmanuel Vadot vcc_sys: vcc-sys { 201c66ec88fSEmmanuel Vadot compatible = "regulator-fixed"; 202c66ec88fSEmmanuel Vadot enable-active-high; 203c66ec88fSEmmanuel Vadot gpio = <&gpio2 RK_PA6 GPIO_ACTIVE_HIGH>; 204c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 205c66ec88fSEmmanuel Vadot pinctrl-0 = <&vcc_sys_en>; 206c66ec88fSEmmanuel Vadot regulator-name = "vcc_sys"; 207c66ec88fSEmmanuel Vadot regulator-boot-on; 208c66ec88fSEmmanuel Vadot regulator-min-microvolt = <5000000>; 209c66ec88fSEmmanuel Vadot regulator-max-microvolt = <5000000>; 2106be33864SEmmanuel Vadot vin-supply = <&sys_12v>; 211c66ec88fSEmmanuel Vadot }; 212c66ec88fSEmmanuel Vadot 213c66ec88fSEmmanuel Vadot vdd_log: vdd-log { 214c66ec88fSEmmanuel Vadot compatible = "pwm-regulator"; 215c66ec88fSEmmanuel Vadot pwms = <&pwm2 0 25000 1>; 216c66ec88fSEmmanuel Vadot regulator-name = "vdd_log"; 217c66ec88fSEmmanuel Vadot regulator-always-on; 218c66ec88fSEmmanuel Vadot regulator-boot-on; 219c66ec88fSEmmanuel Vadot regulator-min-microvolt = <450000>; 220c66ec88fSEmmanuel Vadot regulator-max-microvolt = <1400000>; 221c66ec88fSEmmanuel Vadot pwm-supply = <&vcc3v3_sys>; 222c66ec88fSEmmanuel Vadot }; 223c66ec88fSEmmanuel Vadot}; 224c66ec88fSEmmanuel Vadot 225c66ec88fSEmmanuel Vadot&cpu_l0 { 226c66ec88fSEmmanuel Vadot cpu-supply = <&vdd_cpu_l>; 227c66ec88fSEmmanuel Vadot}; 228c66ec88fSEmmanuel Vadot 229c66ec88fSEmmanuel Vadot&cpu_l1 { 230c66ec88fSEmmanuel Vadot cpu-supply = <&vdd_cpu_l>; 231c66ec88fSEmmanuel Vadot}; 232c66ec88fSEmmanuel Vadot 233c66ec88fSEmmanuel Vadot&cpu_l2 { 234c66ec88fSEmmanuel Vadot cpu-supply = <&vdd_cpu_l>; 235c66ec88fSEmmanuel Vadot}; 236c66ec88fSEmmanuel Vadot 237c66ec88fSEmmanuel Vadot&cpu_l3 { 238c66ec88fSEmmanuel Vadot cpu-supply = <&vdd_cpu_l>; 239c66ec88fSEmmanuel Vadot}; 240c66ec88fSEmmanuel Vadot 241c66ec88fSEmmanuel Vadot&cpu_b0 { 242c66ec88fSEmmanuel Vadot cpu-supply = <&vdd_cpu_b>; 243c66ec88fSEmmanuel Vadot}; 244c66ec88fSEmmanuel Vadot 245c66ec88fSEmmanuel Vadot&cpu_b1 { 246c66ec88fSEmmanuel Vadot cpu-supply = <&vdd_cpu_b>; 247c66ec88fSEmmanuel Vadot}; 248c66ec88fSEmmanuel Vadot 249c66ec88fSEmmanuel Vadot&emmc_phy { 250c66ec88fSEmmanuel Vadot status = "okay"; 251c66ec88fSEmmanuel Vadot}; 252c66ec88fSEmmanuel Vadot 253c66ec88fSEmmanuel Vadot&gmac { 254c66ec88fSEmmanuel Vadot assigned-clocks = <&cru SCLK_RMII_SRC>; 255c66ec88fSEmmanuel Vadot assigned-clock-parents = <&clkin_gmac>; 256c66ec88fSEmmanuel Vadot clock_in_out = "input"; 257c66ec88fSEmmanuel Vadot phy-supply = <&vcc_lan>; 258c66ec88fSEmmanuel Vadot phy-mode = "rgmii"; 259c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 260c66ec88fSEmmanuel Vadot pinctrl-0 = <&rgmii_pins>; 261c66ec88fSEmmanuel Vadot snps,reset-gpio = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>; 262c66ec88fSEmmanuel Vadot snps,reset-active-low; 263c66ec88fSEmmanuel Vadot snps,reset-delays-us = <0 10000 50000>; 264c66ec88fSEmmanuel Vadot tx_delay = <0x28>; 265c66ec88fSEmmanuel Vadot rx_delay = <0x11>; 266c66ec88fSEmmanuel Vadot status = "okay"; 267c66ec88fSEmmanuel Vadot}; 268c66ec88fSEmmanuel Vadot 269c66ec88fSEmmanuel Vadot&gpu { 270c66ec88fSEmmanuel Vadot mali-supply = <&vdd_gpu>; 271c66ec88fSEmmanuel Vadot status = "okay"; 272c66ec88fSEmmanuel Vadot}; 273c66ec88fSEmmanuel Vadot 274c66ec88fSEmmanuel Vadot&hdmi { 2757ef62cebSEmmanuel Vadot avdd-0v9-supply = <&vcca0v9_hdmi>; 2767ef62cebSEmmanuel Vadot avdd-1v8-supply = <&vcca1v8_hdmi>; 277c66ec88fSEmmanuel Vadot ddc-i2c-bus = <&i2c3>; 278c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 279c66ec88fSEmmanuel Vadot pinctrl-0 = <&hdmi_cec>; 280c66ec88fSEmmanuel Vadot status = "okay"; 281c66ec88fSEmmanuel Vadot}; 282c66ec88fSEmmanuel Vadot 283c66ec88fSEmmanuel Vadot&hdmi_sound { 284c66ec88fSEmmanuel Vadot status = "okay"; 285c66ec88fSEmmanuel Vadot}; 286c66ec88fSEmmanuel Vadot 287c66ec88fSEmmanuel Vadot&i2c0 { 288c66ec88fSEmmanuel Vadot clock-frequency = <400000>; 289c66ec88fSEmmanuel Vadot i2c-scl-rising-time-ns = <168>; 290c66ec88fSEmmanuel Vadot i2c-scl-falling-time-ns = <4>; 291c66ec88fSEmmanuel Vadot status = "okay"; 292c66ec88fSEmmanuel Vadot 293c66ec88fSEmmanuel Vadot rk808: pmic@1b { 294c66ec88fSEmmanuel Vadot compatible = "rockchip,rk808"; 295c66ec88fSEmmanuel Vadot reg = <0x1b>; 296c66ec88fSEmmanuel Vadot interrupt-parent = <&gpio1>; 297c66ec88fSEmmanuel Vadot interrupts = <21 IRQ_TYPE_LEVEL_LOW>; 298c66ec88fSEmmanuel Vadot #clock-cells = <1>; 299c66ec88fSEmmanuel Vadot clock-output-names = "xin32k", "rk808-clkout2"; 300c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 301c66ec88fSEmmanuel Vadot pinctrl-0 = <&pmic_int_l>; 302c66ec88fSEmmanuel Vadot rockchip,system-power-controller; 303c66ec88fSEmmanuel Vadot wakeup-source; 304c66ec88fSEmmanuel Vadot 305c66ec88fSEmmanuel Vadot vcc1-supply = <&vcc3v3_sys>; 306c66ec88fSEmmanuel Vadot vcc2-supply = <&vcc3v3_sys>; 307c66ec88fSEmmanuel Vadot vcc3-supply = <&vcc3v3_sys>; 308c66ec88fSEmmanuel Vadot vcc4-supply = <&vcc3v3_sys>; 309c66ec88fSEmmanuel Vadot vcc6-supply = <&vcc3v3_sys>; 310c66ec88fSEmmanuel Vadot vcc7-supply = <&vcc3v3_sys>; 311c66ec88fSEmmanuel Vadot vcc8-supply = <&vcc3v3_sys>; 312c66ec88fSEmmanuel Vadot vcc9-supply = <&vcc3v3_sys>; 313c66ec88fSEmmanuel Vadot vcc10-supply = <&vcc3v3_sys>; 314c66ec88fSEmmanuel Vadot vcc11-supply = <&vcc3v3_sys>; 315c66ec88fSEmmanuel Vadot vcc12-supply = <&vcc3v3_sys>; 316c66ec88fSEmmanuel Vadot vddio-supply = <&vcc_3v0>; 317c66ec88fSEmmanuel Vadot 318c66ec88fSEmmanuel Vadot regulators { 319c66ec88fSEmmanuel Vadot vdd_center: DCDC_REG1 { 320c66ec88fSEmmanuel Vadot regulator-name = "vdd_center"; 321c66ec88fSEmmanuel Vadot regulator-always-on; 322c66ec88fSEmmanuel Vadot regulator-boot-on; 323c66ec88fSEmmanuel Vadot regulator-min-microvolt = <750000>; 324c66ec88fSEmmanuel Vadot regulator-max-microvolt = <1350000>; 325c66ec88fSEmmanuel Vadot regulator-ramp-delay = <6001>; 326c66ec88fSEmmanuel Vadot regulator-state-mem { 327c66ec88fSEmmanuel Vadot regulator-off-in-suspend; 328c66ec88fSEmmanuel Vadot }; 329c66ec88fSEmmanuel Vadot }; 330c66ec88fSEmmanuel Vadot 331c66ec88fSEmmanuel Vadot vdd_cpu_l: DCDC_REG2 { 332c66ec88fSEmmanuel Vadot regulator-name = "vdd_cpu_l"; 333c66ec88fSEmmanuel Vadot regulator-always-on; 334c66ec88fSEmmanuel Vadot regulator-boot-on; 335c66ec88fSEmmanuel Vadot regulator-min-microvolt = <750000>; 336c66ec88fSEmmanuel Vadot regulator-max-microvolt = <1350000>; 337c66ec88fSEmmanuel Vadot regulator-ramp-delay = <6001>; 338c66ec88fSEmmanuel Vadot regulator-state-mem { 339c66ec88fSEmmanuel Vadot regulator-off-in-suspend; 340c66ec88fSEmmanuel Vadot }; 341c66ec88fSEmmanuel Vadot }; 342c66ec88fSEmmanuel Vadot 343c66ec88fSEmmanuel Vadot vcc_ddr: DCDC_REG3 { 344c66ec88fSEmmanuel Vadot regulator-name = "vcc_ddr"; 345c66ec88fSEmmanuel Vadot regulator-always-on; 346c66ec88fSEmmanuel Vadot regulator-boot-on; 347c66ec88fSEmmanuel Vadot regulator-state-mem { 348c66ec88fSEmmanuel Vadot regulator-on-in-suspend; 349c66ec88fSEmmanuel Vadot }; 350c66ec88fSEmmanuel Vadot }; 351c66ec88fSEmmanuel Vadot 352c66ec88fSEmmanuel Vadot vcc_1v8: DCDC_REG4 { 353c66ec88fSEmmanuel Vadot regulator-name = "vcc_1v8"; 354c66ec88fSEmmanuel Vadot regulator-always-on; 355c66ec88fSEmmanuel Vadot regulator-boot-on; 356c66ec88fSEmmanuel Vadot regulator-min-microvolt = <1800000>; 357c66ec88fSEmmanuel Vadot regulator-max-microvolt = <1800000>; 358c66ec88fSEmmanuel Vadot regulator-state-mem { 359c66ec88fSEmmanuel Vadot regulator-on-in-suspend; 360c66ec88fSEmmanuel Vadot regulator-suspend-microvolt = <1800000>; 361c66ec88fSEmmanuel Vadot }; 362c66ec88fSEmmanuel Vadot }; 363c66ec88fSEmmanuel Vadot 364c66ec88fSEmmanuel Vadot vcca1v8_codec: LDO_REG1 { 365c66ec88fSEmmanuel Vadot regulator-name = "vcca1v8_codec"; 366c66ec88fSEmmanuel Vadot regulator-always-on; 367c66ec88fSEmmanuel Vadot regulator-boot-on; 368c66ec88fSEmmanuel Vadot regulator-min-microvolt = <1800000>; 369c66ec88fSEmmanuel Vadot regulator-max-microvolt = <1800000>; 370c66ec88fSEmmanuel Vadot regulator-state-mem { 371c66ec88fSEmmanuel Vadot regulator-off-in-suspend; 372c66ec88fSEmmanuel Vadot }; 373c66ec88fSEmmanuel Vadot }; 374c66ec88fSEmmanuel Vadot 3757ef62cebSEmmanuel Vadot vcca1v8_hdmi: LDO_REG2 { 3767ef62cebSEmmanuel Vadot regulator-name = "vcca1v8_hdmi"; 377c66ec88fSEmmanuel Vadot regulator-always-on; 378c66ec88fSEmmanuel Vadot regulator-boot-on; 379c66ec88fSEmmanuel Vadot regulator-min-microvolt = <1800000>; 380c66ec88fSEmmanuel Vadot regulator-max-microvolt = <1800000>; 381c66ec88fSEmmanuel Vadot regulator-state-mem { 382c66ec88fSEmmanuel Vadot regulator-off-in-suspend; 383c66ec88fSEmmanuel Vadot }; 384c66ec88fSEmmanuel Vadot }; 385c66ec88fSEmmanuel Vadot 386c66ec88fSEmmanuel Vadot vcc1v8_pmu: LDO_REG3 { 387c66ec88fSEmmanuel Vadot regulator-name = "vcc1v8_pmu"; 388c66ec88fSEmmanuel Vadot regulator-always-on; 389c66ec88fSEmmanuel Vadot regulator-boot-on; 390c66ec88fSEmmanuel Vadot regulator-min-microvolt = <1800000>; 391c66ec88fSEmmanuel Vadot regulator-max-microvolt = <1800000>; 392c66ec88fSEmmanuel Vadot regulator-state-mem { 393c66ec88fSEmmanuel Vadot regulator-on-in-suspend; 394c66ec88fSEmmanuel Vadot regulator-suspend-microvolt = <1800000>; 395c66ec88fSEmmanuel Vadot }; 396c66ec88fSEmmanuel Vadot }; 397c66ec88fSEmmanuel Vadot 398c66ec88fSEmmanuel Vadot vcc_sdio: LDO_REG4 { 399c66ec88fSEmmanuel Vadot regulator-name = "vcc_sdio"; 4005956d97fSEmmanuel Vadot regulator-always-on; 401c66ec88fSEmmanuel Vadot regulator-boot-on; 402c66ec88fSEmmanuel Vadot regulator-min-microvolt = <1800000>; 403c66ec88fSEmmanuel Vadot regulator-max-microvolt = <3000000>; 404c66ec88fSEmmanuel Vadot regulator-state-mem { 405c66ec88fSEmmanuel Vadot regulator-on-in-suspend; 406c66ec88fSEmmanuel Vadot regulator-suspend-microvolt = <3000000>; 407c66ec88fSEmmanuel Vadot }; 408c66ec88fSEmmanuel Vadot }; 409c66ec88fSEmmanuel Vadot 410c66ec88fSEmmanuel Vadot vcca3v0_codec: LDO_REG5 { 411c66ec88fSEmmanuel Vadot regulator-name = "vcca3v0_codec"; 412c66ec88fSEmmanuel Vadot regulator-always-on; 413c66ec88fSEmmanuel Vadot regulator-boot-on; 414c66ec88fSEmmanuel Vadot regulator-min-microvolt = <3000000>; 415c66ec88fSEmmanuel Vadot regulator-max-microvolt = <3000000>; 416c66ec88fSEmmanuel Vadot regulator-state-mem { 417c66ec88fSEmmanuel Vadot regulator-off-in-suspend; 418c66ec88fSEmmanuel Vadot }; 419c66ec88fSEmmanuel Vadot }; 420c66ec88fSEmmanuel Vadot 421c66ec88fSEmmanuel Vadot vcc_1v5: LDO_REG6 { 422c66ec88fSEmmanuel Vadot regulator-name = "vcc_1v5"; 423c66ec88fSEmmanuel Vadot regulator-always-on; 424c66ec88fSEmmanuel Vadot regulator-boot-on; 425c66ec88fSEmmanuel Vadot regulator-min-microvolt = <1500000>; 426c66ec88fSEmmanuel Vadot regulator-max-microvolt = <1500000>; 427c66ec88fSEmmanuel Vadot regulator-state-mem { 428c66ec88fSEmmanuel Vadot regulator-on-in-suspend; 429c66ec88fSEmmanuel Vadot regulator-suspend-microvolt = <1500000>; 430c66ec88fSEmmanuel Vadot }; 431c66ec88fSEmmanuel Vadot }; 432c66ec88fSEmmanuel Vadot 433c66ec88fSEmmanuel Vadot vcca0v9_hdmi: LDO_REG7 { 434c66ec88fSEmmanuel Vadot regulator-name = "vcca0v9_hdmi"; 435c66ec88fSEmmanuel Vadot regulator-always-on; 436c66ec88fSEmmanuel Vadot regulator-boot-on; 437c66ec88fSEmmanuel Vadot regulator-min-microvolt = <900000>; 438c66ec88fSEmmanuel Vadot regulator-max-microvolt = <900000>; 439c66ec88fSEmmanuel Vadot regulator-state-mem { 440c66ec88fSEmmanuel Vadot regulator-off-in-suspend; 441c66ec88fSEmmanuel Vadot }; 442c66ec88fSEmmanuel Vadot }; 443c66ec88fSEmmanuel Vadot 444c66ec88fSEmmanuel Vadot vcc_3v0: LDO_REG8 { 445c66ec88fSEmmanuel Vadot regulator-name = "vcc_3v0"; 446c66ec88fSEmmanuel Vadot regulator-always-on; 447c66ec88fSEmmanuel Vadot regulator-boot-on; 448c66ec88fSEmmanuel Vadot regulator-min-microvolt = <3000000>; 449c66ec88fSEmmanuel Vadot regulator-max-microvolt = <3000000>; 450c66ec88fSEmmanuel Vadot regulator-state-mem { 451c66ec88fSEmmanuel Vadot regulator-on-in-suspend; 452c66ec88fSEmmanuel Vadot regulator-suspend-microvolt = <3000000>; 453c66ec88fSEmmanuel Vadot }; 454c66ec88fSEmmanuel Vadot }; 455c66ec88fSEmmanuel Vadot 456c66ec88fSEmmanuel Vadot vcc3v3_s3: vcc_lan: SWITCH_REG1 { 457c66ec88fSEmmanuel Vadot regulator-name = "vcc3v3_s3"; 458c66ec88fSEmmanuel Vadot regulator-always-on; 459c66ec88fSEmmanuel Vadot regulator-boot-on; 460c66ec88fSEmmanuel Vadot regulator-state-mem { 461c66ec88fSEmmanuel Vadot regulator-off-in-suspend; 462c66ec88fSEmmanuel Vadot }; 463c66ec88fSEmmanuel Vadot }; 464c66ec88fSEmmanuel Vadot 465c66ec88fSEmmanuel Vadot vcc3v3_s0: SWITCH_REG2 { 466c66ec88fSEmmanuel Vadot regulator-name = "vcc3v3_s0"; 467c66ec88fSEmmanuel Vadot regulator-always-on; 468c66ec88fSEmmanuel Vadot regulator-boot-on; 469c66ec88fSEmmanuel Vadot regulator-state-mem { 470c66ec88fSEmmanuel Vadot regulator-off-in-suspend; 471c66ec88fSEmmanuel Vadot }; 472c66ec88fSEmmanuel Vadot }; 473c66ec88fSEmmanuel Vadot }; 474c66ec88fSEmmanuel Vadot }; 475c66ec88fSEmmanuel Vadot 476c66ec88fSEmmanuel Vadot vdd_cpu_b: regulator@40 { 477c66ec88fSEmmanuel Vadot compatible = "silergy,syr827"; 478c66ec88fSEmmanuel Vadot reg = <0x40>; 479c66ec88fSEmmanuel Vadot fcs,suspend-voltage-selector = <1>; 480c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 481c66ec88fSEmmanuel Vadot pinctrl-0 = <&vsel1_pin>; 482c66ec88fSEmmanuel Vadot regulator-name = "vdd_cpu_b"; 483c66ec88fSEmmanuel Vadot regulator-min-microvolt = <712500>; 484c66ec88fSEmmanuel Vadot regulator-max-microvolt = <1500000>; 485c66ec88fSEmmanuel Vadot regulator-ramp-delay = <1000>; 486c66ec88fSEmmanuel Vadot regulator-always-on; 487c66ec88fSEmmanuel Vadot regulator-boot-on; 488c66ec88fSEmmanuel Vadot vin-supply = <&vcc3v3_sys>; 489c66ec88fSEmmanuel Vadot 490c66ec88fSEmmanuel Vadot regulator-state-mem { 491c66ec88fSEmmanuel Vadot regulator-off-in-suspend; 492c66ec88fSEmmanuel Vadot }; 493c66ec88fSEmmanuel Vadot }; 494c66ec88fSEmmanuel Vadot 495c66ec88fSEmmanuel Vadot vdd_gpu: regulator@41 { 496c66ec88fSEmmanuel Vadot compatible = "silergy,syr828"; 497c66ec88fSEmmanuel Vadot reg = <0x41>; 498c66ec88fSEmmanuel Vadot fcs,suspend-voltage-selector = <1>; 499c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 500c66ec88fSEmmanuel Vadot pinctrl-0 = <&vsel2_pin>; 501c66ec88fSEmmanuel Vadot regulator-name = "vdd_gpu"; 502c66ec88fSEmmanuel Vadot regulator-min-microvolt = <712500>; 503c66ec88fSEmmanuel Vadot regulator-max-microvolt = <1500000>; 504c66ec88fSEmmanuel Vadot regulator-ramp-delay = <1000>; 5055956d97fSEmmanuel Vadot regulator-always-on; 5065956d97fSEmmanuel Vadot regulator-boot-on; 507c66ec88fSEmmanuel Vadot vin-supply = <&vcc3v3_sys>; 508c66ec88fSEmmanuel Vadot 509c66ec88fSEmmanuel Vadot regulator-state-mem { 510c66ec88fSEmmanuel Vadot regulator-off-in-suspend; 511c66ec88fSEmmanuel Vadot }; 512c66ec88fSEmmanuel Vadot }; 513c66ec88fSEmmanuel Vadot}; 514c66ec88fSEmmanuel Vadot 515c66ec88fSEmmanuel Vadot&i2c1 { 516c66ec88fSEmmanuel Vadot i2c-scl-rising-time-ns = <300>; 517c66ec88fSEmmanuel Vadot i2c-scl-falling-time-ns = <15>; 518c66ec88fSEmmanuel Vadot status = "okay"; 519c66ec88fSEmmanuel Vadot}; 520c66ec88fSEmmanuel Vadot 521c66ec88fSEmmanuel Vadot&i2c3 { 522c66ec88fSEmmanuel Vadot i2c-scl-rising-time-ns = <450>; 523c66ec88fSEmmanuel Vadot i2c-scl-falling-time-ns = <15>; 524c66ec88fSEmmanuel Vadot status = "okay"; 525c66ec88fSEmmanuel Vadot}; 526c66ec88fSEmmanuel Vadot 527c66ec88fSEmmanuel Vadot&i2c4 { 528c66ec88fSEmmanuel Vadot i2c-scl-rising-time-ns = <600>; 529c66ec88fSEmmanuel Vadot i2c-scl-falling-time-ns = <20>; 530c66ec88fSEmmanuel Vadot status = "okay"; 531c66ec88fSEmmanuel Vadot 532c66ec88fSEmmanuel Vadot fusb1: usb-typec@22 { 533c66ec88fSEmmanuel Vadot compatible = "fcs,fusb302"; 534c66ec88fSEmmanuel Vadot reg = <0x22>; 535c66ec88fSEmmanuel Vadot interrupt-parent = <&gpio1>; 536c66ec88fSEmmanuel Vadot interrupts = <1 IRQ_TYPE_LEVEL_LOW>; 537c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 538c66ec88fSEmmanuel Vadot pinctrl-0 = <&fusb1_int>; 539c66ec88fSEmmanuel Vadot vbus-supply = <&vcc_vbus_typec1>; 540c66ec88fSEmmanuel Vadot status = "okay"; 541c66ec88fSEmmanuel Vadot }; 542c66ec88fSEmmanuel Vadot}; 543c66ec88fSEmmanuel Vadot 544c66ec88fSEmmanuel Vadot&i2c7 { 545c66ec88fSEmmanuel Vadot i2c-scl-rising-time-ns = <600>; 546c66ec88fSEmmanuel Vadot i2c-scl-falling-time-ns = <20>; 547c66ec88fSEmmanuel Vadot status = "okay"; 548c66ec88fSEmmanuel Vadot 549c66ec88fSEmmanuel Vadot fusb0: usb-typec@22 { 550c66ec88fSEmmanuel Vadot compatible = "fcs,fusb302"; 551c66ec88fSEmmanuel Vadot reg = <0x22>; 552c66ec88fSEmmanuel Vadot interrupt-parent = <&gpio1>; 553c66ec88fSEmmanuel Vadot interrupts = <2 IRQ_TYPE_LEVEL_LOW>; 554c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 555c66ec88fSEmmanuel Vadot pinctrl-0 = <&fusb0_int>; 556c66ec88fSEmmanuel Vadot vbus-supply = <&vcc_vbus_typec0>; 557c66ec88fSEmmanuel Vadot status = "okay"; 558c66ec88fSEmmanuel Vadot }; 559c66ec88fSEmmanuel Vadot 560c66ec88fSEmmanuel Vadot mp8859: regulator@66 { 561c66ec88fSEmmanuel Vadot compatible = "mps,mp8859"; 562c66ec88fSEmmanuel Vadot reg = <0x66>; 563c66ec88fSEmmanuel Vadot dc_12v: mp8859_dcdc { 564c66ec88fSEmmanuel Vadot regulator-name = "dc_12v"; 565c66ec88fSEmmanuel Vadot regulator-min-microvolt = <12000000>; 566c66ec88fSEmmanuel Vadot regulator-max-microvolt = <12000000>; 567c66ec88fSEmmanuel Vadot regulator-always-on; 568c66ec88fSEmmanuel Vadot regulator-boot-on; 569c66ec88fSEmmanuel Vadot vin-supply = <&vcc_vbus_typec0>; 570c66ec88fSEmmanuel Vadot 571c66ec88fSEmmanuel Vadot regulator-state-mem { 572c66ec88fSEmmanuel Vadot regulator-on-in-suspend; 573c66ec88fSEmmanuel Vadot regulator-suspend-microvolt = <12000000>; 574c66ec88fSEmmanuel Vadot }; 575c66ec88fSEmmanuel Vadot }; 576c66ec88fSEmmanuel Vadot }; 577c66ec88fSEmmanuel Vadot}; 578c66ec88fSEmmanuel Vadot 579c66ec88fSEmmanuel Vadot&i2s0 { 580c66ec88fSEmmanuel Vadot rockchip,playback-channels = <8>; 581c66ec88fSEmmanuel Vadot rockchip,capture-channels = <8>; 582c66ec88fSEmmanuel Vadot status = "okay"; 583c66ec88fSEmmanuel Vadot}; 584c66ec88fSEmmanuel Vadot 585c66ec88fSEmmanuel Vadot&i2s1 { 586c66ec88fSEmmanuel Vadot rockchip,playback-channels = <2>; 587c66ec88fSEmmanuel Vadot rockchip,capture-channels = <2>; 588c66ec88fSEmmanuel Vadot status = "okay"; 589c66ec88fSEmmanuel Vadot}; 590c66ec88fSEmmanuel Vadot 591c66ec88fSEmmanuel Vadot&i2s2 { 592c66ec88fSEmmanuel Vadot status = "okay"; 593c66ec88fSEmmanuel Vadot}; 594c66ec88fSEmmanuel Vadot 595c66ec88fSEmmanuel Vadot&io_domains { 596c66ec88fSEmmanuel Vadot audio-supply = <&vcca1v8_codec>; 597c66ec88fSEmmanuel Vadot bt656-supply = <&vcc_3v0>; 598c66ec88fSEmmanuel Vadot gpio1830-supply = <&vcc_3v0>; 599c66ec88fSEmmanuel Vadot sdmmc-supply = <&vcc_sdio>; 600c66ec88fSEmmanuel Vadot status = "okay"; 601c66ec88fSEmmanuel Vadot}; 602c66ec88fSEmmanuel Vadot 603c66ec88fSEmmanuel Vadot&pmu_io_domains { 604c66ec88fSEmmanuel Vadot pmu1830-supply = <&vcc_3v0>; 605c66ec88fSEmmanuel Vadot status = "okay"; 606c66ec88fSEmmanuel Vadot}; 607c66ec88fSEmmanuel Vadot 608c66ec88fSEmmanuel Vadot&pinctrl { 609c66ec88fSEmmanuel Vadot buttons { 610c66ec88fSEmmanuel Vadot pwr_key_l: pwr-key-l { 611c66ec88fSEmmanuel Vadot rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>; 612c66ec88fSEmmanuel Vadot }; 613c66ec88fSEmmanuel Vadot }; 614c66ec88fSEmmanuel Vadot 6155956d97fSEmmanuel Vadot ir { 6165956d97fSEmmanuel Vadot ir_int: ir-int { 6175956d97fSEmmanuel Vadot rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>; 6185956d97fSEmmanuel Vadot }; 6195956d97fSEmmanuel Vadot }; 6205956d97fSEmmanuel Vadot 621c66ec88fSEmmanuel Vadot lcd-panel { 622c66ec88fSEmmanuel Vadot lcd_panel_reset: lcd-panel-reset { 623c66ec88fSEmmanuel Vadot rockchip,pins = <4 RK_PD5 RK_FUNC_GPIO &pcfg_pull_up>; 624c66ec88fSEmmanuel Vadot }; 625c66ec88fSEmmanuel Vadot }; 626c66ec88fSEmmanuel Vadot 627c66ec88fSEmmanuel Vadot leds { 628c66ec88fSEmmanuel Vadot diy_led_pin: diy-led-pin { 629c66ec88fSEmmanuel Vadot rockchip,pins = <0 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>; 630c66ec88fSEmmanuel Vadot }; 631c66ec88fSEmmanuel Vadot 632c66ec88fSEmmanuel Vadot work_led_pin: work-led-pin { 633c66ec88fSEmmanuel Vadot rockchip,pins = <2 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>; 634c66ec88fSEmmanuel Vadot }; 635c66ec88fSEmmanuel Vadot 636c66ec88fSEmmanuel Vadot yellow_led_pin: yellow-led-pin { 637c66ec88fSEmmanuel Vadot rockchip,pins = <0 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>; 638c66ec88fSEmmanuel Vadot }; 639c66ec88fSEmmanuel Vadot }; 640c66ec88fSEmmanuel Vadot 641c66ec88fSEmmanuel Vadot pmic { 642c66ec88fSEmmanuel Vadot vsel1_pin: vsel1-pin { 643c66ec88fSEmmanuel Vadot rockchip,pins = <1 RK_PC2 RK_FUNC_GPIO &pcfg_pull_down>; 644c66ec88fSEmmanuel Vadot }; 645c66ec88fSEmmanuel Vadot 646c66ec88fSEmmanuel Vadot vsel2_pin: vsel2-pin { 647c66ec88fSEmmanuel Vadot rockchip,pins = <1 RK_PB6 RK_FUNC_GPIO &pcfg_pull_down>; 648c66ec88fSEmmanuel Vadot }; 649c66ec88fSEmmanuel Vadot }; 650c66ec88fSEmmanuel Vadot 651c66ec88fSEmmanuel Vadot sdio-pwrseq { 652c66ec88fSEmmanuel Vadot wifi_enable_h: wifi-enable-h { 653c66ec88fSEmmanuel Vadot rockchip,pins = <0 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>; 654c66ec88fSEmmanuel Vadot }; 655c66ec88fSEmmanuel Vadot }; 656c66ec88fSEmmanuel Vadot 657c66ec88fSEmmanuel Vadot sdmmc { 658c66ec88fSEmmanuel Vadot vcc3v0_sd_en: vcc3v0-sd-en { 659c66ec88fSEmmanuel Vadot rockchip,pins = <4 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>; 660c66ec88fSEmmanuel Vadot }; 661c66ec88fSEmmanuel Vadot }; 662c66ec88fSEmmanuel Vadot 663c66ec88fSEmmanuel Vadot pmic { 664c66ec88fSEmmanuel Vadot pmic_int_l: pmic-int-l { 665c66ec88fSEmmanuel Vadot rockchip,pins = <1 RK_PC5 RK_FUNC_GPIO &pcfg_pull_up>; 666c66ec88fSEmmanuel Vadot }; 667c66ec88fSEmmanuel Vadot }; 668c66ec88fSEmmanuel Vadot 669c66ec88fSEmmanuel Vadot usb2 { 670c66ec88fSEmmanuel Vadot vcc5v0_host_en: vcc5v0-host-en { 671c66ec88fSEmmanuel Vadot rockchip,pins = <1 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>; 672c66ec88fSEmmanuel Vadot }; 673c66ec88fSEmmanuel Vadot 674c66ec88fSEmmanuel Vadot vcc_sys_en: vcc-sys-en { 675c66ec88fSEmmanuel Vadot rockchip,pins = <2 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>; 676c66ec88fSEmmanuel Vadot }; 677c66ec88fSEmmanuel Vadot 678c66ec88fSEmmanuel Vadot hub_rst: hub-rst { 679c66ec88fSEmmanuel Vadot rockchip,pins = <2 RK_PA4 RK_FUNC_GPIO &pcfg_output_high>; 680c66ec88fSEmmanuel Vadot }; 681c66ec88fSEmmanuel Vadot }; 682c66ec88fSEmmanuel Vadot 683c66ec88fSEmmanuel Vadot usb-typec { 684c66ec88fSEmmanuel Vadot vcc_vbus_typec1_en: vcc-vbus-typec1-en { 685c66ec88fSEmmanuel Vadot rockchip,pins = <1 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>; 686c66ec88fSEmmanuel Vadot }; 687c66ec88fSEmmanuel Vadot }; 688c66ec88fSEmmanuel Vadot 689c66ec88fSEmmanuel Vadot fusb30x { 690c66ec88fSEmmanuel Vadot fusb0_int: fusb0-int { 691c66ec88fSEmmanuel Vadot rockchip,pins = <1 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up>; 692c66ec88fSEmmanuel Vadot }; 693c66ec88fSEmmanuel Vadot 694c66ec88fSEmmanuel Vadot fusb1_int: fusb1-int { 695c66ec88fSEmmanuel Vadot rockchip,pins = <1 RK_PA1 RK_FUNC_GPIO &pcfg_pull_up>; 696c66ec88fSEmmanuel Vadot }; 697c66ec88fSEmmanuel Vadot }; 698c66ec88fSEmmanuel Vadot}; 699c66ec88fSEmmanuel Vadot 700c66ec88fSEmmanuel Vadot&pwm0 { 701c66ec88fSEmmanuel Vadot status = "okay"; 702c66ec88fSEmmanuel Vadot}; 703c66ec88fSEmmanuel Vadot 704c66ec88fSEmmanuel Vadot&pwm2 { 705c66ec88fSEmmanuel Vadot status = "okay"; 706c66ec88fSEmmanuel Vadot}; 707c66ec88fSEmmanuel Vadot 708c66ec88fSEmmanuel Vadot&saradc { 709c66ec88fSEmmanuel Vadot vref-supply = <&vcca1v8_s3>; 710c66ec88fSEmmanuel Vadot status = "okay"; 711c66ec88fSEmmanuel Vadot}; 712c66ec88fSEmmanuel Vadot 713c66ec88fSEmmanuel Vadot&sdmmc { 714c66ec88fSEmmanuel Vadot bus-width = <4>; 715c66ec88fSEmmanuel Vadot cap-sd-highspeed; 716c66ec88fSEmmanuel Vadot cd-gpios = <&gpio0 RK_PA7 GPIO_ACTIVE_LOW>; 717c66ec88fSEmmanuel Vadot disable-wp; 718c66ec88fSEmmanuel Vadot max-frequency = <150000000>; 719c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 720c66ec88fSEmmanuel Vadot pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_bus4>; 721c66ec88fSEmmanuel Vadot sd-uhs-sdr104; 722c66ec88fSEmmanuel Vadot vmmc-supply = <&vcc3v0_sd>; 723c66ec88fSEmmanuel Vadot vqmmc-supply = <&vcc_sdio>; 724c66ec88fSEmmanuel Vadot status = "okay"; 725c66ec88fSEmmanuel Vadot}; 726c66ec88fSEmmanuel Vadot 727c66ec88fSEmmanuel Vadot&sdhci { 728c66ec88fSEmmanuel Vadot bus-width = <8>; 729c66ec88fSEmmanuel Vadot non-removable; 730c66ec88fSEmmanuel Vadot status = "okay"; 731c66ec88fSEmmanuel Vadot}; 732c66ec88fSEmmanuel Vadot 733c66ec88fSEmmanuel Vadot&spi1 { 734c66ec88fSEmmanuel Vadot status = "okay"; 735c66ec88fSEmmanuel Vadot 736c66ec88fSEmmanuel Vadot flash@0 { 737c66ec88fSEmmanuel Vadot compatible = "jedec,spi-nor"; 738c66ec88fSEmmanuel Vadot reg = <0>; 739cb7aa33aSEmmanuel Vadot spi-max-frequency = <30000000>; 740c66ec88fSEmmanuel Vadot }; 741c66ec88fSEmmanuel Vadot}; 742c66ec88fSEmmanuel Vadot 743c66ec88fSEmmanuel Vadot&tcphy0 { 744c66ec88fSEmmanuel Vadot status = "okay"; 745c66ec88fSEmmanuel Vadot}; 746c66ec88fSEmmanuel Vadot 747c66ec88fSEmmanuel Vadot&tcphy1 { 748c66ec88fSEmmanuel Vadot status = "okay"; 749c66ec88fSEmmanuel Vadot}; 750c66ec88fSEmmanuel Vadot 751c66ec88fSEmmanuel Vadot&tsadc { 752c66ec88fSEmmanuel Vadot /* tshut mode 0:CRU 1:GPIO */ 753c66ec88fSEmmanuel Vadot rockchip,hw-tshut-mode = <1>; 754c66ec88fSEmmanuel Vadot /* tshut polarity 0:LOW 1:HIGH */ 755c66ec88fSEmmanuel Vadot rockchip,hw-tshut-polarity = <1>; 756c66ec88fSEmmanuel Vadot status = "okay"; 757c66ec88fSEmmanuel Vadot}; 758c66ec88fSEmmanuel Vadot 759c66ec88fSEmmanuel Vadot&u2phy0 { 760c66ec88fSEmmanuel Vadot status = "okay"; 761c66ec88fSEmmanuel Vadot 762c66ec88fSEmmanuel Vadot u2phy0_otg: otg-port { 763c66ec88fSEmmanuel Vadot phy-supply = <&vcc_vbus_typec0>; 764c66ec88fSEmmanuel Vadot status = "okay"; 765c66ec88fSEmmanuel Vadot }; 766c66ec88fSEmmanuel Vadot 767c66ec88fSEmmanuel Vadot u2phy0_host: host-port { 768c66ec88fSEmmanuel Vadot phy-supply = <&vcc5v0_host>; 769c66ec88fSEmmanuel Vadot status = "okay"; 770c66ec88fSEmmanuel Vadot }; 771c66ec88fSEmmanuel Vadot}; 772c66ec88fSEmmanuel Vadot 773c66ec88fSEmmanuel Vadot&u2phy1 { 774c66ec88fSEmmanuel Vadot status = "okay"; 775c66ec88fSEmmanuel Vadot 776c66ec88fSEmmanuel Vadot u2phy1_otg: otg-port { 777c66ec88fSEmmanuel Vadot phy-supply = <&vcc_vbus_typec1>; 778c66ec88fSEmmanuel Vadot status = "okay"; 779c66ec88fSEmmanuel Vadot }; 780c66ec88fSEmmanuel Vadot 781c66ec88fSEmmanuel Vadot u2phy1_host: host-port { 782c66ec88fSEmmanuel Vadot phy-supply = <&vcc5v0_host>; 783c66ec88fSEmmanuel Vadot status = "okay"; 784c66ec88fSEmmanuel Vadot }; 785c66ec88fSEmmanuel Vadot}; 786c66ec88fSEmmanuel Vadot 787c66ec88fSEmmanuel Vadot&uart0 { 788c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 789c66ec88fSEmmanuel Vadot pinctrl-0 = <&uart0_xfer &uart0_cts>; 790c66ec88fSEmmanuel Vadot status = "okay"; 791c66ec88fSEmmanuel Vadot}; 792c66ec88fSEmmanuel Vadot 793c66ec88fSEmmanuel Vadot&uart2 { 794c66ec88fSEmmanuel Vadot status = "okay"; 795c66ec88fSEmmanuel Vadot}; 796c66ec88fSEmmanuel Vadot 797c66ec88fSEmmanuel Vadot&usb_host0_ehci { 798c66ec88fSEmmanuel Vadot status = "okay"; 799c66ec88fSEmmanuel Vadot}; 800c66ec88fSEmmanuel Vadot 801c66ec88fSEmmanuel Vadot&usb_host0_ohci { 802c66ec88fSEmmanuel Vadot status = "okay"; 803c66ec88fSEmmanuel Vadot}; 804c66ec88fSEmmanuel Vadot 805c66ec88fSEmmanuel Vadot&usb_host1_ehci { 806c66ec88fSEmmanuel Vadot status = "okay"; 807c66ec88fSEmmanuel Vadot}; 808c66ec88fSEmmanuel Vadot 809c66ec88fSEmmanuel Vadot&usb_host1_ohci { 810c66ec88fSEmmanuel Vadot status = "okay"; 811c66ec88fSEmmanuel Vadot}; 812c66ec88fSEmmanuel Vadot 813c66ec88fSEmmanuel Vadot&usbdrd3_0 { 814c66ec88fSEmmanuel Vadot status = "okay"; 815c66ec88fSEmmanuel Vadot}; 816c66ec88fSEmmanuel Vadot 817c66ec88fSEmmanuel Vadot&usbdrd_dwc3_0 { 818c66ec88fSEmmanuel Vadot status = "okay"; 819c66ec88fSEmmanuel Vadot}; 820c66ec88fSEmmanuel Vadot 821c66ec88fSEmmanuel Vadot&usbdrd3_1 { 822c66ec88fSEmmanuel Vadot status = "okay"; 823c66ec88fSEmmanuel Vadot}; 824c66ec88fSEmmanuel Vadot 825c66ec88fSEmmanuel Vadot&usbdrd_dwc3_1 { 826c66ec88fSEmmanuel Vadot status = "okay"; 827c66ec88fSEmmanuel Vadot dr_mode = "host"; 828c66ec88fSEmmanuel Vadot}; 829c66ec88fSEmmanuel Vadot 830c66ec88fSEmmanuel Vadot&vopb { 831c66ec88fSEmmanuel Vadot status = "okay"; 832c66ec88fSEmmanuel Vadot}; 833c66ec88fSEmmanuel Vadot 834c66ec88fSEmmanuel Vadot&vopb_mmu { 835c66ec88fSEmmanuel Vadot status = "okay"; 836c66ec88fSEmmanuel Vadot}; 837c66ec88fSEmmanuel Vadot 838c66ec88fSEmmanuel Vadot&vopl { 839c66ec88fSEmmanuel Vadot status = "okay"; 840c66ec88fSEmmanuel Vadot}; 841c66ec88fSEmmanuel Vadot 842c66ec88fSEmmanuel Vadot&vopl_mmu { 843c66ec88fSEmmanuel Vadot status = "okay"; 844c66ec88fSEmmanuel Vadot}; 845