1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2 2 3 /dts-v1/; 3 /dts-v1/; 4 4 5 #include <dt-bindings/gpio/gpio.h> 5 #include <dt-bindings/gpio/gpio.h> 6 #include <dt-bindings/input/linux-event-codes. 6 #include <dt-bindings/input/linux-event-codes.h> 7 #include <dt-bindings/leds/common.h> 7 #include <dt-bindings/leds/common.h> 8 #include <dt-bindings/pinctrl/rockchip.h> 8 #include <dt-bindings/pinctrl/rockchip.h> 9 #include <dt-bindings/soc/rockchip,vop2.h> 9 #include <dt-bindings/soc/rockchip,vop2.h> 10 #include "rk3566.dtsi" 10 #include "rk3566.dtsi" 11 11 12 / { 12 / { 13 chassis-type = "handset"; << 14 << 15 chosen: chosen { 13 chosen: chosen { 16 stdout-path = "serial2:1500000 14 stdout-path = "serial2:1500000n8"; 17 }; 15 }; 18 16 >> 17 adc-joystick { >> 18 compatible = "adc-joystick"; >> 19 io-channels = <&adc_mux 0>, >> 20 <&adc_mux 1>, >> 21 <&adc_mux 2>, >> 22 <&adc_mux 3>; >> 23 pinctrl-0 = <&joy_mux_en>; >> 24 pinctrl-names = "default"; >> 25 poll-interval = <60>; >> 26 #address-cells = <1>; >> 27 #size-cells = <0>; >> 28 >> 29 axis@0 { >> 30 reg = <0>; >> 31 abs-flat = <32>; >> 32 abs-fuzz = <32>; >> 33 abs-range = <1023 15>; >> 34 linux,code = <ABS_X>; >> 35 }; >> 36 >> 37 axis@1 { >> 38 reg = <1>; >> 39 abs-flat = <32>; >> 40 abs-fuzz = <32>; >> 41 abs-range = <15 1023>; >> 42 linux,code = <ABS_RX>; >> 43 }; >> 44 >> 45 axis@2 { >> 46 reg = <2>; >> 47 abs-flat = <32>; >> 48 abs-fuzz = <32>; >> 49 abs-range = <15 1023>; >> 50 linux,code = <ABS_Y>; >> 51 }; >> 52 >> 53 axis@3 { >> 54 reg = <3>; >> 55 abs-flat = <32>; >> 56 abs-fuzz = <32>; >> 57 abs-range = <1023 15>; >> 58 linux,code = <ABS_RY>; >> 59 }; >> 60 }; >> 61 19 adc_keys: adc-keys { 62 adc_keys: adc-keys { 20 compatible = "adc-keys"; 63 compatible = "adc-keys"; 21 io-channels = <&saradc 0>; 64 io-channels = <&saradc 0>; 22 io-channel-names = "buttons"; 65 io-channel-names = "buttons"; 23 keyup-threshold-microvolt = <1 66 keyup-threshold-microvolt = <1800000>; 24 poll-interval = <60>; 67 poll-interval = <60>; 25 68 26 /* 69 /* 27 * Button is mapped to F key i 70 * Button is mapped to F key in BSP kernel, but 28 * according to input guidelin 71 * according to input guidelines it should be mode. 29 */ 72 */ 30 button-mode { 73 button-mode { 31 label = "MODE"; 74 label = "MODE"; 32 linux,code = <BTN_MODE 75 linux,code = <BTN_MODE>; 33 press-threshold-microv 76 press-threshold-microvolt = <1750>; 34 }; 77 }; 35 }; 78 }; 36 79 >> 80 adc_mux: adc-mux { >> 81 compatible = "io-channel-mux"; >> 82 channels = "left_x", "right_x", "left_y", "right_y"; >> 83 #io-channel-cells = <1>; >> 84 io-channels = <&saradc 3>; >> 85 io-channel-names = "parent"; >> 86 mux-controls = <&gpio_mux>; >> 87 settle-time-us = <100>; >> 88 }; >> 89 37 gpio_keys_control: gpio-keys-control { 90 gpio_keys_control: gpio-keys-control { 38 compatible = "gpio-keys"; 91 compatible = "gpio-keys"; 39 pinctrl-0 = <&btn_pins_ctrl>; 92 pinctrl-0 = <&btn_pins_ctrl>; 40 pinctrl-names = "default"; 93 pinctrl-names = "default"; 41 94 42 button-b { 95 button-b { 43 gpios = <&gpio3 RK_PC3 96 gpios = <&gpio3 RK_PC3 GPIO_ACTIVE_LOW>; 44 label = "SOUTH"; 97 label = "SOUTH"; 45 linux,code = <BTN_SOUT 98 linux,code = <BTN_SOUTH>; 46 }; 99 }; 47 100 48 button-down { 101 button-down { 49 gpios = <&gpio3 RK_PA4 102 gpios = <&gpio3 RK_PA4 GPIO_ACTIVE_LOW>; 50 label = "DPAD-DOWN"; 103 label = "DPAD-DOWN"; 51 linux,code = <BTN_DPAD 104 linux,code = <BTN_DPAD_DOWN>; 52 }; 105 }; 53 106 54 button-l1 { 107 button-l1 { 55 gpios = <&gpio3 RK_PB1 108 gpios = <&gpio3 RK_PB1 GPIO_ACTIVE_LOW>; 56 label = "TL"; 109 label = "TL"; 57 linux,code = <BTN_TL>; 110 linux,code = <BTN_TL>; 58 }; 111 }; 59 112 60 button-l2 { 113 button-l2 { 61 gpios = <&gpio3 RK_PB2 114 gpios = <&gpio3 RK_PB2 GPIO_ACTIVE_LOW>; 62 label = "TL2"; 115 label = "TL2"; 63 linux,code = <BTN_TL2> 116 linux,code = <BTN_TL2>; 64 }; 117 }; 65 118 66 button-select { 119 button-select { 67 gpios = <&gpio3 RK_PB6 120 gpios = <&gpio3 RK_PB6 GPIO_ACTIVE_LOW>; 68 label = "SELECT"; 121 label = "SELECT"; 69 linux,code = <BTN_SELE 122 linux,code = <BTN_SELECT>; 70 }; 123 }; 71 124 72 button-start { 125 button-start { 73 gpios = <&gpio3 RK_PB5 126 gpios = <&gpio3 RK_PB5 GPIO_ACTIVE_LOW>; 74 label = "START"; 127 label = "START"; 75 linux,code = <BTN_STAR 128 linux,code = <BTN_START>; 76 }; 129 }; 77 130 >> 131 button-thumbl { >> 132 gpios = <&gpio3 RK_PA1 GPIO_ACTIVE_LOW>; >> 133 label = "THUMBL"; >> 134 linux,code = <BTN_THUMBL>; >> 135 }; >> 136 >> 137 button-thumbr { >> 138 gpios = <&gpio3 RK_PA2 GPIO_ACTIVE_LOW>; >> 139 label = "THUMBR"; >> 140 linux,code = <BTN_THUMBR>; >> 141 }; >> 142 78 button-up { 143 button-up { 79 gpios = <&gpio3 RK_PA3 144 gpios = <&gpio3 RK_PA3 GPIO_ACTIVE_LOW>; 80 label = "DPAD-UP"; 145 label = "DPAD-UP"; 81 linux,code = <BTN_DPAD 146 linux,code = <BTN_DPAD_UP>; 82 }; 147 }; 83 148 84 button-x { 149 button-x { 85 gpios = <&gpio3 RK_PC0 150 gpios = <&gpio3 RK_PC0 GPIO_ACTIVE_LOW>; 86 label = "NORTH"; 151 label = "NORTH"; 87 linux,code = <BTN_NORT 152 linux,code = <BTN_NORTH>; 88 }; 153 }; 89 }; 154 }; 90 155 91 gpio_keys_vol: gpio-keys-vol { 156 gpio_keys_vol: gpio-keys-vol { 92 compatible = "gpio-keys"; 157 compatible = "gpio-keys"; 93 autorepeat; 158 autorepeat; 94 pinctrl-0 = <&btn_pins_vol>; 159 pinctrl-0 = <&btn_pins_vol>; 95 pinctrl-names = "default"; 160 pinctrl-names = "default"; 96 161 97 button-vol-down { 162 button-vol-down { 98 gpios = <&gpio3 RK_PB0 163 gpios = <&gpio3 RK_PB0 GPIO_ACTIVE_LOW>; 99 label = "VOLUMEDOWN"; 164 label = "VOLUMEDOWN"; 100 linux,code = <KEY_VOLU 165 linux,code = <KEY_VOLUMEDOWN>; 101 }; 166 }; 102 167 103 button-vol-up { 168 button-vol-up { 104 gpios = <&gpio3 RK_PA7 169 gpios = <&gpio3 RK_PA7 GPIO_ACTIVE_LOW>; 105 label = "VOLUMEUP"; 170 label = "VOLUMEUP"; 106 linux,code = <KEY_VOLU 171 linux,code = <KEY_VOLUMEUP>; 107 }; 172 }; 108 }; 173 }; 109 174 >> 175 gpio_mux: mux-controller { >> 176 compatible = "gpio-mux"; >> 177 mux-gpios = <&gpio0 RK_PB6 GPIO_ACTIVE_LOW>, >> 178 <&gpio0 RK_PB7 GPIO_ACTIVE_LOW>; >> 179 #mux-control-cells = <0>; >> 180 }; >> 181 110 hdmi-con { 182 hdmi-con { 111 compatible = "hdmi-connector"; 183 compatible = "hdmi-connector"; 112 ddc-i2c-bus = <&i2c5>; 184 ddc-i2c-bus = <&i2c5>; 113 type = "c"; 185 type = "c"; 114 186 115 port { 187 port { 116 hdmi_con_in: endpoint 188 hdmi_con_in: endpoint { 117 remote-endpoin 189 remote-endpoint = <&hdmi_out_con>; 118 }; 190 }; 119 }; 191 }; 120 }; 192 }; 121 193 122 leds: pwm-leds { !! 194 leds: gpio-leds { 123 compatible = "pwm-leds"; !! 195 compatible = "gpio-leds"; >> 196 pinctrl-0 = <&led_pins>; >> 197 pinctrl-names = "default"; 124 198 125 green_led: led-0 { 199 green_led: led-0 { 126 color = <LED_COLOR_ID_ 200 color = <LED_COLOR_ID_GREEN>; 127 default-state = "on"; 201 default-state = "on"; 128 function = LED_FUNCTIO 202 function = LED_FUNCTION_POWER; 129 max-brightness = <255> !! 203 gpios = <&gpio0 RK_PC5 GPIO_ACTIVE_HIGH>; 130 pwms = <&pwm6 0 25000 << 131 }; 204 }; 132 205 133 amber_led: led-1 { 206 amber_led: led-1 { 134 color = <LED_COLOR_ID_ 207 color = <LED_COLOR_ID_AMBER>; 135 function = LED_FUNCTIO 208 function = LED_FUNCTION_CHARGING; 136 max-brightness = <255> !! 209 gpios = <&gpio0 RK_PC6 GPIO_ACTIVE_HIGH>; 137 pwms = <&pwm7 0 25000 !! 210 retain-state-suspended; 138 }; 211 }; 139 212 140 red_led: led-2 { 213 red_led: led-2 { 141 color = <LED_COLOR_ID_ 214 color = <LED_COLOR_ID_RED>; 142 default-state = "off"; 215 default-state = "off"; 143 function = LED_FUNCTIO 216 function = LED_FUNCTION_STATUS; 144 max-brightness = <255> !! 217 gpios = <&gpio0 RK_PC7 GPIO_ACTIVE_HIGH>; 145 pwms = <&pwm0 0 25000 << 146 }; 218 }; 147 }; 219 }; 148 220 149 sdio_pwrseq: sdio-pwrseq { 221 sdio_pwrseq: sdio-pwrseq { 150 compatible = "mmc-pwrseq-simpl 222 compatible = "mmc-pwrseq-simple"; 151 clocks = <&rk817 1>; 223 clocks = <&rk817 1>; 152 clock-names = "ext_clock"; 224 clock-names = "ext_clock"; 153 pinctrl-0 = <&wifi_enable_h>; 225 pinctrl-0 = <&wifi_enable_h>; 154 pinctrl-names = "default"; 226 pinctrl-names = "default"; 155 post-power-on-delay-ms = <200> 227 post-power-on-delay-ms = <200>; 156 reset-gpios = <&gpio4 RK_PA2 G 228 reset-gpios = <&gpio4 RK_PA2 GPIO_ACTIVE_LOW>; 157 }; 229 }; 158 230 159 vcc3v3_lcd0_n: regulator-vcc3v3-lcd0 { 231 vcc3v3_lcd0_n: regulator-vcc3v3-lcd0 { 160 compatible = "regulator-fixed" 232 compatible = "regulator-fixed"; 161 gpio = <&gpio0 RK_PC2 GPIO_ACT 233 gpio = <&gpio0 RK_PC2 GPIO_ACTIVE_HIGH>; 162 enable-active-high; 234 enable-active-high; 163 pinctrl-0 = <&vcc_lcd_h>; 235 pinctrl-0 = <&vcc_lcd_h>; 164 pinctrl-names = "default"; 236 pinctrl-names = "default"; 165 regulator-boot-on; 237 regulator-boot-on; 166 regulator-min-microvolt = <330 238 regulator-min-microvolt = <3300000>; 167 regulator-max-microvolt = <330 239 regulator-max-microvolt = <3300000>; 168 regulator-name = "vcc3v3_lcd0_ 240 regulator-name = "vcc3v3_lcd0_n"; 169 vin-supply = <&vcc_3v3>; 241 vin-supply = <&vcc_3v3>; 170 regulator-state-mem { 242 regulator-state-mem { 171 regulator-off-in-suspe 243 regulator-off-in-suspend; 172 }; 244 }; 173 }; 245 }; 174 246 175 vcc_sys: regulator-vcc-sys { 247 vcc_sys: regulator-vcc-sys { 176 compatible = "regulator-fixed" 248 compatible = "regulator-fixed"; 177 regulator-always-on; 249 regulator-always-on; 178 regulator-boot-on; 250 regulator-boot-on; 179 regulator-min-microvolt = <380 251 regulator-min-microvolt = <3800000>; 180 regulator-max-microvolt = <380 252 regulator-max-microvolt = <3800000>; 181 regulator-name = "vcc_sys"; 253 regulator-name = "vcc_sys"; 182 }; 254 }; 183 255 184 vcc_wifi: regulator-vcc-wifi { 256 vcc_wifi: regulator-vcc-wifi { 185 compatible = "regulator-fixed" 257 compatible = "regulator-fixed"; 186 enable-active-high; 258 enable-active-high; 187 gpio = <&gpio0 RK_PA0 GPIO_ACT 259 gpio = <&gpio0 RK_PA0 GPIO_ACTIVE_HIGH>; 188 pinctrl-0 = <&vcc_wifi_h>; 260 pinctrl-0 = <&vcc_wifi_h>; 189 pinctrl-names = "default"; 261 pinctrl-names = "default"; 190 regulator-always-on; 262 regulator-always-on; 191 regulator-boot-on; 263 regulator-boot-on; 192 regulator-min-microvolt = <330 264 regulator-min-microvolt = <3300000>; 193 regulator-max-microvolt = <330 265 regulator-max-microvolt = <3300000>; 194 regulator-name = "vcc_wifi"; 266 regulator-name = "vcc_wifi"; 195 }; 267 }; 196 268 197 vibrator: pwm-vibrator { 269 vibrator: pwm-vibrator { 198 compatible = "pwm-vibrator"; 270 compatible = "pwm-vibrator"; 199 pwm-names = "enable"; 271 pwm-names = "enable"; 200 pwms = <&pwm5 0 1000000000 0>; 272 pwms = <&pwm5 0 1000000000 0>; 201 }; 273 }; 202 }; 274 }; 203 275 204 &combphy1 { 276 &combphy1 { 205 status = "okay"; 277 status = "okay"; 206 }; 278 }; 207 279 208 &cpu0 { 280 &cpu0 { 209 cpu-supply = <&vdd_cpu>; 281 cpu-supply = <&vdd_cpu>; 210 }; 282 }; 211 283 212 &cpu1 { 284 &cpu1 { 213 cpu-supply = <&vdd_cpu>; 285 cpu-supply = <&vdd_cpu>; 214 }; 286 }; 215 287 216 &cpu2 { 288 &cpu2 { 217 cpu-supply = <&vdd_cpu>; 289 cpu-supply = <&vdd_cpu>; 218 }; 290 }; 219 291 220 &cpu3 { 292 &cpu3 { 221 cpu-supply = <&vdd_cpu>; 293 cpu-supply = <&vdd_cpu>; 222 }; 294 }; 223 295 224 &gpu { 296 &gpu { 225 mali-supply = <&vdd_gpu>; 297 mali-supply = <&vdd_gpu>; 226 status = "okay"; 298 status = "okay"; 227 }; 299 }; 228 300 229 &hdmi { 301 &hdmi { 230 ddc-i2c-bus = <&i2c5>; 302 ddc-i2c-bus = <&i2c5>; 231 pinctrl-0 = <&hdmitxm0_cec>; 303 pinctrl-0 = <&hdmitxm0_cec>; 232 pinctrl-names = "default"; 304 pinctrl-names = "default"; 233 status = "okay"; 305 status = "okay"; 234 }; 306 }; 235 307 236 &hdmi_in { 308 &hdmi_in { 237 hdmi_in_vp0: endpoint { 309 hdmi_in_vp0: endpoint { 238 remote-endpoint = <&vp0_out_hd 310 remote-endpoint = <&vp0_out_hdmi>; 239 }; 311 }; 240 }; 312 }; 241 313 242 &hdmi_out { 314 &hdmi_out { 243 hdmi_out_con: endpoint { 315 hdmi_out_con: endpoint { 244 remote-endpoint = <&hdmi_con_i 316 remote-endpoint = <&hdmi_con_in>; 245 }; 317 }; 246 }; 318 }; 247 319 248 &hdmi_sound { 320 &hdmi_sound { 249 status = "okay"; 321 status = "okay"; 250 }; 322 }; 251 323 252 &i2c0 { 324 &i2c0 { 253 status = "okay"; 325 status = "okay"; 254 326 255 rk817: pmic@20 { 327 rk817: pmic@20 { 256 compatible = "rockchip,rk817"; 328 compatible = "rockchip,rk817"; 257 reg = <0x20>; 329 reg = <0x20>; 258 interrupt-parent = <&gpio0>; 330 interrupt-parent = <&gpio0>; 259 interrupts = <RK_PA3 IRQ_TYPE_ 331 interrupts = <RK_PA3 IRQ_TYPE_LEVEL_LOW>; 260 clock-output-names = "rk808-cl 332 clock-output-names = "rk808-clkout1", "rk808-clkout2"; 261 clock-names = "mclk"; 333 clock-names = "mclk"; 262 clocks = <&cru I2S1_MCLKOUT_TX 334 clocks = <&cru I2S1_MCLKOUT_TX>; 263 assigned-clocks = <&cru I2S1_M 335 assigned-clocks = <&cru I2S1_MCLKOUT_TX>; 264 assigned-clock-parents = <&cru 336 assigned-clock-parents = <&cru CLK_I2S1_8CH_TX>; 265 #clock-cells = <1>; 337 #clock-cells = <1>; 266 #sound-dai-cells = <0>; 338 #sound-dai-cells = <0>; 267 pinctrl-names = "default"; 339 pinctrl-names = "default"; 268 pinctrl-0 = <&i2s1m0_mclk>, <& 340 pinctrl-0 = <&i2s1m0_mclk>, <&pmic_int_l>; 269 wakeup-source; 341 wakeup-source; 270 342 271 vcc1-supply = <&vcc_sys>; 343 vcc1-supply = <&vcc_sys>; 272 vcc2-supply = <&vcc_sys>; 344 vcc2-supply = <&vcc_sys>; 273 vcc3-supply = <&vcc_sys>; 345 vcc3-supply = <&vcc_sys>; 274 vcc4-supply = <&vcc_sys>; 346 vcc4-supply = <&vcc_sys>; 275 vcc5-supply = <&vcc_sys>; 347 vcc5-supply = <&vcc_sys>; 276 vcc6-supply = <&vcc_sys>; 348 vcc6-supply = <&vcc_sys>; 277 vcc7-supply = <&vcc_sys>; 349 vcc7-supply = <&vcc_sys>; 278 vcc8-supply = <&vcc_sys>; 350 vcc8-supply = <&vcc_sys>; 279 vcc9-supply = <&dcdc_boost>; 351 vcc9-supply = <&dcdc_boost>; 280 352 281 regulators { 353 regulators { 282 vdd_logic: DCDC_REG1 { 354 vdd_logic: DCDC_REG1 { 283 regulator-alwa 355 regulator-always-on; 284 regulator-boot 356 regulator-boot-on; 285 regulator-min- 357 regulator-min-microvolt = <500000>; 286 regulator-max- 358 regulator-max-microvolt = <1350000>; >> 359 regulator-init-microvolt = <900000>; 287 regulator-ramp 360 regulator-ramp-delay = <6001>; 288 regulator-init 361 regulator-initial-mode = <0x2>; 289 regulator-name 362 regulator-name = "vdd_logic"; 290 regulator-stat 363 regulator-state-mem { 291 regula 364 regulator-off-in-suspend; 292 regula 365 regulator-suspend-microvolt = <900000>; 293 }; 366 }; 294 }; 367 }; 295 368 296 vdd_gpu: DCDC_REG2 { 369 vdd_gpu: DCDC_REG2 { 297 regulator-alwa 370 regulator-always-on; 298 regulator-boot 371 regulator-boot-on; 299 regulator-min- 372 regulator-min-microvolt = <500000>; 300 regulator-max- 373 regulator-max-microvolt = <1350000>; >> 374 regulator-init-microvolt = <900000>; 301 regulator-ramp 375 regulator-ramp-delay = <6001>; 302 regulator-init 376 regulator-initial-mode = <0x2>; 303 regulator-name 377 regulator-name = "vdd_gpu"; 304 regulator-stat 378 regulator-state-mem { 305 regula 379 regulator-off-in-suspend; 306 }; 380 }; 307 }; 381 }; 308 382 309 vcc_ddr: DCDC_REG3 { 383 vcc_ddr: DCDC_REG3 { 310 regulator-alwa 384 regulator-always-on; 311 regulator-boot 385 regulator-boot-on; 312 regulator-init 386 regulator-initial-mode = <0x2>; 313 regulator-name 387 regulator-name = "vcc_ddr"; 314 regulator-stat 388 regulator-state-mem { 315 regula 389 regulator-on-in-suspend; 316 }; 390 }; 317 }; 391 }; 318 392 319 vcc_3v3: DCDC_REG4 { 393 vcc_3v3: DCDC_REG4 { 320 regulator-alwa 394 regulator-always-on; 321 regulator-boot 395 regulator-boot-on; 322 regulator-min- 396 regulator-min-microvolt = <3300000>; 323 regulator-max- 397 regulator-max-microvolt = <3300000>; 324 regulator-init 398 regulator-initial-mode = <0x2>; 325 regulator-name 399 regulator-name = "vcc_3v3"; 326 regulator-stat 400 regulator-state-mem { 327 regula 401 regulator-on-in-suspend; 328 regula 402 regulator-suspend-microvolt = <3300000>; 329 }; 403 }; 330 }; 404 }; 331 405 332 vcca1v8_pmu: LDO_REG1 406 vcca1v8_pmu: LDO_REG1 { 333 regulator-alwa 407 regulator-always-on; 334 regulator-boot 408 regulator-boot-on; 335 regulator-min- 409 regulator-min-microvolt = <1800000>; 336 regulator-max- 410 regulator-max-microvolt = <1800000>; 337 regulator-name 411 regulator-name = "vcca1v8_pmu"; 338 regulator-stat 412 regulator-state-mem { 339 regula 413 regulator-on-in-suspend; 340 regula 414 regulator-suspend-microvolt = <1800000>; 341 }; 415 }; 342 }; 416 }; 343 417 344 vdda_0v9: LDO_REG2 { 418 vdda_0v9: LDO_REG2 { 345 regulator-alwa 419 regulator-always-on; 346 regulator-boot 420 regulator-boot-on; 347 regulator-min- 421 regulator-min-microvolt = <900000>; 348 regulator-max- 422 regulator-max-microvolt = <900000>; 349 regulator-name 423 regulator-name = "vdda_0v9"; 350 regulator-stat 424 regulator-state-mem { 351 regula 425 regulator-off-in-suspend; 352 }; 426 }; 353 }; 427 }; 354 428 355 vdda0v9_pmu: LDO_REG3 429 vdda0v9_pmu: LDO_REG3 { 356 regulator-alwa 430 regulator-always-on; 357 regulator-boot 431 regulator-boot-on; 358 regulator-min- 432 regulator-min-microvolt = <900000>; 359 regulator-max- 433 regulator-max-microvolt = <900000>; 360 regulator-name 434 regulator-name = "vdda0v9_pmu"; 361 regulator-stat 435 regulator-state-mem { 362 regula 436 regulator-on-in-suspend; 363 regula 437 regulator-suspend-microvolt = <900000>; 364 }; 438 }; 365 }; 439 }; 366 440 367 vccio_acodec: LDO_REG4 441 vccio_acodec: LDO_REG4 { 368 regulator-alwa 442 regulator-always-on; 369 regulator-boot 443 regulator-boot-on; 370 regulator-min- 444 regulator-min-microvolt = <3300000>; 371 regulator-max- 445 regulator-max-microvolt = <3300000>; 372 regulator-name 446 regulator-name = "vccio_acodec"; 373 regulator-stat 447 regulator-state-mem { 374 regula 448 regulator-off-in-suspend; 375 }; 449 }; 376 }; 450 }; 377 451 378 vccio_sd: LDO_REG5 { 452 vccio_sd: LDO_REG5 { 379 regulator-alwa 453 regulator-always-on; 380 regulator-boot 454 regulator-boot-on; 381 regulator-min- 455 regulator-min-microvolt = <1800000>; 382 regulator-max- 456 regulator-max-microvolt = <3300000>; 383 regulator-name 457 regulator-name = "vccio_sd"; 384 regulator-stat 458 regulator-state-mem { 385 regula 459 regulator-off-in-suspend; 386 }; 460 }; 387 }; 461 }; 388 462 389 vcc3v3_pmu: LDO_REG6 { 463 vcc3v3_pmu: LDO_REG6 { 390 regulator-alwa 464 regulator-always-on; 391 regulator-boot 465 regulator-boot-on; 392 regulator-min- 466 regulator-min-microvolt = <3300000>; 393 regulator-max- 467 regulator-max-microvolt = <3300000>; 394 regulator-name 468 regulator-name = "vcc3v3_pmu"; 395 regulator-stat 469 regulator-state-mem { 396 regula 470 regulator-on-in-suspend; 397 regula 471 regulator-suspend-microvolt = <3300000>; 398 }; 472 }; 399 }; 473 }; 400 474 401 vcc_1v8: LDO_REG7 { 475 vcc_1v8: LDO_REG7 { 402 regulator-alwa 476 regulator-always-on; 403 regulator-boot 477 regulator-boot-on; 404 regulator-min- 478 regulator-min-microvolt = <1800000>; 405 regulator-max- 479 regulator-max-microvolt = <1800000>; 406 regulator-name 480 regulator-name = "vcc_1v8"; 407 regulator-stat 481 regulator-state-mem { 408 regula 482 regulator-off-in-suspend; 409 }; 483 }; 410 }; 484 }; 411 485 412 vcc1v8_dvp: LDO_REG8 { 486 vcc1v8_dvp: LDO_REG8 { 413 regulator-alwa 487 regulator-always-on; 414 regulator-boot 488 regulator-boot-on; 415 regulator-min- 489 regulator-min-microvolt = <1800000>; 416 regulator-max- 490 regulator-max-microvolt = <3300000>; 417 regulator-name 491 regulator-name = "vcc1v8_dvp"; 418 regulator-stat 492 regulator-state-mem { 419 regula 493 regulator-off-in-suspend; 420 }; 494 }; 421 }; 495 }; 422 496 423 vcc2v8_dvp: LDO_REG9 { 497 vcc2v8_dvp: LDO_REG9 { 424 regulator-alwa 498 regulator-always-on; 425 regulator-boot 499 regulator-boot-on; 426 regulator-min- 500 regulator-min-microvolt = <2800000>; 427 regulator-max- 501 regulator-max-microvolt = <2800000>; 428 regulator-name 502 regulator-name = "vcc2v8_dvp"; 429 regulator-stat 503 regulator-state-mem { 430 regula 504 regulator-off-in-suspend; 431 }; 505 }; 432 }; 506 }; 433 507 434 dcdc_boost: BOOST { 508 dcdc_boost: BOOST { 435 regulator-alwa 509 regulator-always-on; 436 regulator-boot 510 regulator-boot-on; 437 regulator-min- 511 regulator-min-microvolt = <4700000>; 438 regulator-max- 512 regulator-max-microvolt = <5400000>; 439 regulator-name 513 regulator-name = "boost"; 440 regulator-stat 514 regulator-state-mem { 441 regula 515 regulator-off-in-suspend; 442 }; 516 }; 443 }; 517 }; 444 518 445 otg_switch: OTG_SWITCH 519 otg_switch: OTG_SWITCH { 446 regulator-name 520 regulator-name = "otg_switch"; 447 regulator-stat 521 regulator-state-mem { 448 regula 522 regulator-off-in-suspend; 449 }; 523 }; 450 }; 524 }; 451 }; 525 }; 452 }; 526 }; 453 527 454 vdd_cpu: regulator@40 { 528 vdd_cpu: regulator@40 { 455 compatible = "fcs,fan53555"; 529 compatible = "fcs,fan53555"; 456 reg = <0x40>; 530 reg = <0x40>; 457 fcs,suspend-voltage-selector = 531 fcs,suspend-voltage-selector = <1>; 458 regulator-always-on; 532 regulator-always-on; 459 regulator-boot-on; 533 regulator-boot-on; 460 regulator-min-microvolt = <712 534 regulator-min-microvolt = <712500>; 461 regulator-max-microvolt = <139 535 regulator-max-microvolt = <1390000>; >> 536 regulator-init-microvolt = <900000>; 462 regulator-name = "vdd_cpu"; 537 regulator-name = "vdd_cpu"; 463 regulator-ramp-delay = <2300>; 538 regulator-ramp-delay = <2300>; 464 vin-supply = <&vcc_sys>; 539 vin-supply = <&vcc_sys>; 465 regulator-state-mem { 540 regulator-state-mem { 466 regulator-off-in-suspe 541 regulator-off-in-suspend; 467 }; 542 }; 468 }; 543 }; 469 }; 544 }; 470 545 471 &i2c1 { 546 &i2c1 { 472 /* Unknown/unused device at 0x3c */ 547 /* Unknown/unused device at 0x3c */ 473 status = "disabled"; 548 status = "disabled"; 474 }; 549 }; 475 550 476 &i2c5 { 551 &i2c5 { 477 pinctrl-0 = <&i2c5m1_xfer>; 552 pinctrl-0 = <&i2c5m1_xfer>; 478 pinctrl-names = "default"; 553 pinctrl-names = "default"; 479 status = "okay"; 554 status = "okay"; 480 }; 555 }; 481 556 482 &i2s0_8ch { 557 &i2s0_8ch { 483 status = "okay"; 558 status = "okay"; 484 }; 559 }; 485 560 486 &i2s1_8ch { 561 &i2s1_8ch { 487 pinctrl-0 = <&i2s1m0_sclktx 562 pinctrl-0 = <&i2s1m0_sclktx 488 &i2s1m0_lrcktx 563 &i2s1m0_lrcktx 489 &i2s1m0_sdi0 564 &i2s1m0_sdi0 490 &i2s1m0_sdo0>; 565 &i2s1m0_sdo0>; 491 pinctrl-names = "default"; 566 pinctrl-names = "default"; 492 rockchip,trcm-sync-tx-only; 567 rockchip,trcm-sync-tx-only; 493 status = "okay"; 568 status = "okay"; 494 }; 569 }; 495 570 496 &pinctrl { 571 &pinctrl { 497 gpio-btns { 572 gpio-btns { 498 btn_pins_ctrl: btn-pins-ctrl { 573 btn_pins_ctrl: btn-pins-ctrl { 499 rockchip,pins = 574 rockchip,pins = 500 <3 RK_PA1 RK_F 575 <3 RK_PA1 RK_FUNC_GPIO &pcfg_pull_up>, 501 <3 RK_PA2 RK_F 576 <3 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up>, 502 <3 RK_PA3 RK_F 577 <3 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up>, 503 <3 RK_PA4 RK_F 578 <3 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up>, 504 <3 RK_PA5 RK_F 579 <3 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>, 505 <3 RK_PA6 RK_F 580 <3 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>, 506 <3 RK_PB1 RK_F 581 <3 RK_PB1 RK_FUNC_GPIO &pcfg_pull_up>, 507 <3 RK_PB2 RK_F 582 <3 RK_PB2 RK_FUNC_GPIO &pcfg_pull_up>, 508 <3 RK_PB3 RK_F 583 <3 RK_PB3 RK_FUNC_GPIO &pcfg_pull_up>, 509 <3 RK_PB4 RK_F 584 <3 RK_PB4 RK_FUNC_GPIO &pcfg_pull_up>, 510 <3 RK_PB5 RK_F 585 <3 RK_PB5 RK_FUNC_GPIO &pcfg_pull_up>, 511 <3 RK_PB6 RK_F 586 <3 RK_PB6 RK_FUNC_GPIO &pcfg_pull_up>, 512 <3 RK_PC0 RK_F 587 <3 RK_PC0 RK_FUNC_GPIO &pcfg_pull_up>, 513 <3 RK_PC1 RK_F 588 <3 RK_PC1 RK_FUNC_GPIO &pcfg_pull_up>, 514 <3 RK_PC2 RK_F 589 <3 RK_PC2 RK_FUNC_GPIO &pcfg_pull_up>, 515 <3 RK_PC3 RK_F 590 <3 RK_PC3 RK_FUNC_GPIO &pcfg_pull_up>; 516 }; 591 }; 517 592 518 btn_pins_vol: btn-pins-vol { 593 btn_pins_vol: btn-pins-vol { 519 rockchip,pins = 594 rockchip,pins = 520 <3 RK_PA7 RK_FUNC_GPIO 595 <3 RK_PA7 RK_FUNC_GPIO &pcfg_pull_up>, 521 <3 RK_PB0 RK_FUNC_GPIO 596 <3 RK_PB0 RK_FUNC_GPIO &pcfg_pull_up>; 522 }; 597 }; 523 }; 598 }; 524 599 >> 600 gpio-led { >> 601 led_pins: led-pins { >> 602 rockchip,pins = >> 603 <0 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>, >> 604 <0 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>, >> 605 <0 RK_PC7 RK_FUNC_GPIO &pcfg_pull_none>; >> 606 }; >> 607 }; >> 608 525 joy-mux { 609 joy-mux { 526 joy_mux_en: joy-mux-en { 610 joy_mux_en: joy-mux-en { 527 rockchip,pins = 611 rockchip,pins = 528 <0 RK_PB5 RK_F 612 <0 RK_PB5 RK_FUNC_GPIO &pcfg_output_low>; 529 }; 613 }; 530 }; 614 }; 531 615 532 pmic { 616 pmic { 533 pmic_int_l: pmic-int-l { 617 pmic_int_l: pmic-int-l { 534 rockchip,pins = 618 rockchip,pins = 535 <0 RK_PA3 RK_F 619 <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up>; 536 }; 620 }; 537 }; 621 }; 538 622 539 sdio-pwrseq { 623 sdio-pwrseq { 540 wifi_enable_h: wifi-enable-h { 624 wifi_enable_h: wifi-enable-h { 541 rockchip,pins = 625 rockchip,pins = 542 <4 RK_PA2 RK_F 626 <4 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>; 543 }; 627 }; 544 }; 628 }; 545 629 546 vcc3v3-lcd { 630 vcc3v3-lcd { 547 vcc_lcd_h: vcc-lcd-h { 631 vcc_lcd_h: vcc-lcd-h { 548 rockchip,pins = 632 rockchip,pins = 549 <0 RK_PC2 RK_F 633 <0 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>; 550 }; 634 }; 551 }; 635 }; 552 636 553 vcc-wifi { 637 vcc-wifi { 554 vcc_wifi_h: vcc-wifi-h { 638 vcc_wifi_h: vcc-wifi-h { 555 rockchip,pins = 639 rockchip,pins = 556 <0 RK_PA0 RK_F 640 <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>; 557 }; 641 }; 558 }; 642 }; 559 }; 643 }; 560 644 561 &pmu_io_domains { 645 &pmu_io_domains { 562 status = "okay"; 646 status = "okay"; 563 pmuio1-supply = <&vcc3v3_pmu>; 647 pmuio1-supply = <&vcc3v3_pmu>; 564 pmuio2-supply = <&vcc3v3_pmu>; 648 pmuio2-supply = <&vcc3v3_pmu>; 565 vccio1-supply = <&vccio_acodec>; 649 vccio1-supply = <&vccio_acodec>; 566 vccio3-supply = <&vccio_sd>; 650 vccio3-supply = <&vccio_sd>; 567 vccio4-supply = <&vcc_1v8>; 651 vccio4-supply = <&vcc_1v8>; 568 vccio5-supply = <&vcc_3v3>; 652 vccio5-supply = <&vcc_3v3>; 569 vccio6-supply = <&vcc1v8_dvp>; 653 vccio6-supply = <&vcc1v8_dvp>; 570 vccio7-supply = <&vcc_3v3>; 654 vccio7-supply = <&vcc_3v3>; 571 }; 655 }; 572 656 573 &pwm0 { << 574 pinctrl-0 = <&pwm0m1_pins>; << 575 pinctrl-names = "default"; << 576 status = "okay"; << 577 }; << 578 << 579 &pwm5 { 657 &pwm5 { 580 status = "okay"; 658 status = "okay"; 581 }; 659 }; 582 660 583 &pwm6 { << 584 status = "okay"; << 585 }; << 586 << 587 &pwm7 { << 588 status = "okay"; << 589 }; << 590 << 591 &saradc { 661 &saradc { 592 vref-supply = <&vcc_1v8>; 662 vref-supply = <&vcc_1v8>; 593 status = "okay"; 663 status = "okay"; 594 }; 664 }; 595 665 596 &sdmmc0 { 666 &sdmmc0 { 597 bus-width = <4>; 667 bus-width = <4>; 598 cap-sd-highspeed; 668 cap-sd-highspeed; 599 cd-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_ 669 cd-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_LOW>; 600 disable-wp; 670 disable-wp; 601 pinctrl-0 = <&sdmmc0_bus4 &sdmmc0_clk 671 pinctrl-0 = <&sdmmc0_bus4 &sdmmc0_clk &sdmmc0_cmd &sdmmc0_det>; 602 pinctrl-names = "default"; 672 pinctrl-names = "default"; 603 sd-uhs-sdr104; 673 sd-uhs-sdr104; 604 vmmc-supply = <&vcc_3v3>; 674 vmmc-supply = <&vcc_3v3>; 605 vqmmc-supply = <&vccio_sd>; 675 vqmmc-supply = <&vccio_sd>; 606 status = "okay"; 676 status = "okay"; 607 }; 677 }; 608 678 609 &sdmmc1 { 679 &sdmmc1 { 610 bus-width = <4>; 680 bus-width = <4>; 611 cap-sd-highspeed; 681 cap-sd-highspeed; 612 cd-gpios = <&gpio2 RK_PB2 GPIO_ACTIVE_ 682 cd-gpios = <&gpio2 RK_PB2 GPIO_ACTIVE_LOW>; 613 disable-wp; 683 disable-wp; 614 pinctrl-0 = <&sdmmc1_bus4 &sdmmc1_cmd 684 pinctrl-0 = <&sdmmc1_bus4 &sdmmc1_cmd &sdmmc1_clk &sdmmc1_det>; 615 pinctrl-names = "default"; 685 pinctrl-names = "default"; 616 sd-uhs-sdr104; 686 sd-uhs-sdr104; 617 vmmc-supply = <&vcc_3v3>; 687 vmmc-supply = <&vcc_3v3>; 618 vqmmc-supply = <&vcc1v8_dvp>; 688 vqmmc-supply = <&vcc1v8_dvp>; 619 status = "okay"; 689 status = "okay"; 620 }; 690 }; 621 691 622 &sdmmc2 { 692 &sdmmc2 { 623 bus-width = <4>; 693 bus-width = <4>; 624 cap-sd-highspeed; 694 cap-sd-highspeed; 625 cap-sdio-irq; 695 cap-sdio-irq; 626 keep-power-in-suspend; 696 keep-power-in-suspend; 627 mmc-pwrseq = <&sdio_pwrseq>; 697 mmc-pwrseq = <&sdio_pwrseq>; 628 no-mmc; << 629 no-sd; << 630 non-removable; 698 non-removable; 631 pinctrl-0 = <&sdmmc2m0_bus4 &sdmmc2m0_ 699 pinctrl-0 = <&sdmmc2m0_bus4 &sdmmc2m0_cmd &sdmmc2m0_clk>; 632 pinctrl-names = "default"; 700 pinctrl-names = "default"; 633 sd-uhs-sdr50; << 634 vmmc-supply = <&vcc_wifi>; 701 vmmc-supply = <&vcc_wifi>; 635 vqmmc-supply = <&vcca1v8_pmu>; 702 vqmmc-supply = <&vcca1v8_pmu>; 636 status = "okay"; 703 status = "okay"; 637 }; 704 }; 638 705 639 &tsadc { 706 &tsadc { 640 rockchip,hw-tshut-mode = <1>; 707 rockchip,hw-tshut-mode = <1>; 641 rockchip,hw-tshut-polarity = <0>; 708 rockchip,hw-tshut-polarity = <0>; 642 status = "okay"; 709 status = "okay"; 643 }; 710 }; 644 711 645 &uart1 { 712 &uart1 { 646 pinctrl-0 = <&uart1m1_xfer &uart1m1_ct 713 pinctrl-0 = <&uart1m1_xfer &uart1m1_ctsn &uart1m1_rtsn>; 647 pinctrl-names = "default"; 714 pinctrl-names = "default"; 648 uart-has-rtscts; 715 uart-has-rtscts; 649 status = "okay"; 716 status = "okay"; 650 717 651 bluetooth { 718 bluetooth { 652 compatible = "realtek,rtl8821c 719 compatible = "realtek,rtl8821cs-bt", "realtek,rtl8723bs-bt"; 653 device-wake-gpios = <&gpio4 4 720 device-wake-gpios = <&gpio4 4 GPIO_ACTIVE_HIGH>; 654 enable-gpios = <&gpio4 3 GPIO_ 721 enable-gpios = <&gpio4 3 GPIO_ACTIVE_HIGH>; 655 host-wake-gpios = <&gpio4 5 GP 722 host-wake-gpios = <&gpio4 5 GPIO_ACTIVE_HIGH>; 656 }; 723 }; 657 }; 724 }; 658 725 659 &uart2 { 726 &uart2 { 660 status = "okay"; 727 status = "okay"; 661 }; 728 }; 662 729 663 /* 730 /* 664 * Lack the schematics to verify, but port wor 731 * Lack the schematics to verify, but port works as a peripheral 665 * (and not a host or OTG port). 732 * (and not a host or OTG port). 666 */ 733 */ 667 &usb_host0_xhci { 734 &usb_host0_xhci { 668 dr_mode = "peripheral"; 735 dr_mode = "peripheral"; 669 phys = <&usb2phy0_otg>; 736 phys = <&usb2phy0_otg>; 670 phy-names = "usb2-phy"; 737 phy-names = "usb2-phy"; 671 status = "okay"; 738 status = "okay"; 672 }; 739 }; 673 740 674 &usb_host1_ehci { 741 &usb_host1_ehci { 675 status = "okay"; 742 status = "okay"; 676 }; 743 }; 677 744 678 &usb_host1_ohci { 745 &usb_host1_ohci { 679 status = "okay"; 746 status = "okay"; 680 }; 747 }; 681 748 682 &usb_host1_xhci { 749 &usb_host1_xhci { 683 phy-names = "usb2-phy", "usb3-phy"; 750 phy-names = "usb2-phy", "usb3-phy"; 684 phys = <&usb2phy1_host>, <&combphy1 PH 751 phys = <&usb2phy1_host>, <&combphy1 PHY_TYPE_USB3>; 685 status = "okay"; 752 status = "okay"; 686 }; 753 }; 687 754 688 &usb2phy0 { 755 &usb2phy0 { 689 status = "okay"; 756 status = "okay"; 690 }; 757 }; 691 758 692 &usb2phy0_otg { 759 &usb2phy0_otg { 693 status = "okay"; 760 status = "okay"; 694 }; 761 }; 695 762 696 &usb2phy1 { 763 &usb2phy1 { 697 status = "okay"; 764 status = "okay"; 698 }; 765 }; 699 766 700 &usb2phy1_host { 767 &usb2phy1_host { 701 status = "okay"; 768 status = "okay"; 702 }; 769 }; 703 770 704 &vop { 771 &vop { 705 assigned-clocks = <&cru DCLK_VOP0>, <& 772 assigned-clocks = <&cru DCLK_VOP0>, <&cru DCLK_VOP1>; 706 assigned-clock-parents = <&pmucru PLL_ 773 assigned-clock-parents = <&pmucru PLL_HPLL>, <&cru PLL_VPLL>; 707 status = "okay"; 774 status = "okay"; 708 }; 775 }; 709 776 710 &vop_mmu { 777 &vop_mmu { 711 status = "okay"; 778 status = "okay"; 712 }; 779 }; 713 780 714 &vp0 { 781 &vp0 { 715 vp0_out_hdmi: endpoint@ROCKCHIP_VOP2_E 782 vp0_out_hdmi: endpoint@ROCKCHIP_VOP2_EP_HDMI0 { 716 reg = <ROCKCHIP_VOP2_EP_HDMI0> 783 reg = <ROCKCHIP_VOP2_EP_HDMI0>; 717 remote-endpoint = <&hdmi_in_vp 784 remote-endpoint = <&hdmi_in_vp0>; 718 }; 785 }; 719 }; 786 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.