ARM: sunxi: DT: convert DTs to use common GPIOs includes
[firefly-linux-kernel-4.4.55.git] / arch / arm / boot / dts / sun7i-a20-cubieboard2.dts
index 809d448ecf301717e25d6c3837b3bb4941712cfb..27ca1a16ca91fb43bccb60d6bd3e18a6f454da82 100644 (file)
@@ -15,6 +15,8 @@
 #include "sun7i-a20.dtsi"
 #include "sunxi-common-regulators.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
+
 / {
        model = "Cubietech Cubieboard2";
        compatible = "cubietech,cubieboard2", "allwinner,sun7i-a20";
@@ -25,7 +27,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";
                };
 
                blue {
                        label = "cubieboard2:blue:usr";
-                       gpios = <&pio 7 21 0>;
+                       gpios = <&pio 7 21 GPIO_ACTIVE_HIGH>;
                };
 
                green {
                        label = "cubieboard2:green:usr";
-                       gpios = <&pio 7 20 0>;
+                       gpios = <&pio 7 20 GPIO_ACTIVE_HIGH>;
                };
        };