]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
ARM: at91: dt: switch to standard GPIO flag defines.
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Wed, 24 Apr 2013 00:34:25 +0000 (08:34 +0800)
committerNicolas Ferre <nicolas.ferre@atmel.com>
Fri, 17 May 2013 09:27:49 +0000 (11:27 +0200)
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
33 files changed:
arch/arm/boot/dts/aks-cdu.dts
arch/arm/boot/dts/animeo_ip.dts
arch/arm/boot/dts/at91-ariag25.dts
arch/arm/boot/dts/at91rm9200.dtsi
arch/arm/boot/dts/at91rm9200ek.dts
arch/arm/boot/dts/at91sam9260.dtsi
arch/arm/boot/dts/at91sam9263.dtsi
arch/arm/boot/dts/at91sam9263ek.dts
arch/arm/boot/dts/at91sam9g20ek.dts
arch/arm/boot/dts/at91sam9g20ek_2mmc.dts
arch/arm/boot/dts/at91sam9g20ek_common.dtsi
arch/arm/boot/dts/at91sam9g45.dtsi
arch/arm/boot/dts/at91sam9m10g45ek.dts
arch/arm/boot/dts/at91sam9n12.dtsi
arch/arm/boot/dts/at91sam9n12ek.dts
arch/arm/boot/dts/at91sam9x5.dtsi
arch/arm/boot/dts/at91sam9x5cm.dtsi
arch/arm/boot/dts/at91sam9x5ek.dtsi
arch/arm/boot/dts/ethernut5.dts
arch/arm/boot/dts/evk-pro3.dts
arch/arm/boot/dts/kizbox.dts
arch/arm/boot/dts/mpa1600.dts
arch/arm/boot/dts/pm9g45.dts
arch/arm/boot/dts/sama5d3.dtsi
arch/arm/boot/dts/sama5d31ek.dts
arch/arm/boot/dts/sama5d34ek.dts
arch/arm/boot/dts/sama5d35ek.dts
arch/arm/boot/dts/sama5d3xcm.dtsi
arch/arm/boot/dts/sama5d3xmb.dtsi
arch/arm/boot/dts/tny_a9263.dts
arch/arm/boot/dts/usb_a9260_common.dtsi
arch/arm/boot/dts/usb_a9263.dts
arch/arm/boot/dts/usb_a9g20-dab-mmx.dtsi

index 08b82a420ff838575e76b3bb36a4658065a2229f..54cb5cf8604aaeb2a164155ea40a651a47690e8c 100644 (file)
@@ -46,7 +46,7 @@
                        };
 
                        usb1: gadget@fffa4000 {
-                               atmel,vbus-gpio = <&pioC 15 0>;
+                               atmel,vbus-gpio = <&pioC 15 GPIO_ACTIVE_HIGH>;
                                status = "okay";
                        };
                };
                compatible = "gpio-leds";
 
                red {
-                       gpios = <&pioC 10 0>;
+                       gpios = <&pioC 10 GPIO_ACTIVE_HIGH>;
                        linux,default-trigger = "none";
                };
 
                green {
-                       gpios = <&pioA 5 1>;
+                       gpios = <&pioA 5 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "none";
                        default-state = "on";
                };
 
                yellow {
-                       gpios = <&pioB 20 1>;
+                       gpios = <&pioB 20 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "none";
                };
 
                blue {
-                       gpios = <&pioB 21 1>;
+                       gpios = <&pioB 21 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "none";
                };
        };
index b7658920cfd53fb4376d640a4ae5d921e8432888..3a1de9eb51112f2eb0c6eb00b5b20026985800b5 100644 (file)
 
                usb0: ohci@00500000 {
                        num-ports = <2>;
-                       atmel,vbus-gpio = <&pioB 15 1>;
+                       atmel,vbus-gpio = <&pioB 15 GPIO_ACTIVE_LOW>;
                        status = "okay";
                };
        };
 
                power_green {
                        label = "power_green";
-                       gpios = <&pioC 17 0>;
+                       gpios = <&pioC 17 GPIO_ACTIVE_HIGH>;
                        linux,default-trigger = "heartbeat";
                };
 
                power_red {
                        label = "power_red";
-                       gpios = <&pioA 2 0>;
+                       gpios = <&pioA 2 GPIO_ACTIVE_HIGH>;
                };
 
                tx_green {
                        label = "tx_green";
-                       gpios = <&pioC 19 0>;
+                       gpios = <&pioC 19 GPIO_ACTIVE_HIGH>;
                };
 
                tx_red {
                        label = "tx_red";
-                       gpios = <&pioC 18 0>;
+                       gpios = <&pioC 18 GPIO_ACTIVE_HIGH>;
                };
        };
 
 
                keyswitch_in {
                        label = "keyswitch_in";
-                       gpios = <&pioB 1 0>;
+                       gpios = <&pioB 1 GPIO_ACTIVE_HIGH>;
                        linux,code = <28>;
                        gpio-key,wakeup;
                };
 
                error_in {
                        label = "error_in";
-                       gpios = <&pioB 2 0>;
+                       gpios = <&pioB 2 GPIO_ACTIVE_HIGH>;
                        linux,code = <29>;
                        gpio-key,wakeup;
                };
 
                btn {
                        label = "btn";
-                       gpios = <&pioC 23 0>;
+                       gpios = <&pioC 23 GPIO_ACTIVE_HIGH>;
                        linux,code = <31>;
                        gpio-key,wakeup;
                };
