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: pwm-leds { 123 compatible = "pwm-leds"; 195 compatible = "pwm-leds"; 124 196 125 green_led: led-0 { 197 green_led: led-0 { 126 color = <LED_COLOR_ID_ 198 color = <LED_COLOR_ID_GREEN>; 127 default-state = "on"; 199 default-state = "on"; 128 function = LED_FUNCTIO 200 function = LED_FUNCTION_POWER; 129 max-brightness = <255> 201 max-brightness = <255>; 130 pwms = <&pwm6 0 25000 202 pwms = <&pwm6 0 25000 0>; 131 }; 203 }; 132 204 133 amber_led: led-1 { 205 amber_led: led-1 { 134 color = <LED_COLOR_ID_ 206 color = <LED_COLOR_ID_AMBER>; 135 function = LED_FUNCTIO 207 function = LED_FUNCTION_CHARGING; 136 max-brightness = <255> 208 max-brightness = <255>; 137 pwms = <&pwm7 0 25000 209 pwms = <&pwm7 0 25000 0>; 138 }; 210 }; 139 211 140 red_led: led-2 { 212 red_led: led-2 { 141 color = <LED_COLOR_ID_ 213 color = <LED_COLOR_ID_RED>; 142 default-state = "off"; 214 default-state = "off"; 143 function = LED_FUNCTIO 215 function = LED_FUNCTION_STATUS; 144 max-brightness = <255> 216 max-brightness = <255>; 145 pwms = <&pwm0 0 25000 217 pwms = <&pwm0 0 25000 0>; 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>; 287 regulator-ramp 359 regulator-ramp-delay = <6001>; 288 regulator-init 360 regulator-initial-mode = <0x2>; 289 regulator-name 361 regulator-name = "vdd_logic"; 290 regulator-stat 362 regulator-state-mem { 291 regula 363 regulator-off-in-suspend; 292 regula 364 regulator-suspend-microvolt = <900000>; 293 }; 365 }; 294 }; 366 }; 295 367 296 vdd_gpu: DCDC_REG2 { 368 vdd_gpu: DCDC_REG2 { 297 regulator-alwa 369 regulator-always-on; 298 regulator-boot 370 regulator-boot-on; 299 regulator-min- 371 regulator-min-microvolt = <500000>; 300 regulator-max- 372 regulator-max-microvolt = <1350000>; 301 regulator-ramp 373 regulator-ramp-delay = <6001>; 302 regulator-init 374 regulator-initial-mode = <0x2>; 303 regulator-name 375 regulator-name = "vdd_gpu"; 304 regulator-stat 376 regulator-state-mem { 305 regula 377 regulator-off-in-suspend; 306 }; 378 }; 307 }; 379 }; 308 380 309 vcc_ddr: DCDC_REG3 { 381 vcc_ddr: DCDC_REG3 { 310 regulator-alwa 382 regulator-always-on; 311 regulator-boot 383 regulator-boot-on; 312 regulator-init 384 regulator-initial-mode = <0x2>; 313 regulator-name 385 regulator-name = "vcc_ddr"; 314 regulator-stat 386 regulator-state-mem { 315 regula 387 regulator-on-in-suspend; 316 }; 388 }; 317 }; 389 }; 318 390 319 vcc_3v3: DCDC_REG4 { 391 vcc_3v3: DCDC_REG4 { 320 regulator-alwa 392 regulator-always-on; 321 regulator-boot 393 regulator-boot-on; 322 regulator-min- 394 regulator-min-microvolt = <3300000>; 323 regulator-max- 395 regulator-max-microvolt = <3300000>; 324 regulator-init 396 regulator-initial-mode = <0x2>; 325 regulator-name 397 regulator-name = "vcc_3v3"; 326 regulator-stat 398 regulator-state-mem { 327 regula 399 regulator-on-in-suspend; 328 regula 400 regulator-suspend-microvolt = <3300000>; 329 }; 401 }; 330 }; 402 }; 331 403 332 vcca1v8_pmu: LDO_REG1 404 vcca1v8_pmu: LDO_REG1 { 333 regulator-alwa 405 regulator-always-on; 334 regulator-boot 406 regulator-boot-on; 335 regulator-min- 407 regulator-min-microvolt = <1800000>; 336 regulator-max- 408 regulator-max-microvolt = <1800000>; 337 regulator-name 409 regulator-name = "vcca1v8_pmu"; 338 regulator-stat 410 regulator-state-mem { 339 regula 411 regulator-on-in-suspend; 340 regula 412 regulator-suspend-microvolt = <1800000>; 341 }; 413 }; 342 }; 414 }; 343 415 344 vdda_0v9: LDO_REG2 { 416 vdda_0v9: LDO_REG2 { 345 regulator-alwa 417 regulator-always-on; 346 regulator-boot 418 regulator-boot-on; 347 regulator-min- 419 regulator-min-microvolt = <900000>; 348 regulator-max- 420 regulator-max-microvolt = <900000>; 349 regulator-name 421 regulator-name = "vdda_0v9"; 350 regulator-stat 422 regulator-state-mem { 351 regula 423 regulator-off-in-suspend; 352 }; 424 }; 353 }; 425 }; 354 426 355 vdda0v9_pmu: LDO_REG3 427 vdda0v9_pmu: LDO_REG3 { 356 regulator-alwa 428 regulator-always-on; 357 regulator-boot 429 regulator-boot-on; 358 regulator-min- 430 regulator-min-microvolt = <900000>; 359 regulator-max- 431 regulator-max-microvolt = <900000>; 360 regulator-name 432 regulator-name = "vdda0v9_pmu"; 361 regulator-stat 433 regulator-state-mem { 362 regula 434 regulator-on-in-suspend; 363 regula 435 regulator-suspend-microvolt = <900000>; 364 }; 436 }; 365 }; 437 }; 366 438 367 vccio_acodec: LDO_REG4 439 vccio_acodec: LDO_REG4 { 368 regulator-alwa 440 regulator-always-on; 369 regulator-boot 441 regulator-boot-on; 370 regulator-min- 442 regulator-min-microvolt = <3300000>; 371 regulator-max- 443 regulator-max-microvolt = <3300000>; 372 regulator-name 444 regulator-name = "vccio_acodec"; 373 regulator-stat 445 regulator-state-mem { 374 regula 446 regulator-off-in-suspend; 375 }; 447 }; 376 }; 448 }; 377 449 378 vccio_sd: LDO_REG5 { 450 vccio_sd: LDO_REG5 { 379 regulator-alwa 451 regulator-always-on; 380 regulator-boot 452 regulator-boot-on; 381 regulator-min- 453 regulator-min-microvolt = <1800000>; 382 regulator-max- 454 regulator-max-microvolt = <3300000>; 383 regulator-name 455 regulator-name = "vccio_sd"; 384 regulator-stat 456 regulator-state-mem { 385 regula 457 regulator-off-in-suspend; 386 }; 458 }; 387 }; 459 }; 388 460 389 vcc3v3_pmu: LDO_REG6 { 461 vcc3v3_pmu: LDO_REG6 { 390 regulator-alwa 462 regulator-always-on; 391 regulator-boot 463 regulator-boot-on; 392 regulator-min- 464 regulator-min-microvolt = <3300000>; 393 regulator-max- 465 regulator-max-microvolt = <3300000>; 394 regulator-name 466 regulator-name = "vcc3v3_pmu"; 395 regulator-stat 467 regulator-state-mem { 396 regula 468 regulator-on-in-suspend; 397 regula 469 regulator-suspend-microvolt = <3300000>; 398 }; 470 }; 399 }; 471 }; 400 472 401 vcc_1v8: LDO_REG7 { 473 vcc_1v8: LDO_REG7 { 402 regulator-alwa 474 regulator-always-on; 403 regulator-boot 475 regulator-boot-on; 404 regulator-min- 476 regulator-min-microvolt = <1800000>; 405 regulator-max- 477 regulator-max-microvolt = <1800000>; 406 regulator-name 478 regulator-name = "vcc_1v8"; 407 regulator-stat 479 regulator-state-mem { 408 regula 480 regulator-off-in-suspend; 409 }; 481 }; 410 }; 482 }; 411 483 412 vcc1v8_dvp: LDO_REG8 { 484 vcc1v8_dvp: LDO_REG8 { 413 regulator-alwa 485 regulator-always-on; 414 regulator-boot 486 regulator-boot-on; 415 regulator-min- 487 regulator-min-microvolt = <1800000>; 416 regulator-max- 488 regulator-max-microvolt = <3300000>; 417 regulator-name 489 regulator-name = "vcc1v8_dvp"; 418 regulator-stat 490 regulator-state-mem { 419 regula 491 regulator-off-in-suspend; 420 }; 492 }; 421 }; 493 }; 422 494 423 vcc2v8_dvp: LDO_REG9 { 495 vcc2v8_dvp: LDO_REG9 { 424 regulator-alwa 496 regulator-always-on; 425 regulator-boot 497 regulator-boot-on; 426 regulator-min- 498 regulator-min-microvolt = <2800000>; 427 regulator-max- 499 regulator-max-microvolt = <2800000>; 428 regulator-name 500 regulator-name = "vcc2v8_dvp"; 429 regulator-stat 501 regulator-state-mem { 430 regula 502 regulator-off-in-suspend; 431 }; 503 }; 432 }; 504 }; 433 505 434 dcdc_boost: BOOST { 506 dcdc_boost: BOOST { 435 regulator-alwa 507 regulator-always-on; 436 regulator-boot 508 regulator-boot-on; 437 regulator-min- 509 regulator-min-microvolt = <4700000>; 438 regulator-max- 510 regulator-max-microvolt = <5400000>; 439 regulator-name 511 regulator-name = "boost"; 440 regulator-stat 512 regulator-state-mem { 441 regula 513 regulator-off-in-suspend; 442 }; 514 }; 443 }; 515 }; 444 516 445 otg_switch: OTG_SWITCH 517 otg_switch: OTG_SWITCH { 446 regulator-name 518 regulator-name = "otg_switch"; 447 regulator-stat 519 regulator-state-mem { 448 regula 520 regulator-off-in-suspend; 449 }; 521 }; 450 }; 522 }; 451 }; 523 }; 452 }; 524 }; 453 525 454 vdd_cpu: regulator@40 { 526 vdd_cpu: regulator@40 { 455 compatible = "fcs,fan53555"; 527 compatible = "fcs,fan53555"; 456 reg = <0x40>; 528 reg = <0x40>; 457 fcs,suspend-voltage-selector = 529 fcs,suspend-voltage-selector = <1>; 458 regulator-always-on; 530 regulator-always-on; 459 regulator-boot-on; 531 regulator-boot-on; 460 regulator-min-microvolt = <712 532 regulator-min-microvolt = <712500>; 461 regulator-max-microvolt = <139 533 regulator-max-microvolt = <1390000>; 462 regulator-name = "vdd_cpu"; 534 regulator-name = "vdd_cpu"; 463 regulator-ramp-delay = <2300>; 535 regulator-ramp-delay = <2300>; 464 vin-supply = <&vcc_sys>; 536 vin-supply = <&vcc_sys>; 465 regulator-state-mem { 537 regulator-state-mem { 466 regulator-off-in-suspe 538 regulator-off-in-suspend; 467 }; 539 }; 468 }; 540 }; 469 }; 541 }; 470 542 471 &i2c1 { 543 &i2c1 { 472 /* Unknown/unused device at 0x3c */ 544 /* Unknown/unused device at 0x3c */ 473 status = "disabled"; 545 status = "disabled"; 474 }; 546 }; 475 547 476 &i2c5 { 548 &i2c5 { 477 pinctrl-0 = <&i2c5m1_xfer>; 549 pinctrl-0 = <&i2c5m1_xfer>; 478 pinctrl-names = "default"; 550 pinctrl-names = "default"; 479 status = "okay"; 551 status = "okay"; 480 }; 552 }; 481 553 482 &i2s0_8ch { 554 &i2s0_8ch { 483 status = "okay"; 555 status = "okay"; 484 }; 556 }; 485 557 486 &i2s1_8ch { 558 &i2s1_8ch { 487 pinctrl-0 = <&i2s1m0_sclktx 559 pinctrl-0 = <&i2s1m0_sclktx 488 &i2s1m0_lrcktx 560 &i2s1m0_lrcktx 489 &i2s1m0_sdi0 561 &i2s1m0_sdi0 490 &i2s1m0_sdo0>; 562 &i2s1m0_sdo0>; 491 pinctrl-names = "default"; 563 pinctrl-names = "default"; 492 rockchip,trcm-sync-tx-only; 564 rockchip,trcm-sync-tx-only; 493 status = "okay"; 565 status = "okay"; 494 }; 566 }; 495 567 496 &pinctrl { 568 &pinctrl { 497 gpio-btns { 569 gpio-btns { 498 btn_pins_ctrl: btn-pins-ctrl { 570 btn_pins_ctrl: btn-pins-ctrl { 499 rockchip,pins = 571 rockchip,pins = 500 <3 RK_PA1 RK_F 572 <3 RK_PA1 RK_FUNC_GPIO &pcfg_pull_up>, 501 <3 RK_PA2 RK_F 573 <3 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up>, 502 <3 RK_PA3 RK_F 574 <3 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up>, 503 <3 RK_PA4 RK_F 575 <3 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up>, 504 <3 RK_PA5 RK_F 576 <3 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>, 505 <3 RK_PA6 RK_F 577 <3 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>, 506 <3 RK_PB1 RK_F 578 <3 RK_PB1 RK_FUNC_GPIO &pcfg_pull_up>, 507 <3 RK_PB2 RK_F 579 <3 RK_PB2 RK_FUNC_GPIO &pcfg_pull_up>, 508 <3 RK_PB3 RK_F 580 <3 RK_PB3 RK_FUNC_GPIO &pcfg_pull_up>, 509 <3 RK_PB4 RK_F 581 <3 RK_PB4 RK_FUNC_GPIO &pcfg_pull_up>, 510 <3 RK_PB5 RK_F 582 <3 RK_PB5 RK_FUNC_GPIO &pcfg_pull_up>, 511 <3 RK_PB6 RK_F 583 <3 RK_PB6 RK_FUNC_GPIO &pcfg_pull_up>, 512 <3 RK_PC0 RK_F 584 <3 RK_PC0 RK_FUNC_GPIO &pcfg_pull_up>, 513 <3 RK_PC1 RK_F 585 <3 RK_PC1 RK_FUNC_GPIO &pcfg_pull_up>, 514 <3 RK_PC2 RK_F 586 <3 RK_PC2 RK_FUNC_GPIO &pcfg_pull_up>, 515 <3 RK_PC3 RK_F 587 <3 RK_PC3 RK_FUNC_GPIO &pcfg_pull_up>; 516 }; 588 }; 517 589 518 btn_pins_vol: btn-pins-vol { 590 btn_pins_vol: btn-pins-vol { 519 rockchip,pins = 591 rockchip,pins = 520 <3 RK_PA7 RK_FUNC_GPIO 592 <3 RK_PA7 RK_FUNC_GPIO &pcfg_pull_up>, 521 <3 RK_PB0 RK_FUNC_GPIO 593 <3 RK_PB0 RK_FUNC_GPIO &pcfg_pull_up>; 522 }; 594 }; 523 }; 595 }; 524 596 525 joy-mux { 597 joy-mux { 526 joy_mux_en: joy-mux-en { 598 joy_mux_en: joy-mux-en { 527 rockchip,pins = 599 rockchip,pins = 528 <0 RK_PB5 RK_F 600 <0 RK_PB5 RK_FUNC_GPIO &pcfg_output_low>; 529 }; 601 }; 530 }; 602 }; 531 603 532 pmic { 604 pmic { 533 pmic_int_l: pmic-int-l { 605 pmic_int_l: pmic-int-l { 534 rockchip,pins = 606 rockchip,pins = 535 <0 RK_PA3 RK_F 607 <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up>; 536 }; 608 }; 537 }; 609 }; 538 610 539 sdio-pwrseq { 611 sdio-pwrseq { 540 wifi_enable_h: wifi-enable-h { 612 wifi_enable_h: wifi-enable-h { 541 rockchip,pins = 613 rockchip,pins = 542 <4 RK_PA2 RK_F 614 <4 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>; 543 }; 615 }; 544 }; 616 }; 545 617 546 vcc3v3-lcd { 618 vcc3v3-lcd { 547 vcc_lcd_h: vcc-lcd-h { 619 vcc_lcd_h: vcc-lcd-h { 548 rockchip,pins = 620 rockchip,pins = 549 <0 RK_PC2 RK_F 621 <0 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>; 550 }; 622 }; 551 }; 623 }; 552 624 553 vcc-wifi { 625 vcc-wifi { 554 vcc_wifi_h: vcc-wifi-h { 626 vcc_wifi_h: vcc-wifi-h { 555 rockchip,pins = 627 rockchip,pins = 556 <0 RK_PA0 RK_F 628 <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>; 557 }; 629 }; 558 }; 630 }; 559 }; 631 }; 560 632 561 &pmu_io_domains { 633 &pmu_io_domains { 562 status = "okay"; 634 status = "okay"; 563 pmuio1-supply = <&vcc3v3_pmu>; 635 pmuio1-supply = <&vcc3v3_pmu>; 564 pmuio2-supply = <&vcc3v3_pmu>; 636 pmuio2-supply = <&vcc3v3_pmu>; 565 vccio1-supply = <&vccio_acodec>; 637 vccio1-supply = <&vccio_acodec>; 566 vccio3-supply = <&vccio_sd>; 638 vccio3-supply = <&vccio_sd>; 567 vccio4-supply = <&vcc_1v8>; 639 vccio4-supply = <&vcc_1v8>; 568 vccio5-supply = <&vcc_3v3>; 640 vccio5-supply = <&vcc_3v3>; 569 vccio6-supply = <&vcc1v8_dvp>; 641 vccio6-supply = <&vcc1v8_dvp>; 570 vccio7-supply = <&vcc_3v3>; 642 vccio7-supply = <&vcc_3v3>; 571 }; 643 }; 572 644 573 &pwm0 { 645 &pwm0 { 574 pinctrl-0 = <&pwm0m1_pins>; 646 pinctrl-0 = <&pwm0m1_pins>; 575 pinctrl-names = "default"; 647 pinctrl-names = "default"; 576 status = "okay"; 648 status = "okay"; 577 }; 649 }; 578 650 579 &pwm5 { 651 &pwm5 { 580 status = "okay"; 652 status = "okay"; 581 }; 653 }; 582 654 583 &pwm6 { 655 &pwm6 { 584 status = "okay"; 656 status = "okay"; 585 }; 657 }; 586 658 587 &pwm7 { 659 &pwm7 { 588 status = "okay"; 660 status = "okay"; 589 }; 661 }; 590 662 591 &saradc { 663 &saradc { 592 vref-supply = <&vcc_1v8>; 664 vref-supply = <&vcc_1v8>; 593 status = "okay"; 665 status = "okay"; 594 }; 666 }; 595 667 596 &sdmmc0 { 668 &sdmmc0 { 597 bus-width = <4>; 669 bus-width = <4>; 598 cap-sd-highspeed; 670 cap-sd-highspeed; 599 cd-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_ 671 cd-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_LOW>; 600 disable-wp; 672 disable-wp; 601 pinctrl-0 = <&sdmmc0_bus4 &sdmmc0_clk 673 pinctrl-0 = <&sdmmc0_bus4 &sdmmc0_clk &sdmmc0_cmd &sdmmc0_det>; 602 pinctrl-names = "default"; 674 pinctrl-names = "default"; 603 sd-uhs-sdr104; 675 sd-uhs-sdr104; 604 vmmc-supply = <&vcc_3v3>; 676 vmmc-supply = <&vcc_3v3>; 605 vqmmc-supply = <&vccio_sd>; 677 vqmmc-supply = <&vccio_sd>; 606 status = "okay"; 678 status = "okay"; 607 }; 679 }; 608 680 609 &sdmmc1 { 681 &sdmmc1 { 610 bus-width = <4>; 682 bus-width = <4>; 611 cap-sd-highspeed; 683 cap-sd-highspeed; 612 cd-gpios = <&gpio2 RK_PB2 GPIO_ACTIVE_ 684 cd-gpios = <&gpio2 RK_PB2 GPIO_ACTIVE_LOW>; 613 disable-wp; 685 disable-wp; 614 pinctrl-0 = <&sdmmc1_bus4 &sdmmc1_cmd 686 pinctrl-0 = <&sdmmc1_bus4 &sdmmc1_cmd &sdmmc1_clk &sdmmc1_det>; 615 pinctrl-names = "default"; 687 pinctrl-names = "default"; 616 sd-uhs-sdr104; 688 sd-uhs-sdr104; 617 vmmc-supply = <&vcc_3v3>; 689 vmmc-supply = <&vcc_3v3>; 618 vqmmc-supply = <&vcc1v8_dvp>; 690 vqmmc-supply = <&vcc1v8_dvp>; 619 status = "okay"; 691 status = "okay"; 620 }; 692 }; 621 693 622 &sdmmc2 { 694 &sdmmc2 { 623 bus-width = <4>; 695 bus-width = <4>; 624 cap-sd-highspeed; 696 cap-sd-highspeed; 625 cap-sdio-irq; 697 cap-sdio-irq; 626 keep-power-in-suspend; 698 keep-power-in-suspend; 627 mmc-pwrseq = <&sdio_pwrseq>; 699 mmc-pwrseq = <&sdio_pwrseq>; 628 no-mmc; << 629 no-sd; << 630 non-removable; 700 non-removable; 631 pinctrl-0 = <&sdmmc2m0_bus4 &sdmmc2m0_ 701 pinctrl-0 = <&sdmmc2m0_bus4 &sdmmc2m0_cmd &sdmmc2m0_clk>; 632 pinctrl-names = "default"; 702 pinctrl-names = "default"; 633 sd-uhs-sdr50; << 634 vmmc-supply = <&vcc_wifi>; 703 vmmc-supply = <&vcc_wifi>; 635 vqmmc-supply = <&vcca1v8_pmu>; 704 vqmmc-supply = <&vcca1v8_pmu>; 636 status = "okay"; 705 status = "okay"; 637 }; 706 }; 638 707 639 &tsadc { 708 &tsadc { 640 rockchip,hw-tshut-mode = <1>; 709 rockchip,hw-tshut-mode = <1>; 641 rockchip,hw-tshut-polarity = <0>; 710 rockchip,hw-tshut-polarity = <0>; 642 status = "okay"; 711 status = "okay"; 643 }; 712 }; 644 713 645 &uart1 { 714 &uart1 { 646 pinctrl-0 = <&uart1m1_xfer &uart1m1_ct 715 pinctrl-0 = <&uart1m1_xfer &uart1m1_ctsn &uart1m1_rtsn>; 647 pinctrl-names = "default"; 716 pinctrl-names = "default"; 648 uart-has-rtscts; 717 uart-has-rtscts; 649 status = "okay"; 718 status = "okay"; 650 719 651 bluetooth { 720 bluetooth { 652 compatible = "realtek,rtl8821c 721 compatible = "realtek,rtl8821cs-bt", "realtek,rtl8723bs-bt"; 653 device-wake-gpios = <&gpio4 4 722 device-wake-gpios = <&gpio4 4 GPIO_ACTIVE_HIGH>; 654 enable-gpios = <&gpio4 3 GPIO_ 723 enable-gpios = <&gpio4 3 GPIO_ACTIVE_HIGH>; 655 host-wake-gpios = <&gpio4 5 GP 724 host-wake-gpios = <&gpio4 5 GPIO_ACTIVE_HIGH>; 656 }; 725 }; 657 }; 726 }; 658 727 659 &uart2 { 728 &uart2 { 660 status = "okay"; 729 status = "okay"; 661 }; 730 }; 662 731 663 /* 732 /* 664 * Lack the schematics to verify, but port wor 733 * Lack the schematics to verify, but port works as a peripheral 665 * (and not a host or OTG port). 734 * (and not a host or OTG port). 666 */ 735 */ 667 &usb_host0_xhci { 736 &usb_host0_xhci { 668 dr_mode = "peripheral"; 737 dr_mode = "peripheral"; 669 phys = <&usb2phy0_otg>; 738 phys = <&usb2phy0_otg>; 670 phy-names = "usb2-phy"; 739 phy-names = "usb2-phy"; 671 status = "okay"; 740 status = "okay"; 672 }; 741 }; 673 742 674 &usb_host1_ehci { 743 &usb_host1_ehci { 675 status = "okay"; 744 status = "okay"; 676 }; 745 }; 677 746 678 &usb_host1_ohci { 747 &usb_host1_ohci { 679 status = "okay"; 748 status = "okay"; 680 }; 749 }; 681 750 682 &usb_host1_xhci { 751 &usb_host1_xhci { 683 phy-names = "usb2-phy", "usb3-phy"; 752 phy-names = "usb2-phy", "usb3-phy"; 684 phys = <&usb2phy1_host>, <&combphy1 PH 753 phys = <&usb2phy1_host>, <&combphy1 PHY_TYPE_USB3>; 685 status = "okay"; 754 status = "okay"; 686 }; 755 }; 687 756 688 &usb2phy0 { 757 &usb2phy0 { 689 status = "okay"; 758 status = "okay"; 690 }; 759 }; 691 760 692 &usb2phy0_otg { 761 &usb2phy0_otg { 693 status = "okay"; 762 status = "okay"; 694 }; 763 }; 695 764 696 &usb2phy1 { 765 &usb2phy1 { 697 status = "okay"; 766 status = "okay"; 698 }; 767 }; 699 768 700 &usb2phy1_host { 769 &usb2phy1_host { 701 status = "okay"; 770 status = "okay"; 702 }; 771 }; 703 772 704 &vop { 773 &vop { 705 assigned-clocks = <&cru DCLK_VOP0>, <& 774 assigned-clocks = <&cru DCLK_VOP0>, <&cru DCLK_VOP1>; 706 assigned-clock-parents = <&pmucru PLL_ 775 assigned-clock-parents = <&pmucru PLL_HPLL>, <&cru PLL_VPLL>; 707 status = "okay"; 776 status = "okay"; 708 }; 777 }; 709 778 710 &vop_mmu { 779 &vop_mmu { 711 status = "okay"; 780 status = "okay"; 712 }; 781 }; 713 782 714 &vp0 { 783 &vp0 { 715 vp0_out_hdmi: endpoint@ROCKCHIP_VOP2_E 784 vp0_out_hdmi: endpoint@ROCKCHIP_VOP2_EP_HDMI0 { 716 reg = <ROCKCHIP_VOP2_EP_HDMI0> 785 reg = <ROCKCHIP_VOP2_EP_HDMI0>; 717 remote-endpoint = <&hdmi_in_vp 786 remote-endpoint = <&hdmi_in_vp0>; 718 }; 787 }; 719 }; 788 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.