All of lore.kernel.org
 help / color / mirror / Atom feed
From: Cristi Sovaiala <cristian.sovaiala@nxp.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] board/fsl/layerscape: Modify the aliases names
Date: Wed, 22 May 2019 11:42:27 +0000	[thread overview]
Message-ID: <VI1PR04MB5597A44B35890CD738DD4FB2EA000@VI1PR04MB5597.eurprd04.prod.outlook.com> (raw)
In-Reply-To: <VI1PR0401MB249690CE062B1CD962C3A80CF1070@VI1PR0401MB2496.eurprd04.prod.outlook.com>

ACK

-----Original Message-----
From: Pankaj Bansal 
Sent: Tuesday, May 21, 2019 2:16 PM
To: Pankaj Bansal <pankaj.bansal@nxp.com>; Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>; Cristi Sovaiala <cristian.sovaiala@nxp.com>
Cc: u-boot at lists.denx.de
Subject: RE: [PATCH] board/fsl/layerscape: Modify the aliases names

+ Cristi,

Hi Cristi,

Can you please review this patch?

Regards,
Pankaj Bansal

> -----Original Message-----
> From: Pankaj Bansal <pankaj.bansal@nxp.com>
> Sent: Monday, 22 April, 2019 12:02 PM
> To: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
> Cc: u-boot at lists.denx.de; Pankaj Bansal <pankaj.bansal@nxp.com>
> Subject: [PATCH] board/fsl/layerscape: Modify the aliases names
> 
> when compiling dts file using DTC_FLAG='-@', the device tree compiler 
> reports these warnings:
> 
> Warning (alias_paths): /aliases: aliases property name must include 
> only lowercase and '-'
> 
> Fixed the node aliases to silence these warnings.
> 
> Signed-off-by: Pankaj Bansal <pankaj.bansal@nxp.com>
> ---
>  board/freescale/ls1043aqds/eth.c | 33 +++++++++++++++--------------- 
> board/freescale/ls1046aqds/eth.c | 26 +++++++++++------------
>  2 files changed, 30 insertions(+), 29 deletions(-)
> 
> diff --git a/board/freescale/ls1043aqds/eth.c
> b/board/freescale/ls1043aqds/eth.c
> index 8763913e31..e1919d2988 100644
> --- a/board/freescale/ls1043aqds/eth.c
> +++ b/board/freescale/ls1043aqds/eth.c
> @@ -1,6 +1,7 @@
>  // SPDX-License-Identifier: GPL-2.0+
>  /*
>   * Copyright 2015 Freescale Semiconductor, Inc.
> + * Copyright 2019 NXP
>   */
> 
>  #include <common.h>
> @@ -161,16 +162,16 @@ void board_ft_fman_fixup_port(void *fdt, char 
> *compat, phys_addr_t addr,
>  	if (fm_info_get_enet_if(port) == PHY_INTERFACE_MODE_SGMII) {
>  		if (port == FM1_DTSEC9) {
>  			fdt_set_phy_handle(fdt, compat, addr,
> -					   "sgmii_riser_s1_p1");
> +					   "sgmii-riser-s1-p1");
>  		} else if (port == FM1_DTSEC2) {
>  			fdt_set_phy_handle(fdt, compat, addr,
> -					   "sgmii_riser_s2_p1");
> +					   "sgmii-riser-s2-p1");
>  		} else if (port == FM1_DTSEC5) {
>  			fdt_set_phy_handle(fdt, compat, addr,
> -					   "sgmii_riser_s3_p1");
> +					   "sgmii-riser-s3-p1");
>  		} else if (port == FM1_DTSEC6) {
>  			fdt_set_phy_handle(fdt, compat, addr,
> -					   "sgmii_riser_s4_p1");
> +					   "sgmii-riser-s4-p1");
>  		}
>  	} else if (fm_info_get_enet_if(port) ==
>  		   PHY_INTERFACE_MODE_SGMII_2500) { @@ -191,19 +192,19 @@ void 
> board_ft_fman_fixup_port(void *fdt, char *compat, phys_addr_t addr,
>  			switch (port) {
>  			case FM1_DTSEC1:
>  				fdt_set_phy_handle(fdt, compat, addr,
> -						   "qsgmii_s1_p1");
> +						   "qsgmii-s1-p1");
>  				break;
>  			case FM1_DTSEC2:
>  				fdt_set_phy_handle(fdt, compat, addr,
> -						   "qsgmii_s1_p2");
> +						   "qsgmii-s1-p2");
>  				break;
>  			case FM1_DTSEC5:
>  				fdt_set_phy_handle(fdt, compat, addr,
> -						   "qsgmii_s1_p3");
> +						   "qsgmii-s1-p3");
>  				break;
>  			case FM1_DTSEC6:
>  				fdt_set_phy_handle(fdt, compat, addr,
> -						   "qsgmii_s1_p4");
> +						   "qsgmii-s1-p4");
>  				break;
>  			default:
>  				break;
> @@ -213,19 +214,19 @@ void board_ft_fman_fixup_port(void *fdt, char 
> *compat, phys_addr_t addr,
>  			switch (port) {
>  			case FM1_DTSEC1:
>  				fdt_set_phy_handle(fdt, compat, addr,
> -						   "qsgmii_s2_p1");
> +						   "qsgmii-s2-p1");
>  				break;
>  			case FM1_DTSEC2:
>  				fdt_set_phy_handle(fdt, compat, addr,
> -						   "qsgmii_s2_p2");
> +						   "qsgmii-s2-p2");
>  				break;
>  			case FM1_DTSEC5:
>  				fdt_set_phy_handle(fdt, compat, addr,
> -						   "qsgmii_s2_p3");
> +						   "qsgmii-s2-p3");
>  				break;
>  			case FM1_DTSEC6:
>  				fdt_set_phy_handle(fdt, compat, addr,
> -						   "qsgmii_s2_p4");
> +						   "qsgmii-s2-p4");
>  				break;
>  			default:
>  				break;
> @@ -268,16 +269,16 @@ void fdt_fixup_board_enet(void *fdt)
>  		case PHY_INTERFACE_MODE_QSGMII:
>  			switch (mdio_mux[i]) {
>  			case EMI1_SLOT1:
> -				fdt_status_okay_by_alias(fdt, "emi1_slot1");
> +				fdt_status_okay_by_alias(fdt, "emi1-slot1");
>  				break;
>  			case EMI1_SLOT2:
> -				fdt_status_okay_by_alias(fdt, "emi1_slot2");
> +				fdt_status_okay_by_alias(fdt, "emi1-slot2");
>  				break;
>  			case EMI1_SLOT3:
> -				fdt_status_okay_by_alias(fdt, "emi1_slot3");
> +				fdt_status_okay_by_alias(fdt, "emi1-slot3");
>  				break;
>  			case EMI1_SLOT4:
> -				fdt_status_okay_by_alias(fdt, "emi1_slot4");
> +				fdt_status_okay_by_alias(fdt, "emi1-slot4");
>  				break;
>  			default:
>  				break;
> diff --git a/board/freescale/ls1046aqds/eth.c
> b/board/freescale/ls1046aqds/eth.c
> index abe8ee95d4..1eb40677b5 100644
> --- a/board/freescale/ls1046aqds/eth.c
> +++ b/board/freescale/ls1046aqds/eth.c
> @@ -1,7 +1,7 @@
>  // SPDX-License-Identifier: GPL-2.0+
>  /*
>   * Copyright 2016 Freescale Semiconductor, Inc.
> - * Copyright 2018 NXP
> + * Copyright 2018-2019 NXP
>   */
> 
>  #include <common.h>
> @@ -161,19 +161,19 @@ void board_ft_fman_fixup_port(void *fdt, char 
> *compat, phys_addr_t addr,
>  	if (fm_info_get_enet_if(port) == PHY_INTERFACE_MODE_SGMII) {
>  		switch (port) {
>  		case FM1_DTSEC9:
> -			fdt_set_phy_handle(fdt, compat, addr, "sgmii_s1_p1");
> +			fdt_set_phy_handle(fdt, compat, addr, "sgmii-s1-p1");
>  			break;
>  		case FM1_DTSEC10:
> -			fdt_set_phy_handle(fdt, compat, addr, "sgmii_s1_p2");
> +			fdt_set_phy_handle(fdt, compat, addr, "sgmii-s1-p2");
>  			break;
>  		case FM1_DTSEC5:
> -			fdt_set_phy_handle(fdt, compat, addr, "sgmii_s1_p3");
> +			fdt_set_phy_handle(fdt, compat, addr, "sgmii-s1-p3");
>  			break;
>  		case FM1_DTSEC6:
> -			fdt_set_phy_handle(fdt, compat, addr, "sgmii_s1_p4");
> +			fdt_set_phy_handle(fdt, compat, addr, "sgmii-s1-p4");
>  			break;
>  		case FM1_DTSEC2:
> -			fdt_set_phy_handle(fdt, compat, addr, "sgmii_s4_p1");
> +			fdt_set_phy_handle(fdt, compat, addr, "sgmii-s4-p1");
>  			break;
>  		default:
>  			break;
> @@ -193,16 +193,16 @@ void board_ft_fman_fixup_port(void *fdt, char 
> *compat, phys_addr_t addr,
>  	} else if (fm_info_get_enet_if(port) == PHY_INTERFACE_MODE_QSGMII) {
>  		switch (port) {
>  		case FM1_DTSEC1:
> -			fdt_set_phy_handle(fdt, compat, addr, "qsgmii_s2_p4");
> +			fdt_set_phy_handle(fdt, compat, addr, "qsgmii-s2-p4");
>  			break;
>  		case FM1_DTSEC5:
> -			fdt_set_phy_handle(fdt, compat, addr, "qsgmii_s2_p2");
> +			fdt_set_phy_handle(fdt, compat, addr, "qsgmii-s2-p2");
>  			break;
>  		case FM1_DTSEC6:
> -			fdt_set_phy_handle(fdt, compat, addr, "qsgmii_s2_p1");
> +			fdt_set_phy_handle(fdt, compat, addr, "qsgmii-s2-p1");
>  			break;
>  		case FM1_DTSEC10:
> -			fdt_set_phy_handle(fdt, compat, addr, "qsgmii_s2_p3");
> +			fdt_set_phy_handle(fdt, compat, addr, "qsgmii-s2-p3");
>  			break;
>  		default:
>  			break;
> @@ -246,13 +246,13 @@ void fdt_fixup_board_enet(void *fdt)
>  		case PHY_INTERFACE_MODE_QSGMII:
>  			switch (mdio_mux[i]) {
>  			case EMI1_SLOT1:
> -				fdt_status_okay_by_alias(fdt, "emi1_slot1");
> +				fdt_status_okay_by_alias(fdt, "emi1-slot1");
>  				break;
>  			case EMI1_SLOT2:
> -				fdt_status_okay_by_alias(fdt, "emi1_slot2");
> +				fdt_status_okay_by_alias(fdt, "emi1-slot2");
>  				break;
>  			case EMI1_SLOT4:
> -				fdt_status_okay_by_alias(fdt, "emi1_slot4");
> +				fdt_status_okay_by_alias(fdt, "emi1-slot4");
>  				break;
>  			default:
>  				break;
> --
> 2.17.1

  reply	other threads:[~2019-05-22 11:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-22  6:31 [U-Boot] [PATCH] board/fsl/layerscape: Modify the aliases names Pankaj Bansal
2019-05-21 11:15 ` Pankaj Bansal
2019-05-22 11:42   ` Cristi Sovaiala [this message]
2019-06-19 11:43 ` Prabhakar Kushwaha

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=VI1PR04MB5597A44B35890CD738DD4FB2EA000@VI1PR04MB5597.eurprd04.prod.outlook.com \
    --to=cristian.sovaiala@nxp.com \
    --cc=u-boot@lists.denx.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.