linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] arm64: dts: imx8qxp: dtb aliases fix/update
@ 2020-06-01  2:06 peng.fan
  2020-06-01  2:06 ` [PATCH 1/3] arm64: dts: imx8qxp: add alias for lsio MU peng.fan
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: peng.fan @ 2020-06-01  2:06 UTC (permalink / raw)
  To: shawnguo, fabio.estevam, kernel, aisheng.dong
  Cc: linux-arm-kernel, linux-kernel, linux-imx, leonard.crestez,
	daniel.baluta, l.stach, devicetree, Peng Fan

From: Peng Fan <peng.fan@nxp.com>

Minor patchset to fix and update alias for i.MX8QXP

Peng Fan (3):
  arm64: dts: imx8qxp: add alias for lsio MU
  arm64: dts: imx8qxp: add i2c aliases
  arm64: dts: imx8qxp: Add ethernet alias

 arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 10 ++++++++++
 1 file changed, 10 insertions(+)

-- 
2.16.4


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

* [PATCH 1/3] arm64: dts: imx8qxp: add alias for lsio MU
  2020-06-01  2:06 [PATCH 0/3] arm64: dts: imx8qxp: dtb aliases fix/update peng.fan
@ 2020-06-01  2:06 ` peng.fan
  2020-06-01  2:06 ` [PATCH 2/3] arm64: dts: imx8qxp: add i2c aliases peng.fan
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 7+ messages in thread
From: peng.fan @ 2020-06-01  2:06 UTC (permalink / raw)
  To: shawnguo, fabio.estevam, kernel, aisheng.dong
  Cc: linux-arm-kernel, linux-kernel, linux-imx, leonard.crestez,
	daniel.baluta, l.stach, devicetree, Peng Fan

From: Peng Fan <peng.fan@nxp.com>

Add lsio mu alias for all lsio MUs that could communicate with SCU,
imx_scu_enable_general_irq_channel will parse the alias to get
the mu resource id, if using other MU, not MU1, the `mu_resource_id`
is not what we expect, so add alias to fix this issue.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
 arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi
index d1c3c98e4b39..33363c127478 100644
--- a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi
@@ -30,7 +30,11 @@
 		mmc0 = &usdhc1;
 		mmc1 = &usdhc2;
 		mmc2 = &usdhc3;
+		mu0 = &lsio_mu0;
 		mu1 = &lsio_mu1;
+		mu2 = &lsio_mu2;
+		mu3 = &lsio_mu3;
+		mu4 = &lsio_mu4;
 		serial0 = &adma_lpuart0;
 		serial1 = &adma_lpuart1;
 		serial2 = &adma_lpuart2;
-- 
2.16.4


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

* [PATCH 2/3] arm64: dts: imx8qxp: add i2c aliases
  2020-06-01  2:06 [PATCH 0/3] arm64: dts: imx8qxp: dtb aliases fix/update peng.fan
  2020-06-01  2:06 ` [PATCH 1/3] arm64: dts: imx8qxp: add alias for lsio MU peng.fan
@ 2020-06-01  2:06 ` peng.fan
  2020-06-23  3:56   ` Shawn Guo
  2020-06-01  2:06 ` [PATCH 3/3] arm64: dts: imx8qxp: Add ethernet alias peng.fan
  2020-06-23  3:53 ` [PATCH 0/3] arm64: dts: imx8qxp: dtb aliases fix/update Shawn Guo
  3 siblings, 1 reply; 7+ messages in thread
From: peng.fan @ 2020-06-01  2:06 UTC (permalink / raw)
  To: shawnguo, fabio.estevam, kernel, aisheng.dong
  Cc: linux-arm-kernel, linux-kernel, linux-imx, leonard.crestez,
	daniel.baluta, l.stach, devicetree, Peng Fan

From: Peng Fan <peng.fan@nxp.com>

The devices could be enumerated properly with aliases.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
 arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi
index 33363c127478..8ce997110cd6 100644
--- a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi
@@ -19,6 +19,10 @@
 	#size-cells = <2>;
 
 	aliases {
+		i2c0 = &adma_i2c0;
+		i2c1 = &adma_i2c1;
+		i2c2 = &adma_i2c2;
+		i2c3 = &adma_i2c3;
 		gpio0 = &lsio_gpio0;
 		gpio1 = &lsio_gpio1;
 		gpio2 = &lsio_gpio2;
-- 
2.16.4


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

* [PATCH 3/3] arm64: dts: imx8qxp: Add ethernet alias
  2020-06-01  2:06 [PATCH 0/3] arm64: dts: imx8qxp: dtb aliases fix/update peng.fan
  2020-06-01  2:06 ` [PATCH 1/3] arm64: dts: imx8qxp: add alias for lsio MU peng.fan
  2020-06-01  2:06 ` [PATCH 2/3] arm64: dts: imx8qxp: add i2c aliases peng.fan
@ 2020-06-01  2:06 ` peng.fan
  2020-06-23  3:53 ` [PATCH 0/3] arm64: dts: imx8qxp: dtb aliases fix/update Shawn Guo
  3 siblings, 0 replies; 7+ messages in thread
From: peng.fan @ 2020-06-01  2:06 UTC (permalink / raw)
  To: shawnguo, fabio.estevam, kernel, aisheng.dong
  Cc: linux-arm-kernel, linux-kernel, linux-imx, leonard.crestez,
	daniel.baluta, l.stach, devicetree, Peng Fan

From: Peng Fan <peng.fan@nxp.com>

Add ethernet alias, so bootloader code can use this to find the
primary ethernet device, and set the MAC address.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
 arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi
index 8ce997110cd6..ff6368af7d39 100644
--- a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi
@@ -23,6 +23,8 @@
 		i2c1 = &adma_i2c1;
 		i2c2 = &adma_i2c2;
 		i2c3 = &adma_i2c3;
+		ethernet0 = &fec1;
+		ethernet1 = &fec2;
 		gpio0 = &lsio_gpio0;
 		gpio1 = &lsio_gpio1;
 		gpio2 = &lsio_gpio2;
-- 
2.16.4


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

* Re: [PATCH 0/3] arm64: dts: imx8qxp: dtb aliases fix/update
  2020-06-01  2:06 [PATCH 0/3] arm64: dts: imx8qxp: dtb aliases fix/update peng.fan
                   ` (2 preceding siblings ...)
  2020-06-01  2:06 ` [PATCH 3/3] arm64: dts: imx8qxp: Add ethernet alias peng.fan
@ 2020-06-23  3:53 ` Shawn Guo
  3 siblings, 0 replies; 7+ messages in thread
From: Shawn Guo @ 2020-06-23  3:53 UTC (permalink / raw)
  To: peng.fan
  Cc: fabio.estevam, kernel, aisheng.dong, linux-arm-kernel,
	linux-kernel, linux-imx, leonard.crestez, daniel.baluta, l.stach,
	devicetree

On Mon, Jun 01, 2020 at 10:06:17AM +0800, peng.fan@nxp.com wrote:
> From: Peng Fan <peng.fan@nxp.com>
> 
> Minor patchset to fix and update alias for i.MX8QXP
> 
> Peng Fan (3):
>   arm64: dts: imx8qxp: add alias for lsio MU
>   arm64: dts: imx8qxp: add i2c aliases
>   arm64: dts: imx8qxp: Add ethernet alias

Applied all, thanks.

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

* Re: [PATCH 2/3] arm64: dts: imx8qxp: add i2c aliases
  2020-06-01  2:06 ` [PATCH 2/3] arm64: dts: imx8qxp: add i2c aliases peng.fan
@ 2020-06-23  3:56   ` Shawn Guo
  2020-06-23  7:06     ` Peng Fan
  0 siblings, 1 reply; 7+ messages in thread
From: Shawn Guo @ 2020-06-23  3:56 UTC (permalink / raw)
  To: peng.fan
  Cc: fabio.estevam, kernel, aisheng.dong, linux-arm-kernel,
	linux-kernel, linux-imx, leonard.crestez, daniel.baluta, l.stach,
	devicetree

On Mon, Jun 01, 2020 at 10:06:19AM +0800, peng.fan@nxp.com wrote:
> From: Peng Fan <peng.fan@nxp.com>
> 
> The devices could be enumerated properly with aliases.
> 
> Signed-off-by: Peng Fan <peng.fan@nxp.com>
> ---
>  arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi
> index 33363c127478..8ce997110cd6 100644
> --- a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi
> +++ b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi
> @@ -19,6 +19,10 @@
>  	#size-cells = <2>;
>  
>  	aliases {
> +		i2c0 = &adma_i2c0;
> +		i2c1 = &adma_i2c1;
> +		i2c2 = &adma_i2c2;
> +		i2c3 = &adma_i2c3;

Had a second look.  It breaks alphabetical order.  So dropped the
series.

Shawn

>  		gpio0 = &lsio_gpio0;
>  		gpio1 = &lsio_gpio1;
>  		gpio2 = &lsio_gpio2;
> -- 
> 2.16.4
> 

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

* RE: [PATCH 2/3] arm64: dts: imx8qxp: add i2c aliases
  2020-06-23  3:56   ` Shawn Guo
@ 2020-06-23  7:06     ` Peng Fan
  0 siblings, 0 replies; 7+ messages in thread
From: Peng Fan @ 2020-06-23  7:06 UTC (permalink / raw)
  To: Shawn Guo
  Cc: Fabio Estevam, kernel, Aisheng Dong, linux-arm-kernel,
	linux-kernel, dl-linux-imx, Leonard Crestez, Daniel Baluta,
	l.stach, devicetree

Hi Shawn,

> Subject: Re: [PATCH 2/3] arm64: dts: imx8qxp: add i2c aliases
> 
> On Mon, Jun 01, 2020 at 10:06:19AM +0800, peng.fan@nxp.com wrote:
> > From: Peng Fan <peng.fan@nxp.com>
> >
> > The devices could be enumerated properly with aliases.
> >
> > Signed-off-by: Peng Fan <peng.fan@nxp.com>
> > ---
> >  arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 4 ++++
> >  1 file changed, 4 insertions(+)
> >
> > diff --git a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi
> > b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi
> > index 33363c127478..8ce997110cd6 100644
> > --- a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi
> > +++ b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi
> > @@ -19,6 +19,10 @@
> >  	#size-cells = <2>;
> >
> >  	aliases {
> > +		i2c0 = &adma_i2c0;
> > +		i2c1 = &adma_i2c1;
> > +		i2c2 = &adma_i2c2;
> > +		i2c3 = &adma_i2c3;
> 
> Had a second look.  It breaks alphabetical order.  So dropped the series.

V2 has this addressed.
https://patchwork.kernel.org/cover/11619867/

Thanks,
Peng.

> 
> Shawn
> 
> >  		gpio0 = &lsio_gpio0;
> >  		gpio1 = &lsio_gpio1;
> >  		gpio2 = &lsio_gpio2;
> > --
> > 2.16.4
> >

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

end of thread, other threads:[~2020-06-23  7:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-01  2:06 [PATCH 0/3] arm64: dts: imx8qxp: dtb aliases fix/update peng.fan
2020-06-01  2:06 ` [PATCH 1/3] arm64: dts: imx8qxp: add alias for lsio MU peng.fan
2020-06-01  2:06 ` [PATCH 2/3] arm64: dts: imx8qxp: add i2c aliases peng.fan
2020-06-23  3:56   ` Shawn Guo
2020-06-23  7:06     ` Peng Fan
2020-06-01  2:06 ` [PATCH 3/3] arm64: dts: imx8qxp: Add ethernet alias peng.fan
2020-06-23  3:53 ` [PATCH 0/3] arm64: dts: imx8qxp: dtb aliases fix/update 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).