Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
0002 
0003 #include <dt-bindings/gpio/gpio.h>
0004 #include <dt-bindings/input/gpio-keys.h>
0005 #include <dt-bindings/input/input.h>
0006 #include <dt-bindings/leds/common.h>
0007 #include <dt-bindings/pinctrl/rockchip.h>
0008 
0009 #include "rk3566.dtsi"
0010 
0011 / {
0012         aliases {
0013                 mmc0 = &sdhci;
0014         };
0015 
0016         chosen {
0017                 stdout-path = "serial2:1500000n8";
0018         };
0019 
0020         adc-keys {
0021                 compatible = "adc-keys";
0022                 io-channels = <&saradc 0>;
0023                 io-channel-names = "buttons";
0024                 keyup-threshold-microvolt = <1750000>;
0025 
0026                 recovery {
0027                         label = "recovery";
0028                         linux,code = <KEY_VENDOR>;
0029                         press-threshold-microvolt = <0>;
0030                 };
0031         };
0032 
0033         spk_amp: audio-amplifier {
0034                 compatible = "simple-audio-amplifier";
0035                 enable-gpios = <&gpio3 RK_PC4 GPIO_ACTIVE_HIGH>;
0036                 pinctrl-0 = <&spk_amp_enable_h>;
0037                 pinctrl-names = "default";
0038                 sound-name-prefix = "Speaker Amp";
0039         };
0040 
0041         dmic_codec: dmic-codec {
0042                 compatible = "dmic-codec";
0043                 num-channels = <6>;
0044                 #sound-dai-cells = <0>;
0045         };
0046 
0047         gpio-keys {
0048                 compatible = "gpio-keys";
0049                 pinctrl-0 = <&hall_int_l>;
0050                 pinctrl-names = "default";
0051 
0052                 switch-cover {
0053                         label = "cover";
0054                         gpios = <&gpio0 RK_PC7 GPIO_ACTIVE_LOW>;
0055                         linux,input-type = <EV_SW>;
0056                         linux,code = <SW_MACHINE_COVER>;
0057                         linux,can-disable;
0058                         wakeup-event-action = <EV_ACT_DEASSERTED>;
0059                         wakeup-source;
0060                 };
0061         };
0062 
0063         gpio-leds {
0064                 compatible = "gpio-leds";
0065                 pinctrl-0 = <&led_pin>;
0066                 pinctrl-names = "default";
0067 
0068                 led-0 {
0069                         color = <LED_COLOR_ID_WHITE>;
0070                         function = LED_FUNCTION_CHARGING;
0071                         gpios = <&gpio3 RK_PC5 GPIO_ACTIVE_HIGH>;
0072                 };
0073         };
0074 
0075         sdio_pwrseq: sdio-pwrseq {
0076                 compatible = "mmc-pwrseq-simple";
0077                 clocks = <&rk817 1>;
0078                 clock-names = "ext_clock";
0079                 pinctrl-0 = <&wifi_enable_h>;
0080                 pinctrl-names = "default";
0081                 reset-gpios = <&gpio0 RK_PC6 GPIO_ACTIVE_LOW>;
0082         };
0083 
0084         sound {
0085                 compatible = "simple-audio-card";
0086                 simple-audio-card,name = "PineNote";
0087                 simple-audio-card,aux-devs = <&spk_amp>;
0088                 simple-audio-card,widgets = "Headphone", "Headphones",
0089                                             "Speaker", "Internal Speakers";
0090                 simple-audio-card,routing = "Headphones", "HPOL",
0091                                             "Headphones", "HPOR",
0092                                             "Internal Speakers", "Speaker Amp OUTL",
0093                                             "Internal Speakers", "Speaker Amp OUTR",
0094                                             "Speaker Amp INL", "HPOL",
0095                                             "Speaker Amp INR", "HPOR";
0096                 simple-audio-card,pin-switches = "Internal Speakers";
0097                 #address-cells = <1>;
0098                 #size-cells = <0>;
0099 
0100                 simple-audio-card,dai-link@0 {
0101                         reg = <0>;
0102                         bitclock-master = <&link0_cpu>;
0103                         format = "i2s";
0104                         frame-master = <&link0_cpu>;
0105                         mclk-fs = <256>;
0106 
0107                         link0_cpu: cpu {
0108                                 sound-dai = <&i2s1_8ch>;
0109                         };
0110 
0111                         link0_codec: codec {
0112                                 sound-dai = <&rk817>;
0113                         };
0114                 };
0115 
0116                 simple-audio-card,dai-link@1 {
0117                         reg = <1>;
0118                         bitclock-master = <&link1_cpu>;
0119                         format = "pdm";
0120                         frame-master = <&link1_cpu>;
0121 
0122                         link1_cpu: cpu {
0123                                 sound-dai = <&pdm>;
0124                         };
0125 
0126                         link1_codec: codec {
0127                                 sound-dai = <&dmic_codec>;
0128                         };
0129                 };
0130         };
0131 
0132         vbat_4g: vbat-4g {
0133                 compatible = "regulator-fixed";
0134                 regulator-name = "vbat_4g";
0135                 regulator-min-microvolt = <3800000>;
0136                 regulator-max-microvolt = <3800000>;
0137                 /* powered by vcc_bat, enabled by vbat_4g_en */
0138                 vin-supply = <&vbat_4g_en>;
0139         };
0140 
0141         vcc_1v8: vcc-1v8 {
0142                 compatible = "regulator-fixed";
0143                 regulator-name = "vcc_1v8";
0144                 regulator-always-on;
0145                 regulator-min-microvolt = <1800000>;
0146                 regulator-max-microvolt = <1800000>;
0147                 /* powered by vcc_sys, enabled by vcc_1v8_en */
0148                 vin-supply = <&vcc_1v8_en>;
0149         };
0150 
0151         vcc_bat: vcc-bat {
0152                 compatible = "regulator-fixed";
0153                 regulator-name = "vcc_bat";
0154                 regulator-always-on;
0155                 regulator-min-microvolt = <3800000>;
0156                 regulator-max-microvolt = <3800000>;
0157         };
0158 
0159         vcc_hall_3v3: vcc-hall-3v3 {
0160                 compatible = "regulator-fixed";
0161                 regulator-name = "vcc_hall_3v3";
0162                 regulator-always-on;
0163                 regulator-min-microvolt = <3300000>;
0164                 regulator-max-microvolt = <3300000>;
0165                 vin-supply = <&vcc_sys>;
0166         };
0167 
0168         vcc_sys: vcc-sys {
0169                 compatible = "regulator-fixed";
0170                 regulator-name = "vcc_sys";
0171                 regulator-always-on;
0172                 regulator-min-microvolt = <3800000>;
0173                 regulator-max-microvolt = <3800000>;
0174                 vin-supply = <&vcc_bat>;
0175         };
0176 
0177         vcc_wl: vcc-wl {
0178                 compatible = "regulator-fixed";
0179                 enable-active-high;
0180                 gpio = <&gpio0 RK_PA0 GPIO_ACTIVE_HIGH>;
0181                 pinctrl-0 = <&vcc_wl_pin>;
0182                 pinctrl-names = "default";
0183                 regulator-name = "vcc_wl";
0184                 regulator-min-microvolt = <3300000>;
0185                 regulator-max-microvolt = <3300000>;
0186                 vin-supply = <&vcc_bat>;
0187         };
0188 
0189         vdda_0v9: vdda-0v9 {
0190                 compatible = "regulator-fixed";
0191                 regulator-name = "vdda_0v9";
0192                 regulator-always-on;
0193                 regulator-min-microvolt = <900000>;
0194                 regulator-max-microvolt = <900000>;
0195                 /* powered by vcc_sys, enabled by vcc_1v8_en */
0196                 vin-supply = <&vcc_1v8_en>;
0197         };
0198 };
0199 
0200 &cpu0 {
0201         cpu-supply = <&vdd_cpu>;
0202 };
0203 
0204 &cpu1 {
0205         cpu-supply = <&vdd_cpu>;
0206 };
0207 
0208 &cpu2 {
0209         cpu-supply = <&vdd_cpu>;
0210 };
0211 
0212 &cpu3 {
0213         cpu-supply = <&vdd_cpu>;
0214 };
0215 
0216 &i2c0 {
0217         status = "okay";
0218 
0219         vdd_cpu: regulator@1c {
0220                 compatible = "tcs,tcs4525";
0221                 reg = <0x1c>;
0222                 fcs,suspend-voltage-selector = <0>;
0223                 regulator-name = "vdd_cpu";
0224                 regulator-min-microvolt = <712500>;
0225                 regulator-max-microvolt = <1390000>;
0226                 regulator-ramp-delay = <2300>;
0227                 regulator-always-on;
0228                 vin-supply = <&vcc_sys>;
0229 
0230                 regulator-state-mem {
0231                         regulator-on-in-suspend;
0232                 };
0233         };
0234 
0235         rk817: pmic@20 {
0236                 compatible = "rockchip,rk817";
0237                 reg = <0x20>;
0238                 interrupt-parent = <&gpio0>;
0239                 interrupts = <RK_PA3 IRQ_TYPE_LEVEL_LOW>;
0240                 assigned-clocks = <&cru I2S1_MCLKOUT_TX>;
0241                 assigned-clock-parents = <&cru CLK_I2S1_8CH_TX>;
0242                 clocks = <&cru I2S1_MCLKOUT_TX>;
0243                 clock-names = "mclk";
0244                 #clock-cells = <1>;
0245                 pinctrl-0 = <&i2s1m0_mclk>, <&pmic_int_l>, <&pmic_sleep>;
0246                 pinctrl-names = "default";
0247                 rockchip,system-power-controller;
0248                 #sound-dai-cells = <0>;
0249                 wakeup-source;
0250 
0251                 vcc1-supply = <&vcc_sys>;
0252                 vcc2-supply = <&vcc_sys>;
0253                 vcc3-supply = <&vcc_sys>;
0254                 vcc4-supply = <&vcc_sys>;
0255                 vcc5-supply = <&vcc_sys>;
0256                 vcc6-supply = <&vcc_sys>;
0257                 vcc7-supply = <&vcc_sys>;
0258                 vcc8-supply = <&vcc_sys>;
0259                 vcc9-supply = <&dcdc_boost>;
0260 
0261                 regulators {
0262                         vdd_logic: DCDC_REG1 {
0263                                 regulator-name = "vdd_logic";
0264                                 regulator-always-on;
0265                                 regulator-min-microvolt = <500000>;
0266                                 regulator-max-microvolt = <1350000>;
0267                                 regulator-init-microvolt = <900000>;
0268                                 regulator-ramp-delay = <6001>;
0269                                 regulator-initial-mode = <0x2>;
0270 
0271                                 regulator-state-mem {
0272                                         regulator-off-in-suspend;
0273                                         regulator-suspend-microvolt = <900000>;
0274                                 };
0275                         };
0276 
0277                         vdd_gpu_npu: DCDC_REG2 {
0278                                 regulator-name = "vdd_gpu_npu";
0279                                 regulator-min-microvolt = <500000>;
0280                                 regulator-max-microvolt = <1350000>;
0281                                 regulator-init-microvolt = <900000>;
0282                                 regulator-ramp-delay = <6001>;
0283                                 regulator-initial-mode = <0x2>;
0284 
0285                                 regulator-state-mem {
0286                                         regulator-off-in-suspend;
0287                                 };
0288                         };
0289 
0290                         vcc_ddr: DCDC_REG3 {
0291                                 regulator-name = "vcc_ddr";
0292                                 regulator-always-on;
0293                                 regulator-initial-mode = <0x2>;
0294 
0295                                 regulator-state-mem {
0296                                         regulator-on-in-suspend;
0297                                 };
0298                         };
0299 
0300                         vcc_3v3: DCDC_REG4 {
0301                                 regulator-name = "vcc_3v3";
0302                                 regulator-always-on;
0303                                 regulator-min-microvolt = <3300000>;
0304                                 regulator-max-microvolt = <3300000>;
0305                                 regulator-initial-mode = <0x2>;
0306 
0307                                 regulator-state-mem {
0308                                         regulator-off-in-suspend;
0309                                 };
0310                         };
0311 
0312                         vcca_1v8_pmu: LDO_REG1 {
0313                                 regulator-name = "vcca_1v8_pmu";
0314                                 regulator-always-on;
0315                                 regulator-min-microvolt = <1800000>;
0316                                 regulator-max-microvolt = <1800000>;
0317 
0318                                 regulator-state-mem {
0319                                         regulator-on-in-suspend;
0320                                 };
0321                         };
0322 
0323                         /* unused */
0324                         vdda_0v9_ldo: LDO_REG2 {
0325                                 regulator-name = "vdda_0v9_ldo";
0326                                 regulator-min-microvolt = <900000>;
0327                                 regulator-max-microvolt = <900000>;
0328 
0329                                 regulator-state-mem {
0330                                         regulator-off-in-suspend;
0331                                 };
0332                         };
0333 
0334                         vdda_0v9_pmu: LDO_REG3 {
0335                                 regulator-name = "vdda_0v9_pmu";
0336                                 regulator-always-on;
0337                                 regulator-min-microvolt = <900000>;
0338                                 regulator-max-microvolt = <900000>;
0339 
0340                                 regulator-state-mem {
0341                                         regulator-on-in-suspend;
0342                                 };
0343                         };
0344 
0345                         vccio_acodec: LDO_REG4 {
0346                                 regulator-name = "vccio_acodec";
0347                                 regulator-always-on;
0348                                 regulator-min-microvolt = <3300000>;
0349                                 regulator-max-microvolt = <3300000>;
0350 
0351                                 regulator-state-mem {
0352                                         regulator-off-in-suspend;
0353                                 };
0354                         };
0355 
0356                         /* unused */
0357                         vccio_sd: LDO_REG5 {
0358                                 regulator-name = "vccio_sd";
0359                                 regulator-min-microvolt = <1800000>;
0360                                 regulator-max-microvolt = <3300000>;
0361 
0362                                 regulator-state-mem {
0363                                         regulator-off-in-suspend;
0364                                 };
0365                         };
0366 
0367                         vcc_3v3_pmu: LDO_REG6 {
0368                                 regulator-name = "vcc_3v3_pmu";
0369                                 regulator-always-on;
0370                                 regulator-min-microvolt = <3300000>;
0371                                 regulator-max-microvolt = <3300000>;
0372 
0373                                 regulator-state-mem {
0374                                         regulator-on-in-suspend;
0375                                 };
0376                         };
0377 
0378                         vcc_1v8_en: LDO_REG7 {
0379                                 regulator-name = "vcc_1v8_en";
0380                                 regulator-min-microvolt = <1800000>;
0381                                 regulator-max-microvolt = <1800000>;
0382 
0383                                 regulator-state-mem {
0384                                         regulator-off-in-suspend;
0385                                 };
0386                         };
0387 
0388                         vbat_4g_en: LDO_REG8 {
0389                                 regulator-name = "vbat_4g_en";
0390                                 regulator-min-microvolt = <1800000>;
0391                                 regulator-max-microvolt = <1800000>;
0392 
0393                                 regulator-state-mem {
0394                                         regulator-off-in-suspend;
0395                                 };
0396                         };
0397 
0398                         sleep_sta_ctl: LDO_REG9 {
0399                                 regulator-name = "sleep_sta_ctl";
0400                                 regulator-min-microvolt = <1800000>;
0401                                 regulator-max-microvolt = <1800000>;
0402 
0403                                 regulator-state-mem {
0404                                         regulator-on-in-suspend;
0405                                 };
0406                         };
0407 
0408                         dcdc_boost: BOOST {
0409                                 regulator-name = "boost";
0410                                 regulator-min-microvolt = <5000000>;
0411                                 regulator-max-microvolt = <5000000>;
0412 
0413                                 regulator-state-mem {
0414                                         regulator-off-in-suspend;
0415                                 };
0416                         };
0417 
0418                         otg_switch: OTG_SWITCH {
0419                                 regulator-name = "otg_switch";
0420 
0421                                 regulator-state-mem {
0422                                         regulator-off-in-suspend;
0423                                 };
0424                         };
0425                 };
0426         };
0427 };
0428 
0429 &i2c1 {
0430         status = "okay";
0431 
0432         digitizer@9 {
0433                 compatible = "wacom,w9013", "hid-over-i2c";
0434                 reg = <0x09>;
0435                 interrupt-parent = <&gpio0>;
0436                 interrupts = <RK_PB6 IRQ_TYPE_LEVEL_LOW>;
0437                 hid-descr-addr = <0x1>;
0438                 pinctrl-0 = <&pen_fwe>, <&pen_irq_l>, <&pen_rst_l>;
0439                 pinctrl-names = "default";
0440                 vdd-supply = <&vcc_3v3_pmu>;
0441         };
0442 };
0443 
0444 &i2c3 {
0445         pinctrl-0 = <&i2c3m1_xfer>;
0446         status = "okay";
0447 
0448         led-controller@36 {
0449                 compatible = "ti,lm3630a";
0450                 reg = <0x36>;
0451                 enable-gpios = <&gpio0 RK_PB7 GPIO_ACTIVE_HIGH>;
0452                 pinctrl-0 = <&backlight_hwen_h>;
0453                 pinctrl-names = "default";
0454                 #address-cells = <1>;
0455                 #size-cells = <0>;
0456 
0457                 led@0 {
0458                         reg = <0>;
0459                         label = "backlight_cool";
0460                         default-brightness = <0>;
0461                 };
0462 
0463                 led@1 {
0464                         reg = <1>;
0465                         label = "backlight_warm";
0466                         default-brightness = <0>;
0467                 };
0468         };
0469 
0470         wusb3801: tcpc@60 {
0471                 compatible = "willsemi,wusb3801";
0472                 reg = <0x60>;
0473                 interrupt-parent = <&gpio0>;
0474                 interrupts = <RK_PA4 IRQ_TYPE_LEVEL_LOW>;
0475                 pinctrl-0 = <&tcpc_int_l>;
0476                 pinctrl-names = "default";
0477 
0478                 connector {
0479                         compatible = "usb-c-connector";
0480                         label = "USB-C";
0481                         vbus-supply = <&otg_switch>;
0482                         power-role = "dual";
0483                         try-power-role = "sink";
0484                         data-role = "dual";
0485                         typec-power-opmode = "default";
0486                         pd-disable;
0487 
0488                         ports {
0489                                 #address-cells = <0x1>;
0490                                 #size-cells = <0x0>;
0491 
0492                                 port@0 {
0493                                         reg = <0x0>;
0494 
0495                                         typec_hs_usb2phy0: endpoint {
0496                                                 remote-endpoint = <&usb2phy0_typec_hs>;
0497                                         };
0498                                 };
0499                         };
0500                 };
0501         };
0502 };
0503 
0504 &i2c5 {
0505         status = "okay";
0506 
0507         accelerometer@18 {
0508                 compatible = "silan,sc7a20";
0509                 reg = <0x18>;
0510                 interrupt-parent = <&gpio3>;
0511                 interrupts = <RK_PB2 IRQ_TYPE_LEVEL_LOW>;
0512                 pinctrl-0 = <&accelerometer_int_l>;
0513                 pinctrl-names = "default";
0514                 st,drdy-int-pin = <1>;
0515                 vdd-supply = <&vcc_3v3>;
0516                 vddio-supply = <&vcc_3v3>;
0517         };
0518 };
0519 
0520 &i2s1_8ch {
0521         pinctrl-0 = <&i2s1m0_lrcktx>, <&i2s1m0_sclktx>, <&i2s1m0_sdi0>, <&i2s1m0_sdo0>;
0522         rockchip,trcm-sync-tx-only;
0523         status = "okay";
0524 };
0525 
0526 &pdm {
0527         pinctrl-0 = <&pdmm0_clk1>, <&pdmm0_sdi1>, <&pdmm0_sdi2>;
0528         /* microphones are on channels 1 and 2 */
0529         rockchip,path-map = <1>, <2>, <0>, <3>;
0530         status = "okay";
0531 };
0532 
0533 &pinctrl {
0534         accelerometer {
0535                 accelerometer_int_l: accelerometer-int-l {
0536                         rockchip,pins = <3 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
0537                 };
0538         };
0539 
0540         audio-amplifier {
0541                 spk_amp_enable_h: spk-amp-enable-h {
0542                         rockchip,pins = <3 RK_PC4 RK_FUNC_GPIO &pcfg_pull_none>;
0543                 };
0544         };
0545 
0546         backlight {
0547                 backlight_hwen_h: backlight-hwen-h {
0548                         rockchip,pins = <0 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>;
0549                 };
0550         };
0551 
0552         bt {
0553                 bt_enable_h: bt-enable-h {
0554                         rockchip,pins = <0 RK_PC4 RK_FUNC_GPIO &pcfg_pull_none>;
0555                 };
0556 
0557                 bt_host_wake_l: bt-host-wake-l {
0558                         rockchip,pins = <0 RK_PC3 RK_FUNC_GPIO &pcfg_pull_up>;
0559                 };
0560 
0561                 bt_wake_h: bt-wake-h {
0562                         rockchip,pins = <0 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>;
0563                 };
0564         };
0565 
0566         led {
0567                 led_pin: led-pin {
0568                         rockchip,pins = <3 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>;
0569                 };
0570         };
0571 
0572         hall {
0573                 hall_int_l: hall-int-l {
0574                         rockchip,pins = <0 RK_PC7 RK_FUNC_GPIO &pcfg_pull_none>;
0575                 };
0576         };
0577 
0578         pen {
0579                 pen_fwe: pen-fwe {
0580                         rockchip,pins = <3 RK_PB7 RK_FUNC_GPIO &pcfg_pull_down>;
0581                 };
0582 
0583                 pen_irq_l: pen-irq-l {
0584                         rockchip,pins = <0 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>;
0585                 };
0586 
0587                 pen_rst_l: pen-rst-l {
0588                         rockchip,pins = <0 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>;
0589                 };
0590         };
0591 
0592         pmic {
0593                 pmic_int_l: pmic-int-l {
0594                         rockchip,pins = <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>;
0595                 };
0596 
0597                 pmic_sleep: pmic-sleep {
0598                         rockchip,pins = <0 RK_PA2 1 &pcfg_pull_none>;
0599                 };
0600         };
0601 
0602         sdio-pwrseq {
0603                 wifi_enable_h: wifi-enable-h {
0604                         rockchip,pins = <0 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>;
0605                 };
0606         };
0607 
0608         tcpc {
0609                 tcpc_int_l: tcpc-int-l {
0610                         rockchip,pins = <0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up>;
0611                 };
0612         };
0613 
0614         vcc-wl {
0615                 vcc_wl_pin: vcc-wl-pin {
0616                         rockchip,pins = <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>;
0617                 };
0618         };
0619 
0620         wifi {
0621                 wifi_host_wake_l: wifi-host-wake-l {
0622                         rockchip,pins = <0 RK_PC5 RK_FUNC_GPIO &pcfg_pull_up>;
0623                 };
0624         };
0625 };
0626 
0627 &pmu_io_domains {
0628         pmuio1-supply = <&vcc_3v3_pmu>;
0629         pmuio2-supply = <&vcc_3v3_pmu>;
0630         vccio1-supply = <&vccio_acodec>;
0631         vccio2-supply = <&vcc_1v8>;
0632         vccio3-supply = <&vcc_3v3>;
0633         vccio4-supply = <&vcca_1v8_pmu>;
0634         vccio5-supply = <&vcc_3v3>;
0635         vccio6-supply = <&vcc_3v3>;
0636         status = "okay";
0637 };
0638 
0639 &saradc {
0640         vref-supply = <&vcc_1v8>;
0641         status = "okay";
0642 };
0643 
0644 &sdhci {
0645         bus-width = <8>;
0646         mmc-hs200-1_8v;
0647         non-removable;
0648         pinctrl-0 = <&emmc_bus8>, <&emmc_clk>, <&emmc_cmd>, <&emmc_datastrobe>, <&emmc_rstnout>;
0649         pinctrl-names = "default";
0650         vmmc-supply = <&vcc_3v3>;
0651         vqmmc-supply = <&vcc_1v8>;
0652         status = "okay";
0653 };
0654 
0655 &sdmmc1 {
0656         bus-width = <4>;
0657         cap-sd-highspeed;
0658         cap-sdio-irq;
0659         keep-power-in-suspend;
0660         mmc-pwrseq = <&sdio_pwrseq>;
0661         non-removable;
0662         pinctrl-0 = <&sdmmc1_bus4>, <&sdmmc1_clk>, <&sdmmc1_cmd>;
0663         pinctrl-names = "default";
0664         sd-uhs-sdr104;
0665         vmmc-supply = <&vcc_wl>;
0666         vqmmc-supply = <&vcca_1v8_pmu>;
0667         status = "okay";
0668 };
0669 
0670 &tsadc {
0671         /* tshut mode 0:CRU 1:GPIO */
0672         rockchip,hw-tshut-mode = <1>;
0673         /* tshut polarity 0:LOW 1:HIGH */
0674         rockchip,hw-tshut-polarity = <0>;
0675         status = "okay";
0676 };
0677 
0678 &uart1 {
0679         pinctrl-0 = <&uart1m0_ctsn>, <&uart1m0_rtsn>, <&uart1m0_xfer>;
0680         pinctrl-names = "default";
0681         uart-has-rtscts;
0682         status = "okay";
0683 
0684         bluetooth {
0685                 compatible = "brcm,bcm43438-bt";
0686                 clocks = <&rk817 1>;
0687                 clock-names = "lpo";
0688                 device-wake-gpios = <&gpio0 RK_PC2 GPIO_ACTIVE_HIGH>;
0689                 host-wake-gpios = <&gpio0 RK_PC3 GPIO_ACTIVE_HIGH>;
0690                 reset-gpios = <&gpio0 RK_PC4 GPIO_ACTIVE_LOW>;
0691                 pinctrl-0 = <&bt_enable_h>, <&bt_host_wake_l>, <&bt_wake_h>;
0692                 pinctrl-names = "default";
0693                 vbat-supply = <&vcc_wl>;
0694                 vddio-supply = <&vcca_1v8_pmu>;
0695         };
0696 };
0697 
0698 &uart2 {
0699         status = "okay";
0700 };
0701 
0702 &usb_host0_xhci {
0703         dr_mode = "otg";
0704         status = "okay";
0705 };
0706 
0707 &usb2phy0 {
0708         status = "okay";
0709 };
0710 
0711 &usb2phy0_otg {
0712         status = "okay";
0713 
0714         port {
0715                 usb2phy0_typec_hs: endpoint {
0716                         remote-endpoint = <&typec_hs_usb2phy0>;
0717                 };
0718         };
0719 };