All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARM: dts: da850: Add missing pin muxing for the UARTs
@ 2016-08-04 11:06 ` Karl Beldan
  0 siblings, 0 replies; 31+ messages in thread
From: Karl Beldan @ 2016-08-04 11:06 UTC (permalink / raw)
  To: devicetree, linux-arm-kernel
  Cc: Mark Rutland, karl.beldan+oss, Kevin Hilman, Russell King,
	Rob Herring, Karl Beldan

This adds 2 pinctrl groups (rtscts, rxtx) for each of the 3 UARTs.

Signed-off-by: Karl Beldan <kbeldan@baylibre.com>
---
 arch/arm/boot/dts/da850.dtsi | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/arch/arm/boot/dts/da850.dtsi b/arch/arm/boot/dts/da850.dtsi
index 25f0f8e..bc10e7e 100644
--- a/arch/arm/boot/dts/da850.dtsi
+++ b/arch/arm/boot/dts/da850.dtsi
@@ -41,6 +41,42 @@
 			pinctrl-single,function-mask = <0xf>;
 			status = "disabled";
 
+			serial0_rtscts_pins: pinmux_serial0_rtscts_pins {
+				pinctrl-single,bits = <
+					/* UART0_RTS UART0_CTS */
+					0x0c 0x22000000 0xff000000
+				>;
+			};
+			serial0_rxtx_pins: pinmux_serial0_rxtx_pins {
+				pinctrl-single,bits = <
+					/* UART0_TXD UART0_RXD */
+					0x0c 0x00220000 0x00ff0000
+				>;
+			};
+			serial1_rtscts_pins: pinmux_serial1_rtscts_pins {
+				pinctrl-single,bits = <
+					/* UART1_CTS UART1_RTS */
+					0x00 0x00440000 0x00ff0000
+				>;
+			};
+			serial1_rxtx_pins: pinmux_serial1_rxtx_pins {
+				pinctrl-single,bits = <
+					/* UART1_TXD UART1_RXD */
+					0x10 0x22000000 0xff000000
+				>;
+			};
+			serial2_rtscts_pins: pinmux_serial2_rtscts_pins {
+				pinctrl-single,bits = <
+					/* UART2_CTS UART2_RTS */
+					0x00 0x44000000 0xff000000
+				>;
+			};
+			serial2_rxtx_pins: pinmux_serial2_rxtx_pins {
+				pinctrl-single,bits = <
+					/* UART2_TXD UART2_RXD */
+					0x10 0x00220000 0x00ff0000
+				>;
+			};
 			nand_cs3_pins: pinmux_nand_pins {
 				pinctrl-single,bits = <
 					/* EMA_OE, EMA_WE */
-- 
2.9.0.rc1

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

* [PATCH] ARM: dts: da850: Add missing pin muxing for the UARTs
@ 2016-08-04 11:06 ` Karl Beldan
  0 siblings, 0 replies; 31+ messages in thread
From: Karl Beldan @ 2016-08-04 11:06 UTC (permalink / raw)
  To: linux-arm-kernel

This adds 2 pinctrl groups (rtscts, rxtx) for each of the 3 UARTs.

Signed-off-by: Karl Beldan <kbeldan@baylibre.com>
---
 arch/arm/boot/dts/da850.dtsi | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/arch/arm/boot/dts/da850.dtsi b/arch/arm/boot/dts/da850.dtsi
index 25f0f8e..bc10e7e 100644
--- a/arch/arm/boot/dts/da850.dtsi
+++ b/arch/arm/boot/dts/da850.dtsi
@@ -41,6 +41,42 @@
 			pinctrl-single,function-mask = <0xf>;
 			status = "disabled";
 
