devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Lothar Waßmann" <LW@KARO-electronics.de>
To: Shawn Guo <shawnguo@kernel.org>
Cc: devicetree@vger.kernel.org,
	Gary Bisson <gary.bisson@boundarydevices.com>,
	Rob Herring <robh+dt@kernel.org>,
	linux-imx@nxp.com, kernel@pengutronix.de,
	Fabio Estevam <fabio.estevam@nxp.com>,
	linux-arm-kernel@lists.infradead.org
Subject: Re: [RFC PATCH] ARM: dts: imx: replace underscore with hyphen in aliases name
Date: Fri, 4 May 2018 08:52:48 +0200	[thread overview]
Message-ID: <20180504085248.532c8a47@karo-electronics.de> (raw)
In-Reply-To: <1525399128-11587-1-git-send-email-shawnguo@kernel.org>

Hi,

On Fri,  4 May 2018 09:58:48 +0800 Shawn Guo wrote:
> 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 '-'
> 
> Cc: Lothar Waßmann <LW@KARO-electronics.de>
> Cc: Gary Bisson <gary.bisson@boundarydevices.com>
> Signed-off-by: Shawn Guo <shawnguo@kernel.org>
> ---
> 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.
> 
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:
Acked-By: Lothar Waßmann <LW@KARO-electronics.de>

> 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(-)
> 
> diff --git a/arch/arm/boot/dts/imx53-tx53.dtsi b/arch/arm/boot/dts/imx53-tx53.dtsi
> index 5dd3dd3a2fd0..54cf3e67069a 100644
> --- a/arch/arm/boot/dts/imx53-tx53.dtsi
> +++ b/arch/arm/boot/dts/imx53-tx53.dtsi
> @@ -58,7 +58,7 @@
>  		can0 = &can2; /* Make the can interface indices consistent with TX28/TX48 modules */
>  		can1 = &can1;
>  		ipu = &ipu;
> -		reg_can_xcvr = &reg_can_xcvr;
> +		reg-can-xcvr = &reg_can_xcvr;
>  		usbh1 = &usbh1;
>  		usbotg = &usbotg;
>  	};
> diff --git a/arch/arm/boot/dts/imx6qdl-tx6.dtsi b/arch/arm/boot/dts/imx6qdl-tx6.dtsi
> index f015e2d1cf35..a98fb2564c63 100644
> --- a/arch/arm/boot/dts/imx6qdl-tx6.dtsi
> +++ b/arch/arm/boot/dts/imx6qdl-tx6.dtsi
> @@ -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 = &reg_can_xcvr;
> +		reg-can-xcvr = &reg_can_xcvr;
>  		stk5led = &user_led;
>  		usbotg = &usbotg;
>  		sdhc0 = &usdhc1;
> diff --git a/arch/arm/boot/dts/imx6sx-nitrogen6sx.dts b/arch/arm/boot/dts/imx6sx-nitrogen6sx.dts
> index b58f770c40d9..59e52f504922 100644
> --- a/arch/arm/boot/dts/imx6sx-nitrogen6sx.dts
> +++ b/arch/arm/boot/dts/imx6sx-nitrogen6sx.dts
> @@ -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@80000000 {
> diff --git a/arch/arm/boot/dts/imx6ul-tx6ul-mainboard.dts b/arch/arm/boot/dts/imx6ul-tx6ul-mainboard.dts
> index 2d80f7b50bc0..97686097a86e 100644
> --- a/arch/arm/boot/dts/imx6ul-tx6ul-mainboard.dts
> +++ b/arch/arm/boot/dts/imx6ul-tx6ul-mainboard.dts
> @@ -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;
> diff --git a/arch/arm/boot/dts/imx6ul-tx6ul.dtsi b/arch/arm/boot/dts/imx6ul-tx6ul.dtsi
> index f678d18ad44a..02b5ba42cd59 100644
> --- a/arch/arm/boot/dts/imx6ul-tx6ul.dtsi
> +++ b/arch/arm/boot/dts/imx6ul-tx6ul.dtsi
> @@ -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 = &reg_can_xcvr;
> +		reg-can-xcvr = &reg_can_xcvr;
>  		serial2 = &uart5;
>  		serial4 = &uart3;
>  		spi0 = &ecspi2;
> diff --git a/arch/arm/boot/dts/imx7d-nitrogen7.dts b/arch/arm/boot/dts/imx7d-nitrogen7.dts
> index 52167298984d..b8e73b46cddb 100644
> --- a/arch/arm/boot/dts/imx7d-nitrogen7.dts
> +++ b/arch/arm/boot/dts/imx7d-nitrogen7.dts
> @@ -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@80000000 {


Lothar Waßmann

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  reply	other threads:[~2018-05-04  6:52 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-04  1:58 [RFC PATCH] ARM: dts: imx: replace underscore with hyphen in aliases name Shawn Guo
2018-05-04  6:52 ` Lothar Waßmann [this message]
2018-05-04  8:15   ` Shawn Guo
2018-05-04  7:40 ` Gary Bisson
2018-05-04  8:15   ` Shawn Guo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180504085248.532c8a47@karo-electronics.de \
    --to=lw@karo-electronics.de \
    --cc=devicetree@vger.kernel.org \
    --cc=fabio.estevam@nxp.com \
    --cc=gary.bisson@boundarydevices.com \
    --cc=kernel@pengutronix.de \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-imx@nxp.com \
    --cc=robh+dt@kernel.org \
    --cc=shawnguo@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).