[PATCH] ARM: DTS: myir-x335x: Add GPIO aliases

Alexander Shiyan eagle.alexander923 at gmail.com
Tue May 24 00:30:48 PDT 2022


For the correct work of GPIO driver, we need to define aliases.
Let's add them to the devicetree.

Signed-off-by: Alexander Shiyan <eagle.alexander923 at gmail.com>
---
 arch/arm/dts/am335x-myirtech-myd.dts | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/arch/arm/dts/am335x-myirtech-myd.dts b/arch/arm/dts/am335x-myirtech-myd.dts
index 6ec65e533d..1ea0f2a440 100644
--- a/arch/arm/dts/am335x-myirtech-myd.dts
+++ b/arch/arm/dts/am335x-myirtech-myd.dts
@@ -6,6 +6,13 @@
 #include <arm/am335x-myirtech-myd.dts>
 
 / {
+	aliases {
+		gpio0 = &gpio0;
+		gpio1 = &gpio1;
+		gpio2 = &gpio2;
+		gpio3 = &gpio3;
+	};
+
 	chosen {
 		environment {
 			compatible = "barebox,environment";
-- 
2.32.0




More information about the barebox mailing list