+			serial0_rtscts_pins: pinmux_serial0_rtscts_pins {
+				pinctrl-single,bits = <
+					/* UART0_RTS UART0_CTS */
+					0x0c 0x22000000 0xff000000
+				>;
+			};
+			serial0_rxtx_pins: pinmux_serial0_rxtx_pins {
+				pinctrl-single,bits = <
+					/* UART0_TXD UART0_RXD */
+					0x0c 0x00220000 0x00ff0000
+				>;
+			};
+			serial1_rtscts_pins: pinmux_serial1_rtscts_pins {
+				pinctrl-single,bits = <
+					/* UART1_CTS UART1_RTS */
+					0x00 0x00440000 0x00ff0000
+				>;
+			};
+			serial1_rxtx_pins: pinmux_serial1_rxtx_pins {
+				pinctrl-single,bits = <
+					/* UART1_TXD UART1_RXD */
+					0x10 0x22000000 0xff000000
+				>;
+			};
+			serial2_rtscts_pins: pinmux_serial2_rtscts_pins {
+				pinctrl-single,bits = <
+					/* UART2_CTS UART2_RTS */
+					0x00 0x44000000 0xff000000
+				>;
+			};
+			serial2_rxtx_pins: pinmux_serial2_rxtx_pins {
+				pinctrl-single,bits = <
+					/* UART2_TXD UART2_RXD */
+					0x10 0x00220000 0x00ff0000
+				>;
+			};
 			nand_cs3_pins: pinmux_nand_pins {
 				pinctrl-single,bits = <
 					/* EMA_OE, EMA_WE */
-- 
2.9.0.rc1

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

* Re: [PATCH] ARM: dts: da850: Add missing pin muxing for the UARTs
  2016-08-04 11:06 ` Karl Beldan
@ 2016-08-04 19:04     ` Kevin Hilman
  -1 siblings, 0 replies; 31+ messages in thread
From: Kevin Hilman @ 2016-08-04 19:04 UTC (permalink / raw)
  To: Karl Beldan, Sekhar Nori
  Cc: devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Rob Herring,
	Mark Rutland, Russell King,
	karl.beldan+oss-Re5JQEeQqe8AvxtiuMwx3w

+Sekhar

Karl Beldan <kbeldan-rdvid1DuHRBWk0Htik3J/w@public.gmane.org> writes:

> This adds 2 pinctrl groups (rtscts, rxtx) for each of the 3 UARTs.
>
> Signed-off-by: Karl Beldan <kbeldan-rdvid1DuHRBWk0Htik3J/w@public.gmane.org>
> ---
>  arch/arm/boot/dts/da850.dtsi | 36 ++++++++++++++++++++++++++++++++++++
>  1 file changed, 36 insertions(+)
>
> diff --git a/arch/arm/boot/dts/da850.dtsi b/arch/arm/boot/dts/da850.dtsi
> index 25f0f8e..bc10e7e 100644
> --- a/arch/arm/boot/dts/da850.dtsi
> +++ b/arch/arm/boot/dts/da850.dtsi
> @@ -41,6 +41,42 @@
>  			pinctrl-single,function-mask = <0xf>;
>  			status = "disabled";
>  
> +			serial0_rtscts_pins: pinmux_serial0_rtscts_pins {
> +				pinctrl-single,bits = <
> +					/* UART0_RTS UART0_CTS */
> +					0x0c 0x22000000 0xff000000
> +				>;
> +			};
> +			serial0_rxtx_pins: pinmux_serial0_rxtx_pins {
> +				pinctrl-single,bits = <
> +					/* UART0_TXD UART0_RXD */
> +					0x0c 0x00220000 0x00ff0000
> +				>;
> +			};
> +			serial1_rtscts_pins: pinmux_serial1_rtscts_pins {
> +				pinctrl-single,bits = <
> +					/* UART1_CTS UART1_RTS */
> +					0x00 0x00440000 0x00ff0000
> +				>;
> +			};
> +			serial1_rxtx_pins: pinmux_serial1_rxtx_pins {
> +				pinctrl-single,bits = <
> +					/* UART1_TXD UART1_RXD */
> +					0x10 0x22000000 0xff000000
> +				>;
> +			};
> +			serial2_rtscts_pins: pinmux_serial2_rtscts_pins {
> +				pinctrl-single,bits = <
> +					/* UART2_CTS UART2_RTS */
> +					0x00 0x44000000 0xff000000
> +				>;
> +			};
> +			serial2_rxtx_pins: pinmux_serial2_rxtx_pins {
> +				pinctrl-single,bits = <
> +					/* UART2_TXD UART2_RXD */
> +					0x10 0x00220000 0x00ff0000
> +				>;
> +			};
>  			nand_cs3_pins: pinmux_nand_pins {
>  				pinctrl-single,bits = <
>  					/* EMA_OE, EMA_WE */
--
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] 31+ messages in thread

* [PATCH] ARM: dts: da850: Add missing pin muxing for the UARTs
@ 2016-08-04 19:04     ` Kevin Hilman
  0 siblings, 0 replies; 31+ messages in thread
From: Kevin Hilman @ 2016-08-04 19:04 UTC (permalink / raw)
  To: linux-arm-kernel

+Sekhar

Karl Beldan <kbeldan@baylibre.com> writes:

> This adds 2 pinctrl groups (rtscts, rxtx) for each of the 3 UARTs.
>
> Signed-off-by: Karl Beldan <kbeldan@baylibre.com>
> ---
>  arch/arm/boot/dts/da850.dtsi | 36 ++++++++++++++++++++++++++++++++++++
>  1 file changed, 36 insertions(+)
>
> diff --git a/arch/arm/boot/dts/da850.dtsi b/arch/arm/boot/dts/da850.dtsi
> index 25f0f8e..bc10e7e 100644
> --- a/arch/arm/boot/dts/da850.dtsi
> +++ b/arch/arm/boot/dts/da850.dtsi
> @@ -41,6 +41,42 @@
>  			pinctrl-single,function-mask = <0xf>;
>  			status = "disabled";
>  
> +			serial0_rtscts_pins: pinmux_serial0_rtscts_pins {
> +				pinctrl-single,bits = <
> +					/* UART0_RTS UART0_CTS */
> +					0x0c 0x22000000 0xff000000
> +				>;
> +			};
> +			serial0_rxtx_pins: pinmux_serial0_rxtx_pins {
> +				pinctrl-single,bits = <
> +					/* UART0_TXD UART0_RXD */
> +					0x0c 0x00220000 0x00ff0000
> +				>;
> +			};
> +			serial1_rtscts_pins: pinmux_serial1_rtscts_pins {
> +				pinctrl-single,bits = <
> +					/* UART1_CTS UART1_RTS */
> +					0x00 0x00440000 0x00ff0000
> +				>;
> +			};
> +			serial1_rxtx_pins: pinmux_serial1_rxtx_pins {
> +				pinctrl-single,bits = <
> +					/* UART1_TXD UART1_RXD */
> +					0x10 0x22000000 0xff000000
> +				>;
> +			};
> +			serial2_rtscts_pins: pinmux_serial2_rtscts_pins {
> +				pinctrl-single,bits = <
> +					/* UART2_CTS UART2_RTS */
> +					0x00 0x44000000 0xff000000
> +				>;
> +			};
> +			serial2_rxtx_pins: pinmux_serial2_rxtx_pins {
> +				pinctrl-single,bits = <
> +					/* UART2_TXD UART2_RXD */
> +					0x10 0x00220000 0x00ff0000
> +				>;
> +			};
>  			nand_cs3_pins: pinmux_nand_pins {
>  				pinctrl-single,bits = <
>  					/* EMA_OE, EMA_WE */

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

* Re: [PATCH] ARM: dts: da850: Add missing pin muxing for the UARTs
  2016-08-04 11:06 ` Karl Beldan
@ 2016-08-04 19:20     ` Kevin Hilman
  -1 siblings, 0 replies; 31+ messages in thread
From: Kevin Hilman @ 2016-08-04 19:20 UTC (permalink / raw)
  To: Karl Beldan, Sekhar Nori
  Cc: devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Rob Herring,
	Mark Rutland, Russell King,
	karl.beldan+oss-Re5JQEeQqe8AvxtiuMwx3w

Karl Beldan <kbeldan-rdvid1DuHRBWk0Htik3J/w@public.gmane.org> writes:

> This adds 2 pinctrl groups (rtscts, rxtx) for each of the 3 UARTs.
>
> Signed-off-by: Karl Beldan <kbeldan-rdvid1DuHRBWk0Htik3J/w@public.gmane.org>

Should da850-evm be updated to use the serial2_rxtx_pins also?

Tested on LCDK (which uses the serial2 pins).

Tested-by: Kevin Hilman <khilman-rdvid1DuHRBWk0Htik3J/w@public.gmane.org>

Kevin

> ---
>  arch/arm/boot/dts/da850.dtsi | 36 ++++++++++++++++++++++++++++++++++++
>  1 file changed, 36 insertions(+)
>
> diff --git a/arch/arm/boot/dts/da850.dtsi b/arch/arm/boot/dts/da850.dtsi
> index 25f0f8e..bc10e7e 100644
> --- a/arch/arm/boot/dts/da850.dtsi
> +++ b/arch/arm/boot/dts/da850.dtsi
> @@ -41,6 +41,42 @@
>  			pinctrl-single,function-mask = <0xf>;
>  			status = "disabled";
>  
> +			serial0_rtscts_pins: pinmux_serial0_rtscts_pins {
> +				pinctrl-single,bits = <
> +					/* UART0_RTS UART0_CTS */
> +					0x0c 0x22000000 0xff000000
> +				>;
> +			};
> +			serial0_rxtx_pins: pinmux_serial0_rxtx_pins {
> +				pinctrl-single,bits = <
> +					/* UART0_TXD UART0_RXD */
> +					0x0c 0x00220000 0x00ff0000
> +				>;
> +			};
> +			serial1_rtscts_pins: pinmux_serial1_rtscts_pins {
> +				pinctrl-single,bits = <
> +					/* UART1_CTS UART1_RTS */
> +					0x00 0x00440000 0x00ff0000
> +				>;
> +			};
> +			serial1_rxtx_pins: pinmux_serial1_rxtx_pins {
> +				pinctrl-single,bits = <
> +					/* UART1_TXD UART1_RXD */
> +					0x10 0x22000000 0xff000000
> +				>;
> +			};
> +			serial2_rtscts_pins: pinmux_serial2_rtscts_pins {
> +				pinctrl-single,bits = <
> +					/* UART2_CTS UART2_RTS */
> +					0x00 0x44000000 0xff000000
> +				>;
> +			};
> +			serial2_rxtx_pins: pinmux_serial2_rxtx_pins {
> +				pinctrl-single,bits = <
> +					/* UART2_TXD UART2_RXD */
> +					0x10 0x00220000 0x00ff0000
> +				>;
> +			};
>  			nand_cs3_pins: pinmux_nand_pins {
>  				pinctrl-single,bits = <
>  					/* EMA_OE, EMA_WE */
--
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] 31+ messages in thread

* [PATCH] ARM: dts: da850: Add missing pin muxing for the UARTs
@ 2016-08-04 19:20     ` Kevin Hilman
  0 siblings, 0 replies; 31+ messages in thread
From: Kevin Hilman @ 2016-08-04 19:20 UTC (permalink / raw)
  To: linux-arm-kernel

Karl Beldan <kbeldan@baylibre.com> writes:

> This adds 2 pinctrl groups (rtscts, rxtx) for each of the 3 UARTs.
>
> Signed-off-by: Karl Beldan <kbeldan@baylibre.com>

Should da850-evm be updated to use the serial2_rxtx_pins also?

Tested on LCDK (which uses the serial2 pins).

Tested-by: Kevin Hilman <khilman@baylibre.com>

Kevin

> ---
>  arch/arm/boot/dts/da850.dtsi | 36 ++++++++++++++++++++++++++++++++++++
>  1 file changed, 36 insertions(+)
>
> diff --git a/arch/arm/boot/dts/da850.dtsi b/arch/arm/boot/dts/da850.dtsi
> index 25f0f8e..bc10e7e 100644
> --- a/arch/arm/boot/dts/da850.dtsi
> +++ b/arch/arm/boot/dts/da850.dtsi
> @@ -41,6 +41,42 @@
>  			pinctrl-single,function-mask = <0xf>;
>  			status = "disabled";
>  
> +			serial0_rtscts_pins: pinmux_serial0_rtscts_pins {
> +				pinctrl-single,bits = <
> +					/* UART0_RTS UART0_CTS */
> +					0x0c 0x22000000 0xff000000
> +				>;
> +			};
> +			serial0_rxtx_pins: pinmux_serial0_rxtx_pins {
> +				pinctrl-single,bits = <
> +					/* UART0_TXD UART0_RXD */
> +					0x0c 0x00220000 0x00ff0000
> +				>;
> +			};
> +			serial1_rtscts_pins: pinmux_serial1_rtscts_pins {
> +				pinctrl-single,bits = <
> +					/* UART1_CTS UART1_RTS */
> +					0x00 0x00440000 0x00ff0000
> +				>;
> +			};
> +			serial1_rxtx_pins: pinmux_serial1_rxtx_pins {
> +				pinctrl-single,bits = <
> +					/* UART1_TXD UART1_RXD */
> +					0x10 0x22000000 0xff000000
> +				>;
> +			};
> +			serial2_rtscts_pins: pinmux_serial2_rtscts_pins {
> +				pinctrl-single,bits = <
> +					/* UART2_CTS UART2_RTS */
> +					0x00 0x44000000 0xff000000
> +				>;
> +			};
> +			serial2_rxtx_pins: pinmux_serial2_rxtx_pins {
> +				pinctrl-single,bits = <
> +					/* UART2_TXD UART2_RXD */
> +					0x10 0x00220000 0x00ff0000
> +				>;
> +			};
>  			nand_cs3_pins: pinmux_nand_pins {
>  				pinctrl-single,bits = <
>  					/* EMA_OE, EMA_WE */

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

* Re: [PATCH] ARM: dts: da850: Add missing pin muxing for the UARTs
  2016-08-04 19:20     ` Kevin Hilman
  (?)
@ 2016-08-04 19:40     ` Karl Beldan
  -1 siblings, 0 replies; 31+ messages in thread
From: Karl Beldan @ 2016-08-04 19:40 UTC (permalink / raw)
  To: Kevin Hilman
  Cc: Sekhar Nori, devicetree, linux-arm-kernel, Rob Herring,
	Mark Rutland, Russell King, karl.beldan+oss

On Thu, Aug 04, 2016 at 12:20:27PM -0700, Kevin Hilman wrote:
> Karl Beldan <kbeldan@baylibre.com> writes:
> 
> > This adds 2 pinctrl groups (rtscts, rxtx) for each of the 3 UARTs.
> >
> > Signed-off-by: Karl Beldan <kbeldan@baylibre.com>
> 
> Should da850-evm be updated to use the serial2_rxtx_pins also?
> 
I could not find the EVM schematics on the net and I only have an LCDK,
but according to the code it should, however I can't tell whether it
needs flow control.
 
Karl

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

* Re: [PATCH] ARM: dts: da850: Add missing pin muxing for the UARTs
  2016-08-04 19:20     ` Kevin Hilman
@ 2016-08-04 21:00         ` Karl Beldan
  -1 siblings, 0 replies; 31+ messages in thread
From: Karl Beldan @ 2016-08-04 21:00 UTC (permalink / raw)
  To: Kevin Hilman
  Cc: Sekhar Nori, devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Rob Herring,
	Mark Rutland, Russell King,
	karl.beldan+oss-Re5JQEeQqe8AvxtiuMwx3w

On Thu, Aug 04, 2016 at 12:20:27PM -0700, Kevin Hilman wrote:
> Karl Beldan <kbeldan-rdvid1DuHRBWk0Htik3J/w@public.gmane.org> writes:
> 
> > This adds 2 pinctrl groups (rtscts, rxtx) for each of the 3 UARTs.
> >
> > Signed-off-by: Karl Beldan <kbeldan-rdvid1DuHRBWk0Htik3J/w@public.gmane.org>
> 
> Should da850-evm be updated to use the serial2_rxtx_pins also?
> 
I could not find the EVM schematics on the net and I only have an LCDK,
but according to the code it should, however I can't tell whether flow
control pins are used.
 
Karl
--
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] 31+ messages in thread

* [PATCH] ARM: dts: da850: Add missing pin muxing for the UARTs
@ 2016-08-04 21:00         ` Karl Beldan
  0 siblings, 0 replies; 31+ messages in thread
From: Karl Beldan @ 2016-08-04 21:00 UTC (permalink / raw)
  To: linux-arm-kernel

On Thu, Aug 04, 2016 at 12:20:27PM -0700, Kevin Hilman wrote:
> Karl Beldan <kbeldan@baylibre.com> writes:
> 
> > This adds 2 pinctrl groups (rtscts, rxtx) for each of the 3 UARTs.
> >
> > Signed-off-by: Karl Beldan <kbeldan@baylibre.com>
> 
> Should da850-evm be updated to use the serial2_rxtx_pins also?
> 
I could not find the EVM schematics on the net and I only have an LCDK,
but according to the code it should, however I can't tell whether flow
control pins are used.
 
Karl

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

* Re: [PATCH] ARM: dts: da850: Add missing pin muxing for the UARTs
  2016-08-04 21:00         ` Karl Beldan
@ 2016-08-04 23:00           ` Kevin Hilman
  -1 siblings, 0 replies; 31+ messages in thread
From: Kevin Hilman @ 2016-08-04 23:00 UTC (permalink / raw)
  To: Karl Beldan
  Cc: Sekhar Nori, devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Rob Herring,
	Mark Rutland, Russell King,
	karl.beldan+oss-Re5JQEeQqe8AvxtiuMwx3w

Karl Beldan <kbeldan-rdvid1DuHRBWk0Htik3J/w@public.gmane.org> writes:

> On Thu, Aug 04, 2016 at 12:20:27PM -0700, Kevin Hilman wrote:
>> Karl Beldan <kbeldan-rdvid1DuHRBWk0Htik3J/w@public.gmane.org> writes:
>> 
>> > This adds 2 pinctrl groups (rtscts, rxtx) for each of the 3 UARTs.
>> >
>> > Signed-off-by: Karl Beldan <kbeldan-rdvid1DuHRBWk0Htik3J/w@public.gmane.org>
>> 
>> Should da850-evm be updated to use the serial2_rxtx_pins also?
>> 
> I could not find the EVM schematics on the net and I only have an LCDK,
> but according to the code it should, however I can't tell whether flow
> control pins are used.

Ok, let's just leave it for now, since it's working fine.  Sekhar can
fix that up if he can dig up the schematics.

Kevin
--
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] 31+ messages in thread

* [PATCH] ARM: dts: da850: Add missing pin muxing for the UARTs
@ 2016-08-04 23:00           ` Kevin Hilman
  0 siblings, 0 replies; 31+ messages in thread
From: Kevin Hilman @ 2016-08-04 23:00 UTC (permalink / raw)
  To: linux-arm-kernel

Karl Beldan <kbeldan@baylibre.com> writes:

> On Thu, Aug 04, 2016 at 12:20:27PM -0700, Kevin Hilman wrote:
>> Karl Beldan <kbeldan@baylibre.com> writes:
>> 
>> > This adds 2 pinctrl groups (rtscts, rxtx) for each of the 3 UARTs.
>> >
>> > Signed-off-by: Karl Beldan <kbeldan@baylibre.com>
>> 
>> Should da850-evm be updated to use the serial2_rxtx_pins also?
>> 
> I could not find the EVM schematics on the net and I only have an LCDK,
> but according to the code it should, however I can't tell whether flow
> control pins are used.

Ok, let's just leave it for now, since it's working fine.  Sekhar can
fix that up if he can dig up the schematics.

Kevin

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

* Re: [PATCH] ARM: dts: da850: Add missing pin muxing for the UARTs
  2016-08-04 11:06 ` Karl Beldan
@ 2016-08-09 10:19     ` Sekhar Nori
  -1 siblings, 0 replies; 31+ messages in thread
From: Sekhar Nori @ 2016-08-09 10:19 UTC (permalink / raw)
  To: Karl Beldan, devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r
  Cc: Mark Rutland, karl.beldan+oss-Re5JQEeQqe8AvxtiuMwx3w,
	Kevin Hilman, Russell King, Rob Herring

On Thursday 04 August 2016 04:36 PM, Karl Beldan wrote:
> This adds 2 pinctrl groups (rtscts, rxtx) for each of the 3 UARTs.
> 
> Signed-off-by: Karl Beldan <kbeldan-rdvid1DuHRBWk0Htik3J/w@public.gmane.org>

Applying.

Thanks,
Sekhar
--
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] 31+ messages in thread

* [PATCH] ARM: dts: da850: Add missing pin muxing for the UARTs
@ 2016-08-09 10:19     ` Sekhar Nori
  0 siblings, 0 replies; 31+ messages in thread
From: Sekhar Nori @ 2016-08-09 10:19 UTC (permalink / raw)
  To: linux-arm-kernel

On Thursday 04 August 2016 04:36 PM, Karl Beldan wrote:
> This adds 2 pinctrl groups (rtscts, rxtx) for each of the 3 UARTs.
> 
> Signed-off-by: Karl Beldan <kbeldan@baylibre.com>

Applying.

Thanks,
Sekhar

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

* Re: [PATCH] ARM: dts: da850: Add missing pin muxing for the UARTs
  2016-08-04 23:00           ` Kevin Hilman
@ 2016-08-23 11:09               ` Sekhar Nori
  -1 siblings, 0 replies; 31+ messages in thread
From: Sekhar Nori @ 2016-08-23 11:09 UTC (permalink / raw)
  To: Kevin Hilman, Karl Beldan
  Cc: devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Rob Herring,
	Mark Rutland, Russell King,
	karl.beldan+oss-Re5JQEeQqe8AvxtiuMwx3w

On Friday 05 August 2016 04:30 AM, Kevin Hilman wrote:
> Karl Beldan <kbeldan-rdvid1DuHRBWk0Htik3J/w@public.gmane.org> writes:
> 
>> On Thu, Aug 04, 2016 at 12:20:27PM -0700, Kevin Hilman wrote:
>>> Karl Beldan <kbeldan-rdvid1DuHRBWk0Htik3J/w@public.gmane.org> writes:
>>>
>>>> This adds 2 pinctrl groups (rtscts, rxtx) for each of the 3 UARTs.
>>>>
>>>> Signed-off-by: Karl Beldan <kbeldan-rdvid1DuHRBWk0Htik3J/w@public.gmane.org>
>>>
>>> Should da850-evm be updated to use the serial2_rxtx_pins also?
>>>
>> I could not find the EVM schematics on the net and I only have an LCDK,
>> but according to the code it should, however I can't tell whether flow
>> control pins are used.
> 
> Ok, let's just leave it for now, since it's working fine.  Sekhar can
> fix that up if he can dig up the schematics.

Looks like the flow control pins are being used for McASP also on the
EVM. So lets leave the EVM as-is.

Regards,
Sekhar
--
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] 31+ messages in thread

* [PATCH] ARM: dts: da850: Add missing pin muxing for the UARTs
@ 2016-08-23 11:09               ` Sekhar Nori
  0 siblings, 0 replies; 31+ messages in thread
From: Sekhar Nori @ 2016-08-23 11:09 UTC (permalink / raw)
  To: linux-arm-kernel

On Friday 05 August 2016 04:30 AM, Kevin Hilman wrote:
> Karl Beldan <kbeldan@baylibre.com> writes:
> 
>> On Thu, Aug 04, 2016 at 12:20:27PM -0700, Kevin Hilman wrote:
>>> Karl Beldan <kbeldan@baylibre.com> writes:
>>>
>>>> This adds 2 pinctrl groups (rtscts, rxtx) for each of the 3 UARTs.
>>>>
>>>> Signed-off-by: Karl Beldan <kbeldan@baylibre.com>
>>>
>>> Should da850-evm be updated to use the serial2_rxtx_pins also?
>>>
>> I could not find the EVM schematics on the net and I only have an LCDK,
>> but according to the code it should, however I can't tell whether flow
>> control pins are used.
> 
> Ok, let's just leave it for now, since it's working fine.  Sekhar can
> fix that up if he can dig up the schematics.

Looks like the flow control pins are being used for McASP also on the
EVM. So lets leave the EVM as-is.

Regards,
Sekhar

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

* Re: [PATCH] ARM: dts: da850: Add missing pin muxing for the UARTs
  2016-08-23 11:09               ` Sekhar Nori
@ 2016-08-23 11:16                 ` Sekhar Nori
  -1 siblings, 0 replies; 31+ messages in thread
From: Sekhar Nori @ 2016-08-23 11:16 UTC (permalink / raw)
  To: Kevin Hilman, Karl Beldan
  Cc: Mark Rutland, devicetree, karl.beldan+oss, Russell King,
	Rob Herring, linux-arm-kernel

On Tuesday 23 August 2016 04:39 PM, Sekhar Nori wrote:
> On Friday 05 August 2016 04:30 AM, Kevin Hilman wrote:
>> Karl Beldan <kbeldan@baylibre.com> writes:
>>
>>> On Thu, Aug 04, 2016 at 12:20:27PM -0700, Kevin Hilman wrote:
>>>> Karl Beldan <kbeldan@baylibre.com> writes:
>>>>
>>>>> This adds 2 pinctrl groups (rtscts, rxtx) for each of the 3 UARTs.
>>>>>
>>>>> Signed-off-by: Karl Beldan <kbeldan@baylibre.com>
>>>>
>>>> Should da850-evm be updated to use the serial2_rxtx_pins also?
>>>>
>>> I could not find the EVM schematics on the net and I only have an LCDK,
>>> but according to the code it should, however I can't tell whether flow
>>> control pins are used.
>>
>> Ok, let's just leave it for now, since it's working fine.  Sekhar can
>> fix that up if he can dig up the schematics.
> 
> Looks like the flow control pins are being used for McASP also on the
> EVM. So lets leave the EVM as-is.

Rather, the EVM dts file should be updated to use serial2_rxtx_pins like
the LCDK. Right now it seems to be relying on bootloader to serial2
setup pimux correctly. I can make a patch to fix that. Or if you can do
it, that will be great too.

Regards,
Sekhar

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

