ARM: imx: rename uart and fec device tree nodes
Subsystems (5)
PATCH 1/1 ARM: imx: rename uart and fec device tree nodes
It has been pointed out by device tree maintainer for several times that the generic names 'serial' and 'ethernet' should be used for those devices per ePAPR. Renames imx uart and fec device tree nodes to stop them being bad examples.
--- Documentation/devicetree/bindings/net/fsl-fec.txt | 2 +- .../bindings/tty/serial/fsl-imx-uart.txt | 2 +- arch/arm/boot/dts/imx27-phytec-phycore.dts | 8 ++++---- arch/arm/boot/dts/imx27.dtsi | 14 +++++++------- arch/arm/boot/dts/imx51-babbage.dts | 8 ++++---- arch/arm/boot/dts/imx51.dtsi | 8 ++++---- arch/arm/boot/dts/imx53-ard.dts | 2 +- arch/arm/boot/dts/imx53-evk.dts | 4 ++-- arch/arm/boot/dts/imx53-qsb.dts | 4 ++-- arch/arm/boot/dts/imx53-smd.dts | 8 ++++---- arch/arm/boot/dts/imx53.dtsi | 12 ++++++------ arch/arm/boot/dts/imx6q-arm2.dts | 4 ++-- arch/arm/boot/dts/imx6q-sabrelite.dts | 4 ++-- arch/arm/boot/dts/imx6q.dtsi | 12 ++++++------ arch/arm/mach-imx/clock-imx6q.c | 12 ++++++------ 15 files changed, 52 insertions(+), 52 deletions(-)
Documentation/devicetree/bindings/net/fsl-fec.txt +1 -1
@@ -14,7 +14,7 @@ Optional properties: Example: -fec at 83fec000 { +ethernet at 83fec000 { compatible = "fsl,imx51-fec", "fsl,imx27-fec"; reg = <0x83fec000 0x4000>; interrupts = <87>;
Documentation/devicetree/bindings/tty/serial/fsl-imx-uart.txt +1 -1
@@ -11,7 +11,7 @@ Optional properties: Example: -uart at 73fbc000 { +serial at 73fbc000 { compatible = "fsl,imx51-uart", "fsl,imx21-uart"; reg = <0x73fbc000 0x4000>; interrupts = <31>;
arch/arm/boot/dts/imx27-phytec-phycore.dts +4 -4
@@ -27,22 +27,22 @@ status = "okay"; }; - uart at 1000a000 { + serial at 1000a000 { fsl,uart-has-rtscts; status = "okay"; }; - uart at 1000b000 { + serial at 1000b000 { fsl,uart-has-rtscts; status = "okay"; }; - uart at 1000c000 { + serial at 1000c000 { fsl,uart-has-rtscts; status = "okay"; }; - fec at 1002b000 { + ethernet at 1002b000 { status = "okay"; };
arch/arm/boot/dts/imx27.dtsi +7 -7
@@ -59,28 +59,28 @@ status = "disabled"; }; - uart1: uart at 1000a000 { + uart1: serial at 1000a000 { compatible = "fsl,imx27-uart", "fsl,imx21-uart"; reg = <0x1000a000 0x1000>; interrupts = <20>; status = "disabled"; }; - uart2: uart at 1000b000 { + uart2: serial at 1000b000 { compatible = "fsl,imx27-uart", "fsl,imx21-uart"; reg = <0x1000b000 0x1000>; interrupts = <19>; status = "disabled"; }; - uart3: uart at 1000c000 { + uart3: serial at 1000c000 { compatible = "fsl,imx27-uart", "fsl,imx21-uart"; reg = <0x1000c000 0x1000>; interrupts = <18>; status = "disabled"; }; - uart4: uart at 1000d000 { + uart4: serial at 1000d000 { compatible = "fsl,imx27-uart", "fsl,imx21-uart"; reg = <0x1000d000 0x1000>; interrupts = <17>;
@@ -183,14 +183,14 @@ status = "disabled"; }; - uart5: uart at 1001b000 { + uart5: serial at 1001b000 { compatible = "fsl,imx27-uart", "fsl,imx21-uart"; reg = <0x1001b000 0x1000>; interrupts = <49>; status = "disabled"; }; - uart6: uart at 1001c000 { + uart6: serial at 1001c000 { compatible = "fsl,imx27-uart", "fsl,imx21-uart"; reg = <0x1001c000 0x1000>; interrupts = <48>;
@@ -206,7 +206,7 @@ status = "disabled"; }; - fec: fec at 1002b000 { + fec: ethernet at 1002b000 { compatible = "fsl,imx27-fec"; reg = <0x1002b000 0x4000>; interrupts = <50>;
arch/arm/boot/dts/imx51-babbage.dts +4 -4
@@ -36,7 +36,7 @@ status = "okay"; }; - uart3: uart at 7000c000 { + uart3: serial at 7000c000 { fsl,uart-has-rtscts; status = "okay"; };
@@ -173,12 +173,12 @@ reg = <0x73fa8000 0x4000>; }; - uart1: uart at 73fbc000 { + uart1: serial at 73fbc000 { fsl,uart-has-rtscts; status = "okay"; }; - uart2: uart at 73fc0000 { + uart2: serial at 73fc0000 { status = "okay"; }; };
@@ -197,7 +197,7 @@ }; }; - fec at 83fec000 { + ethernet at 83fec000 { phy-mode = "mii"; status = "okay"; };
arch/arm/boot/dts/imx51.dtsi +4 -4
@@ -86,7 +86,7 @@ status = "disabled"; }; - uart3: uart at 7000c000 { + uart3: serial at 7000c000 { compatible = "fsl,imx51-uart", "fsl,imx21-uart"; reg = <0x7000c000 0x4000>; interrupts = <33>;
@@ -171,14 +171,14 @@ status = "disabled"; }; - uart1: uart at 73fbc000 { + uart1: serial at 73fbc000 { compatible = "fsl,imx51-uart", "fsl,imx21-uart"; reg = <0x73fbc000 0x4000>; interrupts = <31>; status = "disabled"; }; - uart2: uart at 73fc0000 { + uart2: serial at 73fc0000 { compatible = "fsl,imx51-uart", "fsl,imx21-uart"; reg = <0x73fc0000 0x4000>; interrupts = <32>;
@@ -235,7 +235,7 @@ status = "disabled"; }; - fec at 83fec000 { + ethernet at 83fec000 { compatible = "fsl,imx51-fec", "fsl,imx27-fec"; reg = <0x83fec000 0x4000>; interrupts = <87>;
arch/arm/boot/dts/imx53-ard.dts +1 -1
@@ -40,7 +40,7 @@ reg = <0x53fa8000 0x4000>; }; - uart1: uart at 53fbc000 { + uart1: serial at 53fbc000 { status = "okay"; }; };
arch/arm/boot/dts/imx53-evk.dts +2 -2
@@ -71,7 +71,7 @@ reg = <0x53fa8000 0x4000>; }; - uart1: uart at 53fbc000 { + uart1: serial at 53fbc000 { status = "okay"; }; };
@@ -95,7 +95,7 @@ }; }; - fec at 63fec000 { + ethernet at 63fec000 { phy-mode = "rmii"; phy-reset-gpios = <&gpio7 6 0>; status = "okay";
arch/arm/boot/dts/imx53-qsb.dts +2 -2
@@ -45,7 +45,7 @@ reg = <0x53fa8000 0x4000>; }; - uart1: uart at 53fbc000 { + uart1: serial at 53fbc000 { status = "okay"; }; };
@@ -78,7 +78,7 @@ }; }; - fec at 63fec000 { + ethernet at 63fec000 { phy-mode = "rmii"; phy-reset-gpios = <&gpio7 6 0>; status = "okay";
arch/arm/boot/dts/imx53-smd.dts +4 -4
@@ -35,7 +35,7 @@ status = "okay"; }; - uart3: uart at 5000c000 { + uart3: serial at 5000c000 { fsl,uart-has-rtscts; status = "okay"; };
@@ -86,11 +86,11 @@ reg = <0x53fa8000 0x4000>; }; - uart1: uart at 53fbc000 { + uart1: serial at 53fbc000 { status = "okay"; }; - uart2: uart at 53fc0000 { + uart2: serial at 53fc0000 { status = "okay"; }; };
@@ -138,7 +138,7 @@ }; }; - fec at 63fec000 { + ethernet at 63fec000 { phy-mode = "rmii"; phy-reset-gpios = <&gpio7 6 0>; status = "okay";
arch/arm/boot/dts/imx53.dtsi +6 -6
@@ -88,7 +88,7 @@ status = "disabled"; }; - uart3: uart at 5000c000 { + uart3: serial at 5000c000 { compatible = "fsl,imx53-uart", "fsl,imx21-uart"; reg = <0x5000c000 0x4000>; interrupts = <33>;
@@ -173,14 +173,14 @@ status = "disabled"; }; - uart1: uart at 53fbc000 { + uart1: serial at 53fbc000 { compatible = "fsl,imx53-uart", "fsl,imx21-uart"; reg = <0x53fbc000 0x4000>; interrupts = <31>; status = "disabled"; }; - uart2: uart at 53fc0000 { + uart2: serial at 53fc0000 { compatible = "fsl,imx53-uart", "fsl,imx21-uart"; reg = <0x53fc0000 0x4000>; interrupts = <32>;
@@ -226,7 +226,7 @@ status = "disabled"; }; - uart4: uart at 53ff0000 { + uart4: serial at 53ff0000 { compatible = "fsl,imx53-uart", "fsl,imx21-uart"; reg = <0x53ff0000 0x4000>; interrupts = <13>;
@@ -241,7 +241,7 @@ reg = <0x60000000 0x10000000>; ranges; - uart5: uart at 63f90000 { + uart5: serial at 63f90000 { compatible = "fsl,imx53-uart", "fsl,imx21-uart"; reg = <0x63f90000 0x4000>; interrupts = <86>;
@@ -290,7 +290,7 @@ status = "disabled"; }; - fec at 63fec000 { + ethernet at 63fec000 { compatible = "fsl,imx53-fec", "fsl,imx25-fec"; reg = <0x63fec000 0x4000>; interrupts = <87>;
arch/arm/boot/dts/imx6q-arm2.dts +2 -2
@@ -23,7 +23,7 @@ soc { aips-bus at 02100000 { /* AIPS2 */ - enet at 02188000 { + ethernet at 02188000 { phy-mode = "rgmii"; local-mac-address = [00 04 9F 01 1B 61]; status = "okay";
@@ -42,7 +42,7 @@ status = "okay"; }; - uart4: uart at 021f0000 { + uart4: serial at 021f0000 { status = "okay"; }; };
arch/arm/boot/dts/imx6q-sabrelite.dts +2 -2
@@ -23,7 +23,7 @@ soc { aips-bus at 02100000 { /* AIPS2 */ - enet at 02188000 { + ethernet at 02188000 { phy-mode = "rgmii"; phy-reset-gpios = <&gpio3 23 0>; status = "okay";
@@ -43,7 +43,7 @@ status = "okay"; }; - uart2: uart at 021e8000 { + uart2: serial at 021e8000 { status = "okay"; };
arch/arm/boot/dts/imx6q.dtsi +6 -6
@@ -165,7 +165,7 @@ status = "disabled"; }; - uart1: uart at 02020000 { + uart1: serial at 02020000 { compatible = "fsl,imx6q-uart", "fsl,imx21-uart"; reg = <0x02020000 0x4000>; interrupts = <0 26 0x04>;
@@ -506,7 +506,7 @@ reg = <0x0217c000 0x4000>; }; - enet at 02188000 { + ethernet at 02188000 { compatible = "fsl,imx6q-fec"; reg = <0x02188000 0x4000>; interrupts = <0 118 0x04 0 119 0x04>;
@@ -627,28 +627,28 @@ interrupts = <0 18 0x04>; }; - uart2: uart at 021e8000 { + uart2: serial at 021e8000 { compatible = "fsl,imx6q-uart", "fsl,imx21-uart"; reg = <0x021e8000 0x4000>; interrupts = <0 27 0x04>; status = "disabled"; }; - uart3: uart at 021ec000 { + uart3: serial at 021ec000 { compatible = "fsl,imx6q-uart", "fsl,imx21-uart"; reg = <0x021ec000 0x4000>; interrupts = <0 28 0x04>; status = "disabled"; }; - uart4: uart at 021f0000 { + uart4: serial at 021f0000 { compatible = "fsl,imx6q-uart", "fsl,imx21-uart"; reg = <0x021f0000 0x4000>; interrupts = <0 29 0x04>; status = "disabled"; }; - uart5: uart at 021f4000 { + uart5: serial at 021f4000 { compatible = "fsl,imx6q-uart", "fsl,imx21-uart"; reg = <0x021f4000 0x4000>; interrupts = <0 30 0x04>;
arch/arm/mach-imx/clock-imx6q.c +6 -6
@@ -1952,12 +1952,12 @@ static struct clk sata_clk = { }static struct clk_lookup lookups[] = { -_REGISTER_CLOCK ("2020000.uart" ,NULL , uart_clk), -_REGISTER_CLOCK ("21e8000.uart" ,NULL , uart_clk), -_REGISTER_CLOCK ("21ec000.uart" ,NULL , uart_clk), -_REGISTER_CLOCK ("21f0000.uart" ,NULL , uart_clk), -_REGISTER_CLOCK ("21f4000.uart" ,NULL , uart_clk), -_REGISTER_CLOCK ("2188000.enet" ,NULL , enet_clk), +_REGISTER_CLOCK ("2020000.serial" ,NULL , uart_clk), +_REGISTER_CLOCK ("21e8000.serial" ,NULL , uart_clk), +_REGISTER_CLOCK ("21ec000.serial" ,NULL , uart_clk), +_REGISTER_CLOCK ("21f0000.serial" ,NULL , uart_clk), +_REGISTER_CLOCK ("21f4000.serial" ,NULL , uart_clk), +_REGISTER_CLOCK ("2188000.ethernet" ,NULL , enet_clk),_REGISTER_CLOCK ("2190000.usdhc" ,NULL , usdhc1_clk),_REGISTER_CLOCK ("2194000.usdhc" ,NULL , usdhc2_clk),_REGISTER_CLOCK ("2198000.usdhc" ,NULL , usdhc3_clk),
Signature · 1 line
1.7.5.4
Sascha Hauer
maintainerPATCH 1/1 ARM: imx: rename uart and fec device tree nodes
Quoted 6 lines · Shawn Guo
It has been pointed out by device tree maintainer for several times that the generic names 'serial' and 'ethernet' should be used for those devices per ePAPR. Renames imx uart and fec device tree nodes to stop them being bad examples.
Signed-off-by Shawn Guo <[email protected]>
Sascha
Quoted 490 lines
--- Documentation/devicetree/bindings/net/fsl-fec.txt | 2 +- .../bindings/tty/serial/fsl-imx-uart.txt | 2 +- arch/arm/boot/dts/imx27-phytec-phycore.dts | 8 ++++---- arch/arm/boot/dts/imx27.dtsi | 14 +++++++------- arch/arm/boot/dts/imx51-babbage.dts | 8 ++++---- arch/arm/boot/dts/imx51.dtsi | 8 ++++---- arch/arm/boot/dts/imx53-ard.dts | 2 +- arch/arm/boot/dts/imx53-evk.dts | 4 ++-- arch/arm/boot/dts/imx53-qsb.dts | 4 ++-- arch/arm/boot/dts/imx53-smd.dts | 8 ++++---- arch/arm/boot/dts/imx53.dtsi | 12 ++++++------ arch/arm/boot/dts/imx6q-arm2.dts | 4 ++-- arch/arm/boot/dts/imx6q-sabrelite.dts | 4 ++-- arch/arm/boot/dts/imx6q.dtsi | 12 ++++++------ arch/arm/mach-imx/clock-imx6q.c | 12 ++++++------ 15 files changed, 52 insertions(+), 52 deletions(-)Documentation/devicetree/bindings/net/fsl-fec.txt +1
-1@@ -14,7 +14,7 @@ Optional properties: Example: -fec at 83fec000 { +ethernet at 83fec000 { compatible = "fsl,imx51-fec", "fsl,imx27-fec"; reg = <0x83fec000 0x4000>; interrupts = <87>;Documentation/devicetree/bindings/tty/serial/fsl-imx-uart.txt +1
-1@@ -11,7 +11,7 @@ Optional properties: Example: -uart at 73fbc000 { +serial at 73fbc000 { compatible = "fsl,imx51-uart", "fsl,imx21-uart"; reg = <0x73fbc000 0x4000>; interrupts = <31>;arch/arm/boot/dts/imx27-phytec-phycore.dts +4
-4@@ -27,22 +27,22 @@ status = "okay"; }; - uart at 1000a000 { + serial at 1000a000 { fsl,uart-has-rtscts; status = "okay"; }; - uart at 1000b000 { + serial at 1000b000 { fsl,uart-has-rtscts; status = "okay"; }; - uart at 1000c000 { + serial at 1000c000 { fsl,uart-has-rtscts; status = "okay"; }; - fec at 1002b000 { + ethernet at 1002b000 { status = "okay"; };arch/arm/boot/dts/imx27.dtsi +7
-7@@ -59,28 +59,28 @@ status = "disabled"; }; - uart1: uart at 1000a000 { + uart1: serial at 1000a000 { compatible = "fsl,imx27-uart", "fsl,imx21-uart"; reg = <0x1000a000 0x1000>; interrupts = <20>; status = "disabled"; }; - uart2: uart at 1000b000 { + uart2: serial at 1000b000 { compatible = "fsl,imx27-uart", "fsl,imx21-uart"; reg = <0x1000b000 0x1000>; interrupts = <19>; status = "disabled"; }; - uart3: uart at 1000c000 { + uart3: serial at 1000c000 { compatible = "fsl,imx27-uart", "fsl,imx21-uart"; reg = <0x1000c000 0x1000>; interrupts = <18>; status = "disabled"; }; - uart4: uart at 1000d000 { + uart4: serial at 1000d000 { compatible = "fsl,imx27-uart", "fsl,imx21-uart"; reg = <0x1000d000 0x1000>; interrupts = <17>;@@ -183,14 +183,14 @@ status = "disabled"; }; - uart5: uart at 1001b000 { + uart5: serial at 1001b000 { compatible = "fsl,imx27-uart", "fsl,imx21-uart"; reg = <0x1001b000 0x1000>; interrupts = <49>; status = "disabled"; }; - uart6: uart at 1001c000 { + uart6: serial at 1001c000 { compatible = "fsl,imx27-uart", "fsl,imx21-uart"; reg = <0x1001c000 0x1000>; interrupts = <48>;@@ -206,7 +206,7 @@ status = "disabled"; }; - fec: fec at 1002b000 { + fec: ethernet at 1002b000 { compatible = "fsl,imx27-fec"; reg = <0x1002b000 0x4000>; interrupts = <50>;arch/arm/boot/dts/imx51-babbage.dts +4
-4@@ -36,7 +36,7 @@ status = "okay"; }; - uart3: uart at 7000c000 { + uart3: serial at 7000c000 { fsl,uart-has-rtscts; status = "okay"; };@@ -173,12 +173,12 @@ reg = <0x73fa8000 0x4000>; }; - uart1: uart at 73fbc000 { + uart1: serial at 73fbc000 { fsl,uart-has-rtscts; status = "okay"; }; - uart2: uart at 73fc0000 { + uart2: serial at 73fc0000 { status = "okay"; }; };@@ -197,7 +197,7 @@ }; }; - fec at 83fec000 { + ethernet at 83fec000 { phy-mode = "mii"; status = "okay"; };arch/arm/boot/dts/imx51.dtsi +4
-4@@ -86,7 +86,7 @@ status = "disabled"; }; - uart3: uart at 7000c000 { + uart3: serial at 7000c000 { compatible = "fsl,imx51-uart", "fsl,imx21-uart"; reg = <0x7000c000 0x4000>; interrupts = <33>;@@ -171,14 +171,14 @@ status = "disabled"; }; - uart1: uart at 73fbc000 { + uart1: serial at 73fbc000 { compatible = "fsl,imx51-uart", "fsl,imx21-uart"; reg = <0x73fbc000 0x4000>; interrupts = <31>; status = "disabled"; }; - uart2: uart at 73fc0000 { + uart2: serial at 73fc0000 { compatible = "fsl,imx51-uart", "fsl,imx21-uart"; reg = <0x73fc0000 0x4000>; interrupts = <32>;@@ -235,7 +235,7 @@ status = "disabled"; }; - fec at 83fec000 { + ethernet at 83fec000 { compatible = "fsl,imx51-fec", "fsl,imx27-fec"; reg = <0x83fec000 0x4000>; interrupts = <87>;arch/arm/boot/dts/imx53-ard.dts +1
-1@@ -40,7 +40,7 @@ reg = <0x53fa8000 0x4000>; }; - uart1: uart at 53fbc000 { + uart1: serial at 53fbc000 { status = "okay"; }; };arch/arm/boot/dts/imx53-evk.dts +2
-2@@ -71,7 +71,7 @@ reg = <0x53fa8000 0x4000>; }; - uart1: uart at 53fbc000 { + uart1: serial at 53fbc000 { status = "okay"; }; };@@ -95,7 +95,7 @@ }; }; - fec at 63fec000 { + ethernet at 63fec000 { phy-mode = "rmii"; phy-reset-gpios = <&gpio7 6 0>; status = "okay";arch/arm/boot/dts/imx53-qsb.dts +2
-2@@ -45,7 +45,7 @@ reg = <0x53fa8000 0x4000>; }; - uart1: uart at 53fbc000 { + uart1: serial at 53fbc000 { status = "okay"; }; };@@ -78,7 +78,7 @@ }; }; - fec at 63fec000 { + ethernet at 63fec000 { phy-mode = "rmii"; phy-reset-gpios = <&gpio7 6 0>; status = "okay";arch/arm/boot/dts/imx53-smd.dts +4
-4@@ -35,7 +35,7 @@ status = "okay"; }; - uart3: uart at 5000c000 { + uart3: serial at 5000c000 { fsl,uart-has-rtscts; status = "okay"; };@@ -86,11 +86,11 @@ reg = <0x53fa8000 0x4000>; }; - uart1: uart at 53fbc000 { + uart1: serial at 53fbc000 { status = "okay"; }; - uart2: uart at 53fc0000 { + uart2: serial at 53fc0000 { status = "okay"; }; };@@ -138,7 +138,7 @@ }; }; - fec at 63fec000 { + ethernet at 63fec000 { phy-mode = "rmii"; phy-reset-gpios = <&gpio7 6 0>; status = "okay";arch/arm/boot/dts/imx53.dtsi +6
-6@@ -88,7 +88,7 @@ status = "disabled"; }; - uart3: uart at 5000c000 { + uart3: serial at 5000c000 { compatible = "fsl,imx53-uart", "fsl,imx21-uart"; reg = <0x5000c000 0x4000>; interrupts = <33>;@@ -173,14 +173,14 @@ status = "disabled"; }; - uart1: uart at 53fbc000 { + uart1: serial at 53fbc000 { compatible = "fsl,imx53-uart", "fsl,imx21-uart"; reg = <0x53fbc000 0x4000>; interrupts = <31>; status = "disabled"; }; - uart2: uart at 53fc0000 { + uart2: serial at 53fc0000 { compatible = "fsl,imx53-uart", "fsl,imx21-uart"; reg = <0x53fc0000 0x4000>; interrupts = <32>;@@ -226,7 +226,7 @@ status = "disabled"; }; - uart4: uart at 53ff0000 { + uart4: serial at 53ff0000 { compatible = "fsl,imx53-uart", "fsl,imx21-uart"; reg = <0x53ff0000 0x4000>; interrupts = <13>;@@ -241,7 +241,7 @@ reg = <0x60000000 0x10000000>; ranges; - uart5: uart at 63f90000 { + uart5: serial at 63f90000 { compatible = "fsl,imx53-uart", "fsl,imx21-uart"; reg = <0x63f90000 0x4000>; interrupts = <86>;@@ -290,7 +290,7 @@ status = "disabled"; }; - fec at 63fec000 { + ethernet at 63fec000 { compatible = "fsl,imx53-fec", "fsl,imx25-fec"; reg = <0x63fec000 0x4000>; interrupts = <87>;arch/arm/boot/dts/imx6q-arm2.dts +2
-2@@ -23,7 +23,7 @@ soc { aips-bus at 02100000 { /* AIPS2 */ - enet at 02188000 { + ethernet at 02188000 { phy-mode = "rgmii"; local-mac-address = [00 04 9F 01 1B 61]; status = "okay";@@ -42,7 +42,7 @@ status = "okay"; }; - uart4: uart at 021f0000 { + uart4: serial at 021f0000 { status = "okay"; }; };arch/arm/boot/dts/imx6q-sabrelite.dts +2
-2@@ -23,7 +23,7 @@ soc { aips-bus at 02100000 { /* AIPS2 */ - enet at 02188000 { + ethernet at 02188000 { phy-mode = "rgmii"; phy-reset-gpios = <&gpio3 23 0>; status = "okay";@@ -43,7 +43,7 @@ status = "okay"; }; - uart2: uart at 021e8000 { + uart2: serial at 021e8000 { status = "okay"; };arch/arm/boot/dts/imx6q.dtsi +6
-6@@ -165,7 +165,7 @@ status = "disabled"; }; - uart1: uart at 02020000 { + uart1: serial at 02020000 { compatible = "fsl,imx6q-uart", "fsl,imx21-uart"; reg = <0x02020000 0x4000>; interrupts = <0 26 0x04>;@@ -506,7 +506,7 @@ reg = <0x0217c000 0x4000>; }; - enet at 02188000 { + ethernet at 02188000 { compatible = "fsl,imx6q-fec"; reg = <0x02188000 0x4000>; interrupts = <0 118 0x04 0 119 0x04>;@@ -627,28 +627,28 @@ interrupts = <0 18 0x04>; }; - uart2: uart at 021e8000 { + uart2: serial at 021e8000 { compatible = "fsl,imx6q-uart", "fsl,imx21-uart"; reg = <0x021e8000 0x4000>; interrupts = <0 27 0x04>; status = "disabled"; }; - uart3: uart at 021ec000 { + uart3: serial at 021ec000 { compatible = "fsl,imx6q-uart", "fsl,imx21-uart"; reg = <0x021ec000 0x4000>; interrupts = <0 28 0x04>; status = "disabled"; }; - uart4: uart at 021f0000 { + uart4: serial at 021f0000 { compatible = "fsl,imx6q-uart", "fsl,imx21-uart"; reg = <0x021f0000 0x4000>; interrupts = <0 29 0x04>; status = "disabled"; }; - uart5: uart at 021f4000 { + uart5: serial at 021f4000 { compatible = "fsl,imx6q-uart", "fsl,imx21-uart"; reg = <0x021f4000 0x4000>; interrupts = <0 30 0x04>;arch/arm/mach-imx/clock-imx6q.c +6
-6@@ -1952,12 +1952,12 @@ static struct clk sata_clk = { }static struct clk_lookup lookups[] = { -_REGISTER_CLOCK ("2020000.uart" ,NULL , uart_clk), -_REGISTER_CLOCK ("21e8000.uart" ,NULL , uart_clk), -_REGISTER_CLOCK ("21ec000.uart" ,NULL , uart_clk), -_REGISTER_CLOCK ("21f0000.uart" ,NULL , uart_clk), -_REGISTER_CLOCK ("21f4000.uart" ,NULL , uart_clk), -_REGISTER_CLOCK ("2188000.enet" ,NULL , enet_clk), +_REGISTER_CLOCK ("2020000.serial" ,NULL , uart_clk), +_REGISTER_CLOCK ("21e8000.serial" ,NULL , uart_clk), +_REGISTER_CLOCK ("21ec000.serial" ,NULL , uart_clk), +_REGISTER_CLOCK ("21f0000.serial" ,NULL , uart_clk), +_REGISTER_CLOCK ("21f4000.serial" ,NULL , uart_clk), +_REGISTER_CLOCK ("2188000.ethernet" ,NULL , enet_clk),_REGISTER_CLOCK ("2190000.usdhc" ,NULL , usdhc1_clk),_REGISTER_CLOCK ("2194000.usdhc" ,NULL , usdhc2_clk),_REGISTER_CLOCK ("2198000.usdhc" ,NULL , usdhc3_clk),Signature · 1 line
1.7.5.4
Signature · 4 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
PATCH 1/1 ARM: imx: rename uart and fec device tree nodes
In reply to Shawn GuoHi Shawn,
Quoted 23 lines · Shawn Guo
It has been pointed out by device tree maintainer for several times that the generic names 'serial' and 'ethernet' should be used for those devices per ePAPR. Renames imx uart and fec device tree nodes to stop them being bad examples.
Signed-off-by Shawn Guo <[email protected]>--- Documentation/devicetree/bindings/net/fsl-fec.txt | 2 +- .../bindings/tty/serial/fsl-imx-uart.txt | 2 +- arch/arm/boot/dts/imx27-phytec-phycore.dts | 8 ++++---- arch/arm/boot/dts/imx27.dtsi | 14 +++++++------- arch/arm/boot/dts/imx51-babbage.dts | 8 ++++---- arch/arm/boot/dts/imx51.dtsi | 8 ++++---- arch/arm/boot/dts/imx53-ard.dts | 2 +- arch/arm/boot/dts/imx53-evk.dts | 4 ++-- arch/arm/boot/dts/imx53-qsb.dts | 4 ++-- arch/arm/boot/dts/imx53-smd.dts | 8 ++++---- arch/arm/boot/dts/imx53.dtsi | 12 ++++++------ arch/arm/boot/dts/imx6q-arm2.dts | 4 ++-- arch/arm/boot/dts/imx6q-sabrelite.dts | 4 ++-- arch/arm/boot/dts/imx6q.dtsi | 12 ++++++------ arch/arm/mach-imx/clock-imx6q.c | 12 ++++++------ 15 files changed, 52 insertions(+), 52 deletions(-)
...
Quoted 4 lines
arch/arm/boot/dts/imx6q-sabrelite.dts +0
-0
...
Quoted 13 lines
arch/arm/boot/dts/imx6q-sabrelite.dts +1
-1@@ -43,7 +43,7 @@ status = "okay"; }; - uart2: uart at 021e8000 { + uart2: serial at 021e8000 { status = "okay"; };arch/arm/boot/dts/imx6q.dtsi +0
-0
...
arch/arm/boot/dts/imx6q.dtsi line 635
Quoted 11 lines
arch/arm/boot/dts/imx6q.dtsi +1
-1@@ -627,28 +627,28 @@ interrupts = <0 18 0x04>; }; - uart2: uart at 021e8000 { + uart2: serial at 021e8000 { compatible = "fsl,imx6q-uart", "fsl,imx21-uart"; reg = <0x021e8000 0x4000>; interrupts = <0 27 0x04>; status = "disabled"; };
Having this patch on a 3.4-rc5 based test branch and booting it on the SabreLite I get (with earlyprintk enabled):
Serial: IMX driver
imx-uart: probe of 21e8000.serial failed with error -2
resulting in no console output. Reverting this patch I get
Serial: IMX driver
21e8000.uart: ttymxc1 at MMIO 0x21e8000 (irq = 59) is a IMX
and console works fine again.
Have I missed anything?
Best regards
Dirk
PATCH 1/1 ARM: imx: rename uart and fec device tree nodes
Quoted 6 lines · Dirk Behme
Having this patch on a 3.4-rc5 based test branch and booting it on the SabreLite I get (with earlyprintk enabled):
Serial: IMX driver
imx-uart: probe of 21e8000.serial failed with error -2
Quoted 9 lines
resulting in no console output. Reverting this patch I get
Serial: IMX driver
21e8000.uart: ttymxc1 at MMIO0x21e8000(irq = 59) is a IMXand console works fine again.
Have I missed anything?
The patch changes arch/arm/mach-imx/clock-imx6q.c as well. Not sure if you have the changes incorporated in your testing branch.
It reminds me that I should rebase my imx/dt branch on Sascha's clk series to save the conflict.
Signature · 2 lines
Regards, Shawn
PATCH 1/1 ARM: imx: rename uart and fec device tree nodes
Quoted 12 lines · Shawn Guo
Quoted 11 lines · Dirk Behme
Having this patch on a 3.4-rc5 based test branch and booting it on the SabreLite I get (with earlyprintk enabled):
Serial: IMX driver
imx-uart: probe of 21e8000.serial failed with error -2resulting in no console output. Reverting this patch I get
Serial: IMX driver
21e8000.uart: ttymxc1 at MMIO0x21e8000(irq = 59) is a IMX
Quoted 6 lines
Quoted 4 lines
and console works fine again.
Have I missed anything?
The patch changes
arch/arm/mach-imx/clock-imx6q.cas well. Not sure if you have the changes incorporated in your testing branch.
Yes, I think so
https://github.com/dirkbehme/linux-imx6/commit/ebfac55f157425b5e063cdb2d9668b45a0a6515f#diff-14
Quoted 2 lines
It reminds me that I should rebase my imx/dt branch on Sascha's clk series to save the conflict.
My test branch has Sascha's clk series, too. It's mainly based on
https://github.com/dirkbehme/linux-imx6/commits/linux-imx6-staging
Best regards
Dirk
PATCH 1/1 ARM: imx: rename uart and fec device tree nodes
Quoted 11 lines · Dirk Behme
Yes, I think so
https://github.com/dirkbehme/linux-imx6/commit/ebfac55f157425b5e063cdb2d9668b45a0a6515f#diff-14
Quoted 2 lines
It reminds me that I should rebase my imx/dt branch on Sascha's clk series to save the conflict.
My test branch has Sascha's clk series, too. It's mainly based on
https://github.com/dirkbehme/linux-imx6/commits/linux-imx6-staging
If you have Sascha's clk series merged, the changes on clock-imx6q.c made by this patch could probably get lost, since Sascha's clk series will remove clock-imx6q.c.
Signature · 2 lines
Regards, Shawn
PATCH 1/1 ARM: imx: rename uart and fec device tree nodes
Quoted 7 lines · Shawn Guo
Quoted 6 lines · Dirk Behme
Yes, I think so
https://github.com/dirkbehme/linux-imx6/commit/ebfac55f157425b5e063cdb2d9668b45a0a6515f#diff-14
Quoted 2 lines
It reminds me that I should rebase my imx/dt branch on Sascha's clk series to save the conflict.
Quoted 7 lines
Quoted 4 lines
My test branch has Sascha's clk series, too. It's mainly based on
https://github.com/dirkbehme/linux-imx6/commits/linux-imx6-staging
If you have Sascha's clk series merged, the changes on
clock-imx6q.cmade by this patch could probably get lost, since Sascha's clk series will removeclock-imx6q.c.
Ok. Using this patch on top of Sascha's clk series [1], the following changes [2] are needed.
Many thanks to Shawn for the help!
Best regards
Dirk
[1]
http://git.pengutronix.de/?p=imx/linux-2.6.git;a=shortlog;h=refs/heads/work/v3.4-rc4-imx-clk
[2]
From: Dirk Behme <[email protected]>
Subject: [PATCH] ARM: imx: Adapt uart and fec devices tree names
Using the patch "ARM: imx: rename uart and fec device tree nodes" on top of the common clock framework needs to change clk-imx6q.c, too.
Else no console output is given due to
Serial: IMX driver
imx-uart: probe of 21e8000.serial failed with error -2
--- arch/arm/mach-imx/clk-imx6q.c | 22 +++++++++++----------- 1 files changed, 11 insertions(+), 11 deletions(-)
arch/arm/mach-imx/clk-imx6q.c +11 -11
@@ -392,17 +392,17 @@ int __init mx6q_clocks_init(void)clk_register_clkdev (clk[gpt_ipg_per],"per" ,"imx-gpt.0" );clk_register_clkdev (clk[twd],NULL ,"smp_twd" );clk_register_clkdev (clk[usboh3],NULL ,"usboh3" ); -clk_register_clkdev (clk[uart_serial],"per" ,"2020000.uart" ); -clk_register_clkdev (clk[uart_ipg],"ipg" ,"2020000.uart" ); -clk_register_clkdev (clk[uart_serial],"per" ,"21e8000.uart" ); -clk_register_clkdev (clk[uart_ipg],"ipg" ,"21e8000.uart" ); -clk_register_clkdev (clk[uart_serial],"per" ,"21ec000.uart" ); -clk_register_clkdev (clk[uart_ipg],"ipg" ,"21ec000.uart" ); -clk_register_clkdev (clk[uart_serial],"per" ,"21f0000.uart" ); -clk_register_clkdev (clk[uart_ipg],"ipg" ,"21f0000.uart" ); -clk_register_clkdev (clk[uart_serial],"per" ,"21f4000.uart" ); -clk_register_clkdev (clk[uart_ipg],"ipg" ,"21f4000.uart" ); -clk_register_clkdev (clk[enet],NULL ,"2188000.enet" ); +clk_register_clkdev (clk[uart_serial],"per" ,"2020000.serial" ); +clk_register_clkdev (clk[uart_ipg],"ipg" ,"2020000.serial" ); +clk_register_clkdev (clk[uart_serial],"per" ,"21e8000.serial" ); +clk_register_clkdev (clk[uart_ipg],"ipg" ,"21e8000.serial" ); +clk_register_clkdev (clk[uart_serial],"per" ,"21ec000.serial" ); +clk_register_clkdev (clk[uart_ipg],"ipg" ,"21ec000.serial" ); +clk_register_clkdev (clk[uart_serial],"per" ,"21f0000.serial" ); +clk_register_clkdev (clk[uart_ipg],"ipg" ,"21f0000.serial" ); +clk_register_clkdev (clk[uart_serial],"per" ,"21f4000.serial" ); +clk_register_clkdev (clk[uart_ipg],"ipg" ,"21f4000.serial" ); +clk_register_clkdev (clk[enet],NULL ,"2188000.ethernet" );clk_register_clkdev (clk[usdhc1],NULL ,"2190000.usdhc" );clk_register_clkdev (clk[usdhc2],NULL ,"2194000.usdhc" );clk_register_clkdev (clk[usdhc3],NULL ,"2198000.usdhc" );
Signature · 1 line
1.7.0.4
PATCH 1/1 ARM: imx: rename uart and fec device tree nodes
Quoted 3 lines · Dirk Behme
Ok. Using this patch on top of Sascha's clk series [1], the following changes [2] are needed.
Thanks for the patch, Dirk. I will rebase my patch on top of Sascha's clk series before I ask Arnd to pull.
Regards,
Shawn