Skip to contentSkip to conversation

ARM: dts: imx7d-sdb: Put pinctrl_spi4 in the correct location

PATCH New Fabio Estevam 2 participants 5 messages Jun 30, 2017 – Jul 12, 2017

Subsystems (3)
lore
Share & tools
lore

Fabio Estevam

author reviewer
#0 lore raw

PATCH 1/4 ARM: dts: imx7d-sdb: Put pinctrl_spi4 in the correct location

From: Fabio Estevam <[email protected]>

pinctrl_spi4 pin group is not part of the low power iomux controller, so move it under the normal iomuxc node.

Fixes 184f39b57cab6 ("ARM: dts: imx7d-sdb: Add GPIO expander node")
---
 arch/arm/boot/dts/imx7d-sdb.dts | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
arch/arm/boot/dts/imx7d-sdb.dts +8 -8
index 54c4540..0a24d1b 100644
@@ -557,6 +557,14 @@
 			>;
 		};
 
+		pinctrl_spi4: spi4grp {
+			fsl,pins = <
+				MX7D_PAD_GPIO1_IO09__GPIO1_IO9	0x59
+				MX7D_PAD_GPIO1_IO12__GPIO1_IO12	0x59
+				MX7D_PAD_GPIO1_IO13__GPIO1_IO13	0x59
+			>;
+		};
+
 		pinctrl_tsc2046_pendown: tsc2046_pendown {
 			fsl,pins = <
 				MX7D_PAD_EPDC_BDR1__GPIO2_IO29		0x59
@@ -697,13 +705,5 @@
 		fsl,pins = <
 			MX7D_PAD_LPSR_GPIO1_IO01__PWM1_OUT		0x110b0
 		>;
-
-		pinctrl_spi4: spi4grp {
-			fsl,pins = <
-				MX7D_PAD_GPIO1_IO09__GPIO1_IO9	0x59
-				MX7D_PAD_GPIO1_IO12__GPIO1_IO12	0x59
-				MX7D_PAD_GPIO1_IO13__GPIO1_IO13	0x59
-			>;
-		};
 	};
 };
Signature · 1 line
2.7.4
author reviewer
#1 lore raw

PATCH 2/4 ARM: dts: imx7d-sdb: Pass phy-reset-gpios

From: Fabio Estevam <[email protected]>

Pass the phy-reset-gpios property so that Ethernet PHYs can go through a proper reset.

---
 arch/arm/boot/dts/imx7d-sdb.dts | 1 +
 1 file changed, 1 insertion(+)
arch/arm/boot/dts/imx7d-sdb.dts +1 -0
index 0a24d1b..664582d 100644
@@ -168,6 +168,7 @@
 	phy-mode = "rgmii";
 	phy-handle = <&ethphy0>;
 	fsl,magic-packet;
+	phy-reset-gpios = <&extended_io 5 GPIO_ACTIVE_LOW>;
 	status = "okay";
 
 	mdio {
Signature · 1 line
2.7.4
author reviewer
#2 lore raw

PATCH 3/4 ARM: imx_v6_v7_defconfig: Enable SPI_GPIO

In reply to Fabio Estevam

From: Fabio Estevam <[email protected]>

Some boards like imx7d-sdb provide SPIO functionality via GPIOs, so enable the CONFIG_SPI_GPIO option.

---
 arch/arm/configs/imx_v6_v7_defconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm/configs/imx_v6_v7_defconfig +1 -0
index e74de69..b043caf 100644
@@ -193,6 +193,7 @@ CONFIG_I2C_ALGOPCA=m
 CONFIG_I2C_GPIO=y
 CONFIG_I2C_IMX=y
 CONFIG_SPI=y
+CONFIG_SPI_GPIO=y
 CONFIG_SPI_IMX=y
 CONFIG_SPI_FSL_DSPI=y
 CONFIG_GPIO_SYSFS=y
Signature · 1 line
2.7.4
author reviewer
#3 lore raw

PATCH 4/4 ARM: imx_v6_v7_defconfig: Enable GPIO_74X164

In reply to Fabio Estevam

From: Fabio Estevam <[email protected]>

imx7d-sabresd board uses a 74LV595PW SPI expander to drive several peripherals, such as Ethernet reset, PCI reset, LCD power, etc.

Enabled this option by default.

---
 arch/arm/configs/imx_v6_v7_defconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm/configs/imx_v6_v7_defconfig +1 -0
index b043caf..bf51949 100644
@@ -200,6 +200,7 @@ CONFIG_GPIO_SYSFS=y
 CONFIG_GPIO_MC9S08DZ60=y
 CONFIG_GPIO_PCA953X=y
 CONFIG_GPIO_STMPE=y
+CONFIG_GPIO_74X164=y
 CONFIG_POWER_RESET=y
 CONFIG_POWER_RESET_IMX=y
 CONFIG_POWER_RESET_SYSCON=y
Signature · 1 line
2.7.4