Commit 6ece55b3 authored by Alexander Shiyan's avatar Alexander Shiyan Committed by Shawn Guo

ARM: dts: i.MX27 boards: Switch to use standard GPIO and IRQ flags definitions

Signed-off-by: default avatarAlexander Shiyan <shc_work@mail.ru>
Signed-off-by: default avatarShawn Guo <shawn.guo@linaro.org>
parent f64ba746
...@@ -41,7 +41,7 @@ gpio-keys { ...@@ -41,7 +41,7 @@ gpio-keys {
user-key { user-key {
label = "user"; label = "user";
gpios = <&gpio6 13 0>; gpios = <&gpio6 13 GPIO_ACTIVE_HIGH>;
linux,code = <276>; /* BTN_EXTRA */ linux,code = <276>; /* BTN_EXTRA */
}; };
}; };
...@@ -51,7 +51,7 @@ leds { ...@@ -51,7 +51,7 @@ leds {
user { user {
label = "Heartbeat"; label = "Heartbeat";
gpios = <&gpio6 14 0>; gpios = <&gpio6 14 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "heartbeat"; linux,default-trigger = "heartbeat";
}; };
}; };
...@@ -59,7 +59,7 @@ user { ...@@ -59,7 +59,7 @@ user {
&cspi1 { &cspi1 {
fsl,spi-num-chipselects = <1>; fsl,spi-num-chipselects = <1>;
cs-gpios = <&gpio4 28 1>; cs-gpios = <&gpio4 28 GPIO_ACTIVE_LOW>;
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&pinctrl_cspi1>; pinctrl-0 = <&pinctrl_cspi1>;
status = "okay"; status = "okay";
...@@ -67,8 +67,9 @@ &cspi1 { ...@@ -67,8 +67,9 @@ &cspi1 {
&cspi2 { &cspi2 {
fsl,spi-num-chipselects = <3>; fsl,spi-num-chipselects = <3>;
cs-gpios = <&gpio4 21 1>, <&gpio4 27 1>, cs-gpios = <&gpio4 21 GPIO_ACTIVE_LOW>,
<&gpio2 17 1>; <&gpio4 27 GPIO_ACTIVE_LOW>,
<&gpio2 17 GPIO_ACTIVE_LOW>;
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&pinctrl_cspi2>; pinctrl-0 = <&pinctrl_cspi2>;
status = "okay"; status = "okay";
...@@ -179,7 +180,7 @@ MX27_PAD_SD2_D3__SD2_D3 0x0 ...@@ -179,7 +180,7 @@ MX27_PAD_SD2_D3__SD2_D3 0x0
&sdhci2 { &sdhci2 {
bus-width = <4>; bus-width = <4>;
cd-gpios = <&gpio3 14 0>; cd-gpios = <&gpio3 14 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&pinctrl_sdhc2>; pinctrl-0 = <&pinctrl_sdhc2>;
status = "okay"; status = "okay";
......
...@@ -124,7 +124,7 @@ &owire { ...@@ -124,7 +124,7 @@ &owire {
}; };
&sdhci2 { &sdhci2 {
cd-gpios = <&gpio3 29 0>; cd-gpios = <&gpio3 29 GPIO_ACTIVE_HIGH>;
status = "okay"; status = "okay";
}; };
......
...@@ -24,8 +24,8 @@ memory { ...@@ -24,8 +24,8 @@ memory {
&cspi1 { &cspi1 {
fsl,spi-num-chipselects = <2>; fsl,spi-num-chipselects = <2>;
cs-gpios = <&gpio4 28 0>, cs-gpios = <&gpio4 28 GPIO_ACTIVE_HIGH>,
<&gpio4 27 0>; <&gpio4 27 GPIO_ACTIVE_HIGH>;
status = "okay"; status = "okay";
}; };
......
...@@ -16,7 +16,8 @@ / { ...@@ -16,7 +16,8 @@ / {
&cspi1 { &cspi1 {
fsl,spi-num-chipselects = <2>; 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 { &i2c1 {
...@@ -65,8 +66,8 @@ MX27_PAD_UART2_RTS__UART2_RTS 0x0 ...@@ -65,8 +66,8 @@ MX27_PAD_UART2_RTS__UART2_RTS 0x0
&sdhci2 { &sdhci2 {
bus-width = <4>; bus-width = <4>;
cd-gpios = <&gpio3 29 0>; cd-gpios = <&gpio3 29 GPIO_ACTIVE_HIGH>;
wp-gpios = <&gpio3 28 0>; wp-gpios = <&gpio3 28 GPIO_ACTIVE_HIGH>;
vmmc-supply = <&vmmc1_reg>; vmmc-supply = <&vmmc1_reg>;
status = "okay"; status = "okay";
}; };
...@@ -90,7 +91,7 @@ can@d4000000 { ...@@ -90,7 +91,7 @@ can@d4000000 {
compatible = "nxp,sja1000"; compatible = "nxp,sja1000";
reg = <4 0x00000000 0x00000100>; reg = <4 0x00000000 0x00000100>;
interrupt-parent = <&gpio5>; interrupt-parent = <&gpio5>;
interrupts = <19 0x2>; interrupts = <19 IRQ_TYPE_EDGE_FALLING>;
nxp,external-clock-frequency = <16000000>; nxp,external-clock-frequency = <16000000>;
nxp,tx-output-config = <0x16>; nxp,tx-output-config = <0x16>;
nxp,no-comparator-bypass; nxp,no-comparator-bypass;
......
...@@ -52,7 +52,7 @@ pins4 { ...@@ -52,7 +52,7 @@ pins4 {
&cspi1 { &cspi1 {
fsl,spi-num-chipselects = <1>; fsl,spi-num-chipselects = <1>;
cs-gpios = <&gpio4 28 0>; cs-gpios = <&gpio4 28 GPIO_ACTIVE_HIGH>;
status = "okay"; status = "okay";
pmic: mc13783@0 { pmic: mc13783@0 {
...@@ -62,7 +62,7 @@ pmic: mc13783@0 { ...@@ -62,7 +62,7 @@ pmic: mc13783@0 {
spi-max-frequency = <20000000>; spi-max-frequency = <20000000>;
reg = <0>; reg = <0>;
interrupt-parent = <&gpio2>; interrupt-parent = <&gpio2>;
interrupts = <23 0x4>; interrupts = <23 IRQ_TYPE_LEVEL_HIGH>;
fsl,mc13xxx-uses-adc; fsl,mc13xxx-uses-adc;
fsl,mc13xxx-uses-rtc; fsl,mc13xxx-uses-rtc;
...@@ -149,7 +149,7 @@ pwgt1spi_reg: pwgt1spi { ...@@ -149,7 +149,7 @@ pwgt1spi_reg: pwgt1spi {
&fec { &fec {
phy-mode = "mii"; phy-mode = "mii";
phy-reset-gpios = <&gpio3 30 0>; phy-reset-gpios = <&gpio3 30 GPIO_ACTIVE_HIGH>;
phy-supply = <&reg_3v3>; phy-supply = <&reg_3v3>;
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&pinctrl_fec1>; pinctrl-0 = <&pinctrl_fec1>;
......
...@@ -11,6 +11,8 @@ ...@@ -11,6 +11,8 @@
#include "skeleton.dtsi" #include "skeleton.dtsi"
#include "imx27-pinfunc.h" #include "imx27-pinfunc.h"
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/gpio/gpio.h>
/ { / {
aliases { aliases {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment