1c66ec88fSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2c66ec88fSEmmanuel Vadot/* 3c66ec88fSEmmanuel Vadot * Copyright (c) 2017 Fuzhou Rockchip Electronics Co., Ltd. 4c66ec88fSEmmanuel Vadot * Copyright (c) 2018 Akash Gajjar <Akash_Gajjar@mentor.com> 5c66ec88fSEmmanuel Vadot */ 6c66ec88fSEmmanuel Vadot 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/ { 132eb4d8dcSEmmanuel Vadot aliases { 14*8d13bc63SEmmanuel Vadot ethernet0 = &gmac; 152eb4d8dcSEmmanuel Vadot mmc0 = &sdio0; 162eb4d8dcSEmmanuel Vadot mmc1 = &sdmmc; 172eb4d8dcSEmmanuel Vadot mmc2 = &sdhci; 182eb4d8dcSEmmanuel Vadot }; 192eb4d8dcSEmmanuel Vadot 20c66ec88fSEmmanuel Vadot chosen { 21c66ec88fSEmmanuel Vadot stdout-path = "serial2:1500000n8"; 22c66ec88fSEmmanuel Vadot }; 23c66ec88fSEmmanuel Vadot 24b97ee269SEmmanuel Vadot /* enable for panel backlight support */ 25b97ee269SEmmanuel Vadot backlight: backlight { 26b97ee269SEmmanuel Vadot compatible = "pwm-backlight"; 27b97ee269SEmmanuel Vadot brightness-levels = <0 4 8 16 32 64 128 255>; 28b97ee269SEmmanuel Vadot default-brightness-level = <5>; 29b97ee269SEmmanuel Vadot pwms = <&pwm0 0 1000000 0>; 30b97ee269SEmmanuel Vadot status = "disabled"; 31b97ee269SEmmanuel Vadot }; 32b97ee269SEmmanuel Vadot 33c66ec88fSEmmanuel Vadot clkin_gmac: external-gmac-clock { 34c66ec88fSEmmanuel Vadot compatible = "fixed-clock"; 35c66ec88fSEmmanuel Vadot clock-frequency = <125000000>; 36c66ec88fSEmmanuel Vadot clock-output-names = "clkin_gmac"; 37c66ec88fSEmmanuel Vadot #clock-cells = <0>; 38c66ec88fSEmmanuel Vadot }; 39c66ec88fSEmmanuel Vadot 40c66ec88fSEmmanuel Vadot gpio-keys { 41c66ec88fSEmmanuel Vadot compatible = "gpio-keys"; 42c66ec88fSEmmanuel Vadot autorepeat; 43c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 44c66ec88fSEmmanuel Vadot pinctrl-0 = <&pwrbtn>; 45c66ec88fSEmmanuel Vadot 46b97ee269SEmmanuel Vadot key-power { 47c66ec88fSEmmanuel Vadot debounce-interval = <100>; 48c66ec88fSEmmanuel Vadot gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>; 49c66ec88fSEmmanuel Vadot label = "GPIO Key Power"; 50c66ec88fSEmmanuel Vadot linux,code = <KEY_POWER>; 51c66ec88fSEmmanuel Vadot wakeup-source; 52c66ec88fSEmmanuel Vadot }; 53c66ec88fSEmmanuel Vadot }; 54c66ec88fSEmmanuel Vadot 552eb4d8dcSEmmanuel Vadot ir-receiver { 562eb4d8dcSEmmanuel Vadot compatible = "gpio-ir-receiver"; 572eb4d8dcSEmmanuel Vadot gpios = <&gpio0 RK_PA6 GPIO_ACTIVE_LOW>; 582eb4d8dcSEmmanuel Vadot pinctrl-0 = <&ir_int>; 592eb4d8dcSEmmanuel Vadot pinctrl-names = "default"; 602eb4d8dcSEmmanuel Vadot }; 612eb4d8dcSEmmanuel Vadot 62c66ec88fSEmmanuel Vadot leds { 63c66ec88fSEmmanuel Vadot compatible = "gpio-leds"; 64c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 65c66ec88fSEmmanuel Vadot pinctrl-0 = <&work_led_pin>, <&diy_led_pin>; 66c66ec88fSEmmanuel Vadot 67c66ec88fSEmmanuel Vadot work_led: led-0 { 68c66ec88fSEmmanuel Vadot label = "work"; 69c66ec88fSEmmanuel Vadot default-state = "on"; 70c66ec88fSEmmanuel Vadot gpios = <&gpio0 RK_PB3 GPIO_ACTIVE_HIGH>; 71c66ec88fSEmmanuel Vadot }; 72c66ec88fSEmmanuel Vadot 73c66ec88fSEmmanuel Vadot diy_led: led-1 { 74c66ec88fSEmmanuel Vadot label = "diy"; 75c66ec88fSEmmanuel Vadot default-state = "off"; 76c66ec88fSEmmanuel Vadot gpios = <&gpio0 RK_PA2 GPIO_ACTIVE_HIGH>; 77c66ec88fSEmmanuel Vadot }; 78c66ec88fSEmmanuel Vadot }; 79c66ec88fSEmmanuel Vadot 80c66ec88fSEmmanuel Vadot fan: pwm-fan { 81c66ec88fSEmmanuel Vadot compatible = "pwm-fan"; 828cc087a1SEmmanuel Vadot cooling-levels = <0 100 150 200 255>; 83c66ec88fSEmmanuel Vadot #cooling-cells = <2>; 84c66ec88fSEmmanuel Vadot fan-supply = <&vcc12v_dcin>; 85c66ec88fSEmmanuel Vadot pwms = <&pwm1 0 50000 0>; 86c66ec88fSEmmanuel Vadot }; 87c66ec88fSEmmanuel Vadot 88c66ec88fSEmmanuel Vadot sdio_pwrseq: sdio-pwrseq { 89c66ec88fSEmmanuel Vadot compatible = "mmc-pwrseq-simple"; 90c66ec88fSEmmanuel Vadot clocks = <&rk808 1>; 91c66ec88fSEmmanuel Vadot clock-names = "ext_clock"; 92c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 93c66ec88fSEmmanuel Vadot pinctrl-0 = <&wifi_enable_h>; 94c66ec88fSEmmanuel Vadot reset-gpios = <&gpio0 RK_PB2 GPIO_ACTIVE_LOW>; 95c66ec88fSEmmanuel Vadot }; 96c66ec88fSEmmanuel Vadot 97c66ec88fSEmmanuel Vadot sound { 98c66ec88fSEmmanuel Vadot compatible = "audio-graph-card"; 995def4c47SEmmanuel Vadot label = "Analog"; 100c66ec88fSEmmanuel Vadot dais = <&i2s1_p0>; 101c66ec88fSEmmanuel Vadot }; 102c66ec88fSEmmanuel Vadot 1035def4c47SEmmanuel Vadot sound-dit { 1045def4c47SEmmanuel Vadot compatible = "audio-graph-card"; 1055def4c47SEmmanuel Vadot label = "SPDIF"; 1065def4c47SEmmanuel Vadot dais = <&spdif_p0>; 1075def4c47SEmmanuel Vadot }; 1085def4c47SEmmanuel Vadot 1095def4c47SEmmanuel Vadot spdif-dit { 1105def4c47SEmmanuel Vadot compatible = "linux,spdif-dit"; 1115def4c47SEmmanuel Vadot #sound-dai-cells = <0>; 1125def4c47SEmmanuel Vadot 1135def4c47SEmmanuel Vadot port { 1145def4c47SEmmanuel Vadot dit_p0_0: endpoint { 1155def4c47SEmmanuel Vadot remote-endpoint = <&spdif_p0_0>; 1165def4c47SEmmanuel Vadot }; 1175def4c47SEmmanuel Vadot }; 1185def4c47SEmmanuel Vadot }; 1195def4c47SEmmanuel Vadot 120b97ee269SEmmanuel Vadot avdd: avdd-regulator { 121b97ee269SEmmanuel Vadot compatible = "regulator-fixed"; 122b97ee269SEmmanuel Vadot regulator-name = "avdd"; 123b97ee269SEmmanuel Vadot regulator-min-microvolt = <11000000>; 124b97ee269SEmmanuel Vadot regulator-max-microvolt = <11000000>; 125b97ee269SEmmanuel Vadot vin-supply = <&vcc3v3_s0>; 126b97ee269SEmmanuel Vadot }; 127b97ee269SEmmanuel Vadot 128c66ec88fSEmmanuel Vadot vcc12v_dcin: vcc12v-dcin { 129c66ec88fSEmmanuel Vadot compatible = "regulator-fixed"; 130c66ec88fSEmmanuel Vadot regulator-name = "vcc12v_dcin"; 131c66ec88fSEmmanuel Vadot regulator-always-on; 132c66ec88fSEmmanuel Vadot regulator-boot-on; 133c66ec88fSEmmanuel Vadot regulator-min-microvolt = <12000000>; 134c66ec88fSEmmanuel Vadot regulator-max-microvolt = <12000000>; 135c66ec88fSEmmanuel Vadot }; 136c66ec88fSEmmanuel Vadot 137c66ec88fSEmmanuel Vadot /* switched by pmic_sleep */ 138c66ec88fSEmmanuel Vadot vcc1v8_s3: vcca1v8_s3: vcc1v8-s3 { 139c66ec88fSEmmanuel Vadot compatible = "regulator-fixed"; 140c66ec88fSEmmanuel Vadot regulator-name = "vcc1v8_s3"; 141c66ec88fSEmmanuel Vadot regulator-always-on; 142c66ec88fSEmmanuel Vadot regulator-boot-on; 143c66ec88fSEmmanuel Vadot regulator-min-microvolt = <1800000>; 144c66ec88fSEmmanuel Vadot regulator-max-microvolt = <1800000>; 145c66ec88fSEmmanuel Vadot vin-supply = <&vcc_1v8>; 146c66ec88fSEmmanuel Vadot }; 147c66ec88fSEmmanuel Vadot 148c66ec88fSEmmanuel Vadot /* micro SD card power */ 149c66ec88fSEmmanuel Vadot vcc3v0_sd: vcc3v0-sd { 150c66ec88fSEmmanuel Vadot compatible = "regulator-fixed"; 151c66ec88fSEmmanuel Vadot enable-active-high; 152c66ec88fSEmmanuel Vadot gpio = <&gpio0 RK_PA1 GPIO_ACTIVE_HIGH>; 153c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 154c66ec88fSEmmanuel Vadot pinctrl-0 = <&sdmmc0_pwr_h>; 155c66ec88fSEmmanuel Vadot regulator-name = "vcc3v0_sd"; 156c66ec88fSEmmanuel Vadot regulator-always-on; 157c66ec88fSEmmanuel Vadot regulator-min-microvolt = <3000000>; 158c66ec88fSEmmanuel Vadot regulator-max-microvolt = <3000000>; 159c66ec88fSEmmanuel Vadot vin-supply = <&vcc3v3_sys>; 160c66ec88fSEmmanuel Vadot 161c66ec88fSEmmanuel Vadot regulator-state-mem { 162c66ec88fSEmmanuel Vadot regulator-off-in-suspend; 163c66ec88fSEmmanuel Vadot }; 164c66ec88fSEmmanuel Vadot }; 165c66ec88fSEmmanuel Vadot 166c66ec88fSEmmanuel Vadot vcc3v3_pcie: vcc3v3-pcie-regulator { 167c66ec88fSEmmanuel Vadot compatible = "regulator-fixed"; 168c66ec88fSEmmanuel Vadot enable-active-high; 169c66ec88fSEmmanuel Vadot gpio = <&gpio1 RK_PD0 GPIO_ACTIVE_HIGH>; 170c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 171c66ec88fSEmmanuel Vadot pinctrl-0 = <&pcie_pwr_en>; 172c66ec88fSEmmanuel Vadot regulator-name = "vcc3v3_pcie"; 173c66ec88fSEmmanuel Vadot regulator-always-on; 174c66ec88fSEmmanuel Vadot regulator-boot-on; 175c66ec88fSEmmanuel Vadot vin-supply = <&vcc12v_dcin>; 176c66ec88fSEmmanuel Vadot }; 177c66ec88fSEmmanuel Vadot 178c66ec88fSEmmanuel Vadot vcc3v3_sys: vcc3v3-sys { 179c66ec88fSEmmanuel Vadot compatible = "regulator-fixed"; 180c66ec88fSEmmanuel Vadot regulator-name = "vcc3v3_sys"; 181c66ec88fSEmmanuel Vadot regulator-always-on; 182c66ec88fSEmmanuel Vadot regulator-boot-on; 183c66ec88fSEmmanuel Vadot regulator-min-microvolt = <3300000>; 184c66ec88fSEmmanuel Vadot regulator-max-microvolt = <3300000>; 185c66ec88fSEmmanuel Vadot vin-supply = <&vcc5v0_sys>; 186c66ec88fSEmmanuel Vadot }; 187c66ec88fSEmmanuel Vadot 188c66ec88fSEmmanuel Vadot /* Actually 3 regulators (host0, 1, 2) controlled by the same gpio */ 189c66ec88fSEmmanuel Vadot vcc5v0_host: vcc5v0-host-regulator { 190c66ec88fSEmmanuel Vadot compatible = "regulator-fixed"; 191c66ec88fSEmmanuel Vadot enable-active-high; 192c66ec88fSEmmanuel Vadot gpio = <&gpio4 RK_PD2 GPIO_ACTIVE_HIGH>; 193c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 194c66ec88fSEmmanuel Vadot pinctrl-0 = <&vcc5v0_host_en>; 195c66ec88fSEmmanuel Vadot regulator-name = "vcc5v0_host"; 196c66ec88fSEmmanuel Vadot regulator-always-on; 197c66ec88fSEmmanuel Vadot vin-supply = <&vcc5v0_usb>; 198c66ec88fSEmmanuel Vadot }; 199c66ec88fSEmmanuel Vadot 200c66ec88fSEmmanuel Vadot vcc5v0_typec: vcc5v0-typec-regulator { 201c66ec88fSEmmanuel Vadot compatible = "regulator-fixed"; 202c66ec88fSEmmanuel Vadot enable-active-high; 203c66ec88fSEmmanuel Vadot gpio = <&gpio1 RK_PA3 GPIO_ACTIVE_HIGH>; 204c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 205c66ec88fSEmmanuel Vadot pinctrl-0 = <&vcc5v0_typec_en>; 206c66ec88fSEmmanuel Vadot regulator-name = "vcc5v0_typec"; 207c66ec88fSEmmanuel Vadot regulator-always-on; 208c66ec88fSEmmanuel Vadot vin-supply = <&vcc5v0_usb>; 209c66ec88fSEmmanuel Vadot }; 210c66ec88fSEmmanuel Vadot 211c66ec88fSEmmanuel Vadot vcc5v0_sys: vcc5v0-sys { 212c66ec88fSEmmanuel Vadot compatible = "regulator-fixed"; 213c66ec88fSEmmanuel Vadot regulator-name = "vcc5v0_sys"; 214c66ec88fSEmmanuel Vadot regulator-always-on; 215c66ec88fSEmmanuel Vadot regulator-boot-on; 216c66ec88fSEmmanuel Vadot regulator-min-microvolt = <5000000>; 217c66ec88fSEmmanuel Vadot regulator-max-microvolt = <5000000>; 218c66ec88fSEmmanuel Vadot vin-supply = <&vcc12v_dcin>; 219c66ec88fSEmmanuel Vadot }; 220c66ec88fSEmmanuel Vadot 221c66ec88fSEmmanuel Vadot vcc5v0_usb: vcc5v0-usb { 222c66ec88fSEmmanuel Vadot compatible = "regulator-fixed"; 223c66ec88fSEmmanuel Vadot regulator-name = "vcc5v0_usb"; 224c66ec88fSEmmanuel Vadot regulator-always-on; 225c66ec88fSEmmanuel Vadot regulator-boot-on; 226c66ec88fSEmmanuel Vadot regulator-min-microvolt = <5000000>; 227c66ec88fSEmmanuel Vadot regulator-max-microvolt = <5000000>; 228c66ec88fSEmmanuel Vadot vin-supply = <&vcc12v_dcin>; 229c66ec88fSEmmanuel Vadot }; 230c66ec88fSEmmanuel Vadot 231c66ec88fSEmmanuel Vadot vdd_log: vdd-log { 232c66ec88fSEmmanuel Vadot compatible = "pwm-regulator"; 233c66ec88fSEmmanuel Vadot pwms = <&pwm2 0 25000 1>; 234c9ccf3a3SEmmanuel Vadot pwm-supply = <&vcc5v0_sys>; 235c66ec88fSEmmanuel Vadot regulator-name = "vdd_log"; 236c66ec88fSEmmanuel Vadot regulator-always-on; 237c66ec88fSEmmanuel Vadot regulator-boot-on; 238c66ec88fSEmmanuel Vadot regulator-min-microvolt = <800000>; 239c66ec88fSEmmanuel Vadot regulator-max-microvolt = <1700000>; 240c66ec88fSEmmanuel Vadot }; 241c66ec88fSEmmanuel Vadot}; 242c66ec88fSEmmanuel Vadot 243c66ec88fSEmmanuel Vadot&cpu_l0 { 244c66ec88fSEmmanuel Vadot cpu-supply = <&vdd_cpu_l>; 245c66ec88fSEmmanuel Vadot}; 246c66ec88fSEmmanuel Vadot 247c66ec88fSEmmanuel Vadot&cpu_l1 { 248c66ec88fSEmmanuel Vadot cpu-supply = <&vdd_cpu_l>; 249c66ec88fSEmmanuel Vadot}; 250c66ec88fSEmmanuel Vadot 251c66ec88fSEmmanuel Vadot&cpu_l2 { 252c66ec88fSEmmanuel Vadot cpu-supply = <&vdd_cpu_l>; 253c66ec88fSEmmanuel Vadot}; 254c66ec88fSEmmanuel Vadot 255c66ec88fSEmmanuel Vadot&cpu_l3 { 256c66ec88fSEmmanuel Vadot cpu-supply = <&vdd_cpu_l>; 257c66ec88fSEmmanuel Vadot}; 258c66ec88fSEmmanuel Vadot 259c66ec88fSEmmanuel Vadot&cpu_b0 { 260c66ec88fSEmmanuel Vadot cpu-supply = <&vdd_cpu_b>; 261c66ec88fSEmmanuel Vadot}; 262c66ec88fSEmmanuel Vadot 263c66ec88fSEmmanuel Vadot&cpu_b1 { 264c66ec88fSEmmanuel Vadot cpu-supply = <&vdd_cpu_b>; 265c66ec88fSEmmanuel Vadot}; 266c66ec88fSEmmanuel Vadot 2678cc087a1SEmmanuel Vadot&cpu_thermal { 2688cc087a1SEmmanuel Vadot trips { 2698cc087a1SEmmanuel Vadot cpu_warm: cpu_warm { 2708cc087a1SEmmanuel Vadot temperature = <55000>; 2718cc087a1SEmmanuel Vadot hysteresis = <2000>; 2728cc087a1SEmmanuel Vadot type = "active"; 2738cc087a1SEmmanuel Vadot }; 2748cc087a1SEmmanuel Vadot 2758cc087a1SEmmanuel Vadot cpu_hot: cpu_hot { 2768cc087a1SEmmanuel Vadot temperature = <65000>; 2778cc087a1SEmmanuel Vadot hysteresis = <2000>; 2788cc087a1SEmmanuel Vadot type = "active"; 2798cc087a1SEmmanuel Vadot }; 2808cc087a1SEmmanuel Vadot }; 2818cc087a1SEmmanuel Vadot 2828cc087a1SEmmanuel Vadot cooling-maps { 2838cc087a1SEmmanuel Vadot map2 { 2848cc087a1SEmmanuel Vadot trip = <&cpu_warm>; 2858cc087a1SEmmanuel Vadot cooling-device = <&fan THERMAL_NO_LIMIT 1>; 2868cc087a1SEmmanuel Vadot }; 2878cc087a1SEmmanuel Vadot 2888cc087a1SEmmanuel Vadot map3 { 2898cc087a1SEmmanuel Vadot trip = <&cpu_hot>; 2908cc087a1SEmmanuel Vadot cooling-device = <&fan 2 THERMAL_NO_LIMIT>; 2918cc087a1SEmmanuel Vadot }; 2928cc087a1SEmmanuel Vadot }; 2938cc087a1SEmmanuel Vadot}; 2948cc087a1SEmmanuel Vadot 295c66ec88fSEmmanuel Vadot&emmc_phy { 296c66ec88fSEmmanuel Vadot status = "okay"; 297c66ec88fSEmmanuel Vadot}; 298c66ec88fSEmmanuel Vadot 299c66ec88fSEmmanuel Vadot&gmac { 300c66ec88fSEmmanuel Vadot assigned-clocks = <&cru SCLK_RMII_SRC>; 301c66ec88fSEmmanuel Vadot assigned-clock-parents = <&clkin_gmac>; 302c66ec88fSEmmanuel Vadot clock_in_out = "input"; 303c66ec88fSEmmanuel Vadot phy-supply = <&vcc_lan>; 304c66ec88fSEmmanuel Vadot phy-mode = "rgmii"; 305c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 306c66ec88fSEmmanuel Vadot pinctrl-0 = <&rgmii_pins>; 307c66ec88fSEmmanuel Vadot snps,reset-gpio = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>; 308c66ec88fSEmmanuel Vadot snps,reset-active-low; 309c66ec88fSEmmanuel Vadot snps,reset-delays-us = <0 10000 50000>; 310c66ec88fSEmmanuel Vadot tx_delay = <0x28>; 311c66ec88fSEmmanuel Vadot rx_delay = <0x11>; 312c66ec88fSEmmanuel Vadot status = "okay"; 313c66ec88fSEmmanuel Vadot}; 314c66ec88fSEmmanuel Vadot 315c66ec88fSEmmanuel Vadot&hdmi { 316c66ec88fSEmmanuel Vadot ddc-i2c-bus = <&i2c3>; 317c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 318c66ec88fSEmmanuel Vadot pinctrl-0 = <&hdmi_cec>; 319c66ec88fSEmmanuel Vadot status = "okay"; 320c66ec88fSEmmanuel Vadot}; 321c66ec88fSEmmanuel Vadot 322c66ec88fSEmmanuel Vadot&hdmi_sound { 323c66ec88fSEmmanuel Vadot status = "okay"; 324c66ec88fSEmmanuel Vadot}; 325c66ec88fSEmmanuel Vadot 326c66ec88fSEmmanuel Vadot&gpu { 327c66ec88fSEmmanuel Vadot mali-supply = <&vdd_gpu>; 328c66ec88fSEmmanuel Vadot status = "okay"; 329c66ec88fSEmmanuel Vadot}; 330c66ec88fSEmmanuel Vadot 331c66ec88fSEmmanuel Vadot&i2c0 { 332c66ec88fSEmmanuel Vadot clock-frequency = <400000>; 333c66ec88fSEmmanuel Vadot i2c-scl-rising-time-ns = <168>; 334c66ec88fSEmmanuel Vadot i2c-scl-falling-time-ns = <4>; 335c66ec88fSEmmanuel Vadot status = "okay"; 336c66ec88fSEmmanuel Vadot 337c66ec88fSEmmanuel Vadot rk808: pmic@1b { 338c66ec88fSEmmanuel Vadot compatible = "rockchip,rk808"; 339c66ec88fSEmmanuel Vadot reg = <0x1b>; 340c66ec88fSEmmanuel Vadot interrupt-parent = <&gpio3>; 341c66ec88fSEmmanuel Vadot interrupts = <10 IRQ_TYPE_LEVEL_LOW>; 342c66ec88fSEmmanuel Vadot #clock-cells = <1>; 343c66ec88fSEmmanuel Vadot clock-output-names = "xin32k", "rk808-clkout2"; 344c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 345c66ec88fSEmmanuel Vadot pinctrl-0 = <&pmic_int_l>; 346c66ec88fSEmmanuel Vadot rockchip,system-power-controller; 347c66ec88fSEmmanuel Vadot wakeup-source; 348c66ec88fSEmmanuel Vadot 349c66ec88fSEmmanuel Vadot vcc1-supply = <&vcc5v0_sys>; 350c66ec88fSEmmanuel Vadot vcc2-supply = <&vcc5v0_sys>; 351c66ec88fSEmmanuel Vadot vcc3-supply = <&vcc5v0_sys>; 352c66ec88fSEmmanuel Vadot vcc4-supply = <&vcc5v0_sys>; 353c66ec88fSEmmanuel Vadot vcc6-supply = <&vcc5v0_sys>; 354c66ec88fSEmmanuel Vadot vcc7-supply = <&vcc5v0_sys>; 355c66ec88fSEmmanuel Vadot vcc8-supply = <&vcc3v3_sys>; 356c66ec88fSEmmanuel Vadot vcc9-supply = <&vcc5v0_sys>; 357c66ec88fSEmmanuel Vadot vcc10-supply = <&vcc5v0_sys>; 358c66ec88fSEmmanuel Vadot vcc11-supply = <&vcc5v0_sys>; 359c66ec88fSEmmanuel Vadot vcc12-supply = <&vcc3v3_sys>; 360c66ec88fSEmmanuel Vadot vddio-supply = <&vcca_1v8>; 361c66ec88fSEmmanuel Vadot 362c66ec88fSEmmanuel Vadot regulators { 363c66ec88fSEmmanuel Vadot vdd_center: DCDC_REG1 { 364c66ec88fSEmmanuel Vadot regulator-name = "vdd_center"; 365c66ec88fSEmmanuel Vadot regulator-always-on; 366c66ec88fSEmmanuel Vadot regulator-boot-on; 367c66ec88fSEmmanuel Vadot regulator-min-microvolt = <750000>; 368c66ec88fSEmmanuel Vadot regulator-max-microvolt = <1350000>; 369c66ec88fSEmmanuel Vadot regulator-ramp-delay = <6001>; 370c66ec88fSEmmanuel Vadot regulator-state-mem { 371c66ec88fSEmmanuel Vadot regulator-off-in-suspend; 372c66ec88fSEmmanuel Vadot }; 373c66ec88fSEmmanuel Vadot }; 374c66ec88fSEmmanuel Vadot 375c66ec88fSEmmanuel Vadot vdd_cpu_l: DCDC_REG2 { 376c66ec88fSEmmanuel Vadot regulator-name = "vdd_cpu_l"; 377c66ec88fSEmmanuel Vadot regulator-always-on; 378c66ec88fSEmmanuel Vadot regulator-boot-on; 379c66ec88fSEmmanuel Vadot regulator-min-microvolt = <750000>; 380c66ec88fSEmmanuel Vadot regulator-max-microvolt = <1350000>; 381c66ec88fSEmmanuel Vadot regulator-ramp-delay = <6001>; 382c66ec88fSEmmanuel Vadot regulator-state-mem { 383c66ec88fSEmmanuel Vadot regulator-off-in-suspend; 384c66ec88fSEmmanuel Vadot }; 385c66ec88fSEmmanuel Vadot }; 386c66ec88fSEmmanuel Vadot 387c66ec88fSEmmanuel Vadot vcc_ddr: DCDC_REG3 { 388c66ec88fSEmmanuel Vadot regulator-name = "vcc_ddr"; 389c66ec88fSEmmanuel Vadot regulator-always-on; 390c66ec88fSEmmanuel Vadot regulator-boot-on; 391c66ec88fSEmmanuel Vadot regulator-state-mem { 392c66ec88fSEmmanuel Vadot regulator-on-in-suspend; 393c66ec88fSEmmanuel Vadot }; 394c66ec88fSEmmanuel Vadot }; 395c66ec88fSEmmanuel Vadot 396c66ec88fSEmmanuel Vadot vcc_1v8: DCDC_REG4 { 397c66ec88fSEmmanuel Vadot regulator-name = "vcc_1v8"; 398c66ec88fSEmmanuel Vadot regulator-always-on; 399c66ec88fSEmmanuel Vadot regulator-boot-on; 400c66ec88fSEmmanuel Vadot regulator-min-microvolt = <1800000>; 401c66ec88fSEmmanuel Vadot regulator-max-microvolt = <1800000>; 402c66ec88fSEmmanuel Vadot regulator-state-mem { 403c66ec88fSEmmanuel Vadot regulator-on-in-suspend; 404c66ec88fSEmmanuel Vadot regulator-suspend-microvolt = <1800000>; 405c66ec88fSEmmanuel Vadot }; 406c66ec88fSEmmanuel Vadot }; 407c66ec88fSEmmanuel Vadot 408c66ec88fSEmmanuel Vadot vcc1v8_dvp: LDO_REG1 { 409c66ec88fSEmmanuel Vadot regulator-name = "vcc1v8_dvp"; 410c66ec88fSEmmanuel Vadot regulator-always-on; 411c66ec88fSEmmanuel Vadot regulator-boot-on; 412c66ec88fSEmmanuel Vadot regulator-min-microvolt = <1800000>; 413c66ec88fSEmmanuel Vadot regulator-max-microvolt = <1800000>; 414c66ec88fSEmmanuel Vadot regulator-state-mem { 415c66ec88fSEmmanuel Vadot regulator-off-in-suspend; 416c66ec88fSEmmanuel Vadot }; 417c66ec88fSEmmanuel Vadot }; 418c66ec88fSEmmanuel Vadot 419c66ec88fSEmmanuel Vadot vcc3v0_touch: LDO_REG2 { 420c66ec88fSEmmanuel Vadot regulator-name = "vcc3v0_touch"; 421c66ec88fSEmmanuel Vadot regulator-min-microvolt = <3000000>; 422c66ec88fSEmmanuel Vadot regulator-max-microvolt = <3000000>; 423c66ec88fSEmmanuel Vadot regulator-state-mem { 424c66ec88fSEmmanuel Vadot regulator-off-in-suspend; 425c66ec88fSEmmanuel Vadot }; 426c66ec88fSEmmanuel Vadot }; 427c66ec88fSEmmanuel Vadot 428c66ec88fSEmmanuel Vadot vcca_1v8: LDO_REG3 { 429c66ec88fSEmmanuel Vadot regulator-name = "vcca_1v8"; 430c66ec88fSEmmanuel Vadot regulator-always-on; 431c66ec88fSEmmanuel Vadot regulator-boot-on; 432c66ec88fSEmmanuel Vadot regulator-min-microvolt = <1800000>; 433c66ec88fSEmmanuel Vadot regulator-max-microvolt = <1800000>; 434c66ec88fSEmmanuel Vadot regulator-state-mem { 435c66ec88fSEmmanuel Vadot regulator-on-in-suspend; 436c66ec88fSEmmanuel Vadot regulator-suspend-microvolt = <1800000>; 437c66ec88fSEmmanuel Vadot }; 438c66ec88fSEmmanuel Vadot }; 439c66ec88fSEmmanuel Vadot 440c66ec88fSEmmanuel Vadot vcc_sdio: LDO_REG4 { 441c66ec88fSEmmanuel Vadot regulator-name = "vcc_sdio"; 442c66ec88fSEmmanuel Vadot regulator-always-on; 443c66ec88fSEmmanuel Vadot regulator-boot-on; 444c66ec88fSEmmanuel Vadot regulator-min-microvolt = <1800000>; 445c66ec88fSEmmanuel Vadot regulator-max-microvolt = <3000000>; 446c66ec88fSEmmanuel Vadot regulator-state-mem { 447c66ec88fSEmmanuel Vadot regulator-on-in-suspend; 448c66ec88fSEmmanuel Vadot regulator-suspend-microvolt = <3000000>; 449c66ec88fSEmmanuel Vadot }; 450c66ec88fSEmmanuel Vadot }; 451c66ec88fSEmmanuel Vadot 452c66ec88fSEmmanuel Vadot vcca3v0_codec: LDO_REG5 { 453c66ec88fSEmmanuel Vadot regulator-name = "vcca3v0_codec"; 454c66ec88fSEmmanuel Vadot regulator-always-on; 455c66ec88fSEmmanuel Vadot regulator-boot-on; 456c66ec88fSEmmanuel Vadot regulator-min-microvolt = <3000000>; 457c66ec88fSEmmanuel Vadot regulator-max-microvolt = <3000000>; 458c66ec88fSEmmanuel Vadot regulator-state-mem { 459c66ec88fSEmmanuel Vadot regulator-off-in-suspend; 460c66ec88fSEmmanuel Vadot }; 461c66ec88fSEmmanuel Vadot }; 462c66ec88fSEmmanuel Vadot 463c66ec88fSEmmanuel Vadot vcc_1v5: LDO_REG6 { 464c66ec88fSEmmanuel Vadot regulator-name = "vcc_1v5"; 465c66ec88fSEmmanuel Vadot regulator-always-on; 466c66ec88fSEmmanuel Vadot regulator-boot-on; 467c66ec88fSEmmanuel Vadot regulator-min-microvolt = <1500000>; 468c66ec88fSEmmanuel Vadot regulator-max-microvolt = <1500000>; 469c66ec88fSEmmanuel Vadot regulator-state-mem { 470c66ec88fSEmmanuel Vadot regulator-on-in-suspend; 471c66ec88fSEmmanuel Vadot regulator-suspend-microvolt = <1500000>; 472c66ec88fSEmmanuel Vadot }; 473c66ec88fSEmmanuel Vadot }; 474c66ec88fSEmmanuel Vadot 475c66ec88fSEmmanuel Vadot vcca1v8_codec: LDO_REG7 { 476c66ec88fSEmmanuel Vadot regulator-name = "vcca1v8_codec"; 477c66ec88fSEmmanuel Vadot regulator-always-on; 478c66ec88fSEmmanuel Vadot regulator-boot-on; 479c66ec88fSEmmanuel Vadot regulator-min-microvolt = <1800000>; 480c66ec88fSEmmanuel Vadot regulator-max-microvolt = <1800000>; 481c66ec88fSEmmanuel Vadot regulator-state-mem { 482c66ec88fSEmmanuel Vadot regulator-off-in-suspend; 483c66ec88fSEmmanuel Vadot }; 484c66ec88fSEmmanuel Vadot }; 485c66ec88fSEmmanuel Vadot 486c66ec88fSEmmanuel Vadot vcc_3v0: LDO_REG8 { 487c66ec88fSEmmanuel Vadot regulator-name = "vcc_3v0"; 488c66ec88fSEmmanuel Vadot regulator-always-on; 489c66ec88fSEmmanuel Vadot regulator-boot-on; 490c66ec88fSEmmanuel Vadot regulator-min-microvolt = <3000000>; 491c66ec88fSEmmanuel Vadot regulator-max-microvolt = <3000000>; 492c66ec88fSEmmanuel Vadot regulator-state-mem { 493c66ec88fSEmmanuel Vadot regulator-on-in-suspend; 494c66ec88fSEmmanuel Vadot regulator-suspend-microvolt = <3000000>; 495c66ec88fSEmmanuel Vadot }; 496c66ec88fSEmmanuel Vadot }; 497c66ec88fSEmmanuel Vadot 498c66ec88fSEmmanuel Vadot vcc3v3_s3: vcc_lan: SWITCH_REG1 { 499c66ec88fSEmmanuel Vadot regulator-name = "vcc3v3_s3"; 500c66ec88fSEmmanuel Vadot regulator-always-on; 501c66ec88fSEmmanuel Vadot regulator-boot-on; 502c66ec88fSEmmanuel Vadot regulator-state-mem { 503c66ec88fSEmmanuel Vadot regulator-off-in-suspend; 504c66ec88fSEmmanuel Vadot }; 505c66ec88fSEmmanuel Vadot }; 506c66ec88fSEmmanuel Vadot 507c66ec88fSEmmanuel Vadot vcc3v3_s0: SWITCH_REG2 { 508c66ec88fSEmmanuel Vadot regulator-name = "vcc3v3_s0"; 509c66ec88fSEmmanuel Vadot regulator-state-mem { 510c66ec88fSEmmanuel Vadot regulator-off-in-suspend; 511c66ec88fSEmmanuel Vadot }; 512c66ec88fSEmmanuel Vadot }; 513c66ec88fSEmmanuel Vadot }; 514c66ec88fSEmmanuel Vadot }; 515c66ec88fSEmmanuel Vadot 516c66ec88fSEmmanuel Vadot vdd_cpu_b: regulator@40 { 517c66ec88fSEmmanuel Vadot compatible = "silergy,syr827"; 518c66ec88fSEmmanuel Vadot reg = <0x40>; 519c66ec88fSEmmanuel Vadot fcs,suspend-voltage-selector = <1>; 520c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 521c66ec88fSEmmanuel Vadot pinctrl-0 = <&vsel1_pin>; 522c66ec88fSEmmanuel Vadot regulator-name = "vdd_cpu_b"; 523c66ec88fSEmmanuel Vadot regulator-min-microvolt = <712500>; 524c66ec88fSEmmanuel Vadot regulator-max-microvolt = <1500000>; 525c66ec88fSEmmanuel Vadot regulator-ramp-delay = <1000>; 526c66ec88fSEmmanuel Vadot regulator-always-on; 527c66ec88fSEmmanuel Vadot regulator-boot-on; 528c66ec88fSEmmanuel Vadot vin-supply = <&vcc5v0_sys>; 529c66ec88fSEmmanuel Vadot 530c66ec88fSEmmanuel Vadot regulator-state-mem { 531c66ec88fSEmmanuel Vadot regulator-off-in-suspend; 532c66ec88fSEmmanuel Vadot }; 533c66ec88fSEmmanuel Vadot }; 534c66ec88fSEmmanuel Vadot 535c66ec88fSEmmanuel Vadot vdd_gpu: regulator@41 { 536c66ec88fSEmmanuel Vadot compatible = "silergy,syr828"; 537c66ec88fSEmmanuel Vadot reg = <0x41>; 538c66ec88fSEmmanuel Vadot fcs,suspend-voltage-selector = <1>; 539c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 540c66ec88fSEmmanuel Vadot pinctrl-0 = <&vsel2_pin>; 541c66ec88fSEmmanuel Vadot regulator-name = "vdd_gpu"; 542c66ec88fSEmmanuel Vadot regulator-min-microvolt = <712500>; 543c66ec88fSEmmanuel Vadot regulator-max-microvolt = <1500000>; 544c66ec88fSEmmanuel Vadot regulator-ramp-delay = <1000>; 545c66ec88fSEmmanuel Vadot regulator-always-on; 546c66ec88fSEmmanuel Vadot regulator-boot-on; 547c66ec88fSEmmanuel Vadot vin-supply = <&vcc5v0_sys>; 548c66ec88fSEmmanuel Vadot 549c66ec88fSEmmanuel Vadot regulator-state-mem { 550c66ec88fSEmmanuel Vadot regulator-off-in-suspend; 551c66ec88fSEmmanuel Vadot }; 552c66ec88fSEmmanuel Vadot }; 553c66ec88fSEmmanuel Vadot}; 554c66ec88fSEmmanuel Vadot 555c66ec88fSEmmanuel Vadot&i2c1 { 556c66ec88fSEmmanuel Vadot i2c-scl-rising-time-ns = <300>; 557c66ec88fSEmmanuel Vadot i2c-scl-falling-time-ns = <15>; 558c66ec88fSEmmanuel Vadot status = "okay"; 559c66ec88fSEmmanuel Vadot}; 560c66ec88fSEmmanuel Vadot 561c66ec88fSEmmanuel Vadot&i2c3 { 562c66ec88fSEmmanuel Vadot i2c-scl-rising-time-ns = <450>; 563c66ec88fSEmmanuel Vadot i2c-scl-falling-time-ns = <15>; 564c66ec88fSEmmanuel Vadot status = "okay"; 565c66ec88fSEmmanuel Vadot}; 566c66ec88fSEmmanuel Vadot 567c66ec88fSEmmanuel Vadot&i2c4 { 568c66ec88fSEmmanuel Vadot i2c-scl-rising-time-ns = <600>; 569c66ec88fSEmmanuel Vadot i2c-scl-falling-time-ns = <20>; 570c66ec88fSEmmanuel Vadot status = "okay"; 571c66ec88fSEmmanuel Vadot 572c66ec88fSEmmanuel Vadot fusb0: typec-portc@22 { 573c66ec88fSEmmanuel Vadot compatible = "fcs,fusb302"; 574c66ec88fSEmmanuel Vadot reg = <0x22>; 575c66ec88fSEmmanuel Vadot interrupt-parent = <&gpio1>; 576c66ec88fSEmmanuel Vadot interrupts = <RK_PA2 IRQ_TYPE_LEVEL_LOW>; 577c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 578c66ec88fSEmmanuel Vadot pinctrl-0 = <&fusb0_int>; 579c66ec88fSEmmanuel Vadot vbus-supply = <&vcc5v0_typec>; 580c66ec88fSEmmanuel Vadot status = "okay"; 581c66ec88fSEmmanuel Vadot }; 582b97ee269SEmmanuel Vadot 583b97ee269SEmmanuel Vadot /* enable for pine64 touch screen support */ 584b97ee269SEmmanuel Vadot touch: touchscreen@5d { 585b97ee269SEmmanuel Vadot compatible = "goodix,gt911"; 586b97ee269SEmmanuel Vadot reg = <0x5d>; 587b97ee269SEmmanuel Vadot interrupt-parent = <&gpio4>; 588b97ee269SEmmanuel Vadot interrupts = <RK_PD5 IRQ_TYPE_EDGE_FALLING>; 589b97ee269SEmmanuel Vadot AVDD28-supply = <&vcc3v0_touch>; 590b97ee269SEmmanuel Vadot VDDIO-supply = <&vcc3v0_touch>; 591b97ee269SEmmanuel Vadot irq-gpios = <&gpio4 RK_PD5 GPIO_ACTIVE_HIGH>; 592b97ee269SEmmanuel Vadot reset-gpios = <&gpio4 RK_PD6 GPIO_ACTIVE_HIGH>; 593b97ee269SEmmanuel Vadot status = "disabled"; 594b97ee269SEmmanuel Vadot }; 595c66ec88fSEmmanuel Vadot}; 596c66ec88fSEmmanuel Vadot 597c66ec88fSEmmanuel Vadot&i2s0 { 598c66ec88fSEmmanuel Vadot rockchip,playback-channels = <8>; 599c66ec88fSEmmanuel Vadot rockchip,capture-channels = <8>; 600c66ec88fSEmmanuel Vadot status = "okay"; 601c66ec88fSEmmanuel Vadot}; 602c66ec88fSEmmanuel Vadot 603c66ec88fSEmmanuel Vadot&i2s1 { 604c66ec88fSEmmanuel Vadot rockchip,playback-channels = <2>; 605c66ec88fSEmmanuel Vadot rockchip,capture-channels = <2>; 606c66ec88fSEmmanuel Vadot status = "okay"; 607c66ec88fSEmmanuel Vadot 608c66ec88fSEmmanuel Vadot i2s1_p0: port { 609c66ec88fSEmmanuel Vadot i2s1_p0_0: endpoint { 610c66ec88fSEmmanuel Vadot dai-format = "i2s"; 611c66ec88fSEmmanuel Vadot mclk-fs = <256>; 612c66ec88fSEmmanuel Vadot remote-endpoint = <&es8316_p0_0>; 613c66ec88fSEmmanuel Vadot }; 614c66ec88fSEmmanuel Vadot }; 615c66ec88fSEmmanuel Vadot}; 616c66ec88fSEmmanuel Vadot 617c66ec88fSEmmanuel Vadot&i2s2 { 618c66ec88fSEmmanuel Vadot status = "okay"; 619c66ec88fSEmmanuel Vadot}; 620c66ec88fSEmmanuel Vadot 621c66ec88fSEmmanuel Vadot&io_domains { 622c66ec88fSEmmanuel Vadot status = "okay"; 623c66ec88fSEmmanuel Vadot 624c66ec88fSEmmanuel Vadot bt656-supply = <&vcc1v8_dvp>; 625c66ec88fSEmmanuel Vadot audio-supply = <&vcc_3v0>; 626c66ec88fSEmmanuel Vadot sdmmc-supply = <&vcc_sdio>; 627c66ec88fSEmmanuel Vadot gpio1830-supply = <&vcc_3v0>; 628c66ec88fSEmmanuel Vadot}; 629c66ec88fSEmmanuel Vadot 630b97ee269SEmmanuel Vadot/* enable for pine64 panel display support */ 631b97ee269SEmmanuel Vadot&mipi_dsi { 632b97ee269SEmmanuel Vadot clock-master; 633b97ee269SEmmanuel Vadot status = "disabled"; 634b97ee269SEmmanuel Vadot 635b97ee269SEmmanuel Vadot ports { 636b97ee269SEmmanuel Vadot mipi_out: port@1 { 637b97ee269SEmmanuel Vadot reg = <1>; 638b97ee269SEmmanuel Vadot 639b97ee269SEmmanuel Vadot mipi_out_panel: endpoint { 640b97ee269SEmmanuel Vadot remote-endpoint = <&mipi_in_panel>; 641b97ee269SEmmanuel Vadot }; 642b97ee269SEmmanuel Vadot }; 643b97ee269SEmmanuel Vadot }; 644b97ee269SEmmanuel Vadot 645b97ee269SEmmanuel Vadot mipi_panel: panel@0 { 646b97ee269SEmmanuel Vadot compatible = "feiyang,fy07024di26a30d"; 647b97ee269SEmmanuel Vadot reg = <0>; 648b97ee269SEmmanuel Vadot avdd-supply = <&avdd>; 649b97ee269SEmmanuel Vadot backlight = <&backlight>; 650b97ee269SEmmanuel Vadot dvdd-supply = <&vcc3v3_s0>; 651b97ee269SEmmanuel Vadot 652cb7aa33aSEmmanuel Vadot port { 653b97ee269SEmmanuel Vadot mipi_in_panel: endpoint { 654b97ee269SEmmanuel Vadot remote-endpoint = <&mipi_out_panel>; 655b97ee269SEmmanuel Vadot }; 656b97ee269SEmmanuel Vadot }; 657b97ee269SEmmanuel Vadot }; 658b97ee269SEmmanuel Vadot}; 659b97ee269SEmmanuel Vadot 660c66ec88fSEmmanuel Vadot&pcie0 { 661c66ec88fSEmmanuel Vadot ep-gpios = <&gpio2 RK_PD4 GPIO_ACTIVE_HIGH>; 662c66ec88fSEmmanuel Vadot num-lanes = <4>; 663c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 664c66ec88fSEmmanuel Vadot pinctrl-0 = <&pcie_perst>; 665c66ec88fSEmmanuel Vadot vpcie12v-supply = <&vcc12v_dcin>; 666c66ec88fSEmmanuel Vadot vpcie3v3-supply = <&vcc3v3_pcie>; 667c66ec88fSEmmanuel Vadot status = "okay"; 668c66ec88fSEmmanuel Vadot}; 669c66ec88fSEmmanuel Vadot 670c66ec88fSEmmanuel Vadot&pcie_phy { 671c66ec88fSEmmanuel Vadot status = "okay"; 672c66ec88fSEmmanuel Vadot}; 673c66ec88fSEmmanuel Vadot 674c66ec88fSEmmanuel Vadot&pmu_io_domains { 675c66ec88fSEmmanuel Vadot pmu1830-supply = <&vcc_3v0>; 676c66ec88fSEmmanuel Vadot status = "okay"; 677c66ec88fSEmmanuel Vadot}; 678c66ec88fSEmmanuel Vadot 679c66ec88fSEmmanuel Vadot&pinctrl { 680c66ec88fSEmmanuel Vadot bt { 681c66ec88fSEmmanuel Vadot bt_enable_h: bt-enable-h { 682c66ec88fSEmmanuel Vadot rockchip,pins = <0 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>; 683c66ec88fSEmmanuel Vadot }; 684c66ec88fSEmmanuel Vadot 685c66ec88fSEmmanuel Vadot bt_host_wake_l: bt-host-wake-l { 686c66ec88fSEmmanuel Vadot rockchip,pins = <0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_down>; 687c66ec88fSEmmanuel Vadot }; 688c66ec88fSEmmanuel Vadot 689c66ec88fSEmmanuel Vadot bt_wake_l: bt-wake-l { 690c66ec88fSEmmanuel Vadot rockchip,pins = <2 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>; 691c66ec88fSEmmanuel Vadot }; 692c66ec88fSEmmanuel Vadot }; 693c66ec88fSEmmanuel Vadot 694c66ec88fSEmmanuel Vadot buttons { 695c66ec88fSEmmanuel Vadot pwrbtn: pwrbtn { 696c66ec88fSEmmanuel Vadot rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>; 697c66ec88fSEmmanuel Vadot }; 698c66ec88fSEmmanuel Vadot }; 699c66ec88fSEmmanuel Vadot 700c66ec88fSEmmanuel Vadot fusb302x { 701c66ec88fSEmmanuel Vadot fusb0_int: fusb0-int { 702c66ec88fSEmmanuel Vadot rockchip,pins = <1 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up>; 703c66ec88fSEmmanuel Vadot }; 704c66ec88fSEmmanuel Vadot }; 705c66ec88fSEmmanuel Vadot 7062eb4d8dcSEmmanuel Vadot ir { 7072eb4d8dcSEmmanuel Vadot ir_int: ir-int { 7082eb4d8dcSEmmanuel Vadot rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>; 7092eb4d8dcSEmmanuel Vadot }; 7102eb4d8dcSEmmanuel Vadot }; 7112eb4d8dcSEmmanuel Vadot 712c66ec88fSEmmanuel Vadot leds { 713c66ec88fSEmmanuel Vadot work_led_pin: work-led-pin { 714c66ec88fSEmmanuel Vadot rockchip,pins = <0 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>; 715c66ec88fSEmmanuel Vadot }; 716c66ec88fSEmmanuel Vadot 717c66ec88fSEmmanuel Vadot diy_led_pin: diy-led-pin { 718c66ec88fSEmmanuel Vadot rockchip,pins = <0 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>; 719c66ec88fSEmmanuel Vadot }; 720c66ec88fSEmmanuel Vadot }; 721c66ec88fSEmmanuel Vadot 722c66ec88fSEmmanuel Vadot pcie { 723c66ec88fSEmmanuel Vadot pcie_perst: pcie-perst { 724c66ec88fSEmmanuel Vadot rockchip,pins = <2 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>; 725c66ec88fSEmmanuel Vadot }; 726c66ec88fSEmmanuel Vadot 727c66ec88fSEmmanuel Vadot pcie_pwr_en: pcie-pwr-en { 728c66ec88fSEmmanuel Vadot rockchip,pins = <1 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>; 729c66ec88fSEmmanuel Vadot }; 730c66ec88fSEmmanuel Vadot }; 731c66ec88fSEmmanuel Vadot 732c66ec88fSEmmanuel Vadot pmic { 733c66ec88fSEmmanuel Vadot pmic_int_l: pmic-int-l { 734c66ec88fSEmmanuel Vadot rockchip,pins = <3 RK_PB2 RK_FUNC_GPIO &pcfg_pull_up>; 735c66ec88fSEmmanuel Vadot }; 736c66ec88fSEmmanuel Vadot 737c66ec88fSEmmanuel Vadot vsel1_pin: vsel1-pin { 738c66ec88fSEmmanuel Vadot rockchip,pins = <1 RK_PC1 RK_FUNC_GPIO &pcfg_pull_down>; 739c66ec88fSEmmanuel Vadot }; 740c66ec88fSEmmanuel Vadot 741c66ec88fSEmmanuel Vadot vsel2_pin: vsel2-pin { 742c66ec88fSEmmanuel Vadot rockchip,pins = <1 RK_PB6 RK_FUNC_GPIO &pcfg_pull_down>; 743c66ec88fSEmmanuel Vadot }; 744c66ec88fSEmmanuel Vadot }; 745c66ec88fSEmmanuel Vadot 746c66ec88fSEmmanuel Vadot sdcard { 747c66ec88fSEmmanuel Vadot sdmmc0_pwr_h: sdmmc0-pwr-h { 748c66ec88fSEmmanuel Vadot rockchip,pins = <0 RK_PA1 RK_FUNC_GPIO &pcfg_pull_none>; 749c66ec88fSEmmanuel Vadot }; 750c66ec88fSEmmanuel Vadot 751c66ec88fSEmmanuel Vadot }; 752c66ec88fSEmmanuel Vadot 753c66ec88fSEmmanuel Vadot sdio-pwrseq { 754c66ec88fSEmmanuel Vadot wifi_enable_h: wifi-enable-h { 755c66ec88fSEmmanuel Vadot rockchip,pins = <0 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>; 756c66ec88fSEmmanuel Vadot }; 757c66ec88fSEmmanuel Vadot }; 758c66ec88fSEmmanuel Vadot 759c66ec88fSEmmanuel Vadot usb-typec { 760c66ec88fSEmmanuel Vadot vcc5v0_typec_en: vcc5v0_typec_en { 761c66ec88fSEmmanuel Vadot rockchip,pins = <1 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up>; 762c66ec88fSEmmanuel Vadot }; 763c66ec88fSEmmanuel Vadot }; 764c66ec88fSEmmanuel Vadot 765c66ec88fSEmmanuel Vadot usb2 { 766c66ec88fSEmmanuel Vadot vcc5v0_host_en: vcc5v0-host-en { 767c66ec88fSEmmanuel Vadot rockchip,pins = <4 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>; 768c66ec88fSEmmanuel Vadot }; 769c66ec88fSEmmanuel Vadot }; 770c66ec88fSEmmanuel Vadot}; 771c66ec88fSEmmanuel Vadot 772c66ec88fSEmmanuel Vadot&pwm0 { 773c66ec88fSEmmanuel Vadot status = "okay"; 774c66ec88fSEmmanuel Vadot}; 775c66ec88fSEmmanuel Vadot 776c66ec88fSEmmanuel Vadot&pwm1 { 777c66ec88fSEmmanuel Vadot status = "okay"; 778c66ec88fSEmmanuel Vadot}; 779c66ec88fSEmmanuel Vadot 780c66ec88fSEmmanuel Vadot&pwm2 { 781c66ec88fSEmmanuel Vadot status = "okay"; 782c66ec88fSEmmanuel Vadot}; 783c66ec88fSEmmanuel Vadot 784c66ec88fSEmmanuel Vadot&saradc { 785c66ec88fSEmmanuel Vadot vref-supply = <&vcca1v8_s3>; 786c66ec88fSEmmanuel Vadot status = "okay"; 787c66ec88fSEmmanuel Vadot}; 788c66ec88fSEmmanuel Vadot 789c66ec88fSEmmanuel Vadot&sdio0 { 790c66ec88fSEmmanuel Vadot bus-width = <4>; 791c66ec88fSEmmanuel Vadot cap-sd-highspeed; 792c66ec88fSEmmanuel Vadot cap-sdio-irq; 793c66ec88fSEmmanuel Vadot disable-wp; 794c66ec88fSEmmanuel Vadot keep-power-in-suspend; 795c66ec88fSEmmanuel Vadot mmc-pwrseq = <&sdio_pwrseq>; 796c66ec88fSEmmanuel Vadot non-removable; 797c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 798c66ec88fSEmmanuel Vadot pinctrl-0 = <&sdio0_bus4 &sdio0_cmd &sdio0_clk>; 799c66ec88fSEmmanuel Vadot sd-uhs-sdr104; 800c66ec88fSEmmanuel Vadot status = "okay"; 801c66ec88fSEmmanuel Vadot}; 802c66ec88fSEmmanuel Vadot 803c66ec88fSEmmanuel Vadot&sdmmc { 804c66ec88fSEmmanuel Vadot bus-width = <4>; 805c66ec88fSEmmanuel Vadot cap-sd-highspeed; 806c66ec88fSEmmanuel Vadot cd-gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; 807c66ec88fSEmmanuel Vadot disable-wp; 808c66ec88fSEmmanuel Vadot max-frequency = <150000000>; 809c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 810c66ec88fSEmmanuel Vadot pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_bus4>; 811c66ec88fSEmmanuel Vadot vmmc-supply = <&vcc3v0_sd>; 812c66ec88fSEmmanuel Vadot vqmmc-supply = <&vcc_sdio>; 813c66ec88fSEmmanuel Vadot status = "okay"; 814c66ec88fSEmmanuel Vadot}; 815c66ec88fSEmmanuel Vadot 816c66ec88fSEmmanuel Vadot&sdhci { 817c66ec88fSEmmanuel Vadot bus-width = <8>; 818c66ec88fSEmmanuel Vadot mmc-hs200-1_8v; 819c66ec88fSEmmanuel Vadot non-removable; 820c66ec88fSEmmanuel Vadot status = "okay"; 821c66ec88fSEmmanuel Vadot}; 822c66ec88fSEmmanuel Vadot 8235def4c47SEmmanuel Vadot&spdif { 8245def4c47SEmmanuel Vadot pinctrl-0 = <&spdif_bus_1>; 8255def4c47SEmmanuel Vadot 8265def4c47SEmmanuel Vadot spdif_p0: port { 8275def4c47SEmmanuel Vadot spdif_p0_0: endpoint { 8285def4c47SEmmanuel Vadot remote-endpoint = <&dit_p0_0>; 8295def4c47SEmmanuel Vadot }; 8305def4c47SEmmanuel Vadot }; 8315def4c47SEmmanuel Vadot}; 8325def4c47SEmmanuel Vadot 833c66ec88fSEmmanuel Vadot&spi1 { 834c66ec88fSEmmanuel Vadot status = "okay"; 835c66ec88fSEmmanuel Vadot 836c66ec88fSEmmanuel Vadot flash@0 { 837c66ec88fSEmmanuel Vadot compatible = "jedec,spi-nor"; 838c66ec88fSEmmanuel Vadot reg = <0>; 839c66ec88fSEmmanuel Vadot spi-max-frequency = <10000000>; 840c66ec88fSEmmanuel Vadot }; 841c66ec88fSEmmanuel Vadot}; 842c66ec88fSEmmanuel Vadot 843c66ec88fSEmmanuel Vadot&tcphy0 { 844c66ec88fSEmmanuel Vadot status = "okay"; 845c66ec88fSEmmanuel Vadot}; 846c66ec88fSEmmanuel Vadot 847c66ec88fSEmmanuel Vadot&tcphy1 { 848c66ec88fSEmmanuel Vadot status = "okay"; 849c66ec88fSEmmanuel Vadot}; 850c66ec88fSEmmanuel Vadot 851c66ec88fSEmmanuel Vadot&tsadc { 852c66ec88fSEmmanuel Vadot /* tshut mode 0:CRU 1:GPIO */ 853c66ec88fSEmmanuel Vadot rockchip,hw-tshut-mode = <1>; 854c66ec88fSEmmanuel Vadot /* tshut polarity 0:LOW 1:HIGH */ 855c66ec88fSEmmanuel Vadot rockchip,hw-tshut-polarity = <1>; 856c66ec88fSEmmanuel Vadot status = "okay"; 857c66ec88fSEmmanuel Vadot}; 858c66ec88fSEmmanuel Vadot 859c66ec88fSEmmanuel Vadot&u2phy0 { 860c66ec88fSEmmanuel Vadot status = "okay"; 861c66ec88fSEmmanuel Vadot 862c66ec88fSEmmanuel Vadot u2phy0_otg: otg-port { 863c66ec88fSEmmanuel Vadot status = "okay"; 864c66ec88fSEmmanuel Vadot }; 865c66ec88fSEmmanuel Vadot 866c66ec88fSEmmanuel Vadot u2phy0_host: host-port { 867c66ec88fSEmmanuel Vadot phy-supply = <&vcc5v0_host>; 868c66ec88fSEmmanuel Vadot status = "okay"; 869c66ec88fSEmmanuel Vadot }; 870c66ec88fSEmmanuel Vadot}; 871c66ec88fSEmmanuel Vadot 872c66ec88fSEmmanuel Vadot&u2phy1 { 873c66ec88fSEmmanuel Vadot status = "okay"; 874c66ec88fSEmmanuel Vadot 875c66ec88fSEmmanuel Vadot u2phy1_otg: otg-port { 876c66ec88fSEmmanuel Vadot status = "okay"; 877c66ec88fSEmmanuel Vadot }; 878c66ec88fSEmmanuel Vadot 879c66ec88fSEmmanuel Vadot u2phy1_host: host-port { 880c66ec88fSEmmanuel Vadot phy-supply = <&vcc5v0_host>; 881c66ec88fSEmmanuel Vadot status = "okay"; 882c66ec88fSEmmanuel Vadot }; 883c66ec88fSEmmanuel Vadot}; 884c66ec88fSEmmanuel Vadot 885c66ec88fSEmmanuel Vadot&uart0 { 886c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 887c66ec88fSEmmanuel Vadot pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>; 888c66ec88fSEmmanuel Vadot status = "okay"; 889c66ec88fSEmmanuel Vadot 890c66ec88fSEmmanuel Vadot bluetooth { 891c66ec88fSEmmanuel Vadot compatible = "brcm,bcm43438-bt"; 892c66ec88fSEmmanuel Vadot clocks = <&rk808 1>; 893c66ec88fSEmmanuel Vadot clock-names = "lpo"; 894c66ec88fSEmmanuel Vadot device-wakeup-gpios = <&gpio2 RK_PD3 GPIO_ACTIVE_HIGH>; 895c66ec88fSEmmanuel Vadot host-wakeup-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_HIGH>; 896c66ec88fSEmmanuel Vadot shutdown-gpios = <&gpio0 RK_PB1 GPIO_ACTIVE_HIGH>; 897c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 898c66ec88fSEmmanuel Vadot pinctrl-0 = <&bt_host_wake_l &bt_wake_l &bt_enable_h>; 899c66ec88fSEmmanuel Vadot vbat-supply = <&vcc3v3_sys>; 900c66ec88fSEmmanuel Vadot vddio-supply = <&vcc_1v8>; 901c66ec88fSEmmanuel Vadot }; 902c66ec88fSEmmanuel Vadot}; 903c66ec88fSEmmanuel Vadot 904c66ec88fSEmmanuel Vadot&uart2 { 905c66ec88fSEmmanuel Vadot status = "okay"; 906c66ec88fSEmmanuel Vadot}; 907c66ec88fSEmmanuel Vadot 908c66ec88fSEmmanuel Vadot&usb_host0_ehci { 909c66ec88fSEmmanuel Vadot status = "okay"; 910c66ec88fSEmmanuel Vadot}; 911c66ec88fSEmmanuel Vadot 912c66ec88fSEmmanuel Vadot&usb_host0_ohci { 913c66ec88fSEmmanuel Vadot status = "okay"; 914c66ec88fSEmmanuel Vadot}; 915c66ec88fSEmmanuel Vadot 916c66ec88fSEmmanuel Vadot&usb_host1_ehci { 917c66ec88fSEmmanuel Vadot status = "okay"; 918c66ec88fSEmmanuel Vadot}; 919c66ec88fSEmmanuel Vadot 920c66ec88fSEmmanuel Vadot&usb_host1_ohci { 921c66ec88fSEmmanuel Vadot status = "okay"; 922c66ec88fSEmmanuel Vadot}; 923c66ec88fSEmmanuel Vadot 924c66ec88fSEmmanuel Vadot&usbdrd3_0 { 925c66ec88fSEmmanuel Vadot status = "okay"; 926c66ec88fSEmmanuel Vadot}; 927c66ec88fSEmmanuel Vadot 928c66ec88fSEmmanuel Vadot&usbdrd_dwc3_0 { 929c66ec88fSEmmanuel Vadot status = "okay"; 930c66ec88fSEmmanuel Vadot dr_mode = "host"; 931c66ec88fSEmmanuel Vadot}; 932c66ec88fSEmmanuel Vadot 933c66ec88fSEmmanuel Vadot&usbdrd3_1 { 934c66ec88fSEmmanuel Vadot status = "okay"; 935c66ec88fSEmmanuel Vadot}; 936c66ec88fSEmmanuel Vadot 937c66ec88fSEmmanuel Vadot&usbdrd_dwc3_1 { 938c66ec88fSEmmanuel Vadot status = "okay"; 939c66ec88fSEmmanuel Vadot dr_mode = "host"; 940c66ec88fSEmmanuel Vadot}; 941c66ec88fSEmmanuel Vadot 942c66ec88fSEmmanuel Vadot&vopb { 943c66ec88fSEmmanuel Vadot status = "okay"; 944c66ec88fSEmmanuel Vadot}; 945c66ec88fSEmmanuel Vadot 946c66ec88fSEmmanuel Vadot&vopb_mmu { 947c66ec88fSEmmanuel Vadot status = "okay"; 948c66ec88fSEmmanuel Vadot}; 949c66ec88fSEmmanuel Vadot 950c66ec88fSEmmanuel Vadot&vopl { 951c66ec88fSEmmanuel Vadot status = "okay"; 952c66ec88fSEmmanuel Vadot}; 953c66ec88fSEmmanuel Vadot 954c66ec88fSEmmanuel Vadot&vopl_mmu { 955c66ec88fSEmmanuel Vadot status = "okay"; 956c66ec88fSEmmanuel Vadot}; 957