rockchip: add gpio_poweroff driver
[firefly-linux-kernel-4.4.55.git] / arch / arm / boot / dts / rk3126-86v.dts
index a136b978b7c621e6a9e67d32c34794c06c5114f8..e4d46fe0b7bfe72a443b9108e2d05ef404c9cb67 100644 (file)
                 enable-gpios = <&gpio3 GPIO_C1 GPIO_ACTIVE_HIGH>;
         };
 
+       gpio_poweroff {
+               compatible = "gpio-poweroff";
+               gpios = <&gpio1 GPIO_A2 GPIO_ACTIVE_LOW>;
+       };
 
        usb_control {
                compatible = "rockchip,rk3126-usb-control";
                compatible = "rk30-adc-battery";
                 io-channels = <&adc 0>;
                dc_det_gpio = <&gpio2 GPIO_B1 GPIO_ACTIVE_LOW>;
-               pwr_hold = <&gpio1 GPIO_A2 GPIO_ACTIVE_LOW>;
                //bat_low_gpio = <&gpio0 GPIO_A7 GPIO_ACTIVE_LOW>;
                //chg_ok_gpio = <&gpio0 GPIO_B1 GPIO_ACTIVE_HIGH>;
                bat_table = <0 0 0 0 100 100
 
 &dwc_control_usb {
        usb_uart {
-               status = "disabled";
+               status = "ok";
        };
 };