devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: dts: imx23: introduce mmc0_sck_cfg
@ 2020-03-08 22:21 Michael Heimpold
  2020-03-16  0:50 ` Shawn Guo
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Heimpold @ 2020-03-08 22:21 UTC (permalink / raw)
  To: shawnguo, robh+dt, mark.rutland, s.hauer, kernel, festevam,
	linux-imx, linux-arm-kernel, linux-kernel, devicetree
  Cc: Michael Heimpold

The Olimex Olinuxino board has a user led connected to SSP1_DETECT.
But since this pin is listed in mmc0_pins_fixup, it is already claimed
by MMC driver and this results in this error during boot:

[    1.390000] imx23-pinctrl 80018000.pinctrl: pin SSP1_DETECT already
  requested by 80010000.spi; cannot claim for leds
[    1.400000] imx23-pinctrl 80018000.pinctrl: pin-65 (leds) status -22
[    1.410000] imx23-pinctrl 80018000.pinctrl: could not request pin 65
   (SSP1_DETECT) from group led_gpio2_1.0  on device 80018000.pinctrl
[    1.420000] leds-gpio leds: Error applying setting, reverse things back
[    1.430000] leds-gpio: probe of leds failed with error -22

This fix it, introduce mmc0_sck_cfg and switch the Olinuxino board to it.

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
---
 arch/arm/boot/dts/imx23-olinuxino.dts | 2 +-
 arch/arm/boot/dts/imx23.dtsi          | 8 ++++++++
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/imx23-olinuxino.dts b/arch/arm/boot/dts/imx23-olinuxino.dts
index 4c9aafe00b5d..0729e72f2283 100644
--- a/arch/arm/boot/dts/imx23-olinuxino.dts
+++ b/arch/arm/boot/dts/imx23-olinuxino.dts
@@ -23,7 +23,7 @@
 			ssp0: spi@80010000 {
 				compatible = "fsl,imx23-mmc";
 				pinctrl-names = "default";
-				pinctrl-0 = <&mmc0_4bit_pins_a &mmc0_pins_fixup>;
+				pinctrl-0 = <&mmc0_4bit_pins_a &mmc0_sck_cfg>;
 				bus-width = <4>;
 				broken-cd;
 				status = "okay";
diff --git a/arch/arm/boot/dts/imx23.dtsi b/arch/arm/boot/dts/imx23.dtsi
index 8257630f7a49..e18ad74d5470 100644
--- a/arch/arm/boot/dts/imx23.dtsi
+++ b/arch/arm/boot/dts/imx23.dtsi
@@ -267,6 +267,14 @@
 					fsl,pull-up = <MXS_PULL_DISABLE>;
 				};
 
+				mmc0_sck_cfg: mmc0-sck-cfg@0 {
+					reg = <0>;
+					fsl,pinmux-ids = <
+						MX23_PAD_SSP1_SCK__SSP1_SCK
+					>;
+					fsl,pull-up = <MXS_PULL_DISABLE>;
+				};
+
 				mmc1_4bit_pins_a: mmc1-4bit@0 {
 					reg = <0>;
 					fsl,pinmux-ids = <
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] ARM: dts: imx23: introduce mmc0_sck_cfg
  2020-03-08 22:21 [PATCH] ARM: dts: imx23: introduce mmc0_sck_cfg Michael Heimpold
@ 2020-03-16  0:50 ` Shawn Guo
  0 siblings, 0 replies; 2+ messages in thread
From: Shawn Guo @ 2020-03-16  0:50 UTC (permalink / raw)
  To: Michael Heimpold
  Cc: robh+dt, mark.rutland, s.hauer, kernel, festevam, linux-imx,
	linux-arm-kernel, linux-kernel, devicetree

On Sun, Mar 08, 2020 at 11:21:44PM +0100, Michael Heimpold wrote:
> The Olimex Olinuxino board has a user led connected to SSP1_DETECT.
> But since this pin is listed in mmc0_pins_fixup, it is already claimed
> by MMC driver and this results in this error during boot:
> 
> [    1.390000] imx23-pinctrl 80018000.pinctrl: pin SSP1_DETECT already
>   requested by 80010000.spi; cannot claim for leds
> [    1.400000] imx23-pinctrl 80018000.pinctrl: pin-65 (leds) status -22
> [    1.410000] imx23-pinctrl 80018000.pinctrl: could not request pin 65
>    (SSP1_DETECT) from group led_gpio2_1.0  on device 80018000.pinctrl
> [    1.420000] leds-gpio leds: Error applying setting, reverse things back
> [    1.430000] leds-gpio: probe of leds failed with error -22
> 
> This fix it, introduce mmc0_sck_cfg and switch the Olinuxino board to it.
> 
> Signed-off-by: Michael Heimpold <mhei@heimpold.de>

Applied, thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-03-16  0:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-08 22:21 [PATCH] ARM: dts: imx23: introduce mmc0_sck_cfg Michael Heimpold
2020-03-16  0:50 ` 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).