ARM: sunxi: DT: convert DTs to use common GPIOs includes
[firefly-linux-kernel-4.4.55.git] / arch / arm / boot / dts / sun4i-a10-a1000.dts
index 3bb636978582651f5c8db4515b546f51fcfafd2a..532ab3bd97353e51236389f600df59b43fd5b992 100644 (file)
@@ -51,6 +51,8 @@
 #include "sun4i-a10.dtsi"
 #include "sunxi-common-regulators.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
+
 / {
        model = "Mele A1000";
        compatible = "mele,a1000", "allwinner,sun4i-a10";
@@ -77,7 +79,7 @@
                        pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>;
                        vmmc-supply = <&reg_vcc3v3>;
                        bus-width = <4>;
-                       cd-gpios = <&pio 7 1 0>; /* PH1 */
+                       cd-gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>; /* PH1 */
                        cd-inverted;
                        status = "okay";
                };
 
                red {
                        label = "a1000:red:usr";
-                       gpios = <&pio 7 10 0>;
+                       gpios = <&pio 7 10 GPIO_ACTIVE_HIGH>;
                };
 
                blue {
                        label = "a1000:blue:usr";
-                       gpios = <&pio 7 20 0>;
+                       gpios = <&pio 7 20 GPIO_ACTIVE_HIGH>;
                };
        };
 
                regulator-min-microvolt = <3300000>;
                regulator-max-microvolt = <3300000>;
                enable-active-high;
-               gpio = <&pio 7 15 0>;
+               gpio = <&pio 7 15 GPIO_ACTIVE_HIGH>;
        };
 
        reg_usb1_vbus: usb1-vbus {