Skip to content

Commit 26508cb

Browse files
Markus Pargmannshawnguo2
authored andcommitted
ARM: dts: imx27 phycore pinctrl
Add pinctrl nodes and properties for phycore device nodes. Signed-off-by: Markus Pargmann <mpa@pengutronix.de> Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
1 parent 858db31 commit 26508cb

File tree

2 files changed

+65
-0
lines changed

2 files changed

+65
-0
lines changed

arch/arm/boot/dts/imx27-phytec-phycore-rdk.dts

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,28 @@
1919
cs-gpios = <&gpio4 28 0>, <&gpio4 27 0>;
2020
};
2121

22+
&iomuxc {
23+
imx27_phycore_rdk {
24+
pinctrl_uart1: uart1grp {
25+
fsl,pins = <
26+
MX27_PAD_UART1_TXD__UART1_TXD 0x0
27+
MX27_PAD_UART1_RXD__UART1_RXD 0x0
28+
MX27_PAD_UART1_CTS__UART1_CTS 0x0
29+
MX27_PAD_UART1_RTS__UART1_RTS 0x0
30+
>;
31+
};
32+
33+
pinctrl_uart2: uart2grp {
34+
fsl,pins = <
35+
MX27_PAD_UART2_TXD__UART2_TXD 0x0
36+
MX27_PAD_UART2_RXD__UART2_RXD 0x0
37+
MX27_PAD_UART2_CTS__UART2_CTS 0x0
38+
MX27_PAD_UART2_RTS__UART2_RTS 0x0
39+
>;
40+
};
41+
};
42+
};
43+
2244
&sdhci2 {
2345
bus-width = <4>;
2446
cd-gpios = <&gpio3 29 0>;
@@ -29,11 +51,15 @@
2951

3052
&uart1 {
3153
fsl,uart-has-rtscts;
54+
pinctrl-names = "default";
55+
pinctrl-0 = <&pinctrl_uart1>;
3256
status = "okay";
3357
};
3458

3559
&uart2 {
3660
fsl,uart-has-rtscts;
61+
pinctrl-names = "default";
62+
pinctrl-0 = <&pinctrl_uart2>;
3763
status = "okay";
3864
};
3965

arch/arm/boot/dts/imx27-phytec-phycore-som.dts

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,15 @@
135135

136136
&fec {
137137
phy-reset-gpios = <&gpio3 30 0>;
138+
pinctrl-names = "default";
139+
pinctrl-0 = <&pinctrl_fec1>;
138140
status = "okay";
139141
};
140142

141143
&i2c2 {
142144
clock-frequency = <400000>;
145+
pinctrl-names = "default";
146+
pinctrl-0 = <&pinctrl_i2c2>;
143147
status = "okay";
144148

145149
at24@52 {
@@ -159,6 +163,41 @@
159163
};
160164
};
161165

166+
&iomuxc {
167+
imx27_phycore_som {
168+
pinctrl_fec1: fec1grp {
169+
fsl,pins = <
170+
MX27_PAD_SD3_CMD__FEC_TXD0 0x0
171+
MX27_PAD_SD3_CLK__FEC_TXD1 0x0
172+
MX27_PAD_ATA_DATA0__FEC_TXD2 0x0
173+
MX27_PAD_ATA_DATA1__FEC_TXD3 0x0
174+
MX27_PAD_ATA_DATA2__FEC_RX_ER 0x0
175+
MX27_PAD_ATA_DATA3__FEC_RXD1 0x0
176+
MX27_PAD_ATA_DATA4__FEC_RXD2 0x0
177+
MX27_PAD_ATA_DATA5__FEC_RXD3 0x0
178+
MX27_PAD_ATA_DATA6__FEC_MDIO 0x0
179+
MX27_PAD_ATA_DATA7__FEC_MDC 0x0
180+
MX27_PAD_ATA_DATA8__FEC_CRS 0x0
181+
MX27_PAD_ATA_DATA9__FEC_TX_CLK 0x0
182+
MX27_PAD_ATA_DATA10__FEC_RXD0 0x0
183+
MX27_PAD_ATA_DATA11__FEC_RX_DV 0x0
184+
MX27_PAD_ATA_DATA12__FEC_RX_CLK 0x0
185+
MX27_PAD_ATA_DATA13__FEC_COL 0x0
186+
MX27_PAD_ATA_DATA14__FEC_TX_ER 0x0
187+
MX27_PAD_ATA_DATA15__FEC_TX_EN 0x0
188+
MX27_PAD_SSI3_TXDAT__GPIO3_30 0x0 /* FEC RST */
189+
>;
190+
};
191+
192+
pinctrl_i2c2: i2c2grp {
193+
fsl,pins = <
194+
MX27_PAD_I2C2_SDA__I2C2_SDA 0x0
195+
MX27_PAD_I2C2_SCL__I2C2_SCL 0x0
196+
>;
197+
};
198+
};
199+
};
200+
162201
&nfc {
163202
nand-bus-width = <8>;
164203
nand-ecc-mode = "hw";

0 commit comments

Comments
 (0)