1*b2d2a78aSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2*b2d2a78aSEmmanuel Vadot 3*b2d2a78aSEmmanuel Vadot/dts-v1/; 4*b2d2a78aSEmmanuel Vadot 5*b2d2a78aSEmmanuel Vadot#include <dt-bindings/gpio/gpio.h> 6*b2d2a78aSEmmanuel Vadot#include <dt-bindings/input/linux-event-codes.h> 7*b2d2a78aSEmmanuel Vadot#include <dt-bindings/leds/common.h> 8*b2d2a78aSEmmanuel Vadot#include <dt-bindings/pinctrl/rockchip.h> 9*b2d2a78aSEmmanuel Vadot#include <dt-bindings/pwm/pwm.h> 10*b2d2a78aSEmmanuel Vadot#include <dt-bindings/thermal/thermal.h> 11*b2d2a78aSEmmanuel Vadot#include <dt-bindings/usb/pd.h> 12*b2d2a78aSEmmanuel Vadot#include "rk3588s.dtsi" 13*b2d2a78aSEmmanuel Vadot 14*b2d2a78aSEmmanuel Vadot/ { 15*b2d2a78aSEmmanuel Vadot model = "Gameforce Ace"; 16*b2d2a78aSEmmanuel Vadot chassis-type = "handset"; 17*b2d2a78aSEmmanuel Vadot compatible = "gameforce,ace", "rockchip,rk3588s"; 18*b2d2a78aSEmmanuel Vadot 19*b2d2a78aSEmmanuel Vadot aliases { 20*b2d2a78aSEmmanuel Vadot mmc0 = &sdhci; 21*b2d2a78aSEmmanuel Vadot mmc1 = &sdmmc; 22*b2d2a78aSEmmanuel Vadot mmc2 = &sdio; 23*b2d2a78aSEmmanuel Vadot }; 24*b2d2a78aSEmmanuel Vadot 25*b2d2a78aSEmmanuel Vadot chosen { 26*b2d2a78aSEmmanuel Vadot stdout-path = "serial2:1500000n8"; 27*b2d2a78aSEmmanuel Vadot }; 28*b2d2a78aSEmmanuel Vadot 29*b2d2a78aSEmmanuel Vadot adc_keys: adc-keys { 30*b2d2a78aSEmmanuel Vadot compatible = "adc-keys"; 31*b2d2a78aSEmmanuel Vadot io-channels = <&saradc 1>; 32*b2d2a78aSEmmanuel Vadot io-channel-names = "buttons"; 33*b2d2a78aSEmmanuel Vadot keyup-threshold-microvolt = <1800000>; 34*b2d2a78aSEmmanuel Vadot poll-interval = <60>; 35*b2d2a78aSEmmanuel Vadot 36*b2d2a78aSEmmanuel Vadot button-vol-up { 37*b2d2a78aSEmmanuel Vadot label = "VOLUMEUP"; 38*b2d2a78aSEmmanuel Vadot linux,code = <KEY_VOLUMEUP>; 39*b2d2a78aSEmmanuel Vadot press-threshold-microvolt = <17000>; 40*b2d2a78aSEmmanuel Vadot }; 41*b2d2a78aSEmmanuel Vadot 42*b2d2a78aSEmmanuel Vadot button-vol-down { 43*b2d2a78aSEmmanuel Vadot label = "VOLUMEDOWN"; 44*b2d2a78aSEmmanuel Vadot linux,code = <KEY_VOLUMEDOWN>; 45*b2d2a78aSEmmanuel Vadot press-threshold-microvolt = <417000>; 46*b2d2a78aSEmmanuel Vadot }; 47*b2d2a78aSEmmanuel Vadot }; 48*b2d2a78aSEmmanuel Vadot 49*b2d2a78aSEmmanuel Vadot /* Joystick range values based on hardware observation. */ 50*b2d2a78aSEmmanuel Vadot adc_joystick: adc-joystick { 51*b2d2a78aSEmmanuel Vadot compatible = "adc-joystick"; 52*b2d2a78aSEmmanuel Vadot io-channels = <&saradc 2>, <&saradc 3>, 53*b2d2a78aSEmmanuel Vadot <&saradc 4>, <&saradc 5>; 54*b2d2a78aSEmmanuel Vadot poll-interval = <60>; 55*b2d2a78aSEmmanuel Vadot #address-cells = <1>; 56*b2d2a78aSEmmanuel Vadot #size-cells = <0>; 57*b2d2a78aSEmmanuel Vadot 58*b2d2a78aSEmmanuel Vadot axis@0 { 59*b2d2a78aSEmmanuel Vadot reg = <0>; 60*b2d2a78aSEmmanuel Vadot abs-flat = <40>; 61*b2d2a78aSEmmanuel Vadot abs-fuzz = <30>; 62*b2d2a78aSEmmanuel Vadot abs-range = <0 4095>; 63*b2d2a78aSEmmanuel Vadot linux,code = <ABS_RX>; 64*b2d2a78aSEmmanuel Vadot }; 65*b2d2a78aSEmmanuel Vadot 66*b2d2a78aSEmmanuel Vadot axis@1 { 67*b2d2a78aSEmmanuel Vadot reg = <1>; 68*b2d2a78aSEmmanuel Vadot abs-flat = <40>; 69*b2d2a78aSEmmanuel Vadot abs-fuzz = <30>; 70*b2d2a78aSEmmanuel Vadot abs-range = <0 4095>; 71*b2d2a78aSEmmanuel Vadot linux,code = <ABS_RY>; 72*b2d2a78aSEmmanuel Vadot }; 73*b2d2a78aSEmmanuel Vadot 74*b2d2a78aSEmmanuel Vadot axis@2 { 75*b2d2a78aSEmmanuel Vadot reg = <2>; 76*b2d2a78aSEmmanuel Vadot abs-flat = <40>; 77*b2d2a78aSEmmanuel Vadot abs-fuzz = <30>; 78*b2d2a78aSEmmanuel Vadot abs-range = <0 4095>; 79*b2d2a78aSEmmanuel Vadot linux,code = <ABS_Y>; 80*b2d2a78aSEmmanuel Vadot }; 81*b2d2a78aSEmmanuel Vadot 82*b2d2a78aSEmmanuel Vadot axis@3 { 83*b2d2a78aSEmmanuel Vadot reg = <3>; 84*b2d2a78aSEmmanuel Vadot abs-flat = <40>; 85*b2d2a78aSEmmanuel Vadot abs-fuzz = <30>; 86*b2d2a78aSEmmanuel Vadot abs-range = <0 4095>; 87*b2d2a78aSEmmanuel Vadot linux,code = <ABS_X>; 88*b2d2a78aSEmmanuel Vadot }; 89*b2d2a78aSEmmanuel Vadot }; 90*b2d2a78aSEmmanuel Vadot 91*b2d2a78aSEmmanuel Vadot /* Trigger range values based on hardware observation. */ 92*b2d2a78aSEmmanuel Vadot adc_triggers: adc-trigger { 93*b2d2a78aSEmmanuel Vadot compatible = "adc-joystick"; 94*b2d2a78aSEmmanuel Vadot io-channels = <&ti_adc 6>, 95*b2d2a78aSEmmanuel Vadot <&ti_adc 7>; 96*b2d2a78aSEmmanuel Vadot poll-interval = <60>; 97*b2d2a78aSEmmanuel Vadot #address-cells = <1>; 98*b2d2a78aSEmmanuel Vadot #size-cells = <0>; 99*b2d2a78aSEmmanuel Vadot 100*b2d2a78aSEmmanuel Vadot axis@0 { 101*b2d2a78aSEmmanuel Vadot reg = <0>; 102*b2d2a78aSEmmanuel Vadot abs-flat = <15>; 103*b2d2a78aSEmmanuel Vadot abs-fuzz = <15>; 104*b2d2a78aSEmmanuel Vadot abs-range = <890 1530>; 105*b2d2a78aSEmmanuel Vadot linux,code = <ABS_HAT2X>; 106*b2d2a78aSEmmanuel Vadot }; 107*b2d2a78aSEmmanuel Vadot 108*b2d2a78aSEmmanuel Vadot axis@1 { 109*b2d2a78aSEmmanuel Vadot reg = <1>; 110*b2d2a78aSEmmanuel Vadot abs-flat = <15>; 111*b2d2a78aSEmmanuel Vadot abs-fuzz = <15>; 112*b2d2a78aSEmmanuel Vadot abs-range = <1010 1550>; 113*b2d2a78aSEmmanuel Vadot linux,code = <ABS_HAT2Y>; 114*b2d2a78aSEmmanuel Vadot }; 115*b2d2a78aSEmmanuel Vadot }; 116*b2d2a78aSEmmanuel Vadot 117*b2d2a78aSEmmanuel Vadot analog-sound { 118*b2d2a78aSEmmanuel Vadot compatible = "simple-audio-card"; 119*b2d2a78aSEmmanuel Vadot pinctrl-0 = <&hp_detect>; 120*b2d2a78aSEmmanuel Vadot pinctrl-names = "default"; 121*b2d2a78aSEmmanuel Vadot simple-audio-card,aux-devs = <&_headphone>, <&_speaker>; 122*b2d2a78aSEmmanuel Vadot simple-audio-card,bitclock-master = <&masterdai>; 123*b2d2a78aSEmmanuel Vadot simple-audio-card,format = "i2s"; 124*b2d2a78aSEmmanuel Vadot simple-audio-card,frame-master = <&masterdai>; 125*b2d2a78aSEmmanuel Vadot simple-audio-card,hp-det-gpio = <&gpio3 RK_PA6 GPIO_ACTIVE_LOW>; 126*b2d2a78aSEmmanuel Vadot simple-audio-card,mclk-fs = <256>; 127*b2d2a78aSEmmanuel Vadot simple-audio-card,name = "rockchip,es8388-codec"; 128*b2d2a78aSEmmanuel Vadot simple-audio-card,pin-switches = "Headphones", "Speaker"; 129*b2d2a78aSEmmanuel Vadot simple-audio-card,routing = 130*b2d2a78aSEmmanuel Vadot "Speaker Amplifier INL", "LOUT2", 131*b2d2a78aSEmmanuel Vadot "Speaker Amplifier INR", "ROUT2", 132*b2d2a78aSEmmanuel Vadot "Speaker", "Speaker Amplifier OUTL", 133*b2d2a78aSEmmanuel Vadot "Speaker", "Speaker Amplifier OUTR", 134*b2d2a78aSEmmanuel Vadot "Headphones Amplifier INL", "LOUT1", 135*b2d2a78aSEmmanuel Vadot "Headphones Amplifier INR", "ROUT1", 136*b2d2a78aSEmmanuel Vadot "Headphones", "Headphones Amplifier OUTL", 137*b2d2a78aSEmmanuel Vadot "Headphones", "Headphones Amplifier OUTR", 138*b2d2a78aSEmmanuel Vadot "LINPUT1", "Microphone Jack", 139*b2d2a78aSEmmanuel Vadot "RINPUT1", "Microphone Jack", 140*b2d2a78aSEmmanuel Vadot "LINPUT2", "Onboard Microphone", 141*b2d2a78aSEmmanuel Vadot "RINPUT2", "Onboard Microphone"; 142*b2d2a78aSEmmanuel Vadot simple-audio-card,widgets = 143*b2d2a78aSEmmanuel Vadot "Microphone", "Microphone Jack", 144*b2d2a78aSEmmanuel Vadot "Microphone", "Onboard Microphone", 145*b2d2a78aSEmmanuel Vadot "Headphone", "Headphones", 146*b2d2a78aSEmmanuel Vadot "Speaker", "Speaker"; 147*b2d2a78aSEmmanuel Vadot 148*b2d2a78aSEmmanuel Vadot masterdai: simple-audio-card,codec { 149*b2d2a78aSEmmanuel Vadot sound-dai = <&es8388>; 150*b2d2a78aSEmmanuel Vadot system-clock-frequency = <12288000>; 151*b2d2a78aSEmmanuel Vadot }; 152*b2d2a78aSEmmanuel Vadot 153*b2d2a78aSEmmanuel Vadot simple-audio-card,cpu { 154*b2d2a78aSEmmanuel Vadot sound-dai = <&i2s0_8ch>; 155*b2d2a78aSEmmanuel Vadot }; 156*b2d2a78aSEmmanuel Vadot }; 157*b2d2a78aSEmmanuel Vadot 158*b2d2a78aSEmmanuel Vadot backlight: backlight { 159*b2d2a78aSEmmanuel Vadot compatible = "pwm-backlight"; 160*b2d2a78aSEmmanuel Vadot enable-gpios = <&gpio3 RK_PC0 GPIO_ACTIVE_HIGH>; 161*b2d2a78aSEmmanuel Vadot pinctrl-0 = <&lcd_bl_en>; 162*b2d2a78aSEmmanuel Vadot pinctrl-names = "default"; 163*b2d2a78aSEmmanuel Vadot pwms = <&pwm13 0 25000 PWM_POLARITY_INVERTED>; 164*b2d2a78aSEmmanuel Vadot }; 165*b2d2a78aSEmmanuel Vadot 166*b2d2a78aSEmmanuel Vadot battery: battery { 167*b2d2a78aSEmmanuel Vadot compatible = "simple-battery"; 168*b2d2a78aSEmmanuel Vadot charge-full-design-microamp-hours = <3700000>; 169*b2d2a78aSEmmanuel Vadot constant-charge-current-max-microamp = <2500000>; 170*b2d2a78aSEmmanuel Vadot constant-charge-voltage-max-microvolt = <8750000>; 171*b2d2a78aSEmmanuel Vadot voltage-min-design-microvolt = <7400000>; 172*b2d2a78aSEmmanuel Vadot }; 173*b2d2a78aSEmmanuel Vadot 174*b2d2a78aSEmmanuel Vadot gpio_keys: gpio-keys { 175*b2d2a78aSEmmanuel Vadot compatible = "gpio-keys"; 176*b2d2a78aSEmmanuel Vadot pinctrl-0 = <&btn_pins_ctrl>; 177*b2d2a78aSEmmanuel Vadot pinctrl-names = "default"; 178*b2d2a78aSEmmanuel Vadot 179*b2d2a78aSEmmanuel Vadot button-a { 180*b2d2a78aSEmmanuel Vadot gpios = <&gpio1 RK_PC6 GPIO_ACTIVE_LOW>; 181*b2d2a78aSEmmanuel Vadot label = "EAST"; 182*b2d2a78aSEmmanuel Vadot linux,code = <BTN_EAST>; 183*b2d2a78aSEmmanuel Vadot }; 184*b2d2a78aSEmmanuel Vadot 185*b2d2a78aSEmmanuel Vadot button-b { 186*b2d2a78aSEmmanuel Vadot gpios = <&gpio1 RK_PA5 GPIO_ACTIVE_LOW>; 187*b2d2a78aSEmmanuel Vadot label = "SOUTH"; 188*b2d2a78aSEmmanuel Vadot linux,code = <BTN_SOUTH>; 189*b2d2a78aSEmmanuel Vadot }; 190*b2d2a78aSEmmanuel Vadot 191*b2d2a78aSEmmanuel Vadot button-down { 192*b2d2a78aSEmmanuel Vadot gpios = <&gpio1 RK_PB1 GPIO_ACTIVE_LOW>; 193*b2d2a78aSEmmanuel Vadot label = "DPAD-DOWN"; 194*b2d2a78aSEmmanuel Vadot linux,code = <BTN_DPAD_DOWN>; 195*b2d2a78aSEmmanuel Vadot }; 196*b2d2a78aSEmmanuel Vadot 197*b2d2a78aSEmmanuel Vadot button-home { 198*b2d2a78aSEmmanuel Vadot gpios = <&gpio1 RK_PA0 GPIO_ACTIVE_LOW>; 199*b2d2a78aSEmmanuel Vadot label = "FUNCTION"; 200*b2d2a78aSEmmanuel Vadot linux,code = <BTN_MODE>; 201*b2d2a78aSEmmanuel Vadot }; 202*b2d2a78aSEmmanuel Vadot 203*b2d2a78aSEmmanuel Vadot button-l1 { 204*b2d2a78aSEmmanuel Vadot gpios = <&gpio1 RK_PB5 GPIO_ACTIVE_LOW>; 205*b2d2a78aSEmmanuel Vadot label = "L1"; 206*b2d2a78aSEmmanuel Vadot linux,code = <BTN_TL>; 207*b2d2a78aSEmmanuel Vadot }; 208*b2d2a78aSEmmanuel Vadot 209*b2d2a78aSEmmanuel Vadot button-left { 210*b2d2a78aSEmmanuel Vadot gpios = <&gpio1 RK_PD7 GPIO_ACTIVE_LOW>; 211*b2d2a78aSEmmanuel Vadot label = "DPAD-LEFT"; 212*b2d2a78aSEmmanuel Vadot linux,code = <BTN_DPAD_LEFT>; 213*b2d2a78aSEmmanuel Vadot }; 214*b2d2a78aSEmmanuel Vadot 215*b2d2a78aSEmmanuel Vadot button-menu { 216*b2d2a78aSEmmanuel Vadot gpios = <&gpio1 RK_PB0 GPIO_ACTIVE_LOW>; 217*b2d2a78aSEmmanuel Vadot label = "HOME"; 218*b2d2a78aSEmmanuel Vadot linux,code = <KEY_HOME>; 219*b2d2a78aSEmmanuel Vadot }; 220*b2d2a78aSEmmanuel Vadot 221*b2d2a78aSEmmanuel Vadot button-r1 { 222*b2d2a78aSEmmanuel Vadot gpios = <&gpio1 RK_PB2 GPIO_ACTIVE_LOW>; 223*b2d2a78aSEmmanuel Vadot label = "R1"; 224*b2d2a78aSEmmanuel Vadot linux,code = <BTN_TR>; 225*b2d2a78aSEmmanuel Vadot }; 226*b2d2a78aSEmmanuel Vadot 227*b2d2a78aSEmmanuel Vadot button-right { 228*b2d2a78aSEmmanuel Vadot gpios = <&gpio1 RK_PB7 GPIO_ACTIVE_LOW>; 229*b2d2a78aSEmmanuel Vadot label = "DPAD-RIGHT"; 230*b2d2a78aSEmmanuel Vadot linux,code = <BTN_DPAD_RIGHT>; 231*b2d2a78aSEmmanuel Vadot }; 232*b2d2a78aSEmmanuel Vadot 233*b2d2a78aSEmmanuel Vadot button-select { 234*b2d2a78aSEmmanuel Vadot gpios = <&gpio1 RK_PA3 GPIO_ACTIVE_LOW>; 235*b2d2a78aSEmmanuel Vadot label = "SELECT"; 236*b2d2a78aSEmmanuel Vadot linux,code = <BTN_SELECT>; 237*b2d2a78aSEmmanuel Vadot }; 238*b2d2a78aSEmmanuel Vadot 239*b2d2a78aSEmmanuel Vadot button-start { 240*b2d2a78aSEmmanuel Vadot gpios = <&gpio1 RK_PB6 GPIO_ACTIVE_LOW>; 241*b2d2a78aSEmmanuel Vadot label = "START"; 242*b2d2a78aSEmmanuel Vadot linux,code = <BTN_START>; 243*b2d2a78aSEmmanuel Vadot }; 244*b2d2a78aSEmmanuel Vadot 245*b2d2a78aSEmmanuel Vadot button-thumbl { 246*b2d2a78aSEmmanuel Vadot gpios = <&gpio1 RK_PA4 GPIO_ACTIVE_LOW>; 247*b2d2a78aSEmmanuel Vadot label = "THUMBL"; 248*b2d2a78aSEmmanuel Vadot linux,code = <BTN_THUMBL>; 249*b2d2a78aSEmmanuel Vadot }; 250*b2d2a78aSEmmanuel Vadot 251*b2d2a78aSEmmanuel Vadot button-thumbr { 252*b2d2a78aSEmmanuel Vadot gpios = <&gpio1 RK_PD6 GPIO_ACTIVE_LOW>; 253*b2d2a78aSEmmanuel Vadot label = "THUMBR"; 254*b2d2a78aSEmmanuel Vadot linux,code = <BTN_THUMBR>; 255*b2d2a78aSEmmanuel Vadot }; 256*b2d2a78aSEmmanuel Vadot 257*b2d2a78aSEmmanuel Vadot button-up { 258*b2d2a78aSEmmanuel Vadot gpios = <&gpio1 RK_PA2 GPIO_ACTIVE_LOW>; 259*b2d2a78aSEmmanuel Vadot label = "DPAD-UP"; 260*b2d2a78aSEmmanuel Vadot linux,code = <BTN_DPAD_UP>; 261*b2d2a78aSEmmanuel Vadot }; 262*b2d2a78aSEmmanuel Vadot 263*b2d2a78aSEmmanuel Vadot button-x { 264*b2d2a78aSEmmanuel Vadot gpios = <&gpio1 RK_PB4 GPIO_ACTIVE_LOW>; 265*b2d2a78aSEmmanuel Vadot label = "NORTH"; 266*b2d2a78aSEmmanuel Vadot linux,code = <BTN_NORTH>; 267*b2d2a78aSEmmanuel Vadot }; 268*b2d2a78aSEmmanuel Vadot 269*b2d2a78aSEmmanuel Vadot button-y { 270*b2d2a78aSEmmanuel Vadot gpios = <&gpio1 RK_PB3 GPIO_ACTIVE_LOW>; 271*b2d2a78aSEmmanuel Vadot label = "WEST"; 272*b2d2a78aSEmmanuel Vadot linux,code = <BTN_WEST>; 273*b2d2a78aSEmmanuel Vadot }; 274*b2d2a78aSEmmanuel Vadot }; 275*b2d2a78aSEmmanuel Vadot 276*b2d2a78aSEmmanuel Vadot gpio_leds: gpio-leds { 277*b2d2a78aSEmmanuel Vadot compatible = "gpio-leds"; 278*b2d2a78aSEmmanuel Vadot pinctrl-names = "default"; 279*b2d2a78aSEmmanuel Vadot pinctrl-0 = <&led_pins>; 280*b2d2a78aSEmmanuel Vadot 281*b2d2a78aSEmmanuel Vadot green_led: led-0 { 282*b2d2a78aSEmmanuel Vadot color = <LED_COLOR_ID_GREEN>; 283*b2d2a78aSEmmanuel Vadot gpios = <&gpio3 RK_PC1 GPIO_ACTIVE_HIGH>; 284*b2d2a78aSEmmanuel Vadot function = LED_FUNCTION_STATUS; 285*b2d2a78aSEmmanuel Vadot }; 286*b2d2a78aSEmmanuel Vadot 287*b2d2a78aSEmmanuel Vadot red_led: led-1 { 288*b2d2a78aSEmmanuel Vadot color = <LED_COLOR_ID_RED>; 289*b2d2a78aSEmmanuel Vadot gpios = <&gpio3 RK_PC2 GPIO_ACTIVE_HIGH>; 290*b2d2a78aSEmmanuel Vadot function = LED_FUNCTION_CHARGING; 291*b2d2a78aSEmmanuel Vadot }; 292*b2d2a78aSEmmanuel Vadot }; 293*b2d2a78aSEmmanuel Vadot 294*b2d2a78aSEmmanuel Vadot amp_headphone: headphone-amplifier { 295*b2d2a78aSEmmanuel Vadot compatible = "simple-audio-amplifier"; 296*b2d2a78aSEmmanuel Vadot enable-gpios = <&gpio0 RK_PD4 GPIO_ACTIVE_HIGH>; 297*b2d2a78aSEmmanuel Vadot pinctrl-0 = <&headphone_amplifier_en>; 298*b2d2a78aSEmmanuel Vadot pinctrl-names = "default"; 299*b2d2a78aSEmmanuel Vadot sound-name-prefix = "Headphones Amplifier"; 300*b2d2a78aSEmmanuel Vadot }; 301*b2d2a78aSEmmanuel Vadot 302*b2d2a78aSEmmanuel Vadot pwm_fan: pwm-fan { 303*b2d2a78aSEmmanuel Vadot compatible = "pwm-fan"; 304*b2d2a78aSEmmanuel Vadot #cooling-cells = <2>; 305*b2d2a78aSEmmanuel Vadot cooling-levels = <0 120 150 180 210 240 255>; 306*b2d2a78aSEmmanuel Vadot fan-supply = <&vcc5v0_sys>; 307*b2d2a78aSEmmanuel Vadot interrupt-parent = <&gpio4>; 308*b2d2a78aSEmmanuel Vadot interrupts = <RK_PB2 IRQ_TYPE_EDGE_RISING>; 309*b2d2a78aSEmmanuel Vadot pulses-per-revolution = <4>; 310*b2d2a78aSEmmanuel Vadot pwms = <&pwm12 0 50000 PWM_POLARITY_INVERTED>; 311*b2d2a78aSEmmanuel Vadot }; 312*b2d2a78aSEmmanuel Vadot 313*b2d2a78aSEmmanuel Vadot pwm_gpio33: pwm-33 { 314*b2d2a78aSEmmanuel Vadot compatible = "pwm-gpio"; 315*b2d2a78aSEmmanuel Vadot gpios = <&gpio1 RK_PA1 GPIO_ACTIVE_HIGH>; 316*b2d2a78aSEmmanuel Vadot pinctrl-0 = <&vib_right_h>; 317*b2d2a78aSEmmanuel Vadot pinctrl-names = "default"; 318*b2d2a78aSEmmanuel Vadot #pwm-cells = <3>; 319*b2d2a78aSEmmanuel Vadot }; 320*b2d2a78aSEmmanuel Vadot 321*b2d2a78aSEmmanuel Vadot pwm_gpio132: pwm-132 { 322*b2d2a78aSEmmanuel Vadot compatible = "pwm-gpio"; 323*b2d2a78aSEmmanuel Vadot gpios = <&gpio4 RK_PA4 GPIO_ACTIVE_HIGH>; 324*b2d2a78aSEmmanuel Vadot pinctrl-0 = <&vib_left_h>; 325*b2d2a78aSEmmanuel Vadot pinctrl-names = "default"; 326*b2d2a78aSEmmanuel Vadot #pwm-cells = <3>; 327*b2d2a78aSEmmanuel Vadot }; 328*b2d2a78aSEmmanuel Vadot 329*b2d2a78aSEmmanuel Vadot sdio_pwrseq: sdio-pwrseq { 330*b2d2a78aSEmmanuel Vadot compatible = "mmc-pwrseq-simple"; 331*b2d2a78aSEmmanuel Vadot clock-names = "ext_clock"; 332*b2d2a78aSEmmanuel Vadot clocks = <&rtc_hym8563>; 333*b2d2a78aSEmmanuel Vadot pinctrl-0 = <&wifi_enable_h>; 334*b2d2a78aSEmmanuel Vadot pinctrl-names = "default"; 335*b2d2a78aSEmmanuel Vadot post-power-on-delay-ms = <200>; 336*b2d2a78aSEmmanuel Vadot power-off-delay-us = <5000000>; 337*b2d2a78aSEmmanuel Vadot reset-gpios = <&gpio3 RK_PB4 GPIO_ACTIVE_LOW>; 338*b2d2a78aSEmmanuel Vadot }; 339*b2d2a78aSEmmanuel Vadot 340*b2d2a78aSEmmanuel Vadot amp_speaker: speaker-amplifier { 341*b2d2a78aSEmmanuel Vadot compatible = "simple-audio-amplifier"; 342*b2d2a78aSEmmanuel Vadot enable-gpios = <&gpio4 RK_PA5 GPIO_ACTIVE_HIGH>; 343*b2d2a78aSEmmanuel Vadot pinctrl-0 = <&speaker_amplifier_en>; 344*b2d2a78aSEmmanuel Vadot pinctrl-names = "default"; 345*b2d2a78aSEmmanuel Vadot sound-name-prefix = "Speaker Amplifier"; 346*b2d2a78aSEmmanuel Vadot VCC-supply = <&vcc5v0_spk>; 347*b2d2a78aSEmmanuel Vadot }; 348*b2d2a78aSEmmanuel Vadot 349*b2d2a78aSEmmanuel Vadot vcc_1v1_nldo_s3: vcc-1v1-nldo-s3-regulator { 350*b2d2a78aSEmmanuel Vadot compatible = "regulator-fixed"; 351*b2d2a78aSEmmanuel Vadot regulator-always-on; 352*b2d2a78aSEmmanuel Vadot regulator-boot-on; 353*b2d2a78aSEmmanuel Vadot regulator-max-microvolt = <1100000>; 354*b2d2a78aSEmmanuel Vadot regulator-min-microvolt = <1100000>; 355*b2d2a78aSEmmanuel Vadot regulator-name = "vcc_1v1_nldo_s3"; 356*b2d2a78aSEmmanuel Vadot vin-supply = <&vcc5v0_sys>; 357*b2d2a78aSEmmanuel Vadot }; 358*b2d2a78aSEmmanuel Vadot 359*b2d2a78aSEmmanuel Vadot vcc3v3_lcd0_n: vcc3v3-lcd0-n-regulator { 360*b2d2a78aSEmmanuel Vadot compatible = "regulator-fixed"; 361*b2d2a78aSEmmanuel Vadot enable-active-high; 362*b2d2a78aSEmmanuel Vadot gpio = <&gpio4 RK_PA7 GPIO_ACTIVE_HIGH>; 363*b2d2a78aSEmmanuel Vadot pinctrl-0 = <&vcc_lcd_h>; 364*b2d2a78aSEmmanuel Vadot pinctrl-names = "default"; 365*b2d2a78aSEmmanuel Vadot regulator-max-microvolt = <3300000>; 366*b2d2a78aSEmmanuel Vadot regulator-min-microvolt = <3300000>; 367*b2d2a78aSEmmanuel Vadot regulator-name = "vcc3v3_lcd0_n"; 368*b2d2a78aSEmmanuel Vadot vin-supply = <&vcc_3v3_s3>; 369*b2d2a78aSEmmanuel Vadot regulator-state-mem { 370*b2d2a78aSEmmanuel Vadot regulator-off-in-suspend; 371*b2d2a78aSEmmanuel Vadot }; 372*b2d2a78aSEmmanuel Vadot }; 373*b2d2a78aSEmmanuel Vadot 374*b2d2a78aSEmmanuel Vadot vcc_3v3_sd_s0: vcc-3v3-sd-s0-regulator { 375*b2d2a78aSEmmanuel Vadot compatible = "regulator-fixed"; 376*b2d2a78aSEmmanuel Vadot enable-active-high; 377*b2d2a78aSEmmanuel Vadot gpio = <&gpio4 RK_PB4 GPIO_ACTIVE_HIGH>; 378*b2d2a78aSEmmanuel Vadot pinctrl-0 = <&sd_s0_pwr>; 379*b2d2a78aSEmmanuel Vadot pinctrl-names = "default"; 380*b2d2a78aSEmmanuel Vadot regulator-max-microvolt = <3000000>; 381*b2d2a78aSEmmanuel Vadot regulator-min-microvolt = <3000000>; 382*b2d2a78aSEmmanuel Vadot regulator-name = "vcc_3v3_sd_s0"; 383*b2d2a78aSEmmanuel Vadot vin-supply = <&vcc_3v3_s3>; 384*b2d2a78aSEmmanuel Vadot }; 385*b2d2a78aSEmmanuel Vadot 386*b2d2a78aSEmmanuel Vadot vcc5v0_spk: vcc5v0-spk-regulator { 387*b2d2a78aSEmmanuel Vadot compatible = "regulator-fixed"; 388*b2d2a78aSEmmanuel Vadot enable-active-high; 389*b2d2a78aSEmmanuel Vadot gpio = <&gpio4 RK_PA2 GPIO_ACTIVE_HIGH>; 390*b2d2a78aSEmmanuel Vadot pinctrl-0 = <&vcc5v0_spk_pwr>; 391*b2d2a78aSEmmanuel Vadot pinctrl-names = "default"; 392*b2d2a78aSEmmanuel Vadot regulator-max-microvolt = <5000000>; 393*b2d2a78aSEmmanuel Vadot regulator-min-microvolt = <5000000>; 394*b2d2a78aSEmmanuel Vadot regulator-name = "vcc5v0_spk"; 395*b2d2a78aSEmmanuel Vadot vin-supply = <&vcc5v0_sys>; 396*b2d2a78aSEmmanuel Vadot regulator-state-mem { 397*b2d2a78aSEmmanuel Vadot regulator-off-in-suspend; 398*b2d2a78aSEmmanuel Vadot }; 399*b2d2a78aSEmmanuel Vadot }; 400*b2d2a78aSEmmanuel Vadot 401*b2d2a78aSEmmanuel Vadot vcc5v0_sys: vcc5v0-sys-regulator { 402*b2d2a78aSEmmanuel Vadot compatible = "regulator-fixed"; 403*b2d2a78aSEmmanuel Vadot regulator-always-on; 404*b2d2a78aSEmmanuel Vadot regulator-boot-on; 405*b2d2a78aSEmmanuel Vadot regulator-max-microvolt = <5000000>; 406*b2d2a78aSEmmanuel Vadot regulator-min-microvolt = <5000000>; 407*b2d2a78aSEmmanuel Vadot regulator-name = "vcc5v0_sys"; 408*b2d2a78aSEmmanuel Vadot }; 409*b2d2a78aSEmmanuel Vadot 410*b2d2a78aSEmmanuel Vadot vibrator_l: vibrator-l { 411*b2d2a78aSEmmanuel Vadot compatible = "pwm-vibrator"; 412*b2d2a78aSEmmanuel Vadot pwm-names = "enable"; 413*b2d2a78aSEmmanuel Vadot pwms = <&pwm_gpio132 0 20000000 0>; 414*b2d2a78aSEmmanuel Vadot }; 415*b2d2a78aSEmmanuel Vadot 416*b2d2a78aSEmmanuel Vadot vibrator_r: vibrator-r { 417*b2d2a78aSEmmanuel Vadot compatible = "pwm-vibrator"; 418*b2d2a78aSEmmanuel Vadot pwm-names = "enable"; 419*b2d2a78aSEmmanuel Vadot pwms = <&pwm_gpio33 0 20000000 0>; 420*b2d2a78aSEmmanuel Vadot }; 421*b2d2a78aSEmmanuel Vadot}; 422*b2d2a78aSEmmanuel Vadot 423*b2d2a78aSEmmanuel Vadot&combphy2_psu { 424*b2d2a78aSEmmanuel Vadot status = "okay"; 425*b2d2a78aSEmmanuel Vadot}; 426*b2d2a78aSEmmanuel Vadot 427*b2d2a78aSEmmanuel Vadot&cpu_l0 { 428*b2d2a78aSEmmanuel Vadot cpu-supply = <&vdd_cpu_lit_s0>; 429*b2d2a78aSEmmanuel Vadot}; 430*b2d2a78aSEmmanuel Vadot 431*b2d2a78aSEmmanuel Vadot&cpu_l1 { 432*b2d2a78aSEmmanuel Vadot cpu-supply = <&vdd_cpu_lit_s0>; 433*b2d2a78aSEmmanuel Vadot}; 434*b2d2a78aSEmmanuel Vadot 435*b2d2a78aSEmmanuel Vadot&cpu_l2 { 436*b2d2a78aSEmmanuel Vadot cpu-supply = <&vdd_cpu_lit_s0>; 437*b2d2a78aSEmmanuel Vadot}; 438*b2d2a78aSEmmanuel Vadot 439*b2d2a78aSEmmanuel Vadot&cpu_l3 { 440*b2d2a78aSEmmanuel Vadot cpu-supply = <&vdd_cpu_lit_s0>; 441*b2d2a78aSEmmanuel Vadot}; 442*b2d2a78aSEmmanuel Vadot 443*b2d2a78aSEmmanuel Vadot&cpu_b0 { 444*b2d2a78aSEmmanuel Vadot cpu-supply = <&vdd_cpu_big0_s0>; 445*b2d2a78aSEmmanuel Vadot}; 446*b2d2a78aSEmmanuel Vadot 447*b2d2a78aSEmmanuel Vadot&cpu_b1 { 448*b2d2a78aSEmmanuel Vadot cpu-supply = <&vdd_cpu_big0_s0>; 449*b2d2a78aSEmmanuel Vadot}; 450*b2d2a78aSEmmanuel Vadot 451*b2d2a78aSEmmanuel Vadot&cpu_b2 { 452*b2d2a78aSEmmanuel Vadot cpu-supply = <&vdd_cpu_big1_s0>; 453*b2d2a78aSEmmanuel Vadot}; 454*b2d2a78aSEmmanuel Vadot 455*b2d2a78aSEmmanuel Vadot&cpu_b3 { 456*b2d2a78aSEmmanuel Vadot cpu-supply = <&vdd_cpu_big1_s0>; 457*b2d2a78aSEmmanuel Vadot}; 458*b2d2a78aSEmmanuel Vadot 459*b2d2a78aSEmmanuel Vadot&gpu { 460*b2d2a78aSEmmanuel Vadot mali-supply = <&vdd_gpu_s0>; 461*b2d2a78aSEmmanuel Vadot status = "okay"; 462*b2d2a78aSEmmanuel Vadot}; 463*b2d2a78aSEmmanuel Vadot 464*b2d2a78aSEmmanuel Vadot&i2c0 { 465*b2d2a78aSEmmanuel Vadot pinctrl-0 = <&i2c0m2_xfer>; 466*b2d2a78aSEmmanuel Vadot pinctrl-names = "default"; 467*b2d2a78aSEmmanuel Vadot status = "okay"; 468*b2d2a78aSEmmanuel Vadot 469*b2d2a78aSEmmanuel Vadot vdd_cpu_big0_s0: regulator@42 { 470*b2d2a78aSEmmanuel Vadot compatible = "rockchip,rk8602"; 471*b2d2a78aSEmmanuel Vadot reg = <0x42>; 472*b2d2a78aSEmmanuel Vadot fcs,suspend-voltage-selector = <1>; 473*b2d2a78aSEmmanuel Vadot regulator-max-microvolt = <1050000>; 474*b2d2a78aSEmmanuel Vadot regulator-min-microvolt = <550000>; 475*b2d2a78aSEmmanuel Vadot regulator-name = "vdd_cpu_big0_s0"; 476*b2d2a78aSEmmanuel Vadot regulator-ramp-delay = <2300>; 477*b2d2a78aSEmmanuel Vadot vin-supply = <&vcc5v0_sys>; 478*b2d2a78aSEmmanuel Vadot 479*b2d2a78aSEmmanuel Vadot regulator-state-mem { 480*b2d2a78aSEmmanuel Vadot regulator-off-in-suspend; 481*b2d2a78aSEmmanuel Vadot }; 482*b2d2a78aSEmmanuel Vadot }; 483*b2d2a78aSEmmanuel Vadot 484*b2d2a78aSEmmanuel Vadot vdd_cpu_big1_s0: regulator@43 { 485*b2d2a78aSEmmanuel Vadot compatible = "rockchip,rk8603", "rockchip,rk8602"; 486*b2d2a78aSEmmanuel Vadot reg = <0x43>; 487*b2d2a78aSEmmanuel Vadot fcs,suspend-voltage-selector = <1>; 488*b2d2a78aSEmmanuel Vadot regulator-max-microvolt = <1050000>; 489*b2d2a78aSEmmanuel Vadot regulator-min-microvolt = <550000>; 490*b2d2a78aSEmmanuel Vadot regulator-name = "vdd_cpu_big1_s0"; 491*b2d2a78aSEmmanuel Vadot regulator-ramp-delay = <2300>; 492*b2d2a78aSEmmanuel Vadot vin-supply = <&vcc5v0_sys>; 493*b2d2a78aSEmmanuel Vadot 494*b2d2a78aSEmmanuel Vadot regulator-state-mem { 495*b2d2a78aSEmmanuel Vadot regulator-off-in-suspend; 496*b2d2a78aSEmmanuel Vadot }; 497*b2d2a78aSEmmanuel Vadot }; 498*b2d2a78aSEmmanuel Vadot}; 499*b2d2a78aSEmmanuel Vadot 500*b2d2a78aSEmmanuel Vadot&i2c2 { 501*b2d2a78aSEmmanuel Vadot status = "okay"; 502*b2d2a78aSEmmanuel Vadot 503*b2d2a78aSEmmanuel Vadot vdd_npu_s0: regulator@42 { 504*b2d2a78aSEmmanuel Vadot compatible = "rockchip,rk8602"; 505*b2d2a78aSEmmanuel Vadot reg = <0x42>; 506*b2d2a78aSEmmanuel Vadot fcs,suspend-voltage-selector = <1>; 507*b2d2a78aSEmmanuel Vadot regulator-max-microvolt = <950000>; 508*b2d2a78aSEmmanuel Vadot regulator-min-microvolt = <550000>; 509*b2d2a78aSEmmanuel Vadot regulator-name = "vdd_npu_s0"; 510*b2d2a78aSEmmanuel Vadot regulator-ramp-delay = <2300>; 511*b2d2a78aSEmmanuel Vadot vin-supply = <&vcc5v0_sys>; 512*b2d2a78aSEmmanuel Vadot 513*b2d2a78aSEmmanuel Vadot regulator-state-mem { 514*b2d2a78aSEmmanuel Vadot regulator-off-in-suspend; 515*b2d2a78aSEmmanuel Vadot }; 516*b2d2a78aSEmmanuel Vadot }; 517*b2d2a78aSEmmanuel Vadot}; 518*b2d2a78aSEmmanuel Vadot 519*b2d2a78aSEmmanuel Vadot&i2c3 { 520*b2d2a78aSEmmanuel Vadot status = "okay"; 521*b2d2a78aSEmmanuel Vadot 522*b2d2a78aSEmmanuel Vadot touchscreen@14 { 523*b2d2a78aSEmmanuel Vadot compatible = "goodix,gt911"; 524*b2d2a78aSEmmanuel Vadot reg = <0x14>; 525*b2d2a78aSEmmanuel Vadot interrupt-parent = <&gpio1>; 526*b2d2a78aSEmmanuel Vadot interrupts = <RK_PA6 IRQ_TYPE_LEVEL_LOW>; 527*b2d2a78aSEmmanuel Vadot irq-gpios = <&gpio1 RK_PA6 GPIO_ACTIVE_HIGH>; 528*b2d2a78aSEmmanuel Vadot pinctrl-0 = <&touch_int>, <&touch_rst>; 529*b2d2a78aSEmmanuel Vadot pinctrl-names = "default"; 530*b2d2a78aSEmmanuel Vadot reset-gpios = <&gpio1 RK_PA7 GPIO_ACTIVE_HIGH>; 531*b2d2a78aSEmmanuel Vadot touchscreen-inverted-x; 532*b2d2a78aSEmmanuel Vadot touchscreen-size-x = <1080>; 533*b2d2a78aSEmmanuel Vadot touchscreen-size-y = <1920>; 534*b2d2a78aSEmmanuel Vadot touchscreen-swapped-x-y; 535*b2d2a78aSEmmanuel Vadot }; 536*b2d2a78aSEmmanuel Vadot}; 537*b2d2a78aSEmmanuel Vadot 538*b2d2a78aSEmmanuel Vadot&i2c4 { 539*b2d2a78aSEmmanuel Vadot pinctrl-0 = <&i2c4m2_xfer>; 540*b2d2a78aSEmmanuel Vadot status = "okay"; 541*b2d2a78aSEmmanuel Vadot 542*b2d2a78aSEmmanuel Vadot ti_adc: adc@48 { 543*b2d2a78aSEmmanuel Vadot compatible = "ti,ads1015"; 544*b2d2a78aSEmmanuel Vadot reg = <0x48>; 545*b2d2a78aSEmmanuel Vadot #address-cells = <1>; 546*b2d2a78aSEmmanuel Vadot #io-channel-cells = <1>; 547*b2d2a78aSEmmanuel Vadot #size-cells = <0>; 548*b2d2a78aSEmmanuel Vadot 549*b2d2a78aSEmmanuel Vadot channel@4 { 550*b2d2a78aSEmmanuel Vadot reg = <4>; 551*b2d2a78aSEmmanuel Vadot }; 552*b2d2a78aSEmmanuel Vadot 553*b2d2a78aSEmmanuel Vadot channel@5 { 554*b2d2a78aSEmmanuel Vadot reg = <5>; 555*b2d2a78aSEmmanuel Vadot }; 556*b2d2a78aSEmmanuel Vadot 557*b2d2a78aSEmmanuel Vadot channel@6 { 558*b2d2a78aSEmmanuel Vadot reg = <6>; 559*b2d2a78aSEmmanuel Vadot }; 560*b2d2a78aSEmmanuel Vadot 561*b2d2a78aSEmmanuel Vadot channel@7 { 562*b2d2a78aSEmmanuel Vadot reg = <7>; 563*b2d2a78aSEmmanuel Vadot }; 564*b2d2a78aSEmmanuel Vadot }; 565*b2d2a78aSEmmanuel Vadot 566*b2d2a78aSEmmanuel Vadot imu@68 { 567*b2d2a78aSEmmanuel Vadot compatible = "invensense,mpu6880"; 568*b2d2a78aSEmmanuel Vadot reg = <0x68>; 569*b2d2a78aSEmmanuel Vadot interrupt-parent = <&gpio0>; 570*b2d2a78aSEmmanuel Vadot interrupts = <RK_PD3 IRQ_TYPE_EDGE_RISING>; 571*b2d2a78aSEmmanuel Vadot }; 572*b2d2a78aSEmmanuel Vadot}; 573*b2d2a78aSEmmanuel Vadot 574*b2d2a78aSEmmanuel Vadot&i2c6 { 575*b2d2a78aSEmmanuel Vadot pinctrl-0 = <&i2c6m3_xfer>; 576*b2d2a78aSEmmanuel Vadot status = "okay"; 577*b2d2a78aSEmmanuel Vadot 578*b2d2a78aSEmmanuel Vadot rtc_hym8563: rtc@51 { 579*b2d2a78aSEmmanuel Vadot compatible = "haoyu,hym8563"; 580*b2d2a78aSEmmanuel Vadot reg = <0x51>; 581*b2d2a78aSEmmanuel Vadot #clock-cells = <0>; 582*b2d2a78aSEmmanuel Vadot clock-output-names = "hym8563"; 583*b2d2a78aSEmmanuel Vadot interrupt-parent = <&gpio0>; 584*b2d2a78aSEmmanuel Vadot interrupts = <RK_PB0 IRQ_TYPE_LEVEL_LOW>; 585*b2d2a78aSEmmanuel Vadot pinctrl-0 = <&hym8563_int>, <&clk32k_in>; 586*b2d2a78aSEmmanuel Vadot pinctrl-names = "default"; 587*b2d2a78aSEmmanuel Vadot wakeup-source; 588*b2d2a78aSEmmanuel Vadot }; 589*b2d2a78aSEmmanuel Vadot 590*b2d2a78aSEmmanuel Vadot /* Battery profile from BSP device tree. */ 591*b2d2a78aSEmmanuel Vadot battery@62 { 592*b2d2a78aSEmmanuel Vadot compatible = "cellwise,cw2015"; 593*b2d2a78aSEmmanuel Vadot reg = <0x62>; 594*b2d2a78aSEmmanuel Vadot 595*b2d2a78aSEmmanuel Vadot cellwise,battery-profile = /bits/ 8 596*b2d2a78aSEmmanuel Vadot <0x18 0x0A 0x76 0x6A 0x6A 0x6A 0x68 0x66 597*b2d2a78aSEmmanuel Vadot 0x62 0x5E 0x5A 0x58 0x5F 0x59 0x46 0x3D 598*b2d2a78aSEmmanuel Vadot 0x35 0x2D 0x28 0x21 0x29 0x38 0x44 0x50 599*b2d2a78aSEmmanuel Vadot 0x1A 0x85 0x07 0xAE 0x14 0x28 0x48 0x56 600*b2d2a78aSEmmanuel Vadot 0x66 0x66 0x66 0x6A 0x3E 0x1A 0x6C 0x3D 601*b2d2a78aSEmmanuel Vadot 0x09 0x38 0x1A 0x49 0x7B 0x96 0xA2 0x15 602*b2d2a78aSEmmanuel Vadot 0x3B 0x77 0x9A 0xB1 0x80 0x87 0xB0 0xCB 603*b2d2a78aSEmmanuel Vadot 0x2F 0x00 0x64 0xA5 0xB5 0x1C 0xF0 0x49>; 604*b2d2a78aSEmmanuel Vadot cellwise,monitor-interval-ms = <5000>; 605*b2d2a78aSEmmanuel Vadot monitored-battery = <&battery>; 606*b2d2a78aSEmmanuel Vadot status = "okay"; 607*b2d2a78aSEmmanuel Vadot }; 608*b2d2a78aSEmmanuel Vadot}; 609*b2d2a78aSEmmanuel Vadot 610*b2d2a78aSEmmanuel Vadot&i2c7 { 611*b2d2a78aSEmmanuel Vadot status = "okay"; 612*b2d2a78aSEmmanuel Vadot 613*b2d2a78aSEmmanuel Vadot es8388: audio-codec@11 { 614*b2d2a78aSEmmanuel Vadot compatible = "everest,es8388"; 615*b2d2a78aSEmmanuel Vadot reg = <0x11>; 616*b2d2a78aSEmmanuel Vadot assigned-clock-rates = <12288000>; 617*b2d2a78aSEmmanuel Vadot assigned-clocks = <&cru I2S0_8CH_MCLKOUT>; 618*b2d2a78aSEmmanuel Vadot AVDD-supply = <&vcc_3v3_s3>; 619*b2d2a78aSEmmanuel Vadot clocks = <&cru I2S0_8CH_MCLKOUT>; 620*b2d2a78aSEmmanuel Vadot DVDD-supply = <&vcc_1v8_s3>; 621*b2d2a78aSEmmanuel Vadot HPVDD-supply = <&vcc_3v3_s3>; 622*b2d2a78aSEmmanuel Vadot PVDD-supply = <&vcc_1v8_s3>; 623*b2d2a78aSEmmanuel Vadot #sound-dai-cells = <0>; 624*b2d2a78aSEmmanuel Vadot }; 625*b2d2a78aSEmmanuel Vadot}; 626*b2d2a78aSEmmanuel Vadot 627*b2d2a78aSEmmanuel Vadot&i2s0_8ch { 628*b2d2a78aSEmmanuel Vadot pinctrl-0 = <&i2s0_lrck 629*b2d2a78aSEmmanuel Vadot &i2s0_mclk 630*b2d2a78aSEmmanuel Vadot &i2s0_sclk 631*b2d2a78aSEmmanuel Vadot &i2s0_sdi0 632*b2d2a78aSEmmanuel Vadot &i2s0_sdo0>; 633*b2d2a78aSEmmanuel Vadot status = "okay"; 634*b2d2a78aSEmmanuel Vadot}; 635*b2d2a78aSEmmanuel Vadot 636*b2d2a78aSEmmanuel Vadot&package_thermal { 637*b2d2a78aSEmmanuel Vadot polling-delay = <1000>; 638*b2d2a78aSEmmanuel Vadot 639*b2d2a78aSEmmanuel Vadot trips { 640*b2d2a78aSEmmanuel Vadot package_fan0: package-fan0 { 641*b2d2a78aSEmmanuel Vadot temperature = <55000>; 642*b2d2a78aSEmmanuel Vadot hysteresis = <2000>; 643*b2d2a78aSEmmanuel Vadot type = "active"; 644*b2d2a78aSEmmanuel Vadot }; 645*b2d2a78aSEmmanuel Vadot 646*b2d2a78aSEmmanuel Vadot package_fan1: package-fan1 { 647*b2d2a78aSEmmanuel Vadot temperature = <65000>; 648*b2d2a78aSEmmanuel Vadot hysteresis = <2000>; 649*b2d2a78aSEmmanuel Vadot type = "active"; 650*b2d2a78aSEmmanuel Vadot }; 651*b2d2a78aSEmmanuel Vadot }; 652*b2d2a78aSEmmanuel Vadot 653*b2d2a78aSEmmanuel Vadot cooling-maps { 654*b2d2a78aSEmmanuel Vadot map1 { 655*b2d2a78aSEmmanuel Vadot trip = <&package_fan0>; 656*b2d2a78aSEmmanuel Vadot cooling-device = <&pwm_fan THERMAL_NO_LIMIT 1>; 657*b2d2a78aSEmmanuel Vadot }; 658*b2d2a78aSEmmanuel Vadot 659*b2d2a78aSEmmanuel Vadot map2 { 660*b2d2a78aSEmmanuel Vadot trip = <&package_fan1>; 661*b2d2a78aSEmmanuel Vadot cooling-device = <&pwm_fan 2 THERMAL_NO_LIMIT>; 662*b2d2a78aSEmmanuel Vadot }; 663*b2d2a78aSEmmanuel Vadot }; 664*b2d2a78aSEmmanuel Vadot}; 665*b2d2a78aSEmmanuel Vadot 666*b2d2a78aSEmmanuel Vadot/* 667*b2d2a78aSEmmanuel Vadot * Attempts to use an M.2 SATA in this slot worked intermittently 668*b2d2a78aSEmmanuel Vadot * with the correct nodes enabled in device-tree, but eventually 669*b2d2a78aSEmmanuel Vadot * resulted in a destroyed board. Advise caution. 670*b2d2a78aSEmmanuel Vadot */ 671*b2d2a78aSEmmanuel Vadot&pcie2x1l1 { 672*b2d2a78aSEmmanuel Vadot pinctrl-0 = <&pcie_rst>; 673*b2d2a78aSEmmanuel Vadot pinctrl-names = "default"; 674*b2d2a78aSEmmanuel Vadot reset-gpios = <&gpio3 RK_PD1 GPIO_ACTIVE_HIGH>; 675*b2d2a78aSEmmanuel Vadot status = "okay"; 676*b2d2a78aSEmmanuel Vadot}; 677*b2d2a78aSEmmanuel Vadot 678*b2d2a78aSEmmanuel Vadot&pinctrl { 679*b2d2a78aSEmmanuel Vadot audio-amplifier { 680*b2d2a78aSEmmanuel Vadot headphone_amplifier_en: headphone-amplifier-en { 681*b2d2a78aSEmmanuel Vadot rockchip,pins = 682*b2d2a78aSEmmanuel Vadot <0 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>; 683*b2d2a78aSEmmanuel Vadot }; 684*b2d2a78aSEmmanuel Vadot 685*b2d2a78aSEmmanuel Vadot hp_detect: headphone-detect { 686*b2d2a78aSEmmanuel Vadot rockchip,pins = 687*b2d2a78aSEmmanuel Vadot <3 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>; 688*b2d2a78aSEmmanuel Vadot }; 689*b2d2a78aSEmmanuel Vadot 690*b2d2a78aSEmmanuel Vadot speaker_amplifier_en: speaker-amplifier-en { 691*b2d2a78aSEmmanuel Vadot rockchip,pins = 692*b2d2a78aSEmmanuel Vadot <4 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>; 693*b2d2a78aSEmmanuel Vadot }; 694*b2d2a78aSEmmanuel Vadot }; 695*b2d2a78aSEmmanuel Vadot 696*b2d2a78aSEmmanuel Vadot bt { 697*b2d2a78aSEmmanuel Vadot bt_enable_h: bt-enable-h { 698*b2d2a78aSEmmanuel Vadot rockchip,pins = 699*b2d2a78aSEmmanuel Vadot <3 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>; 700*b2d2a78aSEmmanuel Vadot }; 701*b2d2a78aSEmmanuel Vadot 702*b2d2a78aSEmmanuel Vadot bt_host_wake_l: bt-host-wake-l { 703*b2d2a78aSEmmanuel Vadot rockchip,pins = 704*b2d2a78aSEmmanuel Vadot <3 RK_PB0 RK_FUNC_GPIO &pcfg_pull_down>; 705*b2d2a78aSEmmanuel Vadot }; 706*b2d2a78aSEmmanuel Vadot 707*b2d2a78aSEmmanuel Vadot bt_wake_l: bt-wake-l { 708*b2d2a78aSEmmanuel Vadot rockchip,pins = 709*b2d2a78aSEmmanuel Vadot <3 RK_PB1 RK_FUNC_GPIO &pcfg_pull_up>; 710*b2d2a78aSEmmanuel Vadot }; 711*b2d2a78aSEmmanuel Vadot }; 712*b2d2a78aSEmmanuel Vadot 713*b2d2a78aSEmmanuel Vadot charger { 714*b2d2a78aSEmmanuel Vadot boost_enable_h: boost-enable-h { 715*b2d2a78aSEmmanuel Vadot rockchip,pins = 716*b2d2a78aSEmmanuel Vadot <4 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>; 717*b2d2a78aSEmmanuel Vadot }; 718*b2d2a78aSEmmanuel Vadot charger_int_h: charger-int-h { 719*b2d2a78aSEmmanuel Vadot rockchip,pins = 720*b2d2a78aSEmmanuel Vadot <0 RK_PD5 RK_FUNC_GPIO &pcfg_pull_up>; 721*b2d2a78aSEmmanuel Vadot }; 722*b2d2a78aSEmmanuel Vadot }; 723*b2d2a78aSEmmanuel Vadot 724*b2d2a78aSEmmanuel Vadot hym8563 { 725*b2d2a78aSEmmanuel Vadot hym8563_int: hym8563-int { 726*b2d2a78aSEmmanuel Vadot rockchip,pins = 727*b2d2a78aSEmmanuel Vadot <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_up>; 728*b2d2a78aSEmmanuel Vadot }; 729*b2d2a78aSEmmanuel Vadot }; 730*b2d2a78aSEmmanuel Vadot 731*b2d2a78aSEmmanuel Vadot gpio-btns { 732*b2d2a78aSEmmanuel Vadot btn_pins_ctrl: btn-pins-ctrl { 733*b2d2a78aSEmmanuel Vadot rockchip,pins = 734*b2d2a78aSEmmanuel Vadot <1 RK_PA0 RK_FUNC_GPIO &pcfg_pull_up>, 735*b2d2a78aSEmmanuel Vadot <1 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up>, 736*b2d2a78aSEmmanuel Vadot <1 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up>, 737*b2d2a78aSEmmanuel Vadot <1 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up>, 738*b2d2a78aSEmmanuel Vadot <1 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>, 739*b2d2a78aSEmmanuel Vadot <1 RK_PB0 RK_FUNC_GPIO &pcfg_pull_up>, 740*b2d2a78aSEmmanuel Vadot <1 RK_PB1 RK_FUNC_GPIO &pcfg_pull_up>, 741*b2d2a78aSEmmanuel Vadot <1 RK_PB2 RK_FUNC_GPIO &pcfg_pull_up>, 742*b2d2a78aSEmmanuel Vadot <1 RK_PB3 RK_FUNC_GPIO &pcfg_pull_up>, 743*b2d2a78aSEmmanuel Vadot <1 RK_PB4 RK_FUNC_GPIO &pcfg_pull_up>, 744*b2d2a78aSEmmanuel Vadot <1 RK_PB5 RK_FUNC_GPIO &pcfg_pull_up>, 745*b2d2a78aSEmmanuel Vadot <1 RK_PB6 RK_FUNC_GPIO &pcfg_pull_up>, 746*b2d2a78aSEmmanuel Vadot <1 RK_PB7 RK_FUNC_GPIO &pcfg_pull_up>, 747*b2d2a78aSEmmanuel Vadot <1 RK_PC6 RK_FUNC_GPIO &pcfg_pull_up>, 748*b2d2a78aSEmmanuel Vadot <1 RK_PD6 RK_FUNC_GPIO &pcfg_pull_up>, 749*b2d2a78aSEmmanuel Vadot <1 RK_PD7 RK_FUNC_GPIO &pcfg_pull_up>; 750*b2d2a78aSEmmanuel Vadot }; 751*b2d2a78aSEmmanuel Vadot }; 752*b2d2a78aSEmmanuel Vadot 753*b2d2a78aSEmmanuel Vadot gpio-leds { 754*b2d2a78aSEmmanuel Vadot led_pins: led-pins { 755*b2d2a78aSEmmanuel Vadot rockchip,pins = 756*b2d2a78aSEmmanuel Vadot <3 RK_PC1 RK_FUNC_GPIO &pcfg_pull_up>, 757*b2d2a78aSEmmanuel Vadot <3 RK_PC2 RK_FUNC_GPIO &pcfg_pull_up>; 758*b2d2a78aSEmmanuel Vadot }; 759*b2d2a78aSEmmanuel Vadot }; 760*b2d2a78aSEmmanuel Vadot 761*b2d2a78aSEmmanuel Vadot lcd_bl_en { 762*b2d2a78aSEmmanuel Vadot lcd_bl_en: lcd-bl-en { 763*b2d2a78aSEmmanuel Vadot rockchip,pins = 764*b2d2a78aSEmmanuel Vadot <3 RK_PC0 RK_FUNC_GPIO &pcfg_pull_none>; 765*b2d2a78aSEmmanuel Vadot }; 766*b2d2a78aSEmmanuel Vadot }; 767*b2d2a78aSEmmanuel Vadot 768*b2d2a78aSEmmanuel Vadot pcie-pins { 769*b2d2a78aSEmmanuel Vadot pcie_rst: pcie-rst { 770*b2d2a78aSEmmanuel Vadot rockchip,pins = 771*b2d2a78aSEmmanuel Vadot <3 RK_PD1 RK_FUNC_GPIO &pcfg_pull_up>; 772*b2d2a78aSEmmanuel Vadot }; 773*b2d2a78aSEmmanuel Vadot }; 774*b2d2a78aSEmmanuel Vadot 775*b2d2a78aSEmmanuel Vadot sd-pwr { 776*b2d2a78aSEmmanuel Vadot sd_s0_pwr: sd-s0-pwr { 777*b2d2a78aSEmmanuel Vadot rockchip,pins = 778*b2d2a78aSEmmanuel Vadot <4 RK_PB4 RK_FUNC_GPIO &pcfg_pull_up>; 779*b2d2a78aSEmmanuel Vadot }; 780*b2d2a78aSEmmanuel Vadot }; 781*b2d2a78aSEmmanuel Vadot 782*b2d2a78aSEmmanuel Vadot spk-pwr { 783*b2d2a78aSEmmanuel Vadot vcc5v0_spk_pwr: vcc5v0-spk-pwr { 784*b2d2a78aSEmmanuel Vadot rockchip,pins = 785*b2d2a78aSEmmanuel Vadot <4 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up>; 786*b2d2a78aSEmmanuel Vadot }; 787*b2d2a78aSEmmanuel Vadot }; 788*b2d2a78aSEmmanuel Vadot 789*b2d2a78aSEmmanuel Vadot touch { 790*b2d2a78aSEmmanuel Vadot touch_int: touch-int { 791*b2d2a78aSEmmanuel Vadot rockchip,pins = 792*b2d2a78aSEmmanuel Vadot <1 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>; 793*b2d2a78aSEmmanuel Vadot }; 794*b2d2a78aSEmmanuel Vadot 795*b2d2a78aSEmmanuel Vadot touch_rst: touch-rst { 796*b2d2a78aSEmmanuel Vadot rockchip,pins = 797*b2d2a78aSEmmanuel Vadot <1 RK_PA7 RK_FUNC_GPIO &pcfg_pull_up>; 798*b2d2a78aSEmmanuel Vadot }; 799*b2d2a78aSEmmanuel Vadot }; 800*b2d2a78aSEmmanuel Vadot 801*b2d2a78aSEmmanuel Vadot usb-typec { 802*b2d2a78aSEmmanuel Vadot usbc0_int: usbc0-int { 803*b2d2a78aSEmmanuel Vadot rockchip,pins = 804*b2d2a78aSEmmanuel Vadot <0 RK_PC7 RK_FUNC_GPIO &pcfg_pull_up>; 805*b2d2a78aSEmmanuel Vadot }; 806*b2d2a78aSEmmanuel Vadot }; 807*b2d2a78aSEmmanuel Vadot 808*b2d2a78aSEmmanuel Vadot vcc3v3-lcd { 809*b2d2a78aSEmmanuel Vadot vcc_lcd_h: vcc-lcd-h { 810*b2d2a78aSEmmanuel Vadot rockchip,pins = 811*b2d2a78aSEmmanuel Vadot <4 RK_PA7 RK_FUNC_GPIO &pcfg_pull_up>; 812*b2d2a78aSEmmanuel Vadot }; 813*b2d2a78aSEmmanuel Vadot }; 814*b2d2a78aSEmmanuel Vadot 815*b2d2a78aSEmmanuel Vadot vibrator { 816*b2d2a78aSEmmanuel Vadot vib_left_h: vib-left-h { 817*b2d2a78aSEmmanuel Vadot rockchip,pins = 818*b2d2a78aSEmmanuel Vadot <4 RK_PA4 RK_FUNC_GPIO &pcfg_pull_down>; 819*b2d2a78aSEmmanuel Vadot }; 820*b2d2a78aSEmmanuel Vadot 821*b2d2a78aSEmmanuel Vadot vib_right_h: vib-right-h { 822*b2d2a78aSEmmanuel Vadot rockchip,pins = 823*b2d2a78aSEmmanuel Vadot <1 RK_PA1 RK_FUNC_GPIO &pcfg_pull_down>; 824*b2d2a78aSEmmanuel Vadot }; 825*b2d2a78aSEmmanuel Vadot }; 826*b2d2a78aSEmmanuel Vadot 827*b2d2a78aSEmmanuel Vadot wifi { 828*b2d2a78aSEmmanuel Vadot wifi_enable_h: wifi-enable-h { 829*b2d2a78aSEmmanuel Vadot rockchip,pins = 830*b2d2a78aSEmmanuel Vadot <3 RK_PB4 RK_FUNC_GPIO &pcfg_pull_up>; 831*b2d2a78aSEmmanuel Vadot }; 832*b2d2a78aSEmmanuel Vadot 833*b2d2a78aSEmmanuel Vadot wifi_host_wake_irq: wifi-host-wake-irq { 834*b2d2a78aSEmmanuel Vadot rockchip,pins = 835*b2d2a78aSEmmanuel Vadot <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_down>; 836*b2d2a78aSEmmanuel Vadot }; 837*b2d2a78aSEmmanuel Vadot }; 838*b2d2a78aSEmmanuel Vadot}; 839*b2d2a78aSEmmanuel Vadot 840*b2d2a78aSEmmanuel Vadot&pwm12 { 841*b2d2a78aSEmmanuel Vadot pinctrl-0 = <&pwm12m1_pins>; 842*b2d2a78aSEmmanuel Vadot status = "okay"; 843*b2d2a78aSEmmanuel Vadot}; 844*b2d2a78aSEmmanuel Vadot 845*b2d2a78aSEmmanuel Vadot&pwm13 { 846*b2d2a78aSEmmanuel Vadot pinctrl-0 = <&pwm13m1_pins>; 847*b2d2a78aSEmmanuel Vadot status = "okay"; 848*b2d2a78aSEmmanuel Vadot}; 849*b2d2a78aSEmmanuel Vadot 850*b2d2a78aSEmmanuel Vadot&saradc { 851*b2d2a78aSEmmanuel Vadot vref-supply = <&vcc_1v8_s0>; 852*b2d2a78aSEmmanuel Vadot status = "okay"; 853*b2d2a78aSEmmanuel Vadot}; 854*b2d2a78aSEmmanuel Vadot 855*b2d2a78aSEmmanuel Vadot&sdhci { 856*b2d2a78aSEmmanuel Vadot bus-width = <8>; 857*b2d2a78aSEmmanuel Vadot mmc-hs400-1_8v; 858*b2d2a78aSEmmanuel Vadot mmc-hs400-enhanced-strobe; 859*b2d2a78aSEmmanuel Vadot no-sd; 860*b2d2a78aSEmmanuel Vadot no-sdio; 861*b2d2a78aSEmmanuel Vadot non-removable; 862*b2d2a78aSEmmanuel Vadot status = "okay"; 863*b2d2a78aSEmmanuel Vadot}; 864*b2d2a78aSEmmanuel Vadot 865*b2d2a78aSEmmanuel Vadot&sdio { 866*b2d2a78aSEmmanuel Vadot #address-cells = <1>; 867*b2d2a78aSEmmanuel Vadot bus-width = <4>; 868*b2d2a78aSEmmanuel Vadot cap-sd-highspeed; 869*b2d2a78aSEmmanuel Vadot cap-sdio-irq; 870*b2d2a78aSEmmanuel Vadot disable-wp; 871*b2d2a78aSEmmanuel Vadot keep-power-in-suspend; 872*b2d2a78aSEmmanuel Vadot max-frequency = <150000000>; 873*b2d2a78aSEmmanuel Vadot mmc-pwrseq = <&sdio_pwrseq>; 874*b2d2a78aSEmmanuel Vadot no-mmc; 875*b2d2a78aSEmmanuel Vadot no-sd; 876*b2d2a78aSEmmanuel Vadot sd-uhs-sdr104; 877*b2d2a78aSEmmanuel Vadot #size-cells = <0>; 878*b2d2a78aSEmmanuel Vadot status = "okay"; 879*b2d2a78aSEmmanuel Vadot 880*b2d2a78aSEmmanuel Vadot brcmf: wifi@1 { 881*b2d2a78aSEmmanuel Vadot compatible = "brcm,bcm43456-fmac", "brcm,bcm4329-fmac"; 882*b2d2a78aSEmmanuel Vadot reg = <1>; 883*b2d2a78aSEmmanuel Vadot interrupt-parent = <&gpio0>; 884*b2d2a78aSEmmanuel Vadot interrupts = <RK_PA0 IRQ_TYPE_LEVEL_HIGH>; 885*b2d2a78aSEmmanuel Vadot interrupt-names = "host-wake"; 886*b2d2a78aSEmmanuel Vadot pinctrl-0 = <&wifi_host_wake_irq>; 887*b2d2a78aSEmmanuel Vadot pinctrl-names = "default"; 888*b2d2a78aSEmmanuel Vadot }; 889*b2d2a78aSEmmanuel Vadot}; 890*b2d2a78aSEmmanuel Vadot 891*b2d2a78aSEmmanuel Vadot&sdmmc { 892*b2d2a78aSEmmanuel Vadot bus-width = <4>; 893*b2d2a78aSEmmanuel Vadot cap-mmc-highspeed; 894*b2d2a78aSEmmanuel Vadot cap-sd-highspeed; 895*b2d2a78aSEmmanuel Vadot disable-wp; 896*b2d2a78aSEmmanuel Vadot max-frequency = <150000000>; 897*b2d2a78aSEmmanuel Vadot no-sdio; 898*b2d2a78aSEmmanuel Vadot no-mmc; 899*b2d2a78aSEmmanuel Vadot sd-uhs-sdr104; 900*b2d2a78aSEmmanuel Vadot vmmc-supply = <&vcc_3v3_sd_s0>; 901*b2d2a78aSEmmanuel Vadot vqmmc-supply = <&vccio_sd_s0>; 902*b2d2a78aSEmmanuel Vadot status = "okay"; 903*b2d2a78aSEmmanuel Vadot}; 904*b2d2a78aSEmmanuel Vadot 905*b2d2a78aSEmmanuel Vadot&spi2 { 906*b2d2a78aSEmmanuel Vadot #address-cells = <1>; 907*b2d2a78aSEmmanuel Vadot assigned-clocks = <&cru CLK_SPI2>; 908*b2d2a78aSEmmanuel Vadot assigned-clock-rates = <200000000>; 909*b2d2a78aSEmmanuel Vadot num-cs = <1>; 910*b2d2a78aSEmmanuel Vadot pinctrl-0 = <&spi2m2_pins>, <&spi2m2_cs0>; 911*b2d2a78aSEmmanuel Vadot pinctrl-names = "default"; 912*b2d2a78aSEmmanuel Vadot #size-cells = <0>; 913*b2d2a78aSEmmanuel Vadot status = "okay"; 914*b2d2a78aSEmmanuel Vadot 915*b2d2a78aSEmmanuel Vadot pmic@0 { 916*b2d2a78aSEmmanuel Vadot compatible = "rockchip,rk806"; 917*b2d2a78aSEmmanuel Vadot reg = <0x0>; 918*b2d2a78aSEmmanuel Vadot #gpio-cells = <2>; 919*b2d2a78aSEmmanuel Vadot gpio-controller; 920*b2d2a78aSEmmanuel Vadot interrupt-parent = <&gpio0>; 921*b2d2a78aSEmmanuel Vadot interrupts = <RK_PA7 IRQ_TYPE_LEVEL_LOW>; 922*b2d2a78aSEmmanuel Vadot pinctrl-0 = <&pmic_pins>, <&rk806_dvs1_null>, 923*b2d2a78aSEmmanuel Vadot <&rk806_dvs2_null>, <&rk806_dvs3_null>; 924*b2d2a78aSEmmanuel Vadot pinctrl-names = "default"; 925*b2d2a78aSEmmanuel Vadot spi-max-frequency = <1000000>; 926*b2d2a78aSEmmanuel Vadot system-power-controller; 927*b2d2a78aSEmmanuel Vadot 928*b2d2a78aSEmmanuel Vadot vcc1-supply = <&vcc5v0_sys>; 929*b2d2a78aSEmmanuel Vadot vcc2-supply = <&vcc5v0_sys>; 930*b2d2a78aSEmmanuel Vadot vcc3-supply = <&vcc5v0_sys>; 931*b2d2a78aSEmmanuel Vadot vcc4-supply = <&vcc5v0_sys>; 932*b2d2a78aSEmmanuel Vadot vcc5-supply = <&vcc5v0_sys>; 933*b2d2a78aSEmmanuel Vadot vcc6-supply = <&vcc5v0_sys>; 934*b2d2a78aSEmmanuel Vadot vcc7-supply = <&vcc5v0_sys>; 935*b2d2a78aSEmmanuel Vadot vcc8-supply = <&vcc5v0_sys>; 936*b2d2a78aSEmmanuel Vadot vcc9-supply = <&vcc5v0_sys>; 937*b2d2a78aSEmmanuel Vadot vcc10-supply = <&vcc5v0_sys>; 938*b2d2a78aSEmmanuel Vadot vcc11-supply = <&vcc_2v0_pldo_s3>; 939*b2d2a78aSEmmanuel Vadot vcc12-supply = <&vcc5v0_sys>; 940*b2d2a78aSEmmanuel Vadot vcc13-supply = <&vcc_1v1_nldo_s3>; 941*b2d2a78aSEmmanuel Vadot vcc14-supply = <&vcc_1v1_nldo_s3>; 942*b2d2a78aSEmmanuel Vadot vcca-supply = <&vcc5v0_sys>; 943*b2d2a78aSEmmanuel Vadot 944*b2d2a78aSEmmanuel Vadot rk806_dvs1_null: dvs1-null-pins { 945*b2d2a78aSEmmanuel Vadot pins = "gpio_pwrctrl1"; 946*b2d2a78aSEmmanuel Vadot function = "pin_fun0"; 947*b2d2a78aSEmmanuel Vadot }; 948*b2d2a78aSEmmanuel Vadot 949*b2d2a78aSEmmanuel Vadot rk806_dvs2_null: dvs2-null-pins { 950*b2d2a78aSEmmanuel Vadot pins = "gpio_pwrctrl2"; 951*b2d2a78aSEmmanuel Vadot function = "pin_fun0"; 952*b2d2a78aSEmmanuel Vadot }; 953*b2d2a78aSEmmanuel Vadot 954*b2d2a78aSEmmanuel Vadot rk806_dvs3_null: dvs3-null-pins { 955*b2d2a78aSEmmanuel Vadot pins = "gpio_pwrctrl3"; 956*b2d2a78aSEmmanuel Vadot function = "pin_fun0"; 957*b2d2a78aSEmmanuel Vadot }; 958*b2d2a78aSEmmanuel Vadot 959*b2d2a78aSEmmanuel Vadot regulators { 960*b2d2a78aSEmmanuel Vadot vdd_gpu_s0: dcdc-reg1 { 961*b2d2a78aSEmmanuel Vadot regulator-boot-on; 962*b2d2a78aSEmmanuel Vadot regulator-enable-ramp-delay = <400>; 963*b2d2a78aSEmmanuel Vadot regulator-max-microvolt = <950000>; 964*b2d2a78aSEmmanuel Vadot regulator-min-microvolt = <550000>; 965*b2d2a78aSEmmanuel Vadot regulator-name = "vdd_gpu_s0"; 966*b2d2a78aSEmmanuel Vadot regulator-ramp-delay = <12500>; 967*b2d2a78aSEmmanuel Vadot regulator-state-mem { 968*b2d2a78aSEmmanuel Vadot regulator-off-in-suspend; 969*b2d2a78aSEmmanuel Vadot }; 970*b2d2a78aSEmmanuel Vadot }; 971*b2d2a78aSEmmanuel Vadot 972*b2d2a78aSEmmanuel Vadot vdd_cpu_lit_s0: dcdc-reg2 { 973*b2d2a78aSEmmanuel Vadot regulator-always-on; 974*b2d2a78aSEmmanuel Vadot regulator-boot-on; 975*b2d2a78aSEmmanuel Vadot regulator-max-microvolt = <950000>; 976*b2d2a78aSEmmanuel Vadot regulator-min-microvolt = <550000>; 977*b2d2a78aSEmmanuel Vadot regulator-ramp-delay = <12500>; 978*b2d2a78aSEmmanuel Vadot regulator-name = "vdd_cpu_lit_s0"; 979*b2d2a78aSEmmanuel Vadot regulator-state-mem { 980*b2d2a78aSEmmanuel Vadot regulator-off-in-suspend; 981*b2d2a78aSEmmanuel Vadot }; 982*b2d2a78aSEmmanuel Vadot }; 983*b2d2a78aSEmmanuel Vadot 984*b2d2a78aSEmmanuel Vadot vdd_logic_s0: dcdc-reg3 { 985*b2d2a78aSEmmanuel Vadot regulator-always-on; 986*b2d2a78aSEmmanuel Vadot regulator-boot-on; 987*b2d2a78aSEmmanuel Vadot regulator-max-microvolt = <750000>; 988*b2d2a78aSEmmanuel Vadot regulator-min-microvolt = <675000>; 989*b2d2a78aSEmmanuel Vadot regulator-name = "vdd_logic_s0"; 990*b2d2a78aSEmmanuel Vadot regulator-ramp-delay = <12500>; 991*b2d2a78aSEmmanuel Vadot regulator-state-mem { 992*b2d2a78aSEmmanuel Vadot regulator-on-in-suspend; 993*b2d2a78aSEmmanuel Vadot regulator-suspend-microvolt = <750000>; 994*b2d2a78aSEmmanuel Vadot }; 995*b2d2a78aSEmmanuel Vadot }; 996*b2d2a78aSEmmanuel Vadot 997*b2d2a78aSEmmanuel Vadot vdd_vdenc_s0: dcdc-reg4 { 998*b2d2a78aSEmmanuel Vadot regulator-always-on; 999*b2d2a78aSEmmanuel Vadot regulator-boot-on; 1000*b2d2a78aSEmmanuel Vadot regulator-max-microvolt = <950000>; 1001*b2d2a78aSEmmanuel Vadot regulator-min-microvolt = <550000>; 1002*b2d2a78aSEmmanuel Vadot regulator-name = "vdd_vdenc_s0"; 1003*b2d2a78aSEmmanuel Vadot regulator-ramp-delay = <12500>; 1004*b2d2a78aSEmmanuel Vadot regulator-state-mem { 1005*b2d2a78aSEmmanuel Vadot regulator-off-in-suspend; 1006*b2d2a78aSEmmanuel Vadot }; 1007*b2d2a78aSEmmanuel Vadot }; 1008*b2d2a78aSEmmanuel Vadot 1009*b2d2a78aSEmmanuel Vadot vdd_ddr_s0: dcdc-reg5 { 1010*b2d2a78aSEmmanuel Vadot regulator-always-on; 1011*b2d2a78aSEmmanuel Vadot regulator-boot-on; 1012*b2d2a78aSEmmanuel Vadot regulator-min-microvolt = <675000>; 1013*b2d2a78aSEmmanuel Vadot regulator-max-microvolt = <900000>; 1014*b2d2a78aSEmmanuel Vadot regulator-ramp-delay = <12500>; 1015*b2d2a78aSEmmanuel Vadot regulator-name = "vdd_ddr_s0"; 1016*b2d2a78aSEmmanuel Vadot regulator-state-mem { 1017*b2d2a78aSEmmanuel Vadot regulator-off-in-suspend; 1018*b2d2a78aSEmmanuel Vadot regulator-suspend-microvolt = <850000>; 1019*b2d2a78aSEmmanuel Vadot }; 1020*b2d2a78aSEmmanuel Vadot }; 1021*b2d2a78aSEmmanuel Vadot 1022*b2d2a78aSEmmanuel Vadot vdd2_ddr_s3: dcdc-reg6 { 1023*b2d2a78aSEmmanuel Vadot regulator-always-on; 1024*b2d2a78aSEmmanuel Vadot regulator-boot-on; 1025*b2d2a78aSEmmanuel Vadot regulator-name = "vdd2_ddr_s3"; 1026*b2d2a78aSEmmanuel Vadot regulator-state-mem { 1027*b2d2a78aSEmmanuel Vadot regulator-on-in-suspend; 1028*b2d2a78aSEmmanuel Vadot }; 1029*b2d2a78aSEmmanuel Vadot }; 1030*b2d2a78aSEmmanuel Vadot 1031*b2d2a78aSEmmanuel Vadot vcc_2v0_pldo_s3: dcdc-reg7 { 1032*b2d2a78aSEmmanuel Vadot regulator-always-on; 1033*b2d2a78aSEmmanuel Vadot regulator-boot-on; 1034*b2d2a78aSEmmanuel Vadot regulator-max-microvolt = <2000000>; 1035*b2d2a78aSEmmanuel Vadot regulator-min-microvolt = <2000000>; 1036*b2d2a78aSEmmanuel Vadot regulator-name = "vdd_2v0_pldo_s3"; 1037*b2d2a78aSEmmanuel Vadot regulator-state-mem { 1038*b2d2a78aSEmmanuel Vadot regulator-on-in-suspend; 1039*b2d2a78aSEmmanuel Vadot regulator-suspend-microvolt = <2000000>; 1040*b2d2a78aSEmmanuel Vadot }; 1041*b2d2a78aSEmmanuel Vadot }; 1042*b2d2a78aSEmmanuel Vadot 1043*b2d2a78aSEmmanuel Vadot vcc_3v3_s3: dcdc-reg8 { 1044*b2d2a78aSEmmanuel Vadot regulator-always-on; 1045*b2d2a78aSEmmanuel Vadot regulator-boot-on; 1046*b2d2a78aSEmmanuel Vadot regulator-max-microvolt = <3300000>; 1047*b2d2a78aSEmmanuel Vadot regulator-min-microvolt = <3300000>; 1048*b2d2a78aSEmmanuel Vadot regulator-name = "vcc_3v3_s3"; 1049*b2d2a78aSEmmanuel Vadot regulator-state-mem { 1050*b2d2a78aSEmmanuel Vadot regulator-on-in-suspend; 1051*b2d2a78aSEmmanuel Vadot regulator-suspend-microvolt = <3300000>; 1052*b2d2a78aSEmmanuel Vadot }; 1053*b2d2a78aSEmmanuel Vadot }; 1054*b2d2a78aSEmmanuel Vadot 1055*b2d2a78aSEmmanuel Vadot vddq_ddr_s0: dcdc-reg9 { 1056*b2d2a78aSEmmanuel Vadot regulator-always-on; 1057*b2d2a78aSEmmanuel Vadot regulator-boot-on; 1058*b2d2a78aSEmmanuel Vadot regulator-name = "vddq_ddr_s0"; 1059*b2d2a78aSEmmanuel Vadot regulator-state-mem { 1060*b2d2a78aSEmmanuel Vadot regulator-off-in-suspend; 1061*b2d2a78aSEmmanuel Vadot }; 1062*b2d2a78aSEmmanuel Vadot }; 1063*b2d2a78aSEmmanuel Vadot 1064*b2d2a78aSEmmanuel Vadot vcc_1v8_s3: dcdc-reg10 { 1065*b2d2a78aSEmmanuel Vadot regulator-always-on; 1066*b2d2a78aSEmmanuel Vadot regulator-boot-on; 1067*b2d2a78aSEmmanuel Vadot regulator-max-microvolt = <1800000>; 1068*b2d2a78aSEmmanuel Vadot regulator-min-microvolt = <1800000>; 1069*b2d2a78aSEmmanuel Vadot regulator-name = "vcc_1v8_s3"; 1070*b2d2a78aSEmmanuel Vadot regulator-state-mem { 1071*b2d2a78aSEmmanuel Vadot regulator-on-in-suspend; 1072*b2d2a78aSEmmanuel Vadot regulator-suspend-microvolt = <1800000>; 1073*b2d2a78aSEmmanuel Vadot }; 1074*b2d2a78aSEmmanuel Vadot }; 1075*b2d2a78aSEmmanuel Vadot 1076*b2d2a78aSEmmanuel Vadot avcc_1v8_s0: pldo-reg1 { 1077*b2d2a78aSEmmanuel Vadot regulator-always-on; 1078*b2d2a78aSEmmanuel Vadot regulator-boot-on; 1079*b2d2a78aSEmmanuel Vadot regulator-max-microvolt = <1800000>; 1080*b2d2a78aSEmmanuel Vadot regulator-min-microvolt = <1800000>; 1081*b2d2a78aSEmmanuel Vadot regulator-name = "avcc_1v8_s0"; 1082*b2d2a78aSEmmanuel Vadot regulator-state-mem { 1083*b2d2a78aSEmmanuel Vadot regulator-off-in-suspend; 1084*b2d2a78aSEmmanuel Vadot }; 1085*b2d2a78aSEmmanuel Vadot }; 1086*b2d2a78aSEmmanuel Vadot 1087*b2d2a78aSEmmanuel Vadot vcc_1v8_s0: pldo-reg2 { 1088*b2d2a78aSEmmanuel Vadot regulator-always-on; 1089*b2d2a78aSEmmanuel Vadot regulator-boot-on; 1090*b2d2a78aSEmmanuel Vadot regulator-max-microvolt = <1800000>; 1091*b2d2a78aSEmmanuel Vadot regulator-min-microvolt = <1800000>; 1092*b2d2a78aSEmmanuel Vadot regulator-name = "vcc_1v8_s0"; 1093*b2d2a78aSEmmanuel Vadot regulator-state-mem { 1094*b2d2a78aSEmmanuel Vadot regulator-off-in-suspend; 1095*b2d2a78aSEmmanuel Vadot regulator-suspend-microvolt = <1800000>; 1096*b2d2a78aSEmmanuel Vadot }; 1097*b2d2a78aSEmmanuel Vadot }; 1098*b2d2a78aSEmmanuel Vadot 1099*b2d2a78aSEmmanuel Vadot avdd_1v2_s0: pldo-reg3 { 1100*b2d2a78aSEmmanuel Vadot regulator-always-on; 1101*b2d2a78aSEmmanuel Vadot regulator-boot-on; 1102*b2d2a78aSEmmanuel Vadot regulator-max-microvolt = <1200000>; 1103*b2d2a78aSEmmanuel Vadot regulator-min-microvolt = <1200000>; 1104*b2d2a78aSEmmanuel Vadot regulator-name = "avdd_1v2_s0"; 1105*b2d2a78aSEmmanuel Vadot regulator-state-mem { 1106*b2d2a78aSEmmanuel Vadot regulator-off-in-suspend; 1107*b2d2a78aSEmmanuel Vadot }; 1108*b2d2a78aSEmmanuel Vadot }; 1109*b2d2a78aSEmmanuel Vadot 1110*b2d2a78aSEmmanuel Vadot vcc_3v3_s0: pldo-reg4 { 1111*b2d2a78aSEmmanuel Vadot regulator-always-on; 1112*b2d2a78aSEmmanuel Vadot regulator-boot-on; 1113*b2d2a78aSEmmanuel Vadot regulator-max-microvolt = <3300000>; 1114*b2d2a78aSEmmanuel Vadot regulator-min-microvolt = <3300000>; 1115*b2d2a78aSEmmanuel Vadot regulator-name = "vcc_3v3_s0"; 1116*b2d2a78aSEmmanuel Vadot regulator-state-mem { 1117*b2d2a78aSEmmanuel Vadot regulator-off-in-suspend; 1118*b2d2a78aSEmmanuel Vadot }; 1119*b2d2a78aSEmmanuel Vadot }; 1120*b2d2a78aSEmmanuel Vadot 1121*b2d2a78aSEmmanuel Vadot vccio_sd_s0: pldo-reg5 { 1122*b2d2a78aSEmmanuel Vadot regulator-always-on; 1123*b2d2a78aSEmmanuel Vadot regulator-boot-on; 1124*b2d2a78aSEmmanuel Vadot regulator-max-microvolt = <3300000>; 1125*b2d2a78aSEmmanuel Vadot regulator-min-microvolt = <1800000>; 1126*b2d2a78aSEmmanuel Vadot regulator-name = "vccio_sd_s0"; 1127*b2d2a78aSEmmanuel Vadot regulator-state-mem { 1128*b2d2a78aSEmmanuel Vadot regulator-off-in-suspend; 1129*b2d2a78aSEmmanuel Vadot }; 1130*b2d2a78aSEmmanuel Vadot }; 1131*b2d2a78aSEmmanuel Vadot 1132*b2d2a78aSEmmanuel Vadot vcc_1v8_s3_pldo6: pldo-reg6 { 1133*b2d2a78aSEmmanuel Vadot regulator-always-on; 1134*b2d2a78aSEmmanuel Vadot regulator-boot-on; 1135*b2d2a78aSEmmanuel Vadot regulator-max-microvolt = <1800000>; 1136*b2d2a78aSEmmanuel Vadot regulator-min-microvolt = <1800000>; 1137*b2d2a78aSEmmanuel Vadot regulator-name = "vcc_1v8_s3_pldo6"; 1138*b2d2a78aSEmmanuel Vadot regulator-state-mem { 1139*b2d2a78aSEmmanuel Vadot regulator-on-in-suspend; 1140*b2d2a78aSEmmanuel Vadot regulator-suspend-microvolt = <1800000>; 1141*b2d2a78aSEmmanuel Vadot }; 1142*b2d2a78aSEmmanuel Vadot }; 1143*b2d2a78aSEmmanuel Vadot 1144*b2d2a78aSEmmanuel Vadot vdd_0v75_s3: nldo-reg1 { 1145*b2d2a78aSEmmanuel Vadot regulator-always-on; 1146*b2d2a78aSEmmanuel Vadot regulator-boot-on; 1147*b2d2a78aSEmmanuel Vadot regulator-max-microvolt = <750000>; 1148*b2d2a78aSEmmanuel Vadot regulator-min-microvolt = <750000>; 1149*b2d2a78aSEmmanuel Vadot regulator-name = "vdd_0v75_s3"; 1150*b2d2a78aSEmmanuel Vadot regulator-state-mem { 1151*b2d2a78aSEmmanuel Vadot regulator-on-in-suspend; 1152*b2d2a78aSEmmanuel Vadot regulator-suspend-microvolt = <750000>; 1153*b2d2a78aSEmmanuel Vadot }; 1154*b2d2a78aSEmmanuel Vadot }; 1155*b2d2a78aSEmmanuel Vadot 1156*b2d2a78aSEmmanuel Vadot vdd_ddr_pll_s0: nldo-reg2 { 1157*b2d2a78aSEmmanuel Vadot regulator-always-on; 1158*b2d2a78aSEmmanuel Vadot regulator-boot-on; 1159*b2d2a78aSEmmanuel Vadot regulator-max-microvolt = <850000>; 1160*b2d2a78aSEmmanuel Vadot regulator-min-microvolt = <850000>; 1161*b2d2a78aSEmmanuel Vadot regulator-name = "vdd_ddr_pll_s0"; 1162*b2d2a78aSEmmanuel Vadot regulator-state-mem { 1163*b2d2a78aSEmmanuel Vadot regulator-off-in-suspend; 1164*b2d2a78aSEmmanuel Vadot regulator-suspend-microvolt = <850000>; 1165*b2d2a78aSEmmanuel Vadot }; 1166*b2d2a78aSEmmanuel Vadot }; 1167*b2d2a78aSEmmanuel Vadot 1168*b2d2a78aSEmmanuel Vadot avdd_0v75_s0: nldo-reg3 { 1169*b2d2a78aSEmmanuel Vadot regulator-always-on; 1170*b2d2a78aSEmmanuel Vadot regulator-boot-on; 1171*b2d2a78aSEmmanuel Vadot regulator-max-microvolt = <837500>; 1172*b2d2a78aSEmmanuel Vadot regulator-min-microvolt = <837500>; 1173*b2d2a78aSEmmanuel Vadot regulator-name = "avdd_0v75_s0"; 1174*b2d2a78aSEmmanuel Vadot regulator-state-mem { 1175*b2d2a78aSEmmanuel Vadot regulator-off-in-suspend; 1176*b2d2a78aSEmmanuel Vadot }; 1177*b2d2a78aSEmmanuel Vadot }; 1178*b2d2a78aSEmmanuel Vadot 1179*b2d2a78aSEmmanuel Vadot vdd_0v85_s0: nldo-reg4 { 1180*b2d2a78aSEmmanuel Vadot regulator-always-on; 1181*b2d2a78aSEmmanuel Vadot regulator-boot-on; 1182*b2d2a78aSEmmanuel Vadot regulator-min-microvolt = <850000>; 1183*b2d2a78aSEmmanuel Vadot regulator-max-microvolt = <850000>; 1184*b2d2a78aSEmmanuel Vadot regulator-name = "vdd_0v85_s0"; 1185*b2d2a78aSEmmanuel Vadot regulator-state-mem { 1186*b2d2a78aSEmmanuel Vadot regulator-off-in-suspend; 1187*b2d2a78aSEmmanuel Vadot }; 1188*b2d2a78aSEmmanuel Vadot }; 1189*b2d2a78aSEmmanuel Vadot 1190*b2d2a78aSEmmanuel Vadot vdd_0v75_s0: nldo-reg5 { 1191*b2d2a78aSEmmanuel Vadot regulator-always-on; 1192*b2d2a78aSEmmanuel Vadot regulator-boot-on; 1193*b2d2a78aSEmmanuel Vadot regulator-min-microvolt = <750000>; 1194*b2d2a78aSEmmanuel Vadot regulator-max-microvolt = <750000>; 1195*b2d2a78aSEmmanuel Vadot regulator-name = "vdd_0v75_s0"; 1196*b2d2a78aSEmmanuel Vadot regulator-state-mem { 1197*b2d2a78aSEmmanuel Vadot regulator-off-in-suspend; 1198*b2d2a78aSEmmanuel Vadot }; 1199*b2d2a78aSEmmanuel Vadot }; 1200*b2d2a78aSEmmanuel Vadot }; 1201*b2d2a78aSEmmanuel Vadot }; 1202*b2d2a78aSEmmanuel Vadot}; 1203*b2d2a78aSEmmanuel Vadot 1204*b2d2a78aSEmmanuel Vadot&tsadc { 1205*b2d2a78aSEmmanuel Vadot status = "okay"; 1206*b2d2a78aSEmmanuel Vadot}; 1207*b2d2a78aSEmmanuel Vadot 1208*b2d2a78aSEmmanuel Vadot&u2phy0 { 1209*b2d2a78aSEmmanuel Vadot status = "okay"; 1210*b2d2a78aSEmmanuel Vadot}; 1211*b2d2a78aSEmmanuel Vadot 1212*b2d2a78aSEmmanuel Vadot&u2phy0_otg { 1213*b2d2a78aSEmmanuel Vadot status = "okay"; 1214*b2d2a78aSEmmanuel Vadot}; 1215*b2d2a78aSEmmanuel Vadot 1216*b2d2a78aSEmmanuel Vadot&uart2 { 1217*b2d2a78aSEmmanuel Vadot pinctrl-0 = <&uart2m0_xfer>; 1218*b2d2a78aSEmmanuel Vadot status = "okay"; 1219*b2d2a78aSEmmanuel Vadot}; 1220*b2d2a78aSEmmanuel Vadot 1221*b2d2a78aSEmmanuel Vadot&uart9 { 1222*b2d2a78aSEmmanuel Vadot pinctrl-0 = <&uart9m2_xfer>, <&uart9m2_ctsn>, <&uart9m2_rtsn>; 1223*b2d2a78aSEmmanuel Vadot uart-has-rtscts; 1224*b2d2a78aSEmmanuel Vadot status = "okay"; 1225*b2d2a78aSEmmanuel Vadot 1226*b2d2a78aSEmmanuel Vadot bluetooth { 1227*b2d2a78aSEmmanuel Vadot compatible = "brcm,bcm4345c5"; 1228*b2d2a78aSEmmanuel Vadot clocks = <&rtc_hym8563>; 1229*b2d2a78aSEmmanuel Vadot clock-names = "lpo"; 1230*b2d2a78aSEmmanuel Vadot device-wakeup-gpios = <&gpio3 RK_PB1 GPIO_ACTIVE_HIGH>; 1231*b2d2a78aSEmmanuel Vadot interrupt-parent = <&gpio3>; 1232*b2d2a78aSEmmanuel Vadot interrupts = <RK_PB0 IRQ_TYPE_EDGE_FALLING>; 1233*b2d2a78aSEmmanuel Vadot pinctrl-0 = <&bt_enable_h>, <&bt_host_wake_l>, <&bt_wake_l>; 1234*b2d2a78aSEmmanuel Vadot pinctrl-names = "default"; 1235*b2d2a78aSEmmanuel Vadot shutdown-gpios = <&gpio3 RK_PB7 GPIO_ACTIVE_HIGH>; 1236*b2d2a78aSEmmanuel Vadot }; 1237*b2d2a78aSEmmanuel Vadot}; 1238