ARM: dts: i.MX27 boards: Switch to use standard GPIO and IRQ flags definitions
authorAlexander Shiyan <shc_work@mail.ru>
Sat, 30 Nov 2013 06:18:04 +0000 (10:18 +0400)
committerShawn Guo <shawn.guo@linaro.org>
Sun, 9 Feb 2014 13:33:09 +0000 (21:33 +0800)
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
arch/arm/boot/dts/imx27-apf27dev.dts
arch/arm/boot/dts/imx27-phytec-phycard-s-rdk.dts
arch/arm/boot/dts/imx27-phytec-phycard-s-som.dts
arch/arm/boot/dts/imx27-phytec-phycore-rdk.dts
arch/arm/boot/dts/imx27-phytec-phycore-som.dts
arch/arm/boot/dts/imx27.dtsi

index 9e5a61ef34b6056c76c4e89cce635f381af4f456..3d3ce2c8ae2802a0ac8dfe2e5b0d251d2e7beb2a 100644 (file)
@@ -41,7 +41,7 @@
 
                user-key {
                        label = "user";
-                       gpios = <&gpio6 13 0>;
+                       gpios = <&gpio6 13 GPIO_ACTIVE_HIGH>;
                        linux,code = <276>; /* BTN_EXTRA */
                };
        };
@@ -51,7 +51,7 @@
 
                user {
                        label = "Heartbeat";
-                       gpios = <&gpio6 14 0>;
+                       gpios = <&gpio6 14 GPIO_ACTIVE_HIGH>;
                        linux,default-trigger = "heartbeat";
                };
        };
@@ -59,7 +59,7 @@
 
 &cspi1 {
        fsl,spi-num-chipselects = <1>;
-       cs-gpios = <&gpio4 28 1>;
+       cs-gpios = <&gpio4 28 GPIO_ACTIVE_LOW>;
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_cspi1>;
        status = "okay";
@@ -67,8 +67,9 @@
 
 &cspi2 {
        fsl,spi-num-chipselects = <3>;
-       cs-gpios = <&gpio4 21 1>, <&gpio4 27 1>,
-                       <&gpio2 17 1>;
+       cs-gpios = <&gpio4 21 GPIO_ACTIVE_LOW>,
+                  <&gpio4 27 GPIO_ACTIVE_LOW>,
+                  <&gpio2 17 GPIO_ACTIVE_LOW>;
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_cspi2>;
        status = "okay";
 
 &sdhci2 {
        bus-width = <4>;
-       cd-gpios = <&gpio3 14 0>;
+       cd-gpios = <&gpio3 14 GPIO_ACTIVE_HIGH>;
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_sdhc2>;
        status = "okay";
index c37c74a12e05ca78d7a735e1af3f6a0a29fc0f44..04cadfcb32f160746c669321d85ab1d2f169fae0 100644 (file)
 };
 
 &sdhci2 {
-       cd-gpios = <&gpio3 29 0>;
+       cd-gpios = <&gpio3 29 GPIO_ACTIVE_HIGH>;
        status = "okay";
 };
 
index 0d01d32ba6a1e09859c4b5df088d131c33f6ff3b..e51e55077aa04829c74f8d14eb3723e07b2bd21c 100644 (file)
@@ -24,8 +24,8 @@
 
 &cspi1 {
        fsl,spi-num-chipselects = <2>;
-       cs-gpios = <&gpio4 28 0>,
-               <&gpio4 27 0>;
+       cs-gpios = <&gpio4 28 GPIO_ACTIVE_HIGH>,
+                  <&gpio4 27 GPIO_ACTIVE_HIGH>;
        status = "okay";
 };
 
index be7667e73a2e80dfd81ed135f8fbaa21a1895811..834fde84186e292dc16529be2e2dd6d38dac4213 100644 (file)
@@ -16,7 +16,8 @@
 
 &cspi1 {
        fsl,spi-num-chipselects = <2>;
-       cs-gpios = <&gpio4 28 0>, <&gpio4 27 0>;
+       cs-gpios = <&gpio4 28 GPIO_ACTIVE_HIGH>,
+                  <&gpio4 27 GPIO_ACTIVE_LOW>;
 };
 
 &i2c1 {
@@ -65,8 +66,8 @@
 
 &sdhci2 {
        bus-width = <4>;
-       cd-gpios = <&gpio3 29 0>;
-       wp-gpios = <&gpio3 28 0>;
+       cd-gpios = <&gpio3 29 GPIO_ACTIVE_HIGH>;
+       wp-gpios = <&gpio3 28 GPIO_ACTIVE_HIGH>;
        vmmc-supply = <&vmmc1_reg>;
        status = "okay";
 };
@@ -90,7 +91,7 @@
                compatible = "nxp,sja1000";
                reg = <4 0x00000000 0x00000100>;
                interrupt-parent = <&gpio5>;
-               interrupts = <19 0x2>;
+               interrupts = <19 IRQ_TYPE_EDGE_FALLING>;
                nxp,external-clock-frequency = <16000000>;
                nxp,tx-output-config = <0x16>;
                nxp,no-comparator-bypass;
index 07fd4be8cd362eb6856d7a9565f669de194bf1e2..dd26e1588a58a7bfa995379a6d68d0bd73dd03fa 100644 (file)
@@ -52,7 +52,7 @@
 
 &cspi1 {
        fsl,spi-num-chipselects = <1>;
-       cs-gpios = <&gpio4 28 0>;
+       cs-gpios = <&gpio4 28 GPIO_ACTIVE_HIGH>;
        status = "okay";
 
        pmic: mc13783@0 {
@@ -62,7 +62,7 @@
                spi-max-frequency = <20000000>;
                reg = <0>;
                interrupt-parent = <&gpio2>;
-               interrupts = <23 0x4>;
+               interrupts = <23 IRQ_TYPE_LEVEL_HIGH>;
                fsl,mc13xxx-uses-adc;
                fsl,mc13xxx-uses-rtc;
 
 
 &fec {
        phy-mode = "mii";
-       phy-reset-gpios = <&gpio3 30 0>;
+       phy-reset-gpios = <&gpio3 30 GPIO_ACTIVE_HIGH>;
        phy-supply = <&reg_3v3>;
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_fec1>;
index 672bb8eaa7e66eaa6cef0828e0b5757c75b2b3ad..1af8fcfe552e6ea4d059aabb35f797b36b5423bf 100644 (file)
@@ -11,6 +11,8 @@
 
 #include "skeleton.dtsi"
 #include "imx27-pinfunc.h"
+#include <dt-bindings/interrupt-controller/irq.h>
+#include <dt-bindings/gpio/gpio.h>
 
 / {
        aliases {