* [PATCH 1/2] ARM: DTS: kirkwood-openrd: fix pin names for UART/SD selection
@ 2016-01-12 20:07 Aaro Koskinen
2016-01-12 20:07 ` [PATCH 2/2] ARM: DTS: kirkwood-openrd: fix SD slot default configuration Aaro Koskinen
[not found] ` <1452629253-21748-1-git-send-email-aaro.koskinen-X3B1VOXEql0@public.gmane.org>
0 siblings, 2 replies; 7+ messages in thread
From: Aaro Koskinen @ 2016-01-12 20:07 UTC (permalink / raw)
To: Jason Cooper, Andrew Lunn, linux-arm-kernel, devicetree; +Cc: Aaro Koskinen
The UART/SD pin names are swapped, fix that.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
---
arch/arm/boot/dts/kirkwood-openrd.dtsi | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm/boot/dts/kirkwood-openrd.dtsi b/arch/arm/boot/dts/kirkwood-openrd.dtsi
index d3330da..2a3dafd 100644
--- a/arch/arm/boot/dts/kirkwood-openrd.dtsi
+++ b/arch/arm/boot/dts/kirkwood-openrd.dtsi
@@ -40,7 +40,7 @@
pinctrl-0 = <&pmx_select28 &pmx_sdio_cd &pmx_select34>;
pinctrl-names = "default";
- pmx_select28: pmx-select-uart-sd {
+ pmx_select28: pmx-select-rs232-rs484 {
marvell,pins = "mpp28";
marvell,function = "gpio";
};
@@ -48,7 +48,7 @@
marvell,pins = "mpp29";
marvell,function = "gpio";
};
- pmx_select34: pmx-select-rs232-rs484 {
+ pmx_select34: pmx-select-uart-sd {
marvell,pins = "mpp34";
marvell,function = "gpio";
};
--
2.4.0
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 2/2] ARM: DTS: kirkwood-openrd: fix SD slot default configuration
2016-01-12 20:07 [PATCH 1/2] ARM: DTS: kirkwood-openrd: fix pin names for UART/SD selection Aaro Koskinen
@ 2016-01-12 20:07 ` Aaro Koskinen
2016-01-17 22:43 ` Martin Michlmayr
[not found] ` <1452629253-21748-2-git-send-email-aaro.koskinen-X3B1VOXEql0@public.gmane.org>
[not found] ` <1452629253-21748-1-git-send-email-aaro.koskinen-X3B1VOXEql0@public.gmane.org>
1 sibling, 2 replies; 7+ messages in thread
From: Aaro Koskinen @ 2016-01-12 20:07 UTC (permalink / raw)
To: Jason Cooper, Andrew Lunn, linux-arm-kernel, devicetree; +Cc: Aaro Koskinen
The SD card slot was enabled by default with legacy booting.
It does not work anymore with DT boot. Fix by providing GPIO configuration
that matches the old default.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
---
arch/arm/boot/dts/kirkwood-openrd.dtsi | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/arch/arm/boot/dts/kirkwood-openrd.dtsi b/arch/arm/boot/dts/kirkwood-openrd.dtsi
index 2a3dafd..f65b727 100644
--- a/arch/arm/boot/dts/kirkwood-openrd.dtsi
+++ b/arch/arm/boot/dts/kirkwood-openrd.dtsi
@@ -65,6 +65,14 @@
status = "okay";
cd-gpios = <&gpio0 29 9>;
};
+ gpio@10140 {
+ p2 {
+ gpio-hog;
+ gpios = <2 GPIO_ACTIVE_HIGH>;
+ output-high; /* Select SD by default */
+ line-name = "SelUARTorSD";
+ };
+ };
};
};
--
2.4.0
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 2/2] ARM: DTS: kirkwood-openrd: fix SD slot default configuration
2016-01-12 20:07 ` [PATCH 2/2] ARM: DTS: kirkwood-openrd: fix SD slot default configuration Aaro Koskinen
@ 2016-01-17 22:43 ` Martin Michlmayr
[not found] ` <1452629253-21748-2-git-send-email-aaro.koskinen-X3B1VOXEql0@public.gmane.org>
1 sibling, 0 replies; 7+ messages in thread
From: Martin Michlmayr @ 2016-01-17 22:43 UTC (permalink / raw)
To: Aaro Koskinen; +Cc: Andrew Lunn, Jason Cooper, linux-arm-kernel, devicetree
* Aaro Koskinen <aaro.koskinen@iki.fi> [2016-01-12 22:07]:
> The SD card slot was enabled by default with legacy booting.
> It does not work anymore with DT boot. Fix by providing GPIO configuration
> that matches the old default.
Tested-by: Rick Thomas <rbthomas@pobox.com>
Reviewed-by: Martin Michlmayr <tbm@cyrius.com>
--
Martin Michlmayr
http://www.cyrius.com/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/2] ARM: DTS: kirkwood-openrd: fix pin names for UART/SD selection
[not found] ` <1452629253-21748-1-git-send-email-aaro.koskinen-X3B1VOXEql0@public.gmane.org>
@ 2016-01-17 23:03 ` Martin Michlmayr
2016-01-24 17:30 ` Andrew Lunn
2016-01-25 13:39 ` Gregory CLEMENT
2 siblings, 0 replies; 7+ messages in thread
From: Martin Michlmayr @ 2016-01-17 23:03 UTC (permalink / raw)
To: Aaro Koskinen
Cc: Jason Cooper, Andrew Lunn,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
devicetree-u79uwXL29TY76Z2rM5mHXA
* Aaro Koskinen <aaro.koskinen-X3B1VOXEql0@public.gmane.org> [2016-01-12 22:07]:
> The UART/SD pin names are swapped, fix that.
Reviewed-by: Martin Michlmayr <tbm-R+vWnYXSFMfQT0dZR+AlfA@public.gmane.org>
--
Martin Michlmayr
http://www.cyrius.com/
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/2] ARM: DTS: kirkwood-openrd: fix pin names for UART/SD selection
[not found] ` <1452629253-21748-1-git-send-email-aaro.koskinen-X3B1VOXEql0@public.gmane.org>
2016-01-17 23:03 ` [PATCH 1/2] ARM: DTS: kirkwood-openrd: fix pin names for UART/SD selection Martin Michlmayr
@ 2016-01-24 17:30 ` Andrew Lunn
2016-01-25 13:39 ` Gregory CLEMENT
2 siblings, 0 replies; 7+ messages in thread
From: Andrew Lunn @ 2016-01-24 17:30 UTC (permalink / raw)
To: Aaro Koskinen
Cc: Jason Cooper, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
devicetree-u79uwXL29TY76Z2rM5mHXA, Gregory Clement
On Tue, Jan 12, 2016 at 10:07:32PM +0200, Aaro Koskinen wrote:
> The UART/SD pin names are swapped, fix that.
>
> Signed-off-by: Aaro Koskinen <aaro.koskinen-X3B1VOXEql0@public.gmane.org>
This, and 2/2:
Reviewed-by: Andrew Lunn <andrew-g2DYL2Zd6BY@public.gmane.org>
Thanks
Andrew
> ---
> arch/arm/boot/dts/kirkwood-openrd.dtsi | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/arch/arm/boot/dts/kirkwood-openrd.dtsi b/arch/arm/boot/dts/kirkwood-openrd.dtsi
> index d3330da..2a3dafd 100644
> --- a/arch/arm/boot/dts/kirkwood-openrd.dtsi
> +++ b/arch/arm/boot/dts/kirkwood-openrd.dtsi
> @@ -40,7 +40,7 @@
> pinctrl-0 = <&pmx_select28 &pmx_sdio_cd &pmx_select34>;
> pinctrl-names = "default";
>
> - pmx_select28: pmx-select-uart-sd {
> + pmx_select28: pmx-select-rs232-rs484 {
> marvell,pins = "mpp28";
> marvell,function = "gpio";
> };
> @@ -48,7 +48,7 @@
> marvell,pins = "mpp29";
> marvell,function = "gpio";
> };
> - pmx_select34: pmx-select-rs232-rs484 {
> + pmx_select34: pmx-select-uart-sd {
> marvell,pins = "mpp34";
> marvell,function = "gpio";
> };
> --
> 2.4.0
>
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/2] ARM: DTS: kirkwood-openrd: fix pin names for UART/SD selection
[not found] ` <1452629253-21748-1-git-send-email-aaro.koskinen-X3B1VOXEql0@public.gmane.org>
2016-01-17 23:03 ` [PATCH 1/2] ARM: DTS: kirkwood-openrd: fix pin names for UART/SD selection Martin Michlmayr
2016-01-24 17:30 ` Andrew Lunn
@ 2016-01-25 13:39 ` Gregory CLEMENT
2 siblings, 0 replies; 7+ messages in thread
From: Gregory CLEMENT @ 2016-01-25 13:39 UTC (permalink / raw)
To: Aaro Koskinen
Cc: Jason Cooper, Andrew Lunn,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
devicetree-u79uwXL29TY76Z2rM5mHXA
Hi Aaro,
On mar., janv. 12 2016, Aaro Koskinen <aaro.koskinen-X3B1VOXEql0@public.gmane.org> wrote:
> The UART/SD pin names are swapped, fix that.
>
> Signed-off-by: Aaro Koskinen <aaro.koskinen-X3B1VOXEql0@public.gmane.org>
Applied on mvebu/dt with Andrew's reviewed-by
Thanks,
Gregory
> ---
> arch/arm/boot/dts/kirkwood-openrd.dtsi | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/arch/arm/boot/dts/kirkwood-openrd.dtsi b/arch/arm/boot/dts/kirkwood-openrd.dtsi
> index d3330da..2a3dafd 100644
> --- a/arch/arm/boot/dts/kirkwood-openrd.dtsi
> +++ b/arch/arm/boot/dts/kirkwood-openrd.dtsi
> @@ -40,7 +40,7 @@
> pinctrl-0 = <&pmx_select28 &pmx_sdio_cd &pmx_select34>;
> pinctrl-names = "default";
>
> - pmx_select28: pmx-select-uart-sd {
> + pmx_select28: pmx-select-rs232-rs484 {
> marvell,pins = "mpp28";
> marvell,function = "gpio";
> };
> @@ -48,7 +48,7 @@
> marvell,pins = "mpp29";
> marvell,function = "gpio";
> };
> - pmx_select34: pmx-select-rs232-rs484 {
> + pmx_select34: pmx-select-uart-sd {
> marvell,pins = "mpp34";
> marvell,function = "gpio";
> };
> --
> 2.4.0
>
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
--
Gregory Clement, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 2/2] ARM: DTS: kirkwood-openrd: fix SD slot default configuration
[not found] ` <1452629253-21748-2-git-send-email-aaro.koskinen-X3B1VOXEql0@public.gmane.org>
@ 2016-01-25 13:41 ` Gregory CLEMENT
0 siblings, 0 replies; 7+ messages in thread
From: Gregory CLEMENT @ 2016-01-25 13:41 UTC (permalink / raw)
To: Aaro Koskinen
Cc: Jason Cooper, Andrew Lunn,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
devicetree-u79uwXL29TY76Z2rM5mHXA
Hi Aaro,
On mar., janv. 12 2016, Aaro Koskinen <aaro.koskinen-X3B1VOXEql0@public.gmane.org> wrote:
> The SD card slot was enabled by default with legacy booting.
> It does not work anymore with DT boot. Fix by providing GPIO configuration
> that matches the old default.
>
> Signed-off-by: Aaro Koskinen <aaro.koskinen-X3B1VOXEql0@public.gmane.org>
Applied on mvebu/dt with Andrew Reviewed-by
Thanks,
Gregory
> ---
> arch/arm/boot/dts/kirkwood-openrd.dtsi | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/arch/arm/boot/dts/kirkwood-openrd.dtsi b/arch/arm/boot/dts/kirkwood-openrd.dtsi
> index 2a3dafd..f65b727 100644
> --- a/arch/arm/boot/dts/kirkwood-openrd.dtsi
> +++ b/arch/arm/boot/dts/kirkwood-openrd.dtsi
> @@ -65,6 +65,14 @@
> status = "okay";
> cd-gpios = <&gpio0 29 9>;
> };
> + gpio@10140 {
> + p2 {
> + gpio-hog;
> + gpios = <2 GPIO_ACTIVE_HIGH>;
> + output-high; /* Select SD by default */
> + line-name = "SelUARTorSD";
> + };
> + };
> };
> };
>
> --
> 2.4.0
>
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
--
Gregory Clement, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2016-01-25 13:41 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-12 20:07 [PATCH 1/2] ARM: DTS: kirkwood-openrd: fix pin names for UART/SD selection Aaro Koskinen
2016-01-12 20:07 ` [PATCH 2/2] ARM: DTS: kirkwood-openrd: fix SD slot default configuration Aaro Koskinen
2016-01-17 22:43 ` Martin Michlmayr
[not found] ` <1452629253-21748-2-git-send-email-aaro.koskinen-X3B1VOXEql0@public.gmane.org>
2016-01-25 13:41 ` Gregory CLEMENT
[not found] ` <1452629253-21748-1-git-send-email-aaro.koskinen-X3B1VOXEql0@public.gmane.org>
2016-01-17 23:03 ` [PATCH 1/2] ARM: DTS: kirkwood-openrd: fix pin names for UART/SD selection Martin Michlmayr
2016-01-24 17:30 ` Andrew Lunn
2016-01-25 13:39 ` Gregory CLEMENT
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).