arm: dts: rk3288-evb-act8846: add power supply for eDP
[firefly-linux-kernel-4.4.55.git] / arch / arm / boot / dts / rk3288-evb-act8846.dts
index 81be0f7f794960040e6814aceef764c4059c5d07..ec2b3219bf608bd5739c27602e06bdec7cb9eab0 100644 (file)
 
 /dts-v1/;
 #include "rk3288-evb.dtsi"
+#include "rk3288-android.dtsi"
 
 / {
        compatible = "rockchip,rk3288-evb-act8846", "rockchip,rk3288";
 
+       sdio_pwrseq: sdio-pwrseq {
+               compatible = "mmc-pwrseq-simple";
+               clocks = <&hym8563>;
+               clock-names = "ext_clock";
+               pinctrl-names = "default";
+               pinctrl-0 = <&wifi_enable_h>;
+
+               /*
+                * On the module itself this is one of these (depending
+                * on the actual card populated):
+                * - SDIO_RESET_L_WL_REG_ON
+                * - PDN (power down when low)
+                */
+               reset-gpios = <&gpio4 28 GPIO_ACTIVE_LOW>;
+       };
+
        vcc_lcd: vcc-lcd {
                compatible = "regulator-fixed";
                enable-active-high;
        cpu0-supply = <&vdd_cpu>;
 };
 
+&edp {
+       vcc-supply = <&vdd10_lcd>;
+       vccio-supply = <&vcc18_lcd>;
+};
+
 &gpu {
        status = "okay";
        mali-supply = <&vdd_gpu>;
                regulator-enable-ramp-delay = <300>;
                regulator-ramp-delay = <8000>;
                vin-supply = <&vcc_sys>;
+               regulator-state-mem {
+                       regulator-off-in-suspend;
+               };
        };
 
        vdd_gpu: syr828@41 {
                regulator-min-microvolt = <850000>;
                regulator-max-microvolt = <1350000>;
                regulator-always-on;
+               regulator-ramp-delay = <6000>;
                vin-supply = <&vcc_sys>;
+               regulator-state-mem {
+                       regulator-off-in-suspend;
+               };
        };
 
-       hym8563@51 {
+       hym8563: hym8563@51 {
                compatible = "haoyu,hym8563";
                reg = <0x51>;
 
 
                        vdd_log: REG3 {
                                regulator-name = "VDD_LOG";
-                               regulator-min-microvolt = <1000000>;
-                               regulator-max-microvolt = <1000000>;
+                               regulator-min-microvolt = <1150000>;
+                               regulator-max-microvolt = <1150000>;
                                regulator-always-on;
                        };
 
        };
 };
 
+&i2c1 {
+       status = "okay";
+       clock-frequency = <400000>;
+
+       mpu6050@68 {
+               compatible = "invensense,mpu6050";
+               status = "okay";
+               pinctrl-names = "default";
+               pinctrl-0 = <&mpu6050_irq_gpio>;
+               reg = <0x68>;
+               irq-gpio = <&gpio8 0 IRQ_TYPE_EDGE_RISING>;
+               mpu-int_config = <0x10>;
+               mpu-level_shifter = <0>;
+               mpu-orientation = <0 1 0 1 0 0 0 0 1>;
+               orientation-x= <0>;
+               orientation-y= <1>;
+               orientation-z= <0>;
+               support-hw-poweroff = <1>;
+               mpu-debug = <1>;
+       };
+};
+
 &lvds_panel {
        power-supply = <&vcc_lcd>;
 };
                        rockchip,pins = <7 9 RK_FUNC_GPIO &pcfg_pull_none>;
                };
        };
+
+       mpu6050 {
+               mpu6050_irq_gpio: mpu6050-irq-gpio {
+                       rockchip,pins = <8 0 RK_FUNC_GPIO &pcfg_pull_none>;
+               };
+       };
 };