* [PATCH] ARM: dts: da850: Add missing pin muxing for the UARTs
@ 2016-08-23 11:16                 ` Sekhar Nori
  0 siblings, 0 replies; 31+ messages in thread
From: Sekhar Nori @ 2016-08-23 11:16 UTC (permalink / raw)
  To: linux-arm-kernel

On Tuesday 23 August 2016 04:39 PM, Sekhar Nori wrote:
> On Friday 05 August 2016 04:30 AM, Kevin Hilman wrote:
>> Karl Beldan <kbeldan@baylibre.com> writes:
>>
>>> On Thu, Aug 04, 2016 at 12:20:27PM -0700, Kevin Hilman wrote:
>>>> Karl Beldan <kbeldan@baylibre.com> writes:
>>>>
>>>>> This adds 2 pinctrl groups (rtscts, rxtx) for each of the 3 UARTs.
>>>>>
>>>>> Signed-off-by: Karl Beldan <kbeldan@baylibre.com>
>>>>
>>>> Should da850-evm be updated to use the serial2_rxtx_pins also?
>>>>
>>> I could not find the EVM schematics on the net and I only have an LCDK,
>>> but according to the code it should, however I can't tell whether flow
>>> control pins are used.
>>
>> Ok, let's just leave it for now, since it's working fine.  Sekhar can
>> fix that up if he can dig up the schematics.
> 
> Looks like the flow control pins are being used for McASP also on the
> EVM. So lets leave the EVM as-is.

Rather, the EVM dts file should be updated to use serial2_rxtx_pins like
the LCDK. Right now it seems to be relying on bootloader to serial2
setup pimux correctly. I can make a patch to fix that. Or if you can do
it, that will be great too.

Regards,
Sekhar

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

* Re: [PATCH] ARM: dts: da850: Add missing pin muxing for the UARTs
  2016-08-23 11:16                 ` Sekhar Nori
@ 2016-08-24  8:38                   ` Karl Beldan
  -1 siblings, 0 replies; 31+ messages in thread
From: Karl Beldan @ 2016-08-24  8:38 UTC (permalink / raw)
  To: Sekhar Nori
  Cc: Mark Rutland, devicetree, karl.beldan+oss, Kevin Hilman,
	Russell King, Rob Herring, linux-arm-kernel

On Tue, Aug 23, 2016 at 04:46:03PM +0530, Sekhar Nori wrote:
> On Tuesday 23 August 2016 04:39 PM, Sekhar Nori wrote:
> > On Friday 05 August 2016 04:30 AM, Kevin Hilman wrote:
> >> Karl Beldan <kbeldan@baylibre.com> writes:
> >>
> >>> On Thu, Aug 04, 2016 at 12:20:27PM -0700, Kevin Hilman wrote:
> >>>> Karl Beldan <kbeldan@baylibre.com> writes:
> >>>>
> >>>>> This adds 2 pinctrl groups (rtscts, rxtx) for each of the 3 UARTs.
> >>>>>
> >>>>> Signed-off-by: Karl Beldan <kbeldan@baylibre.com>
> >>>>
> >>>> Should da850-evm be updated to use the serial2_rxtx_pins also?
> >>>>
> >>> I could not find the EVM schematics on the net and I only have an LCDK,
> >>> but according to the code it should, however I can't tell whether flow
> >>> control pins are used.
> >>
> >> Ok, let's just leave it for now, since it's working fine.  Sekhar can
> >> fix that up if he can dig up the schematics.
> > 
> > Looks like the flow control pins are being used for McASP also on the
> > EVM. So lets leave the EVM as-is.
> 
> Rather, the EVM dts file should be updated to use serial2_rxtx_pins like
> the LCDK. Right now it seems to be relying on bootloader to serial2
> setup pimux correctly. I can make a patch to fix that. Or if you can do
> it, that will be great too.
> 

Indeed ATM the EVM relies on the bootloader to setup the pin muxing.

I just checked the uart pins routing of the EVM, the dts:
- should reclaim serial2_rxtx_pins and serial2_rtscts_pins
- can reclaim serial1_rxtx_pins (out on Audio connector but very
  unlikely used for audio)
- should leave serial1_rtscts_pins (out on Audio connector but used by
  McASP so used for audio)

Also I think it would be better for the serial nodes to reclaim the rxtx
pins in the dtsi, and override the reclaimed pins in the .dts only for
the nodes reclaiming flow control (some other pins could also be
directly reclaimed in the dtsi).

Some other cleanups would also be in order for the da850*:
- use labels for non dtsi (like I did for the LCDK)
- add chosen,memory nodes (I guess currently only the LCDK can
  dispense with ATAGS)
- use a null range translation in the da850 dtsi for the soc node
  (computing the offsets is error prone and is there a point)

Sure I could fix that, along with some of the above suggestions if you
are ok with it.

Rgds, 
Karl

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

* [PATCH] ARM: dts: da850: Add missing pin muxing for the UARTs
@ 2016-08-24  8:38                   ` Karl Beldan
  0 siblings, 0 replies; 31+ messages in thread
From: Karl Beldan @ 2016-08-24  8:38 UTC (permalink / raw)
  To: linux-arm-kernel

On Tue, Aug 23, 2016 at 04:46:03PM +0530, Sekhar Nori wrote:
> On Tuesday 23 August 2016 04:39 PM, Sekhar Nori wrote:
> > On Friday 05 August 2016 04:30 AM, Kevin Hilman wrote:
> >> Karl Beldan <kbeldan@baylibre.com> writes:
> >>
> >>> On Thu, Aug 04, 2016 at 12:20:27PM -0700, Kevin Hilman wrote:
> >>>> Karl Beldan <kbeldan@baylibre.com> writes:
> >>>>
> >>>>> This adds 2 pinctrl groups (rtscts, rxtx) for each of the 3 UARTs.
> >>>>>
> >>>>> Signed-off-by: Karl Beldan <kbeldan@baylibre.com>
> >>>>
> >>>> Should da850-evm be updated to use the serial2_rxtx_pins also?
> >>>>
> >>> I could not find the EVM schematics on the net and I only have an LCDK,
> >>> but according to the code it should, however I can't tell whether flow
> >>> control pins are used.
> >>
> >> Ok, let's just leave it for now, since it's working fine.  Sekhar can
> >> fix that up if he can dig up the schematics.
> > 
> > Looks like the flow control pins are being used for McASP also on the
> > EVM. So lets leave the EVM as-is.
> 
> Rather, the EVM dts file should be updated to use serial2_rxtx_pins like
> the LCDK. Right now it seems to be relying on bootloader to serial2
> setup pimux correctly. I can make a patch to fix that. Or if you can do
> it, that will be great too.
> 

Indeed ATM the EVM relies on the bootloader to setup the pin muxing.

I just checked the uart pins routing of the EVM, the dts:
- should reclaim serial2_rxtx_pins and serial2_rtscts_pins
- can reclaim serial1_rxtx_pins (out on Audio connector but very
  unlikely used for audio)
- should leave serial1_rtscts_pins (out on Audio connector but used by
  McASP so used for audio)

Also I think it would be better for the serial nodes to reclaim the rxtx
pins in the dtsi, and override the reclaimed pins in the .dts only for
the nodes reclaiming flow control (some other pins could also be
directly reclaimed in the dtsi).

Some other cleanups would also be in order for the da850*:
- use labels for non dtsi (like I did for the LCDK)
- add chosen,memory nodes (I guess currently only the LCDK can
  dispense with ATAGS)
- use a null range translation in the da850 dtsi for the soc node
  (computing the offsets is error prone and is there a point)

Sure I could fix that, along with some of the above suggestions if you
are ok with it.

Rgds, 
Karl

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

* Re: [PATCH] ARM: dts: da850: Add missing pin muxing for the UARTs
  2016-08-24  8:38                   ` Karl Beldan
@ 2016-08-25 13:42                     ` Sekhar Nori
  -1 siblings, 0 replies; 31+ messages in thread
From: Sekhar Nori @ 2016-08-25 13:42 UTC (permalink / raw)
  To: Karl Beldan
  Cc: Kevin Hilman, Mark Rutland, devicetree-u79uwXL29TY76Z2rM5mHXA,
	karl.beldan+oss-Re5JQEeQqe8AvxtiuMwx3w, Russell King,
	Rob Herring, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r

On Wednesday 24 August 2016 02:08 PM, Karl Beldan wrote:
> On Tue, Aug 23, 2016 at 04:46:03PM +0530, Sekhar Nori wrote:
>> On Tuesday 23 August 2016 04:39 PM, Sekhar Nori wrote:
>>> On Friday 05 August 2016 04:30 AM, Kevin Hilman wrote:
>>>> Karl Beldan <kbeldan-rdvid1DuHRBWk0Htik3J/w@public.gmane.org> writes:
>>>>
>>>>> On Thu, Aug 04, 2016 at 12:20:27PM -0700, Kevin Hilman wrote:
>>>>>> Karl Beldan <kbeldan-rdvid1DuHRBWk0Htik3J/w@public.gmane.org> writes:
>>>>>>
>>>>>>> This adds 2 pinctrl groups (rtscts, rxtx) for each of the 3 UARTs.
>>>>>>>
>>>>>>> Signed-off-by: Karl Beldan <kbeldan-rdvid1DuHRBWk0Htik3J/w@public.gmane.org>
>>>>>>
>>>>>> Should da850-evm be updated to use the serial2_rxtx_pins also?
>>>>>>
>>>>> I could not find the EVM schematics on the net and I only have an LCDK,
>>>>> but according to the code it should, however I can't tell whether flow
>>>>> control pins are used.
>>>>
>>>> Ok, let's just leave it for now, since it's working fine.  Sekhar can
>>>> fix that up if he can dig up the schematics.
>>>
>>> Looks like the flow control pins are being used for McASP also on the
>>> EVM. So lets leave the EVM as-is.
>>
>> Rather, the EVM dts file should be updated to use serial2_rxtx_pins like
>> the LCDK. Right now it seems to be relying on bootloader to serial2
>> setup pimux correctly. I can make a patch to fix that. Or if you can do
>> it, that will be great too.
>>
> 
> Indeed ATM the EVM relies on the bootloader to setup the pin muxing.
> 
> I just checked the uart pins routing of the EVM, the dts:
> - should reclaim serial2_rxtx_pins and serial2_rtscts_pins

Can you please clarify what you mean by dts should "reclaim". You mean
move the pins from da850.dtsi to da850-evm.dts or something else?

