linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: bcm2835: dts: fix uart1 pinctrl node name
@ 2017-01-29 13:17 Baruch Siach
  2017-01-29 15:27 ` Stefan Wahren
  0 siblings, 1 reply; 2+ messages in thread
From: Baruch Siach @ 2017-01-29 13:17 UTC (permalink / raw)
  To: linux-arm-kernel

Downstream kernel uses pins 32, 33 as UART0 (PL011) Rx/Tx to communicate with
the Bluetooth chip. So ALT3 of these pins is most likely not CTS/RTS. Change
the node name to reflect that.

With this change in place, adding

  &uart0 {
	 pinctrl-names = "default";
	 pinctrl-0 = <&uart0_gpio32 &gpclk2_gpio43>;
	 status = "okay";
  };

to bcm2837-rpi-3-b.dts does the right thing on my Raspberry Pi 3.

Fixes: 21ff843931b ("ARM: dts: bcm283x: Define standard pinctrl groups in the gpio node.")
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
---
Should uart0_gpio30 be renamed to uart0_ctsrts_gpio30?
---
 arch/arm/boot/dts/bcm283x.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/bcm283x.dtsi b/arch/arm/boot/dts/bcm283x.dtsi
index 9a44da190897..be6f0bf430ea 100644
--- a/arch/arm/boot/dts/bcm283x.dtsi
+++ b/arch/arm/boot/dts/bcm283x.dtsi
@@ -302,7 +302,7 @@
 				brcm,pins = <30 31>;
 				brcm,function = <BCM2835_FSEL_ALT3>;
 			};
-			uart0_ctsrts_gpio32: uart0_ctsrts_gpio32 {
+			uart0_gpio32: uart0_gpio32 {
 				brcm,pins = <32 33>;
 				brcm,function = <BCM2835_FSEL_ALT3>;
 			};
-- 
2.11.0

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

* [PATCH] ARM: bcm2835: dts: fix uart1 pinctrl node name
  2017-01-29 13:17 [PATCH] ARM: bcm2835: dts: fix uart1 pinctrl node name Baruch Siach
@ 2017-01-29 15:27 ` Stefan Wahren
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Wahren @ 2017-01-29 15:27 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Baruch,

> Baruch Siach <baruch@tkos.co.il> hat am 29. Januar 2017 um 14:17 geschrieben:
> 
> 
> Downstream kernel uses pins 32, 33 as UART0 (PL011) Rx/Tx to communicate with
> the Bluetooth chip. So ALT3 of these pins is most likely not CTS/RTS. Change
> the node name to reflect that.
> 
> With this change in place, adding
> 
>   &uart0 {
> 	 pinctrl-names = "default";
> 	 pinctrl-0 = <&uart0_gpio32 &gpclk2_gpio43>;
> 	 status = "okay";
>   };
> 
> to bcm2837-rpi-3-b.dts does the right thing on my Raspberry Pi 3.
> 
> Fixes: 21ff843931b ("ARM: dts: bcm283x: Define standard pinctrl groups in the gpio node.")
> Signed-off-by: Baruch Siach <baruch@tkos.co.il>
> ---
> Should uart0_gpio30 be renamed to uart0_ctsrts_gpio30?

yes. According to the datasheet GPIO 30, 31 are for the flow control and GPIO 32, 33 are Tx, Rx.  Sorry for the delay, but i received your email only today via linux-rpi-kernel.

Please change the following in Version 2:

* s/uart1/uart0/ within the subject
* also fix uart0_gpio30 in the same patch

and you can add

Acked-by: Stefan Wahren <stefan.wahren@i2se.com>

Btw could you please add the missing o in the comment above uart0_ctsrts_gpio16?

Thanks
Stefan

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

end of thread, other threads:[~2017-01-29 15:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-29 13:17 [PATCH] ARM: bcm2835: dts: fix uart1 pinctrl node name Baruch Siach
2017-01-29 15:27 ` Stefan Wahren

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).