2020-05-20 02:14:29

by Peng Fan

[permalink] [raw]
Subject: [PATCH 0/4] arm64: dts: imx8m: dtb aliases update

From: Peng Fan <[email protected]>

Minor patchset to update device tree aliases

Peng Fan (4):
arm64: dts: imx8mq: Add mmc aliases
arm64: dts: imx8mq: Add ethernet alias
arm64: dts: imx8mm: sort the aliases
arm64: dts: imx8mp: add i2c aliases

arch/arm64/boot/dts/freescale/imx8mm.dtsi | 16 ++++++++--------
arch/arm64/boot/dts/freescale/imx8mp.dtsi | 6 ++++++
arch/arm64/boot/dts/freescale/imx8mq.dtsi | 3 +++
3 files changed, 17 insertions(+), 8 deletions(-)

--
2.16.4


2020-05-20 02:14:49

by Peng Fan

[permalink] [raw]
Subject: [PATCH 2/4] arm64: dts: imx8mq: Add ethernet alias

From: Peng Fan <[email protected]>

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 <[email protected]>
---
arch/arm64/boot/dts/freescale/imx8mq.dtsi | 1 +
1 file changed, 1 insertion(+)

diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot/dts/freescale/imx8mq.dtsi
index 9d3c9693d713..1d15680a4962 100644
--- a/arch/arm64/boot/dts/freescale/imx8mq.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8mq.dtsi
@@ -20,6 +20,7 @@
#size-cells = <2>;

aliases {
+ ethernet0 = &fec1;
gpio0 = &gpio1;
gpio1 = &gpio2;
gpio2 = &gpio3;
--
2.16.4

2020-05-20 02:15:01

by Peng Fan

[permalink] [raw]
Subject: [PATCH 1/4] arm64: dts: imx8mq: Add mmc aliases

From: Peng Fan <[email protected]>

Add mmc aliases for kernel usage

Signed-off-by: Peng Fan <[email protected]>
---
arch/arm64/boot/dts/freescale/imx8mq.dtsi | 2 ++
1 file changed, 2 insertions(+)

diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot/dts/freescale/imx8mq.dtsi
index bab88369be1b..9d3c9693d713 100644
--- a/arch/arm64/boot/dts/freescale/imx8mq.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8mq.dtsi
@@ -29,6 +29,8 @@
i2c1 = &i2c2;
i2c2 = &i2c3;
i2c3 = &i2c4;
+ mmc0 = &usdhc1;
+ mmc1 = &usdhc2;
serial0 = &uart1;
serial1 = &uart2;
serial2 = &uart3;
--
2.16.4

2020-05-20 02:15:06

by Peng Fan

[permalink] [raw]
Subject: [PATCH 3/4] arm64: dts: imx8mm: sort the aliases

From: Peng Fan <[email protected]>

Sort the aliases alphabetically.

Signed-off-by: Peng Fan <[email protected]>
---
arch/arm64/boot/dts/freescale/imx8mm.dtsi | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/arch/arm64/boot/dts/freescale/imx8mm.dtsi b/arch/arm64/boot/dts/freescale/imx8mm.dtsi
index c63685ae80ee..f3bbefe3e59f 100644
--- a/arch/arm64/boot/dts/freescale/imx8mm.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8mm.dtsi
@@ -18,10 +18,18 @@

aliases {
ethernet0 = &fec1;
+ gpio0 = &gpio1;
+ gpio1 = &gpio2;
+ gpio2 = &gpio3;
+ gpio3 = &gpio4;
+ gpio4 = &gpio5;
i2c0 = &i2c1;
i2c1 = &i2c2;
i2c2 = &i2c3;
i2c3 = &i2c4;
+ mmc0 = &usdhc1;
+ mmc1 = &usdhc2;
+ mmc2 = &usdhc3;
serial0 = &uart1;
serial1 = &uart2;
serial2 = &uart3;
@@ -29,14 +37,6 @@
spi0 = &ecspi1;
spi1 = &ecspi2;
spi2 = &ecspi3;
- mmc0 = &usdhc1;
- mmc1 = &usdhc2;
- mmc2 = &usdhc3;
- gpio0 = &gpio1;
- gpio1 = &gpio2;
- gpio2 = &gpio3;
- gpio3 = &gpio4;
- gpio4 = &gpio5;
};

cpus {
--
2.16.4

2020-05-20 02:17:42

by Peng Fan

[permalink] [raw]
Subject: [PATCH 4/4] arm64: dts: imx8mp: add i2c aliases

From: Peng Fan <[email protected]>

The devices could be enumerated properly with aliases.

Signed-off-by: Peng Fan <[email protected]>
---
arch/arm64/boot/dts/freescale/imx8mp.dtsi | 6 ++++++
1 file changed, 6 insertions(+)

diff --git a/arch/arm64/boot/dts/freescale/imx8mp.dtsi b/arch/arm64/boot/dts/freescale/imx8mp.dtsi
index 014205fc24f6..73535601261e 100644
--- a/arch/arm64/boot/dts/freescale/imx8mp.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8mp.dtsi
@@ -23,6 +23,12 @@
gpio2 = &gpio3;
gpio3 = &gpio4;
gpio4 = &gpio5;
+ i2c0 = &i2c1;
+ i2c1 = &i2c2;
+ i2c2 = &i2c3;
+ i2c3 = &i2c4;
+ i2c4 = &i2c5;
+ i2c5 = &i2c6;
mmc0 = &usdhc1;
mmc1 = &usdhc2;
mmc2 = &usdhc3;
--
2.16.4

2020-05-20 06:43:20

by Aisheng Dong

[permalink] [raw]
Subject: RE: [PATCH 0/4] arm64: dts: imx8m: dtb aliases update

> From: Peng Fan <[email protected]>
> Sent: Wednesday, May 20, 2020 10:03 AM
>
> Minor patchset to update device tree aliases
>
> Peng Fan (4):
> arm64: dts: imx8mq: Add mmc aliases
> arm64: dts: imx8mq: Add ethernet alias
> arm64: dts: imx8mm: sort the aliases
> arm64: dts: imx8mp: add i2c aliases

For this patchset,

Reviewed-by: Dong Aisheng <[email protected]>

Regards
Aisheng

2020-06-18 07:02:38

by Shawn Guo

[permalink] [raw]
Subject: Re: [PATCH 0/4] arm64: dts: imx8m: dtb aliases update

On Wed, May 20, 2020 at 10:02:42AM +0800, [email protected] wrote:
> From: Peng Fan <[email protected]>
>
> Minor patchset to update device tree aliases
>
> Peng Fan (4):
> arm64: dts: imx8mq: Add mmc aliases
> arm64: dts: imx8mq: Add ethernet alias
> arm64: dts: imx8mm: sort the aliases
> arm64: dts: imx8mp: add i2c aliases

Applied all, thanks.