Thanks,
Sekhar
--
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] 31+ messages in thread

* [PATCH] ARM: dts: da850: Add missing pin muxing for the UARTs
@ 2016-08-25 13:42                     ` Sekhar Nori
  0 siblings, 0 replies; 31+ messages in thread
From: Sekhar Nori @ 2016-08-25 13:42 UTC (permalink / raw)
  To: linux-arm-kernel

On Wednesday 24 August 2016 02:08 PM, Karl Beldan wrote:
> On Tue, Aug 23, 2016 at 04:46:03PM +0530, Sekhar Nori wrote:
>> On Tuesday 23 August 2016 04:39 PM, Sekhar Nori wrote:
>>> On Friday 05 August 2016 04:30 AM, Kevin Hilman wrote:
>>>> Karl Beldan <kbeldan@baylibre.com> writes:
>>>>
>>>>> On Thu, Aug 04, 2016 at 12:20:27PM -0700, Kevin Hilman wrote:
>>>>>> Karl Beldan <kbeldan@baylibre.com> writes:
>>>>>>
>>>>>>> This adds 2 pinctrl groups (rtscts, rxtx) for each of the 3 UARTs.
>>>>>>>
>>>>>>> Signed-off-by: Karl Beldan <kbeldan@baylibre.com>
>>>>>>
>>>>>> Should da850-evm be updated to use the serial2_rxtx_pins also?
>>>>>>
>>>>> I could not find the EVM schematics on the net and I only have an LCDK,
>>>>> but according to the code it should, however I can't tell whether flow
>>>>> control pins are used.
>>>>
>>>> Ok, let's just leave it for now, since it's working fine.  Sekhar can
>>>> fix that up if he can dig up the schematics.
>>>
>>> Looks like the flow control pins are being used for McASP also on the
>>> EVM. So lets leave the EVM as-is.
>>
>> Rather, the EVM dts file should be updated to use serial2_rxtx_pins like
>> the LCDK. Right now it seems to be relying on bootloader to serial2
>> setup pimux correctly. I can make a patch to fix that. Or if you can do
>> it, that will be great too.
>>
> 
> Indeed ATM the EVM relies on the bootloader to setup the pin muxing.
> 
> I just checked the uart pins routing of the EVM, the dts:
> - should reclaim serial2_rxtx_pins and serial2_rtscts_pins

Can you please clarify what you mean by dts should "reclaim". You mean
move the pins from da850.dtsi to da850-evm.dts or something else?

Thanks,
Sekhar

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

* Re: [PATCH] ARM: dts: da850: Add missing pin muxing for the UARTs
  2016-08-25 13:42                     ` Sekhar Nori
@ 2016-08-25 14:15                         ` Karl Beldan
  -1 siblings, 0 replies; 31+ messages in thread
From: Karl Beldan @ 2016-08-25 14:15 UTC (permalink / raw)
  To: Sekhar Nori
  Cc: Kevin Hilman, Mark Rutland, devicetree-u79uwXL29TY76Z2rM5mHXA,
	karl.beldan+oss-Re5JQEeQqe8AvxtiuMwx3w, Russell King,
	Rob Herring, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r

On Thu, Aug 25, 2016 at 07:12:16PM +0530, Sekhar Nori wrote:
> On Wednesday 24 August 2016 02:08 PM, Karl Beldan wrote:
> > On Tue, Aug 23, 2016 at 04:46:03PM +0530, Sekhar Nori wrote:
> >> On Tuesday 23 August 2016 04:39 PM, Sekhar Nori wrote:
> >>> On Friday 05 August 2016 04:30 AM, Kevin Hilman wrote:
> >>>> Karl Beldan <kbeldan-rdvid1DuHRBWk0Htik3J/w@public.gmane.org> writes:
> >>>>
> >>>>> On Thu, Aug 04, 2016 at 12:20:27PM -0700, Kevin Hilman wrote:
> >>>>>> Karl Beldan <kbeldan-rdvid1DuHRBWk0Htik3J/w@public.gmane.org> writes:
> >>>>>>
> >>>>>>> This adds 2 pinctrl groups (rtscts, rxtx) for each of the 3 UARTs.
> >>>>>>>
> >>>>>>> Signed-off-by: Karl Beldan <kbeldan-rdvid1DuHRBWk0Htik3J/w@public.gmane.org>
> >>>>>>
> >>>>>> Should da850-evm be updated to use the serial2_rxtx_pins also?
> >>>>>>
> >>>>> I could not find the EVM schematics on the net and I only have an LCDK,
> >>>>> but according to the code it should, however I can't tell whether flow
> >>>>> control pins are used.
> >>>>
> >>>> Ok, let's just leave it for now, since it's working fine.  Sekhar can
> >>>> fix that up if he can dig up the schematics.
> >>>
> >>> Looks like the flow control pins are being used for McASP also on the
> >>> EVM. So lets leave the EVM as-is.
> >>
> >> Rather, the EVM dts file should be updated to use serial2_rxtx_pins like
> >> the LCDK. Right now it seems to be relying on bootloader to serial2
> >> setup pimux correctly. I can make a patch to fix that. Or if you can do
> >> it, that will be great too.
> >>
> > 
> > Indeed ATM the EVM relies on the bootloader to setup the pin muxing.
> > 
> > I just checked the uart pins routing of the EVM, the dts:
> > - should reclaim serial2_rxtx_pins and serial2_rtscts_pins
> 
> Can you please clarify what you mean by dts should "reclaim". You mean
> move the pins from da850.dtsi to da850-evm.dts or something else?
>

No, in the part you are replying to I am not referring to moving the
pins but reclaiming them. The pins are declared in the dtsi, as they
should. Eg. the LCDK dts reclaims serial2_rxtx_pins but doesn't reclaim
serial2_rtscts_pins while their declarations remain in the dtsi.

The purpose of this part was to clarify what I saw on the schematics
because your emails include the following 2 statements:

> >>> Looks like the flow control pins are being used for McASP also on the
> >>> EVM. So lets leave the EVM as-is.

> >> Rather, the EVM dts file should be updated to use serial2_rxtx_pins like
> >> the LCDK. Right now it seems to be relying on bootloader to serial2

My email was to inform that it concerns the flow control pins of the
UART1 only and that the UART2 flow control pins are not concerned and, 
since they are dedicated to the UART2, should be reclaimed unlike
in the LCDK.

 
Karl
--
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] 31+ messages in thread

* [PATCH] ARM: dts: da850: Add missing pin muxing for the UARTs
@ 2016-08-25 14:15                         ` Karl Beldan
  0 siblings, 0 replies; 31+ messages in thread
From: Karl Beldan @ 2016-08-25 14:15 UTC (permalink / raw)
  To: linux-arm-kernel

On Thu, Aug 25, 2016 at 07:12:16PM +0530, Sekhar Nori wrote:
> On Wednesday 24 August 2016 02:08 PM, Karl Beldan wrote:
> > On Tue, Aug 23, 2016 at 04:46:03PM +0530, Sekhar Nori wrote:
> >> On Tuesday 23 August 2016 04:39 PM, Sekhar Nori wrote:
> >>> On Friday 05 August 2016 04:30 AM, Kevin Hilman wrote:
> >>>> Karl Beldan <kbeldan@baylibre.com> writes:
> >>>>
> >>>>> On Thu, Aug 04, 2016 at 12:20:27PM -0700, Kevin Hilman wrote:
> >>>>>> Karl Beldan <kbeldan@baylibre.com> writes:
> >>>>>>
> >>>>>>> This adds 2 pinctrl groups (rtscts, rxtx) for each of the 3 UARTs.
> >>>>>>>
> >>>>>>> Signed-off-by: Karl Beldan <kbeldan@baylibre.com>
> >>>>>>
> >>>>>> Should da850-evm be updated to use the serial2_rxtx_pins also?
> >>>>>>
> >>>>> I could not find the EVM schematics on the net and I only have an LCDK,
> >>>>> but according to the code it should, however I can't tell whether flow
> >>>>> control pins are used.
> >>>>
> >>>> Ok, let's just leave it for now, since it's working fine.  Sekhar can
> >>>> fix that up if he can dig up the schematics.
> >>>
> >>> Looks like the flow control pins are being used for McASP also on the
> >>> EVM. So lets leave the EVM as-is.
> >>
> >> Rather, the EVM dts file should be updated to use serial2_rxtx_pins like
> >> the LCDK. Right now it seems to be relying on bootloader to serial2
> >> setup pimux correctly. I can make a patch to fix that. Or if you can do
> >> it, that will be great too.
> >>
> > 
> > Indeed ATM the EVM relies on the bootloader to setup the pin muxing.
> > 
> > I just checked the uart pins routing of the EVM, the dts:
> > - should reclaim serial2_rxtx_pins and serial2_rtscts_pins
> 
> Can you please clarify what you mean by dts should "reclaim". You mean
> move the pins from da850.dtsi to da850-evm.dts or something else?
>

No, in the part you are replying to I am not referring to moving the
pins but reclaiming them. The pins are declared in the dtsi, as they
should. Eg. the LCDK dts reclaims serial2_rxtx_pins but doesn't reclaim
serial2_rtscts_pins while their declarations remain in the dtsi.

The purpose of this part was to clarify what I saw on the schematics
because your emails include the following 2 statements:

> >>> Looks like the flow control pins are being used for McASP also on the
> >>> EVM. So lets leave the EVM as-is.

> >> Rather, the EVM dts file should be updated to use serial2_rxtx_pins like
> >> the LCDK. Right now it seems to be relying on bootloader to serial2

My email was to inform that it concerns the flow control pins of the
UART1 only and that the UART2 flow control pins are not concerned and, 
since they are dedicated to the UART2, should be reclaimed unlike
in the LCDK.

 
Karl

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

* Re: [PATCH] ARM: dts: da850: Add missing pin muxing for the UARTs
  2016-08-25 14:15                         ` Karl Beldan
@ 2016-08-26 11:42                           ` Sekhar Nori
  -1 siblings, 0 replies; 31+ messages in thread
