Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
0002 /*
0003  * Copyright (c) 2018 MundoReader S.L.
0004  * Author:  Heiko Stuebner <heiko.stuebner@bq.com>
0005  */
0006 
0007 /dts-v1/;
0008 #include <dt-bindings/i2c/i2c.h>
0009 #include <dt-bindings/input/input.h>
0010 #include <dt-bindings/interrupt-controller/irq.h>
0011 #include "rk3188.dtsi"
0012 
0013 / {
0014         model = "BQ Edison2 Quad-Core";
0015         compatible = "mundoreader,bq-edison2qc", "rockchip,rk3188";
0016 
0017         aliases {
0018                 mmc0 = &mmc0;
0019                 mmc1 = &mmc1;
0020                 mmc2 = &emmc;
0021         };
0022 
0023         memory@60000000 {
0024                 device_type = "memory";
0025                 reg = <0x60000000 0x80000000>;
0026         };
0027 
0028         backlight: backlight {
0029                 compatible = "pwm-backlight";
0030                 power-supply = <&vsys>;
0031                 pwms = <&pwm1 0 25000>;
0032         };
0033 
0034         gpio-keys {
0035                 compatible = "gpio-keys";
0036                 autorepeat;
0037                 pinctrl-names = "default";
0038                 pinctrl-0 = <&pwr_key &usb_int>;
0039 
0040                 key-power {
0041                         gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_LOW>;
0042                         linux,code = <KEY_POWER>;
0043                         label = "GPIO Key Power";
0044                         linux,input-type = <1>;
0045                         debounce-interval = <100>;
0046                         wakeup-source;
0047                 };
0048 
0049                 wake_on_usb: key-wake-on-usb {
0050                         label = "Wake-on-USB";
0051                         gpios = <&gpio0 RK_PA7 GPIO_ACTIVE_LOW>;
0052                         linux,code = <KEY_WAKEUP>;
0053                         wakeup-source;
0054                 };
0055         };
0056 
0057         gpio-poweroff {
0058                 compatible = "gpio-poweroff";
0059                 gpios = <&gpio0 RK_PA0 GPIO_ACTIVE_LOW>;
0060                 pinctrl-names = "default";
0061                 pinctrl-0 = <&pwr_hold>;
0062                 /* only drive the pin low until device is off */
0063                 active-delay-ms = <3000>;
0064         };
0065 
0066         lvds-encoder {
0067                 compatible = "ti,sn75lvds83", "lvds-encoder";
0068 
0069                 ports {
0070                         #address-cells = <1>;
0071                         #size-cells = <0>;
0072 
0073                         port@0 {
0074                                 reg = <0>;
0075 
0076                                 lvds_in_vop0: endpoint {
0077                                         remote-endpoint = <&vop0_out_lvds>;
0078                                 };
0079                         };
0080 
0081                         port@1 {
0082                                 reg = <1>;
0083 
0084                                 lvds_out_panel: endpoint {
0085                                         remote-endpoint = <&panel_in_lvds>;
0086                                 };
0087                         };
0088                 };
0089         };
0090 
0091         panel {
0092                 compatible = "innolux,ee101ia-01d", "panel-lvds";
0093                 backlight = <&backlight>;
0094 
0095                 /* pin LCD_CS, Nshtdn input of lvds-encoder */
0096                 enable-gpios = <&gpio3 RK_PD6 GPIO_ACTIVE_HIGH>;
0097                 pinctrl-names = "default";
0098                 pinctrl-0 = <&lcd_cs>;
0099                 power-supply = <&vcc_lcd>;
0100 
0101                 data-mapping = "vesa-24";
0102                 height-mm = <163>;
0103                 width-mm = <261>;
0104 
0105                 panel-timing {
0106                         clock-frequency = <72000000>;
0107                         hactive = <1280>;
0108                         vactive = <800>;
0109                         hback-porch = <160>;
0110                         hfront-porch = <16>;
0111                         hsync-len = <10>;
0112                         vback-porch = <23>;
0113                         vfront-porch = <12>;
0114                         vsync-len = <3>;
0115                 };
0116 
0117                 port {
0118                         panel_in_lvds: endpoint {
0119                                 remote-endpoint = <&lvds_out_panel>;
0120                         };
0121                 };
0122         };
0123 
0124         sdio_pwrseq: sdio-pwrseq {
0125                 compatible = "mmc-pwrseq-simple";
0126                 clocks = <&hym8563>;
0127                 clock-names = "ext_clock";
0128                 pinctrl-names = "default";
0129                 pinctrl-0 = <&wifi_reg_on>;
0130                 reset-gpios = <&gpio3 RK_PD0 GPIO_ACTIVE_LOW>;
0131         };
0132 
0133         avdd_cif: cif-avdd-regulator {
0134                 compatible = "regulator-fixed";
0135                 regulator-name = "avdd-cif";
0136                 regulator-min-microvolt = <2800000>;
0137                 regulator-max-microvolt = <2800000>;
0138                 gpio = <&gpio1 RK_PA6 GPIO_ACTIVE_LOW>;
0139                 pinctrl-names = "default";
0140                 pinctrl-0 = <&cif_avdd_en>;
0141                 startup-delay-us = <100000>;
0142                 vin-supply = <&vcc28_cif>;
0143         };
0144 
0145         vcc_5v: vcc-5v-regulator {
0146                 compatible = "regulator-fixed";
0147                 regulator-name = "vcc-5v";
0148                 regulator-min-microvolt = <5000000>;
0149                 regulator-max-microvolt = <5000000>;
0150                 enable-active-high;
0151                 gpio = <&gpio0 RK_PA3 GPIO_ACTIVE_HIGH>;
0152                 pinctrl-names = "default";
0153                 pinctrl-0 = <&v5_drv>;
0154                 vin-supply = <&vsys>;
0155         };
0156 
0157         vcc_lcd: lcd-regulator {
0158                 compatible = "regulator-fixed";
0159                 regulator-name = "vcc-lcd";
0160                 gpio = <&gpio0 RK_PB0 GPIO_ACTIVE_LOW>;
0161                 pinctrl-names = "default";
0162                 pinctrl-0 = <&lcd_en>;
0163                 startup-delay-us = <50000>;
0164                 vin-supply = <&vcc_io>;
0165         };
0166 
0167         vcc_otg: usb-otg-regulator {
0168                 compatible = "regulator-fixed";
0169                 regulator-name = "vcc-otg";
0170                 regulator-min-microvolt = <5000000>;
0171                 regulator-max-microvolt = <5000000>;
0172                 enable-active-high;
0173                 gpio = <&gpio3 RK_PB1 GPIO_ACTIVE_HIGH>;
0174                 pinctrl-names = "default";
0175                 pinctrl-0 = <&otg_drv>;
0176                 startup-delay-us = <100000>;
0177                 vin-supply = <&vcc_5v>;
0178         };
0179 
0180         vcc_sd: sdmmc-regulator {
0181                 compatible = "regulator-fixed";
0182                 regulator-name = "vcc-sd";
0183                 regulator-min-microvolt = <3300000>;
0184                 regulator-max-microvolt = <3300000>;
0185                 gpio = <&gpio3 RK_PA1 GPIO_ACTIVE_LOW>;
0186                 pinctrl-names = "default";
0187                 pinctrl-0 = <&sdmmc_pwr>;
0188                 startup-delay-us = <100000>;
0189                 vin-supply = <&vcc_io>;
0190         };
0191 
0192         vccq_emmc: emmc-vccq-regulator {
0193                 compatible = "regulator-fixed";
0194                 regulator-name = "vccq-emmc";
0195                 regulator-min-microvolt = <2800000>;
0196                 regulator-max-microvolt = <2800000>;
0197                 vin-supply = <&vcc_io>;
0198         };
0199 
0200         /* supplied from the bq24196 */
0201         vsys: vsys-regulator {
0202                 compatible = "regulator-fixed";
0203                 regulator-name = "vsys";
0204                 regulator-min-microvolt = <5000000>;
0205                 regulator-max-microvolt = <5000000>;
0206                 regulator-boot-on;
0207         };
0208 };
0209 
0210 &cpu0 {
0211         cpu-supply = <&vdd_arm>;
0212 };
0213 
0214 &cpu1 {
0215         cpu-supply = <&vdd_arm>;
0216 };
0217 
0218 &cpu2 {
0219         cpu-supply = <&vdd_arm>;
0220 };
0221 
0222 &cpu3 {
0223         cpu-supply = <&vdd_arm>;
0224 };
0225 
0226 &cru {
0227         assigned-clocks = <&cru PLL_GPLL>, <&cru PLL_CPLL>,
0228                           <&cru ACLK_CPU>,
0229                           <&cru HCLK_CPU>, <&cru PCLK_CPU>,
0230                           <&cru ACLK_PERI>, <&cru HCLK_PERI>,
0231                           <&cru PCLK_PERI>;
0232         assigned-clock-rates = <594000000>, <504000000>,
0233                                <300000000>,
0234                                <150000000>, <75000000>,
0235                                <300000000>, <150000000>,
0236                                <75000000>;
0237 };
0238 
0239 &emmc {
0240         bus-width = <8>;
0241         cap-mmc-highspeed;
0242         non-removable;
0243         pinctrl-names = "default";
0244         pinctrl-0 = <&emmc_clk &emmc_cmd>;
0245         vmmc-supply = <&vcc_io>;
0246         vqmmc-supply = <&vccq_emmc>;
0247         status = "okay";
0248 };
0249 
0250 &gpu {
0251         status = "okay";
0252 };
0253 
0254 &i2c0 {
0255         clock-frequency = <400000>;
0256         status = "okay";
0257 
0258         lis3de: accelerometer@29 {
0259                 compatible = "st,lis3de";
0260                 reg = <0x29>;
0261                 interrupt-parent = <&gpio0>;
0262                 interrupts = <RK_PB7 IRQ_TYPE_EDGE_RISING>;
0263                 pinctrl-names = "default";
0264                 pinctrl-0 = <&gsensor_int>;
0265                 rotation-matrix = "1", "0", "0",
0266                                   "0", "-1", "0",
0267                                   "0", "0", "1";
0268                 vdd-supply = <&vcc_io>;
0269         };
0270 };
0271 
0272 &i2c1 {
0273         clock-frequency = <400000>;
0274         status = "okay";
0275 
0276         tmp108@48 {
0277                 compatible = "ti,tmp108";
0278                 reg = <0x48>;
0279                 interrupt-parent = <&gpio1>;
0280                 interrupts = <RK_PA7 IRQ_TYPE_LEVEL_LOW>;
0281                 pinctrl-names = "default";
0282                 pinctrl-0 = <&tmp_alrt>;
0283                 #thermal-sensor-cells = <0>;
0284         };
0285 
0286         hym8563: rtc@51 {
0287                 compatible = "haoyu,hym8563";
0288                 reg = <0x51>;
0289                 interrupt-parent = <&gpio0>;
0290                 interrupts = <RK_PB5 IRQ_TYPE_EDGE_FALLING>;
0291                 pinctrl-names = "default";
0292                 pinctrl-0 = <&rtc_int>;
0293                 #clock-cells = <0>;
0294                 clock-output-names = "xin32k";
0295         };
0296 
0297         bat: battery@55 {
0298                 compatible = "ti,bq27541";
0299                 reg = <0x55>;
0300                 power-supplies = <&bq24196>;
0301         };
0302 
0303         act8846: pmic@5a {
0304                 compatible = "active-semi,act8846";
0305                 reg = <0x5a>;
0306                 pinctrl-names = "default";
0307                 pinctrl-0 = <&dvs0_ctl &pmic_int>;
0308 
0309                 vp1-supply = <&vsys>;
0310                 vp2-supply = <&vsys>;
0311                 vp3-supply = <&vsys>;
0312                 vp4-supply = <&vsys>;
0313                 inl1-supply = <&vcc_io>;
0314                 inl2-supply = <&vsys>;
0315                 inl3-supply = <&vsys>;
0316 
0317                 regulators {
0318                         vcc_ddr: REG1 {
0319                                 regulator-name = "VCC_DDR";
0320                                 regulator-min-microvolt = <1200000>;
0321                                 regulator-max-microvolt = <1200000>;
0322                                 regulator-always-on;
0323                         };
0324 
0325                         vdd_log: REG2 {
0326                                 regulator-name = "VDD_LOG";
0327                                 regulator-min-microvolt = <1000000>;
0328                                 regulator-max-microvolt = <1200000>;
0329                                 regulator-always-on;
0330                         };
0331 
0332                         vdd_arm: REG3 {
0333                                 regulator-name = "VDD_ARM";
0334                                 regulator-min-microvolt = <875000>;
0335                                 regulator-max-microvolt = <1350000>;
0336                                 regulator-always-on;
0337                         };
0338 
0339                         vcc_io: vcc_hdmi: REG4 {
0340                                 regulator-name = "VCC_IO";
0341                                 regulator-min-microvolt = <3000000>;
0342                                 regulator-max-microvolt = <3000000>;
0343                                 regulator-always-on;
0344                         };
0345 
0346                         vdd_10: REG5 {
0347                                 regulator-name = "VDD_10";
0348                                 regulator-min-microvolt = <1000000>;
0349                                 regulator-max-microvolt = <1000000>;
0350                                 regulator-always-on;
0351                         };
0352 
0353                         vdd_12: REG6 {
0354                                 regulator-name = "VDD_12";
0355                                 regulator-min-microvolt = <1200000>;
0356                                 regulator-max-microvolt = <1200000>;
0357                                 regulator-always-on;
0358                         };
0359 
0360                         vcc18_cif: REG7 {
0361                                 regulator-name = "VCC18_CIF";
0362                                 regulator-min-microvolt = <1800000>;
0363                                 regulator-max-microvolt = <1800000>;
0364                                 regulator-always-on;
0365                         };
0366 
0367                         vcca_33: REG8 {
0368                                 regulator-name = "VCCA_33";
0369                                 regulator-min-microvolt = <3300000>;
0370                                 regulator-max-microvolt = <3300000>;
0371                                 regulator-always-on;
0372                         };
0373 
0374                         vcc_tp: REG9 {
0375                                 regulator-name = "VCC_TP";
0376                                 regulator-min-microvolt = <3300000>;
0377                                 regulator-max-microvolt = <3300000>;
0378                                 regulator-always-on;
0379                         };
0380 
0381                         vccio_wl: REG10 {
0382                                 regulator-name = "VCCIO_WL";
0383                                 regulator-min-microvolt = <2800000>;
0384                                 regulator-max-microvolt = <2800000>;
0385                                 regulator-always-on;
0386                         };
0387 
0388                         vcc_18: REG11 {
0389                                 regulator-name = "VCC_18";
0390                                 regulator-min-microvolt = <1800000>;
0391                                 regulator-max-microvolt = <1800000>;
0392                                 regulator-always-on;
0393                         };
0394 
0395                         vcc28_cif: REG12 {
0396                                 regulator-name = "VCC28_CIF";
0397                                 regulator-min-microvolt = <2800000>;
0398                                 regulator-max-microvolt = <2800000>;
0399                                 regulator-always-on;
0400                         };
0401                 };
0402         };
0403 
0404         bq24196: charger@6b {
0405                 compatible = "ti,bq24196";
0406                 reg = <0x6b>;
0407                 interrupt-parent = <&gpio0>;
0408                 interrupts = <RK_PD7 IRQ_TYPE_EDGE_FALLING>;
0409                 pinctrl-names = "default";
0410                 pinctrl-0 = <&charger_int &chg_ctl &otg_en>;
0411                 ti,system-minimum-microvolt = <3200000>;
0412                 monitored-battery = <&bat>;
0413                 omit-battery-class;
0414 
0415                 usb_otg_vbus: usb-otg-vbus { };
0416         };
0417 };
0418 
0419 &i2c2 {
0420         clock-frequency = <400000>;
0421         status = "okay";
0422 
0423         ft5606: touchscreen@3e {
0424                 compatible = "edt,edt-ft5506";
0425                 reg = <0x3e>;
0426                 interrupt-parent = <&gpio1>;
0427                 interrupts = <RK_PB7 IRQ_TYPE_EDGE_FALLING>;
0428                 pinctrl-names = "default";
0429                 pinctrl-0 = <&tp_int &tp_rst>;
0430                 reset-gpios = <&gpio0 RK_PB6 GPIO_ACTIVE_LOW>;
0431                 touchscreen-inverted-y;
0432                 /* hw ts resolution does not match display */
0433                 touchscreen-size-y = <1024>;
0434                 touchscreen-size-x = <768>;
0435                 touchscreen-swapped-x-y;
0436         };
0437 };
0438 
0439 &i2c3 {
0440         clock-frequency = <400000>;
0441         status = "okay";
0442 };
0443 
0444 &i2c4 {
0445         clock-frequency = <400000>;
0446         status = "okay";
0447 
0448         rt5616: codec@1b {
0449                 compatible = "realtek,rt5616";
0450                 reg = <0x1b>;
0451                 clocks = <&cru SCLK_I2S0>;
0452                 clock-names = "mclk";
0453                 #sound-dai-cells = <0>;
0454         };
0455 };
0456 
0457 &i2s0 {
0458         status = "okay";
0459 };
0460 
0461 &mmc0 {
0462         bus-width = <4>;
0463         cap-mmc-highspeed;
0464         cap-sd-highspeed;
0465         disable-wp;
0466         pinctrl-names = "default";
0467         pinctrl-0 = <&sd0_clk>, <&sd0_cmd>, <&sd0_cd>, <&sd0_bus4>;
0468         vmmc-supply = <&vcc_sd>;
0469         status = "okay";
0470 };
0471 
0472 &mmc1 {
0473         bus-width = <4>;
0474         cap-sd-highspeed;
0475         keep-power-in-suspend;
0476         mmc-pwrseq = <&sdio_pwrseq>;
0477         non-removable;
0478         pinctrl-names = "default";
0479         pinctrl-0 = <&sd1_clk>, <&sd1_cmd>, <&sd1_bus4>;
0480         vqmmc-supply = <&vccio_wl>;
0481         #address-cells = <1>;
0482         #size-cells = <0>;
0483         status = "okay";
0484 
0485         brcmf: wifi@1 {
0486                 reg = <1>;
0487                 compatible = "brcm,bcm4329-fmac";
0488                 interrupt-parent = <&gpio3>;
0489                 interrupts = <RK_PD2 IRQ_TYPE_NONE>;
0490                 interrupt-names = "host-wake";
0491                 brcm,drive-strength = <5>;
0492                 pinctrl-names = "default";
0493                 pinctrl-0 = <&wifi_host_wake>;
0494         };
0495 };
0496 
0497 &pwm1 {
0498         status = "okay";
0499 };
0500 
0501 &pinctrl {
0502         pcfg_output_high: pcfg-output-high {
0503                 output-high;
0504         };
0505 
0506         pcfg_output_low: pcfg-output-low {
0507                 output-low;
0508         };
0509 
0510         act8846 {
0511                 dvs0_ctl: dvs0-ctl {
0512                         rockchip,pins = <3 RK_PD3 RK_FUNC_GPIO &pcfg_output_low>;
0513                 };
0514 
0515                 pmic_int: pmic-int {
0516                         rockchip,pins = <0 RK_PB3 RK_FUNC_GPIO &pcfg_pull_up>;
0517                 };
0518         };
0519 
0520         bq24196 {
0521                 charger_int: charger-int {
0522                         rockchip,pins = <0 RK_PD7 RK_FUNC_GPIO &pcfg_pull_up>;
0523                 };
0524 
0525                 /* pin hog to make it select usb profile */
0526                 chg_ctl: chg-ctl {
0527                         rockchip,pins = <0 RK_PA1 RK_FUNC_GPIO &pcfg_output_high>;
0528                 };
0529 
0530                 /* low: charging, high: complete, fault: blinking */
0531                 chg_det: chg-det {
0532                         rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>;
0533                 };
0534 
0535                 /* charging enabled when pin low and register set */
0536                 chg_en: chg-en {
0537                         rockchip,pins = <0 RK_PC1 RK_FUNC_GPIO &pcfg_output_low>;
0538                 };
0539 
0540                 /* bq29196 powergood (when low) signal */
0541                 dc_det: dc-det {
0542                         rockchip,pins = <0 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
0543                 };
0544 
0545                 /* wire bq24196 otg pin to high, to enable 500mA charging */
0546                 otg_en: otg-en {
0547                         rockchip,pins = <0 RK_PB1 RK_FUNC_GPIO &pcfg_output_high>;
0548                 };
0549         };
0550 
0551         camera {
0552                 cif0_pdn: cif0-pdn {
0553                         rockchip,pins = <3 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>;
0554                 };
0555 
0556                 cif1_pdn: cif1-pdn {
0557                         rockchip,pins = <3 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>;
0558                 };
0559 
0560                 cif_avdd_en: cif-avdd-en {
0561                         rockchip,pins = <1 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>;
0562                 };
0563         };
0564 
0565         display {
0566                 lcd_cs: lcd-cs {
0567                         rockchip,pins = <3 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>;
0568                 };
0569 
0570                 lcd_en: lcd-en {
0571                         rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>;
0572                 };
0573         };
0574 
0575         ft5606 {
0576                 tp_int: tp-int {
0577                         rockchip,pins = <1 RK_PB7 RK_FUNC_GPIO &pcfg_pull_up>;
0578                 };
0579 
0580                 tp_rst: tp-rst {
0581                         rockchip,pins = <0 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>;
0582                 };
0583         };
0584 
0585         hdmi {
0586                 hdmi_int: hdmi-int {
0587                         rockchip,pins = <2 RK_PD6 RK_FUNC_GPIO &pcfg_pull_up>;
0588                 };
0589 
0590                 hdmi_rst: hdmi-rst {
0591                         rockchip,pins = <3 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
0592                 };
0593         };
0594 
0595         hym8563 {
0596                 rtc_int: rtc-int {
0597                         rockchip,pins = <0 RK_PB5 RK_FUNC_GPIO &pcfg_pull_up>;
0598                 };
0599         };
0600 
0601         keys {
0602                 pwr_hold: pwr-hold {
0603                         rockchip,pins = <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_up>;
0604                 };
0605 
0606                 pwr_key: pwr-key {
0607                         rockchip,pins = <0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up>;
0608                 };
0609         };
0610 
0611         lis3de {
0612                 gsensor_int: gsensor-int {
0613                         rockchip,pins = <0 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>;
0614                 };
0615         };
0616 
0617         mmc {
0618                 sdmmc_pwr: sdmmc-pwr {
0619                         rockchip,pins = <3 RK_PA1 RK_FUNC_GPIO &pcfg_pull_none>;
0620                 };
0621         };
0622 
0623         tmp108 {
0624                 tmp_alrt: tmp-alrt {
0625                         rockchip,pins = <1 RK_PA7 RK_FUNC_GPIO &pcfg_pull_none>;
0626                 };
0627         };
0628 
0629         usb {
0630                 v5_drv: v5-drv {
0631                         rockchip,pins = <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>;
0632                 };
0633 
0634                 otg_drv: otg-drv {
0635                         rockchip,pins = <3 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>;
0636                 };
0637 
0638                 usb_int: usb-int {
0639                         rockchip,pins = <0 RK_PA7 RK_FUNC_GPIO &pcfg_pull_up>;
0640                 };
0641         };
0642 
0643         rk903 {
0644                 bt_host_wake: bt-host-wake {
0645                         rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>;
0646                 };
0647 
0648                 bt_reg_on: bt-reg-on {
0649                         rockchip,pins = <3 RK_PC7 RK_FUNC_GPIO &pcfg_pull_none>;
0650                 };
0651 
0652                 /* pin hog to pull the reset high */
0653                 bt_rst: bt-rst {
0654                         rockchip,pins = <3 RK_PD1 RK_FUNC_GPIO &pcfg_output_high>;
0655                 };
0656 
0657                 bt_wake: bt-wake {
0658                         rockchip,pins = <3 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>;
0659                 };
0660 
0661                 wifi_host_wake: wifi-host-wake {
0662                         rockchip,pins = <3 RK_PD2 RK_FUNC_GPIO &pcfg_pull_up>;
0663                 };
0664 
0665                 wifi_reg_on: wifi-reg-on {
0666                         rockchip,pins = <3 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>;
0667                 };
0668         };
0669 };
0670 
0671 &saradc {
0672         vref-supply = <&vcc_18>;
0673         status = "okay";
0674 };
0675 
0676 &spdif {
0677         status = "okay";
0678 };
0679 
0680 &uart0 {
0681         pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>;
0682         status = "okay";
0683 
0684         bluetooth {
0685                 compatible = "brcm,bcm43438-bt";
0686                 max-speed = <2000000>;
0687                 device-wakeup-gpios = <&gpio3 RK_PC6 GPIO_ACTIVE_HIGH>;
0688                 host-wakeup-gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_HIGH>;
0689                 shutdown-gpios = <&gpio3 RK_PC7 GPIO_ACTIVE_HIGH>;
0690                 pinctrl-names = "default";
0691                 pinctrl-0 = <&bt_host_wake &bt_reg_on &bt_rst &bt_wake>;
0692         };
0693 };
0694 
0695 &uart1 {
0696         status = "okay";
0697 };
0698 
0699 &uart2 {
0700         status = "okay";
0701 };
0702 
0703 &uart3 {
0704         pinctrl-0 = <&uart3_xfer &uart3_cts &uart3_rts>;
0705         status = "okay";
0706 };
0707 
0708 &usbphy {
0709         status = "okay";
0710 };
0711 
0712 &usb_host {
0713         status = "okay";
0714 };
0715 
0716 &usb_otg {
0717         status = "okay";
0718 };
0719 
0720 &vop0 {
0721         status = "okay";
0722 };
0723 
0724 &vop0_out {
0725         vop0_out_lvds: endpoint {
0726                 remote-endpoint = <&lvds_in_vop0>;
0727         };
0728 };
0729 
0730 &vop1 {
0731         pinctrl-names = "default";
0732         pinctrl-0 = <&lcdc1_dclk &lcdc1_den &lcdc1_hsync
0733                      &lcdc1_vsync &lcdc1_rgb24>;
0734         status = "okay";
0735 };
0736 
0737 &wdt {
0738         status = "okay";
0739 };