The aliases for typical blocks which are disabled by default in DTSI
(like I2C, UART and MMC) should be defined in the board DTS. The board
should add aliases only for enabled blocks according to its specific
order.
On Exynos850, move aliases of enabled blocks to E850-96 board and remove
unused ones.
Signed-off-by: Krzysztof Kozlowski <[email protected]>
---
See also:
https://lore.kernel.org/linux-rockchip/CAK8P3a25iYksubCnQb1-e5yj=crEsK37RB9Hn4ZGZMwcVVrG7g@mail.gmail.com/
---
arch/arm64/boot/dts/exynos/exynos850-e850-96.dts | 5 +++++
arch/arm64/boot/dts/exynos/exynos850.dtsi | 16 ----------------
2 files changed, 5 insertions(+), 16 deletions(-)
diff --git a/arch/arm64/boot/dts/exynos/exynos850-e850-96.dts b/arch/arm64/boot/dts/exynos/exynos850-e850-96.dts
index 7b5a61d22cc5..f52a55f644f7 100644
--- a/arch/arm64/boot/dts/exynos/exynos850-e850-96.dts
+++ b/arch/arm64/boot/dts/exynos/exynos850-e850-96.dts
@@ -20,6 +20,11 @@ / {
model = "WinLink E850-96 board";
compatible = "winlink,e850-96", "samsung,exynos850";
+ aliases {
+ mmc0 = &mmc_0;
+ serial0 = &serial_0;
+ };
+
chosen {
stdout-path = &serial_0;
};
diff --git a/arch/arm64/boot/dts/exynos/exynos850.dtsi b/arch/arm64/boot/dts/exynos/exynos850.dtsi
index d1700e96fee2..1c6d8fdf453c 100644
--- a/arch/arm64/boot/dts/exynos/exynos850.dtsi
+++ b/arch/arm64/boot/dts/exynos/exynos850.dtsi
@@ -29,22 +29,6 @@ aliases {
pinctrl3 = &pinctrl_hsi;
pinctrl4 = &pinctrl_core;
pinctrl5 = &pinctrl_peri;
- mmc0 = &mmc_0;
- serial0 = &serial_0;
- serial1 = &serial_1;
- serial2 = &serial_2;
- i2c0 = &i2c_0;
- i2c1 = &i2c_1;
- i2c2 = &i2c_2;
- i2c3 = &i2c_3;
- i2c4 = &i2c_4;
- i2c5 = &i2c_5;
- i2c6 = &i2c_6;
- i2c7 = &hsi2c_0;
- i2c8 = &hsi2c_1;
- i2c9 = &hsi2c_2;
- i2c10 = &hsi2c_3;
- i2c11 = &hsi2c_4;
};
arm-pmu {
--
2.32.0
On Mon, 21 Feb 2022 08:52:19 +0100, Krzysztof Kozlowski wrote:
> The aliases for typical blocks which are disabled by default in DTSI
> (like I2C, UART and MMC) should be defined in the board DTS. The board
> should add aliases only for enabled blocks according to its specific
> order.
>
> On Exynos850, move aliases of enabled blocks to E850-96 board and remove
> unused ones.
>
> [...]
Applied, thanks!
[1/1] arm64: dts: exynos: move aliases to board in Exynos850
commit: f4324583cd4d4979ff2e885a44b8335eb4c4bfa3
Best regards,
--
Krzysztof Kozlowski <[email protected]>