From: Sekhar Nori @ 2016-08-26 11:42 UTC (permalink / raw)
  To: Karl Beldan
  Cc: Kevin Hilman, Mark Rutland, devicetree-u79uwXL29TY76Z2rM5mHXA,
	karl.beldan+oss-Re5JQEeQqe8AvxtiuMwx3w, Russell King,
	Rob Herring, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r

On Thursday 25 August 2016 07:45 PM, Karl Beldan wrote:

>>> Indeed ATM the EVM relies on the bootloader to setup the pin muxing.
>>>
>>> I just checked the uart pins routing of the EVM, the dts:
>>> - should reclaim serial2_rxtx_pins and serial2_rtscts_pins
>>
>> Can you please clarify what you mean by dts should "reclaim". You mean
>> move the pins from da850.dtsi to da850-evm.dts or something else?
>>
> 
> No, in the part you are replying to I am not referring to moving the
> pins but reclaiming them. The pins are declared in the dtsi, as they
> should. Eg. the LCDK dts reclaims serial2_rxtx_pins but doesn't reclaim
> serial2_rtscts_pins while their declarations remain in the dtsi.

Alright. I am not sure if "reclaim" is the right term for this, but it
doesn't matter ;) I understand the intent now.

> The purpose of this part was to clarify what I saw on the schematics
> because your emails include the following 2 statements:
> 
>>>>> Looks like the flow control pins are being used for McASP also on the
>>>>> EVM. So lets leave the EVM as-is.
> 
>>>> Rather, the EVM dts file should be updated to use serial2_rxtx_pins like
>>>> the LCDK. Right now it seems to be relying on bootloader to serial2
> 
> My email was to inform that it concerns the flow control pins of the
> UART1 only and that the UART2 flow control pins are not concerned and, 
> since they are dedicated to the UART2, should be reclaimed unlike
> in the LCDK.

I see now.

I think I was thrown off by looking at the fact that mcasp0_pins in
da850-evm.dts muxes UART2_RTS as AMUTE. But, its the mcasp0_pins that
needs fixing. AMUTE is not used by audio on the board. As is AFSR. Plus,
that pinmux entry goes and writes to PINMIX0[31:28] the value of 0x1
which is reserved. Sigh.

I will review your original e-mail and reply back.

Thanks,
Sekhar
--
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] 31+ messages in thread

* [PATCH] ARM: dts: da850: Add missing pin muxing for the UARTs
@ 2016-08-26 11:42                           ` Sekhar Nori
  0 siblings, 0 replies; 31+ messages in thread
From: Sekhar Nori @ 2016-08-26 11:42 UTC (permalink / raw)
  To: linux-arm-kernel

On Thursday 25 August 2016 07:45 PM, Karl Beldan wrote:

>>> Indeed ATM the EVM relies on the bootloader to setup the pin muxing.
>>>
>>> I just checked the uart pins routing of the EVM, the dts:
>>> - should reclaim serial2_rxtx_pins and serial2_rtscts_pins
>>
>> Can you please clarify what you mean by dts should "reclaim". You mean
>> move the pins from da850.dtsi to da850-evm.dts or something else?
>>
> 
> No, in the part you are replying to I am not referring to moving the
> pins but reclaiming them. The pins are declared in the dtsi, as they
> should. Eg. the LCDK dts reclaims serial2_rxtx_pins but doesn't reclaim
> serial2_rtscts_pins while their declarations remain in the dtsi.

Alright. I am not sure if "reclaim" is the right term for this, but it
doesn't matter ;) I understand the intent now.

> The purpose of this part was to clarify what I saw on the schematics
> because your emails include the following 2 statements:
> 
>>>>> Looks like the flow control pins are being used for McASP also on the
>>>>> EVM. So lets leave the EVM as-is.
> 
>>>> Rather, the EVM dts file should be updated to use serial2_rxtx_pins like
>>>> the LCDK. Right now it seems to be relying on bootloader to serial2
> 
> My email was to inform that it concerns the flow control pins of the
> UART1 only and that the UART2 flow control pins are not concerned and, 
> since they are dedicated to the UART2, should be reclaimed unlike
> in the LCDK.

I see now.

I think I was thrown off by looking at the fact that mcasp0_pins in
da850-evm.dts muxes UART2_RTS as AMUTE. But, its the mcasp0_pins that
needs fixing. AMUTE is not used by audio on the board. As is AFSR. Plus,
that pinmux entry goes and writes to PINMIX0[31:28] the value of 0x1
which is reserved. Sigh.

I will review your original e-mail and reply back.

Thanks,
Sekhar

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

* Re: [PATCH] ARM: dts: da850: Add missing pin muxing for the UARTs
  2016-08-24  8:38                   ` Karl Beldan
@ 2016-08-26 12:25                     ` Sekhar Nori
  -1 siblings, 0 replies; 31+ messages in thread
From: Sekhar Nori @ 2016-08-26 12:25 UTC (permalink / raw)
  To: Karl Beldan
  Cc: Kevin Hilman, Mark Rutland, devicetree-u79uwXL29TY76Z2rM5mHXA,
	karl.beldan+oss-Re5JQEeQqe8AvxtiuMwx3w, Russell King,
	Rob Herring, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r

On Wednesday 24 August 2016 02:08 PM, Karl Beldan wrote:
> On Tue, Aug 23, 2016 at 04:46:03PM +0530, Sekhar Nori wrote:
>> On Tuesday 23 August 2016 04:39 PM, Sekhar Nori wrote:
>>> On Friday 05 August 2016 04:30 AM, Kevin Hilman wrote:
>>>> Karl Beldan <kbeldan-rdvid1DuHRBWk0Htik3J/w@public.gmane.org> writes:
>>>>
>>>>> On Thu, Aug 04, 2016 at 12:20:27PM -0700, Kevin Hilman wrote:
>>>>>> Karl Beldan <kbeldan-rdvid1DuHRBWk0Htik3J/w@public.gmane.org> writes:
>>>>>>
>>>>>>> This adds 2 pinctrl groups (rtscts, rxtx) for each of the 3 UARTs.
>>>>>>>
>>>>>>> Signed-off-by: Karl Beldan <kbeldan-rdvid1DuHRBWk0Htik3J/w@public.gmane.org>
>>>>>>
>>>>>> Should da850-evm be updated to use the serial2_rxtx_pins also?
>>>>>>
>>>>> I could not find the EVM schematics on the net and I only have an LCDK,
>>>>> but according to the code it should, however I can't tell whether flow
>>>>> control pins are used.
>>>>
>>>> Ok, let's just leave it for now, since it's working fine.  Sekhar can
>>>> fix that up if he can dig up the schematics.
>>>
>>> Looks like the flow control pins are being used for McASP also on the
>>> EVM. So lets leave the EVM as-is.
>>
>> Rather, the EVM dts file should be updated to use serial2_rxtx_pins like
>> the LCDK. Right now it seems to be relying on bootloader to serial2
>> setup pimux correctly. I can make a patch to fix that. Or if you can do
>> it, that will be great too.
>>
> 
> Indeed ATM the EVM relies on the bootloader to setup the pin muxing.
> 
> I just checked the uart pins routing of the EVM, the dts:
> - should reclaim serial2_rxtx_pins and serial2_rtscts_pins

Agree.

> - can reclaim serial1_rxtx_pins (out on Audio connector but very
>   unlikely used for audio)

I would leave alone pins which are unused on the board. Most likely the
SPI pins are being send to audio connector for codec control over SPI.

> - should leave serial1_rtscts_pins (out on Audio connector but used by
>   McASP so used for audio)

Agree.

> Also I think it would be better for the serial nodes to reclaim the rxtx
> pins in the dtsi, and override the reclaimed pins in the .dts only for
> the nodes reclaiming flow control (some other pins could also be
> directly reclaimed in the dtsi).

You lost me here. I guess I will benefit from a code snippet to
illustrate the intention.

> 
> Some other cleanups would also be in order for the da850*:
> - use labels for non dtsi (like I did for the LCDK)

Agree. That would be better and more modern.

> - add chosen,memory nodes (I guess currently only the LCDK can
>   dispense with ATAGS)

ok.

> - use a null range translation in the da850 dtsi for the soc node
>   (computing the offsets is error prone and is there a point)

I do agree its easier to read if offsets directly matches addresses
specified in the technical reference manual than doing the math with
offsets and making sure they are correct.

That said, I am not sure null range translation is really the preferred
approach. I would go with what DT maintainers say here.

> 
> Sure I could fix that, along with some of the above suggestions if you
> are ok with it.

It would be nice if you could fixup mcasp0_pins in da850-evm.dts. Surely
it is doing more than what is needed.

Regards,
Sekhar
--
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] 31+ messages in thread

* [PATCH] ARM: dts: da850: Add missing pin muxing for the UARTs
@ 2016-08-26 12:25                     ` Sekhar Nori
  0 siblings, 0 replies; 31+ messages in thread
From: Sekhar Nori @ 2016-08-26 12:25 UTC (permalink / raw)
  To: linux-arm-kernel

On Wednesday 24 August 2016 02:08 PM, Karl Beldan wrote:
> On Tue, Aug 23, 2016 at 04:46:03PM +0530, Sekhar Nori wrote:
>> On Tuesday 23 August 2016 04:39 PM, Sekhar Nori wrote:
>>> On Friday 05 August 2016 04:30 AM, Kevin Hilman wrote:
>>>> Karl Beldan <kbeldan@baylibre.com> writes:
>>>>
>>>>> On Thu, Aug 04, 2016 at 12:20:27PM -0700, Kevin Hilman wrote:
>>>>>> Karl Beldan <kbeldan@baylibre.com> writes:
>>>>>>
>>>>>>> This adds 2 pinctrl groups (rtscts, rxtx) for each of the 3 UARTs.
>>>>>>>
>>>>>>> Signed-off-by: Karl Beldan <kbeldan@baylibre.com>
>>>>>>
>>>>>> Should da850-evm be updated to use the serial2_rxtx_pins also?
>>>>>>
>>>>> I could not find the EVM schematics on the net and I only have an LCDK,
>>>>> but according to the code it should, however I can't tell whether flow
>>>>> control pins are used.
>>>>
>>>> Ok, let's just leave it for now, since it's working fine.  Sekhar can
>>>> fix that up if he can dig up the schematics.
>>>
>>> Looks like the flow control pins are being used for McASP also on the
>>> EVM. So lets leave the EVM as-is.
>>
>> Rather, the EVM dts file should be updated to use serial2_rxtx_pins like
>> the LCDK. Right now it seems to be relying on bootloader to serial2
>> setup pimux correctly. I can make a patch to fix that. Or if you can do
>> it, that will be great too.
>>
> 
> Indeed ATM the EVM relies on the bootloader to setup the pin muxing.
> 
> I just checked the uart pins routing of the EVM, the dts:
> - should reclaim serial2_rxtx_pins and serial2_rtscts_pins

