ARM: dts: imx: replace underscore with hyphen in aliases name
Subsystems (2)
RFC PATCH 1/1 ARM: dts: imx: replace underscore with hyphen in aliases name
It replaces underscore with hyphen in aliases name to fix DTC alias_paths warning below, which is seen with various i.MX board dts files when W=1 switch is on.
Warning (alias_paths): /aliases: aliases property name must include only lowercase and '-'
---
Hi Lothar, Gary,
Per my search on kernel code, this change will not break anything on kernel support. But I'm not really sure about the case of bootloaders running on the boards. That's why I'm sending it as RFC.
We really want i.MX to be the first-class citizen in the community. After a few cycles efforts on cleaning up DTC warnings, this alias_paths warning is the last one we see with i.MX dts files. We really want to get rid of it and make i.MX dts be DTC warning free.
So please comment whether we can merge this patch.
Shawn
arch/arm/boot/dts/imx53-tx53.dtsi | 2 +- arch/arm/boot/dts/imx6qdl-tx6.dtsi | 6 +++--- arch/arm/boot/dts/imx6sx-nitrogen6sx.dts | 4 ++-- arch/arm/boot/dts/imx6ul-tx6ul-mainboard.dts | 2 +- arch/arm/boot/dts/imx6ul-tx6ul.dtsi | 6 +++--- arch/arm/boot/dts/imx7d-nitrogen7.dts | 4 ++-- 6 files changed, 12 insertions(+), 12 deletions(-)
arch/arm/boot/dts/imx53-tx53.dtsi +1 -1
@@ -58,7 +58,7 @@ can0 = &can2; /* Make the can interface indices consistent with TX28/TX48 modules */ can1 = &can1; ipu = &ipu; - reg_can_xcvr = ®_can_xcvr; + reg-can-xcvr = ®_can_xcvr; usbh1 = &usbh1; usbotg = &usbotg; };
arch/arm/boot/dts/imx6qdl-tx6.dtsi +3 -3
@@ -50,11 +50,11 @@ can0 = &can2; can1 = &can1; ethernet0 = &fec; - lcdif_23bit_pins_a = &pinctrl_disp0_1; - lcdif_24bit_pins_a = &pinctrl_disp0_2; + lcdif-23bit-pins-a = &pinctrl_disp0_1; + lcdif-24bit-pins-a = &pinctrl_disp0_2; pwm0 = &pwm1; pwm1 = &pwm2; - reg_can_xcvr = ®_can_xcvr; + reg-can-xcvr = ®_can_xcvr; stk5led = &user_led; usbotg = &usbotg; sdhc0 = &usdhc1;
arch/arm/boot/dts/imx6sx-nitrogen6sx.dts +2 -2
@@ -48,8 +48,8 @@ compatible = "boundary,imx6sx-nitrogen6sx", "fsl,imx6sx"; aliases { - fb_lcd = &lcdif1; - t_lcd = &t_lcd; + fb-lcd = &lcdif1; + t-lcd = &t_lcd; }; memory at 80000000 {
arch/arm/boot/dts/imx6ul-tx6ul-mainboard.dts +1 -1
@@ -48,7 +48,7 @@ compatible = "karo,imx6ul-tx6ul", "fsl,imx6ul"; aliases { - lcdif_24bit_pins_a = &pinctrl_disp0_3; + lcdif-24bit-pins-a = &pinctrl_disp0_3; mmc0 = &usdhc1; /delete-property/ mmc1; serial2 = &uart3;
arch/arm/boot/dts/imx6ul-tx6ul.dtsi +3 -3
@@ -53,10 +53,10 @@ i2c2 = &i2c1; i2c3 = &i2c3; i2c4 = &i2c4; - lcdif_23bit_pins_a = &pinctrl_disp0_1; - lcdif_24bit_pins_a = &pinctrl_disp0_2; + lcdif-23bit-pins-a = &pinctrl_disp0_1; + lcdif-24bit-pins-a = &pinctrl_disp0_2; pwm0 = &pwm5; - reg_can_xcvr = ®_can_xcvr; + reg-can-xcvr = ®_can_xcvr; serial2 = &uart5; serial4 = &uart3; spi0 = &ecspi2;
arch/arm/boot/dts/imx7d-nitrogen7.dts +2 -2
@@ -49,8 +49,8 @@ compatible = "boundary,imx7d-nitrogen7", "fsl,imx7d"; aliases { - fb_lcd = &lcdif; - t_lcd = &t_lcd; + fb-lcd = &lcdif; + t-lcd = &t_lcd; }; memory at 80000000 {
Signature · 1 line
1.9.1
RFC PATCH 1/1 ARM: dts: imx: replace underscore with hyphen in aliases name
Hi,
Quoted 16 lines · On Fri, 4 May 2018 09:58:48 +0800 Shawn Guo wrote:
It replaces underscore with hyphen in aliases name to fix DTC
alias_pathswarning below, which is seen with various i.MX board dts files when W=1 switch is on.Warning (
alias_paths): /aliases: aliases property name must include only lowercase and '-'Cc Lothar Wa?mann <[email protected]>Cc Gary Bisson <[email protected]>Signed-off-by Shawn Guo <[email protected]>---
Hi Lothar, Gary,Per my search on kernel code, this change will not break anything on kernel support. But I'm not really sure about the case of bootloaders running on the boards. That's why I'm sending it as RFC.
Quoted 7 lines
We really want i.MX to be the first-class citizen in the community. After a few cycles efforts on cleaning up DTC warnings, this
alias_pathswarning is the last one we see with i.MX dts files. We really want to get rid of it and make i.MX dts be DTC warning free.So please comment whether we can merge this patch.
This breaks our U-Boot which searches for the alias names with '_'. But I think it's not worth keeping the old names alive, since the problem can easily be fixed by adding the old alias name to the FDT on affected boards from within U-Boot, if necessary.
Alternatively we could add a:
reg_can_xcvr = "reg-can-xcvr";
[...]
so that the respective aliases can be resolved using both names for a while.
So:
Quoted 93 lines
Shawn
arch/arm/boot/dts/imx53-tx53.dtsi | 2 +- arch/arm/boot/dts/imx6qdl-tx6.dtsi | 6 +++--- arch/arm/boot/dts/imx6sx-nitrogen6sx.dts | 4 ++-- arch/arm/boot/dts/imx6ul-tx6ul-mainboard.dts | 2 +- arch/arm/boot/dts/imx6ul-tx6ul.dtsi | 6 +++--- arch/arm/boot/dts/imx7d-nitrogen7.dts | 4 ++-- 6 files changed, 12 insertions(+), 12 deletions(-)arch/arm/boot/dts/imx53-tx53.dtsi +1
-1@@ -58,7 +58,7 @@ can0 = &can2; /* Make the can interface indices consistent with TX28/TX48 modules */ can1 = &can1; ipu = &ipu; - reg_can_xcvr = ®_can_xcvr; + reg-can-xcvr = ®_can_xcvr; usbh1 = &usbh1; usbotg = &usbotg; };arch/arm/boot/dts/imx6qdl-tx6.dtsi +3
-3@@ -50,11 +50,11 @@ can0 = &can2; can1 = &can1; ethernet0 = &fec; - lcdif_23bit_pins_a = &pinctrl_disp0_1; - lcdif_24bit_pins_a = &pinctrl_disp0_2; + lcdif-23bit-pins-a = &pinctrl_disp0_1; + lcdif-24bit-pins-a = &pinctrl_disp0_2; pwm0 = &pwm1; pwm1 = &pwm2; - reg_can_xcvr = ®_can_xcvr; + reg-can-xcvr = ®_can_xcvr; stk5led = &user_led; usbotg = &usbotg; sdhc0 = &usdhc1;arch/arm/boot/dts/imx6sx-nitrogen6sx.dts +2
-2@@ -48,8 +48,8 @@ compatible = "boundary,imx6sx-nitrogen6sx", "fsl,imx6sx"; aliases { - fb_lcd = &lcdif1; - t_lcd = &t_lcd; + fb-lcd = &lcdif1; + t-lcd = &t_lcd; }; memory at 80000000 {arch/arm/boot/dts/imx6ul-tx6ul-mainboard.dts +1
-1@@ -48,7 +48,7 @@ compatible = "karo,imx6ul-tx6ul", "fsl,imx6ul"; aliases { - lcdif_24bit_pins_a = &pinctrl_disp0_3; + lcdif-24bit-pins-a = &pinctrl_disp0_3; mmc0 = &usdhc1; /delete-property/ mmc1; serial2 = &uart3;arch/arm/boot/dts/imx6ul-tx6ul.dtsi +3
-3@@ -53,10 +53,10 @@ i2c2 = &i2c1; i2c3 = &i2c3; i2c4 = &i2c4; - lcdif_23bit_pins_a = &pinctrl_disp0_1; - lcdif_24bit_pins_a = &pinctrl_disp0_2; + lcdif-23bit-pins-a = &pinctrl_disp0_1; + lcdif-24bit-pins-a = &pinctrl_disp0_2; pwm0 = &pwm5; - reg_can_xcvr = ®_can_xcvr; + reg-can-xcvr = ®_can_xcvr; serial2 = &uart5; serial4 = &uart3; spi0 = &ecspi2;arch/arm/boot/dts/imx7d-nitrogen7.dts +0
-0
arch/arm/boot/dts/imx7d-nitrogen7.dts line 56
Quoted 10 lines
arch/arm/boot/dts/imx7d-nitrogen7.dts +2
-2@@ -49,8 +49,8 @@ compatible = "boundary,imx7d-nitrogen7", "fsl,imx7d"; aliases { - fb_lcd = &lcdif; - t_lcd = &t_lcd; + fb-lcd = &lcdif; + t-lcd = &t_lcd; }; memory at 80000000 {
Lothar Wa?mann
RFC PATCH 1/1 ARM: dts: imx: replace underscore with hyphen in aliases name
Quoted 31 lines · Lothar Wa?mann
Hi,
Quoted 16 lines · On Fri, 4 May 2018 09:58:48 +0800 Shawn Guo wrote:
It replaces underscore with hyphen in aliases name to fix DTC
alias_pathswarning below, which is seen with various i.MX board dts files when W=1 switch is on.Warning (
alias_paths): /aliases: aliases property name must include only lowercase and '-'Cc Lothar Wa?mann <[email protected]>Cc Gary Bisson <[email protected]>Signed-off-by Shawn Guo <[email protected]>---
Hi Lothar, Gary,Per my search on kernel code, this change will not break anything on kernel support. But I'm not really sure about the case of bootloaders running on the boards. That's why I'm sending it as RFC.
Quoted 7 lines
We really want i.MX to be the first-class citizen in the community. After a few cycles efforts on cleaning up DTC warnings, this
alias_pathswarning is the last one we see with i.MX dts files. We really want to get rid of it and make i.MX dts be DTC warning free.So please comment whether we can merge this patch.
This breaks our U-Boot which searches for the alias names with '_'. But I think it's not worth keeping the old names alive, since the problem can easily be fixed by adding the old alias name to the FDT on affected boards from within U-Boot, if necessary.
Quoted 5 lines
Alternatively we could add a:
reg_can_xcvr = "reg-can-xcvr";[...]
so that the respective aliases can be resolved using both names for a while.
Appreciate it.
Quoted 3 lines
So:
Acked-by Lothar Wa?mann <[email protected]>
Thanks, Lothar.
Shawn
RFC PATCH 1/1 ARM: dts: imx: replace underscore with hyphen in aliases name
In reply to Shawn GuoHi Shawn,
Quoted 16 lines · Shawn Guo
It replaces underscore with hyphen in aliases name to fix DTC
alias_pathswarning below, which is seen with various i.MX board dts files when W=1 switch is on.Warning (
alias_paths): /aliases: aliases property name must include only lowercase and '-'Cc Lothar Wa?mann <[email protected]>Cc Gary Bisson <[email protected]>Signed-off-by Shawn Guo <[email protected]>---
Hi Lothar, Gary,Per my search on kernel code, this change will not break anything on kernel support. But I'm not really sure about the case of bootloaders running on the boards. That's why I'm sending it as RFC.
Quoted 6 lines
We really want i.MX to be the first-class citizen in the community. After a few cycles efforts on cleaning up DTC warnings, this
alias_pathswarning is the last one we see with i.MX dts files. We really want to get rid of it and make i.MX dts be DTC warning free.So please comment whether we can merge this patch.
Yes that is fine.
Thanks,
Gary
RFC PATCH 1/1 ARM: dts: imx: replace underscore with hyphen in aliases name
Quoted 24 lines · Gary Bisson
Hi Shawn,
Quoted 21 lines · Shawn Guo
It replaces underscore with hyphen in aliases name to fix DTC
alias_pathswarning below, which is seen with various i.MX board dts files when W=1 switch is on.Warning (
alias_paths): /aliases: aliases property name must include only lowercase and '-'Cc Lothar Wa?mann <[email protected]>Cc Gary Bisson <[email protected]>Signed-off-by Shawn Guo <[email protected]>---
Hi Lothar, Gary,Per my search on kernel code, this change will not break anything on kernel support. But I'm not really sure about the case of bootloaders running on the boards. That's why I'm sending it as RFC.
We really want i.MX to be the first-class citizen in the community. After a few cycles efforts on cleaning up DTC warnings, this
alias_pathswarning is the last one we see with i.MX dts files. We really want to get rid of it and make i.MX dts be DTC warning free.
Quoted 4 lines
Quoted 1 line
So please comment whether we can merge this patch.
Yes that is fine.
Reviewed-by Gary Bisson <[email protected]>
Thanks, Gary.
Shawn