diff options
author | Alexander Shiyan <shc_work@mail.ru> | 2013-11-30 01:18:04 -0500 |
---|---|---|
committer | Shawn Guo <shawn.guo@linaro.org> | 2014-02-09 08:33:09 -0500 |
commit | 6ece55b39218d35d44e050d6e47b28a6489edd2b (patch) | |
tree | 5e6aa758a60d94de6db506bfbe34cc32e4321e66 /arch/arm/boot/dts | |
parent | f64ba746827ea23510659ebcacc84a1c6120eda4 (diff) |
ARM: dts: i.MX27 boards: Switch to use standard GPIO and IRQ flags definitions
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Diffstat (limited to 'arch/arm/boot/dts')
-rw-r--r-- | arch/arm/boot/dts/imx27-apf27dev.dts | 13 | ||||
-rw-r--r-- | arch/arm/boot/dts/imx27-phytec-phycard-s-rdk.dts | 2 | ||||
-rw-r--r-- | arch/arm/boot/dts/imx27-phytec-phycard-s-som.dts | 4 | ||||
-rw-r--r-- | arch/arm/boot/dts/imx27-phytec-phycore-rdk.dts | 9 | ||||
-rw-r--r-- | arch/arm/boot/dts/imx27-phytec-phycore-som.dts | 6 | ||||
-rw-r--r-- | arch/arm/boot/dts/imx27.dtsi | 2 |
6 files changed, 20 insertions, 16 deletions
diff --git a/arch/arm/boot/dts/imx27-apf27dev.dts b/arch/arm/boot/dts/imx27-apf27dev.dts index 9e5a61ef34b6..3d3ce2c8ae28 100644 --- a/arch/arm/boot/dts/imx27-apf27dev.dts +++ b/arch/arm/boot/dts/imx27-apf27dev.dts | |||
@@ -41,7 +41,7 @@ | |||
41 | 41 | ||
42 | user-key { | 42 | user-key { |
43 | label = "user"; | 43 | label = "user"; |
44 | gpios = <&gpio6 13 0>; | 44 | gpios = <&gpio6 13 GPIO_ACTIVE_HIGH>; |
45 | linux,code = <276>; /* BTN_EXTRA */ | 45 | linux,code = <276>; /* BTN_EXTRA */ |
46 | }; | 46 | }; |
47 | }; | 47 | }; |
@@ -51,7 +51,7 @@ | |||
51 | 51 | ||
52 | user { | 52 | user { |
53 | label = "Heartbeat"; | 53 | label = "Heartbeat"; |
54 | gpios = <&gpio6 14 0>; | 54 | gpios = <&gpio6 14 GPIO_ACTIVE_HIGH>; |
55 | linux,default-trigger = "heartbeat"; | 55 | linux,default-trigger = "heartbeat"; |
56 | }; | 56 | }; |
57 | }; | 57 | }; |
@@ -59,7 +59,7 @@ | |||
59 | 59 | ||
60 | &cspi1 { | 60 | &cspi1 { |
61 | fsl,spi-num-chipselects = <1>; | 61 | fsl,spi-num-chipselects = <1>; |
62 | cs-gpios = <&gpio4 28 1>; | 62 | cs-gpios = <&gpio4 28 GPIO_ACTIVE_LOW>; |
63 | pinctrl-names = "default"; | 63 | pinctrl-names = "default"; |
64 | pinctrl-0 = <&pinctrl_cspi1>; | 64 | pinctrl-0 = <&pinctrl_cspi1>; |
65 | status = "okay"; | 65 | status = "okay"; |
@@ -67,8 +67,9 @@ | |||
67 | 67 | ||
68 | &cspi2 { | 68 | &cspi2 { |
69 | fsl,spi-num-chipselects = <3>; | 69 | fsl,spi-num-chipselects = <3>; |
70 | cs-gpios = <&gpio4 21 1>, <&gpio4 27 1>, | 70 | cs-gpios = <&gpio4 21 GPIO_ACTIVE_LOW>, |
71 | <&gpio2 17 1>; | 71 | <&gpio4 27 GPIO_ACTIVE_LOW>, |
72 | <&gpio2 17 GPIO_ACTIVE_LOW>; | ||
72 | pinctrl-names = "default"; | 73 | pinctrl-names = "default"; |
73 | pinctrl-0 = <&pinctrl_cspi2>; | 74 | pinctrl-0 = <&pinctrl_cspi2>; |
74 | status = "okay"; | 75 | status = "okay"; |
@@ -179,7 +180,7 @@ | |||
179 | 180 | ||
180 | &sdhci2 { | 181 | &sdhci2 { |
181 | bus-width = <4>; | 182 | bus-width = <4>; |
182 | cd-gpios = <&gpio3 14 0>; | 183 | cd-gpios = <&gpio3 14 GPIO_ACTIVE_HIGH>; |
183 | pinctrl-names = "default"; | 184 | pinctrl-names = "default"; |
184 | pinctrl-0 = <&pinctrl_sdhc2>; | 185 | pinctrl-0 = <&pinctrl_sdhc2>; |
185 | status = "okay"; | 186 | status = "okay"; |
diff --git a/arch/arm/boot/dts/imx27-phytec-phycard-s-rdk.dts b/arch/arm/boot/dts/imx27-phytec-phycard-s-rdk.dts index c37c74a12e05..04cadfcb32f1 100644 --- a/arch/arm/boot/dts/imx27-phytec-phycard-s-rdk.dts +++ b/arch/arm/boot/dts/imx27-phytec-phycard-s-rdk.dts | |||
@@ -124,7 +124,7 @@ | |||
124 | }; | 124 | }; |
125 | 125 | ||
126 | &sdhci2 { | 126 | &sdhci2 { |
127 | cd-gpios = <&gpio3 29 0>; | 127 | cd-gpios = <&gpio3 29 GPIO_ACTIVE_HIGH>; |
128 | status = "okay"; | 128 | status = "okay"; |
129 | }; | 129 | }; |
130 | 130 | ||
diff --git a/arch/arm/boot/dts/imx27-phytec-phycard-s-som.dts b/arch/arm/boot/dts/imx27-phytec-phycard-s-som.dts index 0d01d32ba6a1..e51e55077aa0 100644 --- a/arch/arm/boot/dts/imx27-phytec-phycard-s-som.dts +++ b/arch/arm/boot/dts/imx27-phytec-phycard-s-som.dts | |||
@@ -24,8 +24,8 @@ | |||
24 | 24 | ||
25 | &cspi1 { | 25 | &cspi1 { |
26 | fsl,spi-num-chipselects = <2>; | 26 | fsl,spi-num-chipselects = <2>; |
27 | cs-gpios = <&gpio4 28 0>, | 27 | cs-gpios = <&gpio4 28 GPIO_ACTIVE_HIGH>, |
28 | <&gpio4 27 0>; | 28 | <&gpio4 27 GPIO_ACTIVE_HIGH>; |
29 | status = "okay"; | 29 | status = "okay"; |
30 | }; | 30 | }; |
31 | 31 | ||
diff --git a/arch/arm/boot/dts/imx27-phytec-phycore-rdk.dts b/arch/arm/boot/dts/imx27-phytec-phycore-rdk.dts index be7667e73a2e..834fde84186e 100644 --- a/arch/arm/boot/dts/imx27-phytec-phycore-rdk.dts +++ b/arch/arm/boot/dts/imx27-phytec-phycore-rdk.dts | |||
@@ -16,7 +16,8 @@ | |||
16 | 16 | ||
17 | &cspi1 { | 17 | &cspi1 { |
18 | fsl,spi-num-chipselects = <2>; | 18 | fsl,spi-num-chipselects = <2>; |
19 | cs-gpios = <&gpio4 28 0>, <&gpio4 27 0>; | 19 | cs-gpios = <&gpio4 28 GPIO_ACTIVE_HIGH>, |
20 | <&gpio4 27 GPIO_ACTIVE_LOW>; | ||
20 | }; | 21 | }; |
21 | 22 | ||
22 | &i2c1 { | 23 | &i2c1 { |
@@ -65,8 +66,8 @@ | |||
65 | 66 | ||
66 | &sdhci2 { | 67 | &sdhci2 { |
67 | bus-width = <4>; | 68 | bus-width = <4>; |
68 | cd-gpios = <&gpio3 29 0>; | 69 | cd-gpios = <&gpio3 29 GPIO_ACTIVE_HIGH>; |
69 | wp-gpios = <&gpio3 28 0>; | 70 | wp-gpios = <&gpio3 28 GPIO_ACTIVE_HIGH>; |
70 | vmmc-supply = <&vmmc1_reg>; | 71 | vmmc-supply = <&vmmc1_reg>; |
71 | status = "okay"; | 72 | status = "okay"; |
72 | }; | 73 | }; |
@@ -90,7 +91,7 @@ | |||
90 | compatible = "nxp,sja1000"; | 91 | compatible = "nxp,sja1000"; |
91 | reg = <4 0x00000000 0x00000100>; | 92 | reg = <4 0x00000000 0x00000100>; |
92 | interrupt-parent = <&gpio5>; | 93 | interrupt-parent = <&gpio5>; |
93 | interrupts = <19 0x2>; | 94 | interrupts = <19 IRQ_TYPE_EDGE_FALLING>; |
94 | nxp,external-clock-frequency = <16000000>; | 95 | nxp,external-clock-frequency = <16000000>; |
95 | nxp,tx-output-config = <0x16>; | 96 | nxp,tx-output-config = <0x16>; |
96 | nxp,no-comparator-bypass; | 97 | nxp,no-comparator-bypass; |
diff --git a/arch/arm/boot/dts/imx27-phytec-phycore-som.dts b/arch/arm/boot/dts/imx27-phytec-phycore-som.dts index 07fd4be8cd36..dd26e1588a58 100644 --- a/arch/arm/boot/dts/imx27-phytec-phycore-som.dts +++ b/arch/arm/boot/dts/imx27-phytec-phycore-som.dts | |||
@@ -52,7 +52,7 @@ | |||
52 | 52 | ||
53 | &cspi1 { | 53 | &cspi1 { |
54 | fsl,spi-num-chipselects = <1>; | 54 | fsl,spi-num-chipselects = <1>; |
55 | cs-gpios = <&gpio4 28 0>; | 55 | cs-gpios = <&gpio4 28 GPIO_ACTIVE_HIGH>; |
56 | status = "okay"; | 56 | status = "okay"; |
57 | 57 | ||
58 | pmic: mc13783@0 { | 58 | pmic: mc13783@0 { |
@@ -62,7 +62,7 @@ | |||
62 | spi-max-frequency = <20000000>; | 62 | spi-max-frequency = <20000000>; |
63 | reg = <0>; | 63 | reg = <0>; |
64 | interrupt-parent = <&gpio2>; | 64 | interrupt-parent = <&gpio2>; |
65 | interrupts = <23 0x4>; | 65 | interrupts = <23 IRQ_TYPE_LEVEL_HIGH>; |
66 | fsl,mc13xxx-uses-adc; | 66 | fsl,mc13xxx-uses-adc; |
67 | fsl,mc13xxx-uses-rtc; | 67 | fsl,mc13xxx-uses-rtc; |
68 | 68 | ||
@@ -149,7 +149,7 @@ | |||
149 | 149 | ||
150 | &fec { | 150 | &fec { |
151 | phy-mode = "mii"; | 151 | phy-mode = "mii"; |
152 | phy-reset-gpios = <&gpio3 30 0>; | 152 | phy-reset-gpios = <&gpio3 30 GPIO_ACTIVE_HIGH>; |
153 | phy-supply = <®_3v3>; | 153 | phy-supply = <®_3v3>; |
154 | pinctrl-names = "default"; | 154 | pinctrl-names = "default"; |
155 | pinctrl-0 = <&pinctrl_fec1>; | 155 | pinctrl-0 = <&pinctrl_fec1>; |
diff --git a/arch/arm/boot/dts/imx27.dtsi b/arch/arm/boot/dts/imx27.dtsi index 672bb8eaa7e6..1af8fcfe552e 100644 --- a/arch/arm/boot/dts/imx27.dtsi +++ b/arch/arm/boot/dts/imx27.dtsi | |||
@@ -11,6 +11,8 @@ | |||
11 | 11 | ||
12 | #include "skeleton.dtsi" | 12 | #include "skeleton.dtsi" |
13 | #include "imx27-pinfunc.h" | 13 | #include "imx27-pinfunc.h" |
14 | #include <dt-bindings/interrupt-controller/irq.h> | ||
15 | #include <dt-bindings/gpio/gpio.h> | ||
14 | 16 | ||
15 | / { | 17 | / { |
16 | aliases { | 18 | aliases { |