Agree.

> - can reclaim serial1_rxtx_pins (out on Audio connector but very
>   unlikely used for audio)

I would leave alone pins which are unused on the board. Most likely the
SPI pins are being send to audio connector for codec control over SPI.

> - should leave serial1_rtscts_pins (out on Audio connector but used by
>   McASP so used for audio)

Agree.

> Also I think it would be better for the serial nodes to reclaim the rxtx
> pins in the dtsi, and override the reclaimed pins in the .dts only for
> the nodes reclaiming flow control (some other pins could also be
> directly reclaimed in the dtsi).

You lost me here. I guess I will benefit from a code snippet to
illustrate the intention.

> 
> Some other cleanups would also be in order for the da850*:
> - use labels for non dtsi (like I did for the LCDK)

Agree. That would be better and more modern.

> - add chosen,memory nodes (I guess currently only the LCDK can
>   dispense with ATAGS)

ok.

> - use a null range translation in the da850 dtsi for the soc node
>   (computing the offsets is error prone and is there a point)

I do agree its easier to read if offsets directly matches addresses
specified in the technical reference manual than doing the math with
offsets and making sure they are correct.

That said, I am not sure null range translation is really the preferred
approach. I would go with what DT maintainers say here.

> 
> Sure I could fix that, along with some of the above suggestions if you
> are ok with it.

It would be nice if you could fixup mcasp0_pins in da850-evm.dts. Surely
it is doing more than what is needed.

Regards,
Sekhar

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

* Re: [PATCH] ARM: dts: da850: Add missing pin muxing for the UARTs
  2016-08-26 12:25                     ` Sekhar Nori
@ 2016-08-26 17:17                       ` Karl Beldan
  -1 siblings, 0 replies; 31+ messages in thread
From: Karl Beldan @ 2016-08-26 17:17 UTC (permalink / raw)
  To: Sekhar Nori
  Cc: Mark Rutland, devicetree, karl.beldan+oss, Kevin Hilman,
	Russell King, Rob Herring, linux-arm-kernel

On Fri, Aug 26, 2016 at 05:55:23PM +0530, Sekhar Nori wrote:
> On Wednesday 24 August 2016 02:08 PM, Karl Beldan wrote:
> > On Tue, Aug 23, 2016 at 04:46:03PM +0530, Sekhar Nori wrote:
> >> On Tuesday 23 August 2016 04:39 PM, Sekhar Nori wrote:
> >>> On Friday 05 August 2016 04:30 AM, Kevin Hilman wrote:
> >>>> Karl Beldan <kbeldan@baylibre.com> writes:
> >>>>
> >>>>> On Thu, Aug 04, 2016 at 12:20:27PM -0700, Kevin Hilman wrote:
> >>>>>> Karl Beldan <kbeldan@baylibre.com> writes:
> >>>>>>
> >>>>>>> This adds 2 pinctrl groups (rtscts, rxtx) for each of the 3 UARTs.
> >>>>>>>
> >>>>>>> Signed-off-by: Karl Beldan <kbeldan@baylibre.com>
> >>>>>>
> >>>>>> Should da850-evm be updated to use the serial2_rxtx_pins also?
> >>>>>>
> >>>>> I could not find the EVM schematics on the net and I only have an LCDK,
> >>>>> but according to the code it should, however I can't tell whether flow
> >>>>> control pins are used.
> >>>>
> >>>> Ok, let's just leave it for now, since it's working fine.  Sekhar can
> >>>> fix that up if he can dig up the schematics.
> >>>
> >>> Looks like the flow control pins are being used for McASP also on the
> >>> EVM. So lets leave the EVM as-is.
> >>
> >> Rather, the EVM dts file should be updated to use serial2_rxtx_pins like
> >> the LCDK. Right now it seems to be relying on bootloader to serial2
> >> setup pimux correctly. I can make a patch to fix that. Or if you can do
> >> it, that will be great too.
> >>
> > 
> > Indeed ATM the EVM relies on the bootloader to setup the pin muxing.
> > 
> > I just checked the uart pins routing of the EVM, the dts:
> > - should reclaim serial2_rxtx_pins and serial2_rtscts_pins
> 
> Agree.
> 
> > - can reclaim serial1_rxtx_pins (out on Audio connector but very
> >   unlikely used for audio)
> 
> I would leave alone pins which are unused on the board. Most likely the
> SPI pins are being send to audio connector for codec control over SPI.
> 
> > - should leave serial1_rtscts_pins (out on Audio connector but used by
> >   McASP so used for audio)
> 
> Agree.
> 
> > Also I think it would be better for the serial nodes to reclaim the rxtx
> > pins in the dtsi, and override the reclaimed pins in the .dts only for
> > the nodes reclaiming flow control (some other pins could also be
> > directly reclaimed in the dtsi).
> 
> You lost me here. I guess I will benefit from a code snippet to
> illustrate the intention.
> 

Sure, instead of having: {

### board.dts:
&serialN {
	pinctrl-names = "default";
	pinctrl-0 = <&serialN_rxtx_pins>;
	status = "okay";
};
&serialN+1 {
	pinctrl-names = "default";
	pinctrl-0 = <&serialN+1_rxtx_pins>, <&serialN+1_rtscts_pins>;
	status = "okay";
};

} use ------------------ {

### plat.dtsi:
serialN: serial@xxxxx {
	compatible = "ns16550a";
	pinctrl-0 = <&serialN_rxtx_pins>;
	status = "disabled";
	[...]
};
serialN+1: serial@xxxxx {
	compatible = "ns16550a";
	pinctrl-0 = <&serialN+1_rxtx_pins>;
	status = "disabled";
	[...]
};

### board.dts:
&serialN {
	status = "okay";
};
&serialN+1 {
	pinctrl-0 = <&serialN+1_rxtx_pins>, <&serialN+1_rtscts_pins>;
	status = "okay";
};

}

> > 
> > Some other cleanups would also be in order for the da850*:
> > - use labels for non dtsi (like I did for the LCDK)
> 
> Agree. That would be better and more modern.
> 
> > - add chosen,memory nodes (I guess currently only the LCDK can
> >   dispense with ATAGS)
> 
> ok.
> 
> > - use a null range translation in the da850 dtsi for the soc node
> >   (computing the offsets is error prone and is there a point)
> 
> I do agree its easier to read if offsets directly matches addresses
> specified in the technical reference manual than doing the math with
> offsets and making sure they are correct.
> 
> That said, I am not sure null range translation is really the preferred
> approach. I would go with what DT maintainers say here.
> 
> > 
> > Sure I could fix that, along with some of the above suggestions if you
> > are ok with it.
> 
> It would be nice if you could fixup mcasp0_pins in da850-evm.dts. Surely
> it is doing more than what is needed.
> 

According to the schematics it is indeed, I could squeeze it in the series.

Rgds, 
Karl

> Regards,
> Sekhar

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

* [PATCH] ARM: dts: da850: Add missing pin muxing for the UARTs
@ 2016-08-26 17:17                       ` Karl Beldan
  0 siblings, 0 replies; 31+ messages in thread
From: Karl Beldan @ 2016-08-26 17:17 UTC (permalink / raw)
  To: linux-arm-kernel

On Fri, Aug 26, 2016 at 05:55:23PM +0530, Sekhar Nori wrote:
> On Wednesday 24 August 2016 02:08 PM, Karl Beldan wrote:
> > On Tue, Aug 23, 2016 at 04:46:03PM +0530, Sekhar Nori wrote:
> >> On Tuesday 23 August 2016 04:39 PM, Sekhar Nori wrote:
> >>> On Friday 05 August 2016 04:30 AM, Kevin Hilman wrote:
> >>>> Karl Beldan <kbeldan@baylibre.com> writes:
> >>>>
> >>>>> On Thu, Aug 04, 2016 at 12:20:27PM -0700, Kevin Hilman wrote:
> >>>>>> Karl Beldan <kbeldan@baylibre.com> writes:
> >>>>>>
> >>>>>>> This adds 2 pinctrl groups (rtscts, rxtx) for each of the 3 UARTs.
> >>>>>>>
> >>>>>>> Signed-off-by: Karl Beldan <kbeldan@baylibre.com>
> >>>>>>
> >>>>>> Should da850-evm be updated to use the serial2_rxtx_pins also?
> >>>>>>
> >>>>> I could not find the EVM schematics on the net and I only have an LCDK,
> >>>>> but according to the code it should, however I can't tell whether flow
> >>>>> control pins are used.
> >>>>
> >>>> Ok, let's just leave it for now, since it's working fine.  Sekhar can
> >>>> fix that up if he can dig up the schematics.
> >>>
> >>> Looks like the flow control pins are being used for McASP also on the
> >>> EVM. So lets leave the EVM as-is.
> >>
> >> Rather, the EVM dts file should be updated to use serial2_rxtx_pins like
> >> the LCDK. Right now it seems to be relying on bootloader to serial2
> >> setup pimux correctly. I can make a patch to fix that. Or if you can do
> >> it, that will be great too.
> >>
> > 
> > Indeed ATM the EVM relies on the bootloader to setup the pin muxing.
> > 
> > I just checked the uart pins routing of the EVM, the dts:
> > - should reclaim serial2_rxtx_pins and serial2_rtscts_pins
> 
> Agree.
> 
> > - can reclaim serial1_rxtx_pins (out on Audio connector but very
> >   unlikely used for audio)
> 
> I would leave alone pins which are unused on the board. Most likely the
> SPI pins are being send to audio connector for codec control over SPI.
> 
> > - should leave serial1_rtscts_pins (out on Audio connector but used by
> >   McASP so used for audio)
> 
> Agree.
> 
> > Also I think it would be better for the serial nodes to reclaim the rxtx
> > pins in the dtsi, and override the reclaimed pins in the .dts only for
> > the nodes reclaiming flow control (some other pins could also be
> > directly reclaimed in the dtsi).
> 
> You lost me here. I guess I will benefit from a code snippet to
> illustrate the intention.
> 

Sure, instead of having: {

### board.dts:
&serialN {
	pinctrl-names = "default";
	pinctrl-0 = <&serialN_rxtx_pins>;
	status = "okay";
};
&serialN+1 {
	pinctrl-names = "default";
	pinctrl-0 = <&serialN+1_rxtx_pins>, <&serialN+1_rtscts_pins>;
	status = "okay";
};

} use ------------------ {

### plat.dtsi:
serialN: serial at xxxxx {
	compatible = "ns16550a";
	pinctrl-0 = <&serialN_rxtx_pins>;
	status = "disabled";
	[...]
};
serialN+1: serial at xxxxx {
	compatible = "ns16550a";
	pinctrl-0 = <&serialN+1_rxtx_pins>;
	status = "disabled";
	[...]
};

### board.dts:
&serialN {
	status = "okay";
};
&serialN+1 {
	pinctrl-0 = <&serialN+1_rxtx_pins>, <&serialN+1_rtscts_pins>;
	status = "okay";
};

}

> > 
> > Some other cleanups would also be in order for the da850*:
> > - use labels for non dtsi (like I did for the LCDK)
> 
> Agree. That would be better and more modern.
> 
> > - add chosen,memory nodes (I guess currently only the LCDK can
> >   dispense with ATAGS)
> 
> ok.
> 
> > - use a null range translation in the da850 dtsi for the soc node
> >   (computing the offsets is error prone and is there a point)
> 
> I do agree its easier to read if offsets directly matches addresses
> specified in the technical reference manual than doing the math with
> offsets and making sure they are correct.
> 
> That said, I am not sure null range translation is really the preferred
> approach. I would go with what DT maintainers say here.
> 
> > 
> > Sure I could fix that, along with some of the above suggestions if you
> > are ok with it.
> 
> It would be nice if you could fixup mcasp0_pins in da850-evm.dts. Surely
> it is doing more than what is needed.
> 

According to the schematics it is indeed, I could squeeze it in the series.

Rgds, 
Karl

> Regards,
> Sekhar

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

* Re: [PATCH] ARM: dts: da850: Add missing pin muxing for the UARTs
  2016-08-26 17:17                       ` Karl Beldan
