Skip to contentSkip to conversation

arm: dts: imx: fsl-imx8qm.dtsi: add gpio aliases to fix gpio command

PATCH New Peng Fan 2 participants 3 messages Jul 24, 2019 – Aug 13, 2019

Subsystems (2)
lore
Share & tools
lore

Peng Fan

author
#0 lore raw

PATCH 1/1 arm: dts: imx: fsl-imx8qm.dtsi: add gpio aliases to fix gpio command

The gpio command currently uses equal bank names "GPIO0_" for all existing gpio banks, i. e.:

U-Boot# gpio status -a
Bank GPIO0_:
GPIO0_0: input: 0 [ ]
GPIO0_1: input: 0 [ ]
...

Bank GPIO0_:
GPIO0_0: input: 0 [ ]
GPIO0_1: input: 0 [ ]

    ...

So the command is broken, it is not possible to address a desired bank. Add gpio aliases to fix this.

---
 arch/arm/dts/fsl-imx8qm.dtsi | 7 +++++++
 1 file changed, 7 insertions(+)
arch/arm/dts/fsl-imx8qm.dtsi +7 -0
index af060db3a1..6808f68f9d 100644
@@ -21,6 +21,13 @@
 	aliases {
 		ethernet0 = &fec1;
 		ethernet1 = &fec2;
+		gpio0 = &gpio1;
+		gpio1 = &gpio2;
+		gpio2 = &gpio3;
+		gpio3 = &gpio4;
+		gpio4 = &gpio5;
+		gpio5 = &gpio6;
+		gpio6 = &gpio7;
 		serial0 = &lpuart0;
 		serial1 = &lpuart1;
 		serial2 = &lpuart2;
Signature · 1 line
2.16.4
author Applied
#2 lore raw

PATCH 1/1 arm: dts: imx: fsl-imx8qm.dtsi: add gpio aliases to fix gpio command

In reply to Peng Fan
Quoted 15 lines

Subject: [PATCH] arm: dts: imx: fsl-imx8qm.dtsi: add gpio aliases to fix gpio command

The gpio command currently uses equal bank names "GPIO0_" for all existing gpio banks, i. e.:

U-Boot# gpio status -a
Bank GPIO0_:
GPIO0_0: input: 0 [ ]
GPIO0_1: input: 0 [ ]
...

Bank GPIO0_:
GPIO0_0: input: 0 [ ]
GPIO0_1: input: 0 [ ]

Quoted 7 lines
    ...

So the command is broken, it is not possible to address a desired bank. Add gpio aliases to fix this.

---

Applied to nxp-imx-8-13,
https://github.com/MrVan/u-boot/tree/nxp-imx-8-13

Regards,
Peng.