ARM: dts: stm32: clean uart aliases on stm32mp15xx-exx boards
authorValentin Caron <valentin.caron@foss.st.com>
Tue, 28 Mar 2023 15:37:20 +0000 (17:37 +0200)
committerAlexandre Torgue <alexandre.torgue@foss.st.com>
Tue, 28 Mar 2023 15:50:23 +0000 (17:50 +0200)
Remove duplicates and clean uart aliases.
Uart aliases and uart pins should be declared and associated to
uart instance at the same time.

Put also aliases node above chosen node as same as stm32mp157c-dk2.dts.

Signed-off-by: Valentin Caron <valentin.caron@foss.st.com>
Signed-off-by: Alexandre Torgue <alexandre.torgue@foss.st.com>
arch/arm/boot/dts/stm32mp157c-ed1.dts
arch/arm/boot/dts/stm32mp157c-ev1.dts

index b1eb688..2dfde62 100644 (file)
        model = "STMicroelectronics STM32MP157C eval daughter";
        compatible = "st,stm32mp157c-ed1", "st,stm32mp157";
 
+       aliases {
+               serial0 = &uart4;
+       };
+
        chosen {
                stdout-path = "serial0:115200n8";
        };
                };
        };
 
-       aliases {
-               serial0 = &uart4;
-       };
-
        sd_switch: regulator-sd_switch {
                compatible = "regulator-gpio";
                regulator-name = "sd_switch";
index 542226c..ba8e9d9 100644 (file)
        model = "STMicroelectronics STM32MP157C eval daughter on eval mother";
        compatible = "st,stm32mp157c-ev1", "st,stm32mp157c-ed1", "st,stm32mp157";
 
-       chosen {
-               stdout-path = "serial0:115200n8";
-       };
-
        aliases {
-               serial0 = &uart4;
                serial1 = &usart3;
                ethernet0 = &ethernet0;
        };
 
+       chosen {
+               stdout-path = "serial0:115200n8";
+       };
+
        clocks {
                clk_ext_camera: clk-ext-camera {
                        #clock-cells = <0>;