@ 2016-08-30  8:54                         ` Sekhar Nori
  -1 siblings, 0 replies; 31+ messages in thread
From: Sekhar Nori @ 2016-08-30  8:54 UTC (permalink / raw)
  To: Karl Beldan
  Cc: Kevin Hilman, Mark Rutland, devicetree-u79uwXL29TY76Z2rM5mHXA,
	karl.beldan+oss-Re5JQEeQqe8AvxtiuMwx3w, Russell King,
	Rob Herring, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r

On Friday 26 August 2016 10:47 PM, Karl Beldan wrote:

>>> Also I think it would be better for the serial nodes to reclaim the rxtx
>>> pins in the dtsi, and override the reclaimed pins in the .dts only for
>>> the nodes reclaiming flow control (some other pins could also be
>>> directly reclaimed in the dtsi).
>>
>> You lost me here. I guess I will benefit from a code snippet to
>> illustrate the intention.
>>
> 
> Sure, instead of having: {
> 
> ### board.dts:
> &serialN {
> 	pinctrl-names = "default";
> 	pinctrl-0 = <&serialN_rxtx_pins>;
> 	status = "okay";
> };
> &serialN+1 {
> 	pinctrl-names = "default";
> 	pinctrl-0 = <&serialN+1_rxtx_pins>, <&serialN+1_rtscts_pins>;
> 	status = "okay";
> };
> 
> } use ------------------ {
> 
> ### plat.dtsi:
> serialN: serial@xxxxx {
> 	compatible = "ns16550a";
> 	pinctrl-0 = <&serialN_rxtx_pins>;
> 	status = "disabled";
> 	[...]
> };
> serialN+1: serial@xxxxx {
> 	compatible = "ns16550a";
> 	pinctrl-0 = <&serialN+1_rxtx_pins>;
> 	status = "disabled";
> 	[...]
> };
> 
> ### board.dts:
> &serialN {
> 	status = "okay";
> };
> &serialN+1 {
> 	pinctrl-0 = <&serialN+1_rxtx_pins>, <&serialN+1_rtscts_pins>;
> 	status = "okay";
> };

I dont think it is a good idea to specify a pinctrl setting in
da850.dtsi and override it in board.dts. Fundamentally I am against
having properties in <soc.dtsi> overridden from <board.dts>.  Sure, it
saves some code in some cases, but it is confusing to read/debug and you
are never sure that the property you seen set in one place is the one
finally taking effect.

The only notable exception is 'status' property. If you see other
exceptions in DaVinci, its only because of my oversight.

>> It would be nice if you could fixup mcasp0_pins in da850-evm.dts. Surely
>> it is doing more than what is needed.
>>
> 
> According to the schematics it is indeed, I could squeeze it in the series.

Thanks!

Regards,
Sekhar

--
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] 31+ messages in thread

* [PATCH] ARM: dts: da850: Add missing pin muxing for the UARTs
@ 2016-08-30  8:54                         ` Sekhar Nori
  0 siblings, 0 replies; 31+ messages in thread
From: Sekhar Nori @ 2016-08-30  8:54 UTC (permalink / raw)
  To: linux-arm-kernel

On Friday 26 August 2016 10:47 PM, Karl Beldan wrote:

>>> Also I think it would be better for the serial nodes to reclaim the rxtx
>>> pins in the dtsi, and override the reclaimed pins in the .dts only for
>>> the nodes reclaiming flow control (some other pins could also be
>>> directly reclaimed in the dtsi).
>>
>> You lost me here. I guess I will benefit from a code snippet to
>> illustrate the intention.
>>
> 
> Sure, instead of having: {
> 
> ### board.dts:
> &serialN {
> 	pinctrl-names = "default";
> 	pinctrl-0 = <&serialN_rxtx_pins>;
> 	status = "okay";
> };
> &serialN+1 {
> 	pinctrl-names = "default";
> 	pinctrl-0 = <&serialN+1_rxtx_pins>, <&serialN+1_rtscts_pins>;
> 	status = "okay";
> };
> 
> } use ------------------ {
> 
> ### plat.dtsi:
> serialN: serial at xxxxx {
> 	compatible = "ns16550a";
> 	pinctrl-0 = <&serialN_rxtx_pins>;
> 	status = "disabled";
> 	[...]
> };
> serialN+1: serial at xxxxx {
> 	compatible = "ns16550a";
> 	pinctrl-0 = <&serialN+1_rxtx_pins>;
> 	status = "disabled";
> 	[...]
> };
> 
> ### board.dts:
> &serialN {
> 	status = "okay";
> };
> &serialN+1 {
> 	pinctrl-0 = <&serialN+1_rxtx_pins>, <&serialN+1_rtscts_pins>;
> 	status = "okay";
> };

I dont think it is a good idea to specify a pinctrl setting in
da850.dtsi and override it in board.dts. Fundamentally I am against
having properties in <soc.dtsi> overridden from <board.dts>.  Sure, it
saves some code in some cases, but it is confusing to read/debug and you
are never sure that the property you seen set in one place is the one
finally taking effect.

The only notable exception is 'status' property. If you see other
exceptions in DaVinci, its only because of my oversight.

>> It would be nice if you could fixup mcasp0_pins in da850-evm.dts. Surely
>> it is doing more than what is needed.
>>
> 
> According to the schematics it is indeed, I could squeeze it in the series.

Thanks!

Regards,
Sekhar

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

end of thread, other threads:[~2016-08-30  8:54 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-04 11:06 [PATCH] ARM: dts: da850: Add missing pin muxing for the UARTs Karl Beldan
2016-08-04 11:06 ` Karl Beldan
     [not found] ` <20160804110656.25318-1-kbeldan-rdvid1DuHRBWk0Htik3J/w@public.gmane.org>
2016-08-04 19:04   ` Kevin Hilman
2016-08-04 19:04     ` Kevin Hilman
2016-08-04 19:20   ` Kevin Hilman
2016-08-04 19:20     ` Kevin Hilman
2016-08-04 19:40     ` Karl Beldan
     [not found]     ` <m2eg64pchw.fsf-rdvid1DuHRBWk0Htik3J/w@public.gmane.org>
2016-08-04 21:00       ` Karl Beldan
2016-08-04 21:00         ` Karl Beldan
2016-08-04 23:00         ` Kevin Hilman
2016-08-04 23:00           ` Kevin Hilman
     [not found]           ` <m2fuqknnqk.fsf-rdvid1DuHRBWk0Htik3J/w@public.gmane.org>
2016-08-23 11:09             ` Sekhar Nori
2016-08-23 11:09               ` Sekhar Nori
2016-08-23 11:16               ` Sekhar Nori
2016-08-23 11:16                 ` Sekhar Nori
2016-08-24  8:38                 ` Karl Beldan
2016-08-24  8:38                   ` Karl Beldan
2016-08-25 13:42                   ` Sekhar Nori
2016-08-25 13:42                     ` Sekhar Nori
     [not found]                     ` <354081bd-653d-ec98-f18e-eb0b1b1ee7e3-l0cyMroinI0@public.gmane.org>
2016-08-25 14:15                       ` Karl Beldan
2016-08-25 14:15                         ` Karl Beldan
2016-08-26 11:42                         ` Sekhar Nori
2016-08-26 11:42                           ` Sekhar Nori
2016-08-26 12:25                   ` Sekhar Nori
2016-08-26 12:25                     ` Sekhar Nori
2016-08-26 17:17                     ` Karl Beldan
2016-08-26 17:17                       ` Karl Beldan
2016-08-30  8:54                       ` Sekhar Nori
2016-08-30  8:54                         ` Sekhar Nori
2016-08-09 10:19   ` Sekhar Nori
2016-08-09 10:19     ` Sekhar Nori

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.