* [PATCH 1/4] ARM: dts: imx7d-sdb: Put pinctrl_spi4 in the correct location
@ 2017-06-30 20:43 Fabio Estevam
2017-06-30 20:43 ` [PATCH 2/4] ARM: dts: imx7d-sdb: Pass phy-reset-gpios Fabio Estevam
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Fabio Estevam @ 2017-06-30 20:43 UTC (permalink / raw)
To: linux-arm-kernel
From: Fabio Estevam <fabio.estevam@nxp.com>
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")
Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
---
arch/arm/boot/dts/imx7d-sdb.dts | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/arch/arm/boot/dts/imx7d-sdb.dts b/arch/arm/boot/dts/imx7d-sdb.dts
index 54c4540..0a24d1b 100644
--- a/arch/arm/boot/dts/imx7d-sdb.dts
+++ b/arch/arm/boot/dts/imx7d-sdb.dts
@@ -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
- >;
- };
};
};
--
2.7.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/4] ARM: dts: imx7d-sdb: Pass phy-reset-gpios
2017-06-30 20:43 [PATCH 1/4] ARM: dts: imx7d-sdb: Put pinctrl_spi4 in the correct location Fabio Estevam
@ 2017-06-30 20:43 ` Fabio Estevam
2017-06-30 20:43 ` [PATCH 3/4] ARM: imx_v6_v7_defconfig: Enable SPI_GPIO Fabio Estevam
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Fabio Estevam @ 2017-06-30 20:43 UTC (permalink / raw)
To: linux-arm-kernel
From: Fabio Estevam <fabio.estevam@nxp.com>
Pass the phy-reset-gpios property so that Ethernet PHYs can go
through a proper reset.
Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
---
arch/arm/boot/dts/imx7d-sdb.dts | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/boot/dts/imx7d-sdb.dts b/arch/arm/boot/dts/imx7d-sdb.dts
index 0a24d1b..664582d 100644
--- a/arch/arm/boot/dts/imx7d-sdb.dts
+++ b/arch/arm/boot/dts/imx7d-sdb.dts
@@ -168,6 +168,7 @@
phy-mode = "rgmii";
phy-handle = <ðphy0>;
fsl,magic-packet;
+ phy-reset-gpios = <&extended_io 5 GPIO_ACTIVE_LOW>;
status = "okay";
mdio {
--
2.7.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 3/4] ARM: imx_v6_v7_defconfig: Enable SPI_GPIO
2017-06-30 20:43 [PATCH 1/4] ARM: dts: imx7d-sdb: Put pinctrl_spi4 in the correct location Fabio Estevam
2017-06-30 20:43 ` [PATCH 2/4] ARM: dts: imx7d-sdb: Pass phy-reset-gpios Fabio Estevam
@ 2017-06-30 20:43 ` Fabio Estevam
2017-06-30 20:43 ` [PATCH 4/4] ARM: imx_v6_v7_defconfig: Enable GPIO_74X164 Fabio Estevam
2017-07-12 8:44 ` [PATCH 1/4] ARM: dts: imx7d-sdb: Put pinctrl_spi4 in the correct location Shawn Guo
3 siblings, 0 replies; 5+ messages in thread
From: Fabio Estevam @ 2017-06-30 20:43 UTC (permalink / raw)
To: linux-arm-kernel
From: Fabio Estevam <fabio.estevam@nxp.com>
Some boards like imx7d-sdb provide SPIO functionality via GPIOs,
so enable the CONFIG_SPI_GPIO option.
Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
---
arch/arm/configs/imx_v6_v7_defconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/configs/imx_v6_v7_defconfig b/arch/arm/configs/imx_v6_v7_defconfig
index e74de69..b043caf 100644
--- a/arch/arm/configs/imx_v6_v7_defconfig
+++ b/arch/arm/configs/imx_v6_v7_defconfig
@@ -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
--
2.7.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 4/4] ARM: imx_v6_v7_defconfig: Enable GPIO_74X164
2017-06-30 20:43 [PATCH 1/4] ARM: dts: imx7d-sdb: Put pinctrl_spi4 in the correct location Fabio Estevam
2017-06-30 20:43 ` [PATCH 2/4] ARM: dts: imx7d-sdb: Pass phy-reset-gpios Fabio Estevam
2017-06-30 20:43 ` [PATCH 3/4] ARM: imx_v6_v7_defconfig: Enable SPI_GPIO Fabio Estevam
@ 2017-06-30 20:43 ` Fabio Estevam
2017-07-12 8:44 ` [PATCH 1/4] ARM: dts: imx7d-sdb: Put pinctrl_spi4 in the correct location Shawn Guo
3 siblings, 0 replies; 5+ messages in thread
From: Fabio Estevam @ 2017-06-30 20:43 UTC (permalink / raw)
To: linux-arm-kernel
From: Fabio Estevam <fabio.estevam@nxp.com>
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.
Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
---
arch/arm/configs/imx_v6_v7_defconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/configs/imx_v6_v7_defconfig b/arch/arm/configs/imx_v6_v7_defconfig
index b043caf..bf51949 100644
--- a/arch/arm/configs/imx_v6_v7_defconfig
+++ b/arch/arm/configs/imx_v6_v7_defconfig
@@ -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
--
2.7.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 1/4] ARM: dts: imx7d-sdb: Put pinctrl_spi4 in the correct location
2017-06-30 20:43 [PATCH 1/4] ARM: dts: imx7d-sdb: Put pinctrl_spi4 in the correct location Fabio Estevam
` (2 preceding siblings ...)
2017-06-30 20:43 ` [PATCH 4/4] ARM: imx_v6_v7_defconfig: Enable GPIO_74X164 Fabio Estevam
@ 2017-07-12 8:44 ` Shawn Guo
3 siblings, 0 replies; 5+ messages in thread
From: Shawn Guo @ 2017-07-12 8:44 UTC (permalink / raw)
To: linux-arm-kernel
On Fri, Jun 30, 2017 at 05:43:02PM -0300, Fabio Estevam wrote:
> From: Fabio Estevam <fabio.estevam@nxp.com>
>
> 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")
> Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Applied all, thanks.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-07-12 8:44 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-30 20:43 [PATCH 1/4] ARM: dts: imx7d-sdb: Put pinctrl_spi4 in the correct location Fabio Estevam
2017-06-30 20:43 ` [PATCH 2/4] ARM: dts: imx7d-sdb: Pass phy-reset-gpios Fabio Estevam
2017-06-30 20:43 ` [PATCH 3/4] ARM: imx_v6_v7_defconfig: Enable SPI_GPIO Fabio Estevam
2017-06-30 20:43 ` [PATCH 4/4] ARM: imx_v6_v7_defconfig: Enable GPIO_74X164 Fabio Estevam
2017-07-12 8:44 ` [PATCH 1/4] ARM: dts: imx7d-sdb: Put pinctrl_spi4 in the correct location Shawn Guo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).