index 09beeb4a72f505690c96d1725cfe8e750c643776..5ede7678f2985e28e12b0d2777674993cc768434 100644 (file)
                /* little green LED in middle of Aria G25 module */
                aria_led {
                        label = "aria_led";
-                       gpios = <&pioB 8 0>; /* PB8 */
+                       gpios = <&pioB 8 GPIO_ACTIVE_HIGH>; /* PB8 */
                        linux,default-trigger = "heartbeat";
                };
 
 
        onewire@0 {
                compatible = "w1-gpio";
-               gpios = <&pioA 21 1>;
+               gpios = <&pioA 21 GPIO_ACTIVE_LOW>;
                pinctrl-names = "default";
                pinctrl-0 = <&pinctrl_w1_0>;
        };
index 6329679c6920ea1d995da9a88603b20a435d5c83..7ebfe6c6c360a17cbfa5a254e467997bc362a538 100644 (file)
@@ -11,6 +11,7 @@
  */
 
 #include "skeleton.dtsi"
+#include <dt-bindings/gpio/gpio.h>
 
 / {
        model = "Atmel AT91RM9200 family SoC";
                        pinctrl-names = "default";
                        pinctrl-0 = <&pinctrl_nand>;
                        nand-ecc-mode = "soft";
-                       gpios = <&pioC 2 0
+                       gpios = <&pioC 2 GPIO_ACTIVE_HIGH
                                 0
-                                &pioB 1 0
+                                &pioB 1 GPIO_ACTIVE_HIGH
                                >;
                        status = "disabled";
                };
 
        i2c@0 {
                compatible = "i2c-gpio";
-               gpios = <&pioA 25 0 /* sda */
-                        &pioA 26 0 /* scl */
+               gpios = <&pioA 25 GPIO_ACTIVE_HIGH /* sda */
+                        &pioA 26 GPIO_ACTIVE_HIGH /* scl */
                        >;
                i2c-gpio,sda-open-drain;
                i2c-gpio,scl-open-drain;
index 5dffeb3aca33dbc84c86a69de8e57048ba106ad2..14058125d123af81516b2a86dfab14a2b04a4624 100644 (file)
@@ -50,7 +50,7 @@
                        };
 
                        usb1: gadget@fffb0000 {
-                               atmel,vbus-gpio = <&pioD 4 0>;
+                               atmel,vbus-gpio = <&pioD 4 GPIO_ACTIVE_HIGH>;
                                status = "okay";
                        };
                };
 
                ds2 {
                        label = "green";
-                       gpios = <&pioB 0 0x1>;
+                       gpios = <&pioB 0 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "mmc0";
                };
 
                ds4 {
                        label = "yellow";
-                       gpios = <&pioB 1 0x1>;
+                       gpios = <&pioB 1 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "heartbeat";
                };
 
                ds6 {
                        label = "red";
-                       gpios = <&pioB 2 0x1>;
+                       gpios = <&pioB 2 GPIO_ACTIVE_LOW>;
                };
        };
 };
index b130b3eed1e5ea9323fa4f310e0ae76fd3045a48..717625d003efe9fdc0e83f2bdf62ab88001b52dc 100644 (file)
@@ -9,6 +9,7 @@
  */
 
 #include "skeleton.dtsi"
