1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-01 16:52:14 +02:00

rockchip: gpio: Add missing gpio aliases

Add aliases for gpio controllers to soc u-boot dtsi files that are
missing aliases in soc dtsi files to ensure dev_seq() return the
expected number when a gpio controller is included in SPL.

Also drop the aliases from rk3288-u-boot.dtsi, they are already part of
rk3288.dtsi.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
This commit is contained in:
Jonas Karlman
2024-08-02 22:56:52 +00:00
committed by Ondrej Jirman
parent 0fd45b2666
commit 17fce0e52f
6 changed files with 35 additions and 9 deletions

View File

@@ -7,6 +7,10 @@
/ {
aliases {
gpio0 = &gpio0;
gpio1 = &gpio1;
gpio2 = &gpio2;
gpio3 = &gpio3;
mmc0 = &emmc;
mmc1 = &sdmmc;
};

View File

@@ -3,6 +3,13 @@
#include "rockchip-u-boot.dtsi"
#include "rk3xxx-u-boot.dtsi"
/ {
aliases {
gpio4 = &gpio4;
gpio6 = &gpio6;
};
};
&gpio0 {
gpio-ranges = <&pinctrl 0 0 32>;
};

View File

@@ -7,15 +7,6 @@
/ {
aliases {
gpio0 = &gpio0;
gpio1 = &gpio1;
gpio2 = &gpio2;
gpio3 = &gpio3;
gpio4 = &gpio4;
gpio5 = &gpio5;
gpio6 = &gpio6;
gpio7 = &gpio7;
gpio8 = &gpio8;
mmc0 = &emmc;
mmc1 = &sdmmc;
mmc2 = &sdio0;

View File

@@ -1,6 +1,13 @@
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/ {
aliases {
gpio0 = &gpio0;
gpio1 = &gpio1;
gpio2 = &gpio2;
gpio3 = &gpio3;
};
noc: syscon@10128000 {
compatible = "rockchip,rk3188-noc", "syscon";
reg = <0x10128000 0x2000>;

View File

@@ -5,6 +5,15 @@
#include "rockchip-u-boot.dtsi"
/ {
aliases {
gpio0 = &gpio0;
gpio1 = &gpio1;
gpio2 = &gpio2;
gpio3 = &gpio3;
};
};
&gpio0 {
gpio-ranges = <&pinctrl 0 0 32>;
};

View File

@@ -6,6 +6,14 @@
#include "rockchip-u-boot.dtsi"
/ {
aliases {
gpio0 = &gpio0;
gpio1 = &gpio1;
gpio2 = &gpio2;
gpio3 = &gpio3;
gpio4 = &gpio4;
};
chosen {
u-boot,spl-boot-order = \
"same-as-spl", &emmc, &sdmmc;