arm64: dts: rockchip: add gpio alias for gpio dt nodes

Add gpio alias for gpio controller dt nodes, which is used by the
new gpio driver to get the index of gpio controller for driver.

Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: I8fa25bed0193b6fcdbf617e3d457362d3734c4c8
This commit is contained in:
Jianqun Xu
2022-09-09 14:53:27 +08:00
committed by Tao Huang
parent 143b809917
commit 064f8026d1
4 changed files with 18 additions and 0 deletions

View File

@@ -23,6 +23,11 @@
aliases {
ethernet0 = &mac;
gpio0 = &gpio0;
gpio1 = &gpio1;
gpio2 = &gpio2;
gpio3 = &gpio3;
gpio4 = &gpio4;
i2c0 = &i2c0;
i2c1 = &i2c1;
i2c2 = &i2c2;

View File

@@ -20,6 +20,10 @@
#size-cells = <2>;
aliases {
gpio0 = &gpio0;
gpio1 = &gpio1;
gpio2 = &gpio2;
gpio3 = &gpio3;
serial0 = &uart0;
serial1 = &uart1;
serial2 = &uart2;

View File

@@ -19,6 +19,10 @@
aliases {
ethernet0 = &gmac;
gpio0 = &gpio0;
gpio1 = &gpio1;
gpio2 = &gpio2;
gpio3 = &gpio3;
i2c0 = &i2c0;
i2c1 = &i2c1;
i2c2 = &i2c2;

View File

@@ -27,6 +27,11 @@
dsi0 = &dsi;
dsi1 = &dsi1;
ethernet0 = &gmac;
gpio0 = &gpio0;
gpio1 = &gpio1;
gpio2 = &gpio2;
gpio3 = &gpio3;
gpio4 = &gpio4;
i2c0 = &i2c0;
i2c1 = &i2c1;
i2c2 = &i2c2;