+#include <dt-bindings/gpio/gpio.h>
 
 / {
        model = "Atmel AT91SAM9260 family SoC";
                        atmel,nand-cmd-offset = <22>;
                        pinctrl-names = "default";
                        pinctrl-0 = <&pinctrl_nand>;
-                       gpios = <&pioC 13 0
-                                &pioC 14 0
+                       gpios = <&pioC 13 GPIO_ACTIVE_HIGH
+                                &pioC 14 GPIO_ACTIVE_HIGH
                                 0
                                >;
                        status = "disabled";
 
        i2c@0 {
                compatible = "i2c-gpio";
-               gpios = <&pioA 23 0 /* sda */
-                        &pioA 24 0 /* scl */
+               gpios = <&pioA 23 GPIO_ACTIVE_HIGH /* sda */
+                        &pioA 24 GPIO_ACTIVE_HIGH /* scl */
                        >;
                i2c-gpio,sda-open-drain;
                i2c-gpio,scl-open-drain;
index 89f4e9422258c8395e9789687104ea57230125b0..5edfadf2048266800e6ec16ca49a1edd2d04660e 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #include "skeleton.dtsi"
+#include <dt-bindings/gpio/gpio.h>
 
 / {
        model = "Atmel AT91SAM9263 family SoC";
                        atmel,nand-cmd-offset = <22>;
                        pinctrl-names = "default";
                        pinctrl-0 = <&pinctrl_nand>;
-                       gpios = <&pioA 22 0
-                                &pioD 15 0
+                       gpios = <&pioA 22 GPIO_ACTIVE_HIGH
+                                &pioD 15 GPIO_ACTIVE_HIGH
                                 0
                                >;
                        status = "disabled";
 
        i2c@0 {
                compatible = "i2c-gpio";
-               gpios = <&pioB 4 0 /* sda */
-                        &pioB 5 0 /* scl */
+               gpios = <&pioB 4 GPIO_ACTIVE_HIGH /* sda */
+                        &pioB 5 GPIO_ACTIVE_HIGH /* scl */
                        >;
                i2c-gpio,sda-open-drain;
                i2c-gpio,scl-open-drain;
index 6b646d47d50473c66260656730a3cff111f24135..e1942ec04af3f1b35dd61c7cf7a302f11738da90 100644 (file)
@@ -51,7 +51,7 @@
                        };
 
                        usb1: gadget@fff78000 {
-                               atmel,vbus-gpio = <&pioA 25 0>;
+                               atmel,vbus-gpio = <&pioA 25 GPIO_ACTIVE_HIGH>;
                                status = "okay";
                        };
 
@@ -65,8 +65,8 @@
                                slot@0 {
                                        reg = <0>;
                                        bus-width = <4>;
-                                       cd-gpios = <&pioE 18 0>;
-                                       wp-gpios = <&pioE 19 0>;
+                                       cd-gpios = <&pioE 18 GPIO_ACTIVE_HIGH>;
+                                       wp-gpios = <&pioE 19 GPIO_ACTIVE_HIGH>;
                                };
                        };
 
                usb0: ohci@00a00000 {
                        num-ports = <2>;
                        status = "okay";
-                       atmel,vbus-gpio = <&pioA 24 0
-                                          &pioA 21 0
+                       atmel,vbus-gpio = <&pioA 24 GPIO_ACTIVE_HIGH
+                                          &pioA 21 GPIO_ACTIVE_HIGH
                                          >;
                };
        };
 
                d3 {
                        label = "d3";
-                       gpios = <&pioB 7 0>;
+                       gpios = <&pioB 7 GPIO_ACTIVE_HIGH>;
                        linux,default-trigger = "heartbeat";
                };
 
                d2 {
                        label = "d2";
-                       gpios = <&pioC 29 1>;
+                       gpios = <&pioC 29 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "nand-disk";
                };
        };
 
                left_click {
                        label = "left_click";
-                       gpios = <&pioC 5 1>;
+                       gpios = <&pioC 5 GPIO_ACTIVE_LOW>;
                        linux,code = <272>;
                        gpio-key,wakeup;
                };
 
                right_click {
                        label = "right_click";
-                       gpios = <&pioC 4 1>;
+                       gpios = <&pioC 4 GPIO_ACTIVE_LOW>;
                        linux,code = <273>;
                        gpio-key,wakeup;
                };
index 3f15a3fe0f9f02d5d035c8b534438981cebde522..bbfd753112c92f350bc9a34985ed2e2fbbcd8532 100644 (file)
 
                ds1 {
                        label = "ds1";
-                       gpios = <&pioA 9 0>;
+                       gpios = <&pioA 9 GPIO_ACTIVE_HIGH>;
                        linux,default-trigger = "heartbeat";
                };
 
                ds5 {
                        label = "ds5";
-                       gpios = <&pioA 6 1>;
+                       gpios = <&pioA 6 GPIO_ACTIVE_LOW>;
                };
        };
 };
index 942aa109af384f666c6952e13572fb27923687ee..ec108b98c04ed4d9affe2777cfdf3303c722ee33 100644 (file)
@@ -23,7 +23,7 @@
                                slot@0 {
                                        reg = <0>;
                                        bus-width = <4>;
-                                       cd-gpios = <&pioC 2 0>;
+                                       cd-gpios = <&pioC 2 GPIO_ACTIVE_HIGH>;
                                };
                        };
 
 
                ds1 {
                        label = "ds1";
-                       gpios = <&pioB 9 0>;
+                       gpios = <&pioB 9 GPIO_ACTIVE_HIGH>;
                        linux,default-trigger = "heartbeat";
                };
 
                ds5 {
                        label = "ds5";
-                       gpios = <&pioB 8 1>;
+                       gpios = <&pioB 8 GPIO_ACTIVE_LOW>;
                };
        };
 };
index 253960f5c369da926900eca0b275684bb0328005..79338393caf94ad7c3765ff8c6ea4c90788dd886 100644 (file)
@@ -65,7 +65,7 @@
                        };
 
                        usb1: gadget@fffa4000 {
-                               atmel,vbus-gpio = <&pioC 5 0>;
+                               atmel,vbus-gpio = <&pioC 5 GPIO_ACTIVE_HIGH>;
                                status = "okay";
                        };
 
