arm: dts: imx: fsl-imx8dx.dtsi: add gpio aliases to fix gpio command
Subsystems (2)
PATCH 1/1 arm: dts: imx: fsl-imx8dx.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: output: 1 [x] dbg1.gpios
...
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-imx8dx.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+)
arch/arm/dts/fsl-imx8dx.dtsi +8 -0
@@ -30,6 +30,14 @@ i2c1 = &i2c1; i2c2 = &i2c2; i2c3 = &i2c3; + gpio0 = &gpio0; + gpio1 = &gpio1; + gpio2 = &gpio2; + gpio3 = &gpio3; + gpio4 = &gpio4; + gpio5 = &gpio5; + gpio6 = &gpio6; + gpio7 = &gpio7; }; memory at 80000000 {
Signature · 1 line
2.17.1
PATCH 1/1 arm: dts: imx: fsl-imx8dx.dtsi: add gpio aliases to fix gpio command
Quoted 13 lines
The gpio command currently uses equal bank names "
GPIO0_" for all existing gpio banks, i. e.:
U-Boot# gpio status -a
BankGPIO0_:GPIO0_0: input: 0 [ ]GPIO0_1: output: 1 [x] dbg1.gpios
...
BankGPIO0_: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.
Quoted 1 line
Signed-off-by Anatolij Gustschin <[email protected]>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================