arm: dts: rk3288-evb: modify panel to edp_panel
[firefly-linux-kernel-4.4.55.git] / arch / arm / boot / dts / rk3128-box.dts
index 41ac561944d56c0b34f41a935de09c58634ed162..bcc676e9a6e809f852344c934e8c581a8003b6a1 100755 (executable)
@@ -1,15 +1,29 @@
+/dts-v1/;
+
+#include "rk3128.dtsi"
 #include "rk312x-sdk.dtsi"
 #include "lcd-box.dtsi"
 #include <dt-bindings/input/input.h>
 
 / {
         compatible = "rockchip,rk3128";
+        gpio_poweroff {
+               compatible = "gpio-poweroff";
+               gpios = <&gpio1 GPIO_A2 GPIO_ACTIVE_LOW>;
+       };
        wireless-wlan {
                compatible = "wlan-platdata";
 
+               /* wifi_chip_type - wifi chip define
+               * bcmwifi ==> like ap6xxx, rk90, ...x;
+               * rtkwifi ==> like rtl8188xx, rtl8723xx, ...;
+               * esp8089 ==> esp8089;
+               * other   ==> for other wifi;
+               */
                wifi_chip_type = "esp8089";
                sdio_vref = <0>; //1800mv or 3300mv
 
+               //keep_wifi_power_on;
                //power_ctrl_by_pmu;
                //power_pmu_regulator = "act_ldo3";
                //power_pmu_enable_level = <1>; //1->HIGH, 0->LOW
                dais {
                        dai0 {
                                audio-codec = <&codec_hdmi_spdif>;
-                               i2s-controller = <&spdif>;
+                               audio-controller = <&spdif>;
                        };
                };
        };
-
+       power-led {
+               compatible = "gpio-leds";
+               power {
+                       gpios = <&gpio0 GPIO_B0 GPIO_ACTIVE_LOW>;
+                       default-state = "on";
+               };
+               work {
+                       gpios = <&gpio0 GPIO_D2 GPIO_ACTIVE_HIGH>;
+                       default-state = "on";
+               };
+       };
        usb_control {
                compatible = "rockchip,rk3126-usb-control";
                host_drv_gpio = <&gpio3 GPIO_C4 GPIO_ACTIVE_LOW>;
                /*0 - Normal, 1 - Force Host, 2 - Force Device*/
 //             rockchip,usb-mode = <1>;
        };
-        rockchip_suspend {
+
+       rockchip_suspend: rockchip_suspend {
                 rockchip,ctrbits = <
                         (0
                         |RKPM_CTR_PWR_DMNS
                         |RKPM_CTR_GTCLKS
                         |RKPM_CTR_PLLS
+                        //|RKPM_CTR_ARMOFF_LPMD
+                        |RKPM_CTR_DDR
                         |RKPM_CTR_IDLESRAM_MD
                         |RKPM_CTR_DDR
-                        |RKPM_CTR_VOLTS
-                        |RKPM_CTR_VOL_PWM1
-                        |RKPM_CTR_VOL_PWM2
+                        //|RKPM_CTR_BUS_IDLE
+                       //|RKPM_CTR_VOLTS
+                       //|RKPM_CTR_VOL_PWM1
+                       //|RKPM_CTR_VOL_PWM2
                         )
                 >;
+               rockchip,pmic-suspend_gpios = <
+                       0
+                        >;
         };
 };
 
        &uart1{
                status = "okay";
                dma-names = "!tx", "!rx";
-       pinctrl-0 = <&uart1_xfer &uart1_cts>;
+               pinctrl-0 = <&uart1_xfer &uart1_cts>;
 };
 
 &pwm2 {
 
 &fb {
        rockchip,disp-mode = <NO_DUAL>;
-       rockchip,uboot-logo-on = <0>;
+       rockchip,disp-policy = <DISPLAY_POLICY_BOX>;
+       rockchip,uboot-logo-on = <1>;
 };
 
 &lcdc {
 };
 
 &sdmmc {
-       status = "disabled";
+       status = "okay";
        cd-gpios = <&gpio1 GPIO_C1 GPIO_ACTIVE_HIGH>;/*CD GPIO*/
 };