@@ -79,7 +79,7 @@
                                slot@1 {
                                        reg = <1>;
                                        bus-width = <4>;
-                                       cd-gpios = <&pioC 9 0>;
+                                       cd-gpios = <&pioC 9 GPIO_ACTIVE_HIGH>;
                                };
                        };
 
 
                btn3 {
                        label = "Button 3";
-                       gpios = <&pioA 30 1>;
+                       gpios = <&pioA 30 GPIO_ACTIVE_LOW>;
                        linux,code = <0x103>;
                        gpio-key,wakeup;
                };
 
                btn4 {
                        label = "Button 4";
-                       gpios = <&pioA 31 1>;
+                       gpios = <&pioA 31 GPIO_ACTIVE_LOW>;
                        linux,code = <0x104>;
                        gpio-key,wakeup;
                };
index 18ea7610afeea2e4f08304712b709343a07f3a00..5d7c1f79dc4a79b0b680d87994b41656f6a35893 100644 (file)
@@ -10,6 +10,7 @@
  */
 
 #include "skeleton.dtsi"
+#include <dt-bindings/gpio/gpio.h>
 
 / {
        model = "Atmel AT91SAM9G45 family SoC";
                        atmel,nand-cmd-offset = <22>;
                        pinctrl-names = "default";
                        pinctrl-0 = <&pinctrl_nand>;
-                       gpios = <&pioC 8 0
-                                &pioC 14 0
+                       gpios = <&pioC 8 GPIO_ACTIVE_HIGH
+                                &pioC 14 GPIO_ACTIVE_HIGH
                                 0
                                >;
                        status = "disabled";
 
        i2c@0 {
                compatible = "i2c-gpio";
-               gpios = <&pioA 20 0 /* sda */
-                        &pioA 21 0 /* scl */
+               gpios = <&pioA 20 GPIO_ACTIVE_HIGH /* sda */
+                        &pioA 21 GPIO_ACTIVE_HIGH /* scl */
                        >;
                i2c-gpio,sda-open-drain;
                i2c-gpio,scl-open-drain;
index ba1205d9e641d98baee7cf6c90371789c2573d1e..85e9c5e8b23f20ea8dde7c585ab45fe2856dd040 100644 (file)
@@ -68,7 +68,7 @@
                                slot@0 {
                                        reg = <0>;
                                        bus-width = <4>;
-                                       cd-gpios = <&pioD 10 0>;
+                                       cd-gpios = <&pioD 10 GPIO_ACTIVE_HIGH>;
                                };
                        };
 
@@ -81,8 +81,8 @@
                                slot@0 {
                                        reg = <0>;
                                        bus-width = <4>;
-                                       cd-gpios = <&pioD 11 0>;
-                                       wp-gpios = <&pioD 29 0>;
+                                       cd-gpios = <&pioD 11 GPIO_ACTIVE_HIGH>;
+                                       wp-gpios = <&pioD 29 GPIO_ACTIVE_HIGH>;
                                };
                        };
 
                usb0: ohci@00700000 {
                        status = "okay";
                        num-ports = <2>;
-                       atmel,vbus-gpio = <&pioD 1 1
-                                          &pioD 3 1>;
+                       atmel,vbus-gpio = <&pioD 1 GPIO_ACTIVE_LOW
+                                          &pioD 3 GPIO_ACTIVE_LOW>;
                };
 
                usb1: ehci@00800000 {
 
                d8 {
                        label = "d8";
-                       gpios = <&pioD 30 0>;
+                       gpios = <&pioD 30 GPIO_ACTIVE_HIGH>;
                        linux,default-trigger = "heartbeat";
                };
 
                d6 {
                        label = "d6";
-                       gpios = <&pioD 0 1>;
+                       gpios = <&pioD 0 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "nand-disk";
                };
 
                d7 {
                        label = "d7";
-                       gpios = <&pioD 31 1>;
+                       gpios = <&pioD 31 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "mmc0";
                };
        };
 
                left_click {
                        label = "left_click";
-                       gpios = <&pioB 6 1>;
+                       gpios = <&pioB 6 GPIO_ACTIVE_LOW>;
                        linux,code = <272>;
                        gpio-key,wakeup;
                };
 
                right_click {
                        label = "right_click";
-                       gpios = <&pioB 7 1>;
+                       gpios = <&pioB 7 GPIO_ACTIVE_LOW>;
                        linux,code = <273>;
                        gpio-key,wakeup;
                };
 
                left {
                        label = "Joystick Left";
-                       gpios = <&pioB 14 1>;
+                       gpios = <&pioB 14 GPIO_ACTIVE_LOW>;
                        linux,code = <105>;
                };
 
                right {
                        label = "Joystick Right";
-                       gpios = <&pioB 15 1>;
+                       gpios = <&pioB 15 GPIO_ACTIVE_LOW>;
                        linux,code = <106>;
                };
 
                up {
                        label = "Joystick Up";
-                       gpios = <&pioB 16 1>;
+                       gpios = <&pioB 16 GPIO_ACTIVE_LOW>;
                        linux,code = <103>;
                };
 
                down {
                        label = "Joystick Down";
-                       gpios = <&pioB 17 1>;
+                       gpios = <&pioB 17 GPIO_ACTIVE_LOW>;
                        linux,code = <108>;
                };
 
                enter {
                        label = "Joystick Press";
-                       gpios = <&pioB 18 1>;
+                       gpios = <&pioB 18 GPIO_ACTIVE_LOW>;
                        linux,code = <28>;
                };
        };
index e8488700c4b4ffd11936799efab256b86f9d9968..5205403ca1e37ff1663214e1a9d7d403d5e59cf7 100644 (file)
@@ -8,6 +8,7 @@
  */
 
 #include "skeleton.dtsi"
+#include <dt-bindings/gpio/gpio.h>
 
 / {
        model = "Atmel AT91SAM9N12 SoC";
                        atmel,nand-cmd-offset = <22>;
                        pinctrl-names = "default";
                        pinctrl-0 = <&pinctrl_nand>;
-                       gpios = <&pioD 5 0
-                                &pioD 4 0
+                       gpios = <&pioD 5 GPIO_ACTIVE_HIGH
+                                &pioD 4 GPIO_ACTIVE_HIGH
                                 0
                                >;
                        status = "disabled";
 
        i2c@0 {
                compatible = "i2c-gpio";
-               gpios = <&pioA 30 0 /* sda */
-                        &pioA 31 0 /* scl */
+               gpios = <&pioA 30 GPIO_ACTIVE_HIGH /* sda */
+                        &pioA 31 GPIO_ACTIVE_HIGH /* scl */
                        >;
                i2c-gpio,sda-open-drain;
                i2c-gpio,scl-open-drain;
index b9e300e1f8634c6377e1dfb00437ded3754a1153..8eece27044559832e38578ee4def3477d034975f 100644 (file)
@@ -55,7 +55,7 @@
                                slot@0 {
                                        reg = <0>;
                                        bus-width = <4>;
-                                       cd-gpios = <&pioA 7 0>;
+                                       cd-gpios = <&pioA 7 GPIO_ACTIVE_HIGH>;
                                };
                        };
 
 
                d8 {
                        label = "d8";
-                       gpios = <&pioB 4 1>;
+                       gpios = <&pioB 4 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "mmc0";
                };
 
                d9 {
                        label = "d6";
-                       gpios = <&pioB 5 1>;
+                       gpios = <&pioB 5 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "nand-disk";
                };
 
                d10 {
                        label = "d7";
-                       gpios = <&pioB 6 0>;
+                       gpios = <&pioB 6 GPIO_ACTIVE_HIGH>;
                        linux,default-trigger = "heartbeat";
                };
        };
 
                enter {
                        label = "Enter";
-                       gpios = <&pioB 4 1>;
+                       gpios = <&pioB 4 GPIO_ACTIVE_LOW>;
                        linux,code = <28>;
                        gpio-key,wakeup;
                };
index 69b386f8c592a8b3743991cd25ce322d9ed2e0dd..949b8ea2ec0d4a86f48e822e4088d540f320fbc2 100644 (file)
@@ -10,6 +10,7 @@
  */
 
 #include "skeleton.dtsi"
+#include <dt-bindings/gpio/gpio.h>
 
 / {
        model = "Atmel AT91SAM9x5 family SoC";
                        atmel,nand-cmd-offset = <22>;
                        pinctrl-names = "default";
                        pinctrl-0 = <&pinctrl_nand>;
-                       gpios = <&pioD 5 0
-                                &pioD 4 0
+                       gpios = <&pioD 5 GPIO_ACTIVE_HIGH
+                                &pioD 4 GPIO_ACTIVE_HIGH
                                 0
                                >;
                        status = "disabled";
 
        i2c@0 {
                compatible = "i2c-gpio";
-               gpios = <&pioA 30 0 /* sda */
-                        &pioA 31 0 /* scl */
+               gpios = <&pioA 30 GPIO_ACTIVE_HIGH /* sda */
+                        &pioA 31 GPIO_ACTIVE_HIGH /* scl */
                        >;
                i2c-gpio,sda-open-drain;
                i2c-gpio,scl-open-drain;
 
        i2c@1 {
                compatible = "i2c-gpio";
-               gpios = <&pioC 0 0 /* sda */
-                        &pioC 1 0 /* scl */
+               gpios = <&pioC 0 GPIO_ACTIVE_HIGH /* sda */
+                        &pioC 1 GPIO_ACTIVE_HIGH /* scl */
                        >;
                i2c-gpio,sda-open-drain;
                i2c-gpio,scl-open-drain;
 
        i2c@2 {
                compatible = "i2c-gpio";
-               gpios = <&pioB 4 0 /* sda */
-                        &pioB 5 0 /* scl */
+               gpios = <&pioB 4 GPIO_ACTIVE_HIGH /* sda */
+                        &pioB 5 GPIO_ACTIVE_HIGH /* scl */
                        >;
                i2c-gpio,sda-open-drain;
                i2c-gpio,scl-open-drain;
index 347a74a857f62ec1d91b696da027adc14d8f614e..94723c30e99bc002e98d84b1e110e75f4f17252d 100644 (file)
 
                pb18 {
                        label = "pb18";
-                       gpios = <&pioB 18 1>;
+                       gpios = <&pioB 18 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "heartbeat";
                };
 
                pd21 {
                        label = "pd21";
-                       gpios = <&pioD 21 0>;
+                       gpios = <&pioD 21 GPIO_ACTIVE_HIGH>;
                };
        };
 
        1wire_cm {
                compatible = "w1-gpio";
-               gpios = <&pioB 18 0>;
+               gpios = <&pioB 18 GPIO_ACTIVE_HIGH>;
                linux,open-drain;
                pinctrl-names = "default";
                pinctrl-0 = <&pinctrl_1wire_cm>;
index 24781f29fa6137dd6ad1e39c29b5cc375521b834..95f88c7c87f39ad75334ad695800f6f33e42769a 100644 (file)
@@ -27,7 +27,7 @@
                                slot@0 {
                                        reg = <0>;
                                        bus-width = <4>;
-                                       cd-gpios = <&pioD 15 0>;
+                                       cd-gpios = <&pioD 15 GPIO_ACTIVE_HIGH>;
                                };
                        };
 
@@ -40,7 +40,7 @@
                                slot@0 {
                                        reg = <0>;
                                        bus-width = <4>;
-                                       cd-gpios = <&pioD 14 0>;
+                                       cd-gpios = <&pioD 14 GPIO_ACTIVE_HIGH>;
                                };
                        };
 
@@ -86,8 +86,8 @@
                usb0: ohci@00600000 {
                        status = "okay";
                        num-ports = <2>;
-                       atmel,vbus-gpio = <&pioD 19 1
-                                          &pioD 20 1
+                       atmel,vbus-gpio = <&pioD 19 GPIO_ACTIVE_LOW
+                                          &pioD 20 GPIO_ACTIVE_LOW
                                          >;
                };
 
index 2067c6618ba574057735940bbe152159c2641a62..143b6d25bc80e9229dca3e63d5d419ce32c6c80a 100644 (file)
@@ -40,7 +40,7 @@
                        };
 
                        usb1: gadget@fffa4000 {
-                               atmel,vbus-gpio = <&pioC 5 0>;
+                               atmel,vbus-gpio = <&pioC 5 GPIO_ACTIVE_HIGH>;
                                status = "okay";
                        };
                };
@@ -52,7 +52,7 @@
                        status = "okay";
 
                        gpios = <0
-                                &pioC 14 0
+                                &pioC 14 GPIO_ACTIVE_HIGH
                                 0
                                >;
 
index eae2cd7d8d49fe816b27524a4352544e35c60e46..4d829685fdfb1d026df02a0a16b308f189b970bb 100644 (file)
@@ -31,7 +31,7 @@
                        };
 
                        usb1: gadget@fffa4000 {
-                               atmel,vbus-gpio = <&pioC 5 0>;
+                               atmel,vbus-gpio = <&pioC 5 GPIO_ACTIVE_HIGH>;
                                status = "okay";
                        };
 
index 8328fedcb15525d4d46c2305ef912914fe7e66a1..02df1914a47c8f971cbe8fb852cea0963833bcff 100644 (file)
 
                led1g {
                        label = "led1:green";
-                       gpios = <&pioB 0 1>;
+                       gpios = <&pioB 0 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "none";
                };
 
                led1r {
                        label = "led1:red";
-                       gpios = <&pioB 1 1>;
+                       gpios = <&pioB 1 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "none";
                };
 
                led2g {
                        label = "led2:green";
-                       gpios = <&pioB 2 1>;
+                       gpios = <&pioB 2 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "none";
                        default-state = "on";
                };
 
                led2r {
                        label = "led2:red";
-                       gpios = <&pioB 3 1>;
+                       gpios = <&pioB 3 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "none";
                };
        };
 
                reset {
                        label = "reset";
-                       gpios = <&pioB 30 1>;
+                       gpios = <&pioB 30 GPIO_ACTIVE_LOW>;
                        linux,code = <0x100>;
                        gpio-key,wakeup;
                };
 
                mode {
                        label = "mode";
-                       gpios = <&pioB 31 1>;
+                       gpios = <&pioB 31 GPIO_ACTIVE_LOW>;
                        linux,code = <0x101>;
                        gpio-key,wakeup;
                };
index f1b54a254f914d7c0d8c2c66695d26e18efc6a9a..ccf9ea242f72977f56f15cc658d555c063b85150 100644 (file)
@@ -62,7 +62,7 @@
 
                monitor_mute {
                        label = "Monitor mute";
-                       gpios = <&pioC 1 1>;
+                       gpios = <&pioC 1 GPIO_ACTIVE_LOW>;
                        linux,code = <113>;
                };
        };
index 639410b5de6ae03d5e601f422cf6a11ecaf86db6..315d9279c9b639b2cb1603cf578cf7610191f7eb 100644 (file)
@@ -64,7 +64,7 @@
                                slot@0 {
                                        reg = <0>;
                                        bus-width = <4>;
-                                       cd-gpios = <&pioD 6 0>;
+                                       cd-gpios = <&pioD 6 GPIO_ACTIVE_HIGH>;
                                };
                        };
 
@@ -81,8 +81,8 @@
                        nand-on-flash-bbt;
                        pinctrl-0 = <&pinctrl_board_nand>;
 
-                       gpios = <&pioD 3 0
-                                &pioC 14 0
+                       gpios = <&pioD 3 GPIO_ACTIVE_HIGH
+                                &pioC 14 GPIO_ACTIVE_HIGH
                                 0
                                >;
 
 
                led0 {
                        label = "led0";
-                       gpios = <&pioD 0 1>;
+                       gpios = <&pioD 0 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "nand-disk";
                };
 
                led1 {
                        label = "led1";
-                       gpios = <&pioD 31 0>;
+                       gpios = <&pioD 31 GPIO_ACTIVE_HIGH>;
                        linux,default-trigger = "heartbeat";
                };
        };
 
                right {
                        label = "SW4";
-                       gpios = <&pioE 7 1>;
+                       gpios = <&pioE 7 GPIO_ACTIVE_LOW>;
                        linux,code = <106>;
                };
 
                up {
                        label = "SW3";
-                       gpios = <&pioE 8 1>;
+                       gpios = <&pioE 8 GPIO_ACTIVE_LOW>;
                        linux,code = <103>;
                };
        };
index 2293fa1b1950a06fa1f2283f7c353b6fba26f14a..0d65e3d375a36346ccd7792a7874388918cdbbea 100644 (file)
@@ -9,6 +9,7 @@
  */
 
 #include "skeleton.dtsi"
+#include <dt-bindings/gpio/gpio.h>
 
 / {
        model = "Atmel SAMA5D3 family SoC";
index 5bffd66ecb7aa1ddbd0e1ddc5411f95493015c22..027bac7510b6cc2cfb92ebb488c8d8e24de06749 100644 (file)
@@ -41,7 +41,7 @@
        leds {
                d3 {
                        label = "d3";
-                       gpios = <&pioE 24 0>;
+                       gpios = <&pioE 24 GPIO_ACTIVE_HIGH>;
                };
        };
 
index d88ff72a91bcf6e09e58b1b67216141c0050e805..fb8ee11cf282bdf051e1ecf0193e1622adb7d7d4 100644 (file)
@@ -51,7 +51,7 @@
        leds {
                d3 {
                        label = "d3";
-                       gpios = <&pioE 24 0>;
+                       gpios = <&pioE 24 GPIO_ACTIVE_HIGH>;
                };
        };
 
index 3c364d233b13bd2da63f5a43b37b2477b28a1fcd..509a53d9cc7baee10258878cd257d8574d6b25e0 100644 (file)
@@ -48,7 +48,7 @@
 
                pb_user1 {
                        label = "pb_user1";
-                       gpios = <&pioE 27 0>;
+                       gpios = <&pioE 27 GPIO_ACTIVE_HIGH>;
                        linux,code = <0x100>;
                        gpio-key,wakeup;
                };
index b552917cf84e8b8e1565800dff603eee3920846d..60637e4e9bbf0923ab9298ade6c0224a99aa0379 100644 (file)
@@ -85,7 +85,7 @@
 
                d2 {
                        label = "d2";
-                       gpios = <&pioE 25 1>;   /* PE25, conflicts with A25, RXD2 */
+                       gpios = <&pioE 25 GPIO_ACTIVE_LOW>;     /* PE25, conflicts with A25, RXD2 */
                };
        };
 };
index a5e7131e22fc4531f8330f59f90bbb377224a31c..205e64c5ddeea4baee62209e3e45067062c17afb 100644 (file)
@@ -20,7 +20,7 @@
                                slot@0 {
                                        reg = <0>;
                                        bus-width = <4>;
-                                       cd-gpios = <&pioD 17 0>;
+                                       cd-gpios = <&pioD 17 GPIO_ACTIVE_HIGH>;
                                };
                        };
 
@@ -62,7 +62,7 @@
                                slot@0 {
                                        reg = <0>;
                                        bus-width = <4>;
-                                       cd-gpios = <&pioD 18 0>;
+                                       cd-gpios = <&pioD 18 GPIO_ACTIVE_HIGH>;
                                };
                        };
 
                };
 
                usb0: gadget@00500000 {
-                       atmel,vbus-gpio = <&pioD 29 0>;
+                       atmel,vbus-gpio = <&pioD 29 GPIO_ACTIVE_HIGH>;
                        pinctrl-names = "default";
                        pinctrl-0 = <&pinctrl_usba_vbus>;
                        status = "okay";
 
                usb1: ohci@00600000 {
                        num-ports = <3>;
-                       atmel,vbus-gpio = <&pioD 25 0
-                                          &pioD 26 1
-                                          &pioD 27 1
+                       atmel,vbus-gpio = <&pioD 25 GPIO_ACTIVE_HIGH
+                                          &pioD 26 GPIO_ACTIVE_LOW
+                                          &pioD 27 GPIO_ACTIVE_LOW
                                          >;
                        status = "okay";
                };
index 45f059ba5691584fa4ad6dd795848fac06019e7f..0751a6a979a8e9575d85a67999497ae65dc7e4f4 100644 (file)
@@ -38,7 +38,7 @@
                        };
 
                        usb1: gadget@fff78000 {
-                               atmel,vbus-gpio = <&pioB 11 0>;
+                               atmel,vbus-gpio = <&pioB 11 GPIO_ACTIVE_HIGH>;
                                status = "okay";
                        };
                };
index e70d229baef5312ff5ff10c11f12067cab5a1e89..285977682cf3f43b0aea162939637f95ed627d69 100644 (file)
@@ -30,7 +30,7 @@
                        };
 
                        usb1: gadget@fffa4000 {
-                               atmel,vbus-gpio = <&pioC 5 0>;
+                               atmel,vbus-gpio = <&pioC 5 GPIO_ACTIVE_HIGH>;
                                status = "okay";
                        };
                };
@@ -93,7 +93,7 @@
 
                user_led {
                        label = "user_led";
-                       gpios = <&pioB 21 1>;
+                       gpios = <&pioB 21 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "heartbeat";
                };
        };
 
                user_pb {
                        label = "user_pb";
-                       gpios = <&pioB 10 1>;
+                       gpios = <&pioB 10 GPIO_ACTIVE_LOW>;
                        linux,code = <28>;
                        gpio-key,wakeup;
                };
index 82e204aae6b9e26f209b2fb88fbcae9e34e47577..f8ec36cb036b3360346f18fa58a0ea661895d498 100644 (file)
@@ -43,7 +43,7 @@
                        };
 
                        usb1: gadget@fff78000 {
-                               atmel,vbus-gpio = <&pioB 11 0>;
+                               atmel,vbus-gpio = <&pioB 11 GPIO_ACTIVE_HIGH>;
                                status = "okay";
                        };
 
 
                user_led {
                        label = "user_led";
-                       gpios = <&pioB 21 0>;
+                       gpios = <&pioB 21 GPIO_ACTIVE_HIGH>;
                        linux,default-trigger = "heartbeat";
                };
        };
 
                user_pb {
                        label = "user_pb";
-                       gpios = <&pioB 10 1>;
+                       gpios = <&pioB 10 GPIO_ACTIVE_LOW>;
                        linux,code = <28>;
                        gpio-key,wakeup;
                };
index ad3eca17c436acbf1df0341fe6ca0c1b3b9a3efb..5b0ffc1a0b2472c968abed6091fd36153b7fe673 100644 (file)
 
                user_led1 {
                        label = "user_led1";
-                       gpios = <&pioB 20 1>;
+                       gpios = <&pioB 20 GPIO_ACTIVE_LOW>;
                };
 
 /*
 * led already used by mother board but active as high
 *              user_led2 {
 *                      label = "user_led2";
-*                      gpios = <&pioB 21 1>;
+*                      gpios = <&pioB 21 GPIO_ACTIVE_LOW>;
 *              };
 */
                user_led3 {
                        label = "user_led3";
-                       gpios = <&pioB 22 1>;
+                       gpios = <&pioB 22 GPIO_ACTIVE_LOW>;
                };
 
                user_led4 {
                        label = "user_led4";
-                       gpios = <&pioB 23 1>;
+                       gpios = <&pioB 23 GPIO_ACTIVE_LOW>;
                };
 
                red {
                        label = "red";
-                       gpios = <&pioB 24 1>;
+                       gpios = <&pioB 24 GPIO_ACTIVE_LOW>;
                };
 
                orange {
                        label = "orange";
-                       gpios = <&pioB 30 1>;
+                       gpios = <&pioB 30 GPIO_ACTIVE_LOW>;
                };
 
                green {
                        label = "green";
-                       gpios = <&pioB 31 1>;
+                       gpios = <&pioB 31 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                user_pb1 {
                        label = "user_pb1";
-                       gpios = <&pioB 25 1>;
+                       gpios = <&pioB 25 GPIO_ACTIVE_LOW>;
                        linux,code = <0x100>;
                };
 
                user_pb2 {
                        label = "user_pb2";
-                       gpios = <&pioB 13 1>;
+                       gpios = <&pioB 13 GPIO_ACTIVE_LOW>;
                        linux,code = <0x101>;
                };
 
                user_pb3 {
                        label = "user_pb3";
-                       gpios = <&pioA 26 1>;
+                       gpios = <&pioA 26 GPIO_ACTIVE_LOW>;
                        linux,code = <0x102>;
                };
 
                user_pb4 {
                        label = "user_pb4";
-                       gpios = <&pioC 9 1>;
+                       gpios = <&pioC 9 GPIO_ACTIVE_LOW>;
                        linux,code = <0x103>;
                };
        };