All of lore.kernel.org
 help / color / mirror / Atom feed
From: igall at marvell.com <igall@marvell.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [v2, 01/13] phy: marvell: Replace PHY_TYPE_KR with PHY_TYPE_SFI
Date: Mon, 24 Apr 2017 18:45:21 +0300	[thread overview]
Message-ID: <1493048733-22194-2-git-send-email-igall@marvell.com> (raw)
In-Reply-To: <1493048733-22194-1-git-send-email-igall@marvell.com>

From: Stefan Roese <sr@denx.de>

Use correct naming as done in the latest Marvell U-Boot version as well.

Signed-off-by: Stefan Roese <sr@denx.de>
Signed-off-by: Igal Liberman <igall@marvell.com>
---
 arch/arm/dts/armada-8040-db.dts          |  8 ++++----
 arch/arm/dts/armada-8040-mcbin.dts       | 10 +++++-----
 drivers/phy/marvell/comphy_core.c        |  2 +-
 drivers/phy/marvell/comphy_cp110.c       | 18 +++++++++---------
 include/dt-bindings/comphy/comphy_data.h |  2 +-
 5 files changed, 20 insertions(+), 20 deletions(-)

diff --git a/arch/arm/dts/armada-8040-db.dts b/arch/arm/dts/armada-8040-db.dts
index f1f196f..76fd004 100644
--- a/arch/arm/dts/armada-8040-db.dts
+++ b/arch/arm/dts/armada-8040-db.dts
@@ -205,7 +205,7 @@
 	 * Serdes Configuration:
 	 * Lane 0: SGMII2
 	 * Lane 1: USB3_HOST0
-	 * Lane 2: KR (10G)
+	 * Lane 2: SFI (10G)
 	 * Lane 3: SATA1
 	 * Lane 4: USB3_HOST1
 	 * Lane 5: PEX2x1
@@ -220,7 +220,7 @@
 	};
 
 	phy2 {
-		phy-type = <PHY_TYPE_KR>;
+		phy-type = <PHY_TYPE_SFI>;
 	};
 
 	phy3 {
@@ -241,7 +241,7 @@
 	 * Serdes Configuration:
 	 * Lane 0: SGMII2
 	 * Lane 1: USB3_HOST0
-	 * Lane 2: KR (10G)
+	 * Lane 2: SFI (10G)
 	 * Lane 3: SATA1
 	 * Lane 4: Unconnected
 	 * Lane 5: PEX2x1
@@ -256,7 +256,7 @@
 	};
 
 	phy2 {
-		phy-type = <PHY_TYPE_KR>;
+		phy-type = <PHY_TYPE_SFI>;
 	};
 
 	phy3 {
diff --git a/arch/arm/dts/armada-8040-mcbin.dts b/arch/arm/dts/armada-8040-mcbin.dts
index e42b092..dde495a 100644
--- a/arch/arm/dts/armada-8040-mcbin.dts
+++ b/arch/arm/dts/armada-8040-mcbin.dts
@@ -99,7 +99,7 @@
 	 * [54] 2.5G SFP LOS
 	 * [55] Micro SD card detect
 	 * [56-61] Micro SD
-	 * [62] CP1 KR SFP FAULT
+	 * [62] CP1 SFI SFP FAULT
 	 */
 		/*   0    1    2    3    4    5    6    7    8    9 */
 	pin-func = < 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
@@ -163,7 +163,7 @@
 	 * Lane 1: PCIe0 (x4)
 	 * Lane 2: PCIe0 (x4)
 	 * Lane 3: PCIe0 (x4)
-	 * Lane 4: KR (10G)
+	 * Lane 4: SFI (10G)
 	 * Lane 5: SATA1
 	 */
 	phy0 {
@@ -179,7 +179,7 @@
 		phy-type = <PHY_TYPE_PEX0>;
 	};
 	phy4 {
-		phy-type = <PHY_TYPE_KR>;
+		phy-type = <PHY_TYPE_SFI>;
 	};
 	phy5 {
 		phy-type = <PHY_TYPE_SATA1>;
@@ -268,7 +268,7 @@
 	 * Lane 1: SATA 0
 	 * Lane 2: USB HOST 0
 	 * Lane 3: SATA1
-	 * Lane 4: KR (10G)
+	 * Lane 4: SFI (10G)
 	 * Lane 5: SGMII3
 	 */
 	phy0 {
@@ -285,7 +285,7 @@
 		phy-type = <PHY_TYPE_SATA1>;
 	};
 	phy4 {
-		phy-type = <PHY_TYPE_KR>;
+		phy-type = <PHY_TYPE_SFI>;
 	};
 	phy5 {
 		phy-type = <PHY_TYPE_SGMII3>;
diff --git a/drivers/phy/marvell/comphy_core.c b/drivers/phy/marvell/comphy_core.c
index caa1928..ac084a6 100644
--- a/drivers/phy/marvell/comphy_core.c
+++ b/drivers/phy/marvell/comphy_core.c
@@ -37,7 +37,7 @@ static char *get_type_string(u32 type)
 				"SGMII1", "SGMII2", "SGMII3", "QSGMII",
 				"USB3_HOST0", "USB3_HOST1", "USB3_DEVICE",
 				"XAUI0", "XAUI1", "XAUI2", "XAUI3",
-				"RXAUI0", "RXAUI1", "KR"};
+				"RXAUI0", "RXAUI1", "SFI"};
 
 	if (type < 0 || type > PHY_TYPE_MAX)
 		return "invalid";
diff --git a/drivers/phy/marvell/comphy_cp110.c b/drivers/phy/marvell/comphy_cp110.c
index 25c067d..cd3cf96 100644
--- a/drivers/phy/marvell/comphy_cp110.c
+++ b/drivers/phy/marvell/comphy_cp110.c
@@ -34,7 +34,7 @@ struct utmi_phy_data {
  * PIPE selector include USB and PCIe options.
  * PHY selector include the Ethernet and SATA options, every Ethernet
  * option has different options, for example: serdes lane2 had option
- * Eth_port_0 that include (SGMII0, XAUI0, RXAUI0, KR)
+ * Eth_port_0 that include (SGMII0, XAUI0, RXAUI0, SFI)
  */
 struct comphy_mux_data cp110_comphy_phy_mux_data[] = {
 	{4, {{PHY_TYPE_UNCONNECTED, 0x0}, {PHY_TYPE_SGMII2, 0x1}, /* Lane 0 */
@@ -43,13 +43,13 @@ struct comphy_mux_data cp110_comphy_phy_mux_data[] = {
 	     {PHY_TYPE_XAUI3, 0x1}, {PHY_TYPE_SATA0, 0x4} } },
 	{6, {{PHY_TYPE_UNCONNECTED, 0x0}, {PHY_TYPE_SGMII0, 0x1}, /* Lane 2 */
 	     {PHY_TYPE_XAUI0, 0x1}, {PHY_TYPE_RXAUI0, 0x1},
-	     {PHY_TYPE_KR, 0x1}, {PHY_TYPE_SATA0, 0x4} } },
+	     {PHY_TYPE_SFI, 0x1}, {PHY_TYPE_SATA0, 0x4} } },
 	{8, {{PHY_TYPE_UNCONNECTED, 0x0}, {PHY_TYPE_SGMII0, 0x1}, /* Lane 3 */
 	     {PHY_TYPE_XAUI0, 0x1}, {PHY_TYPE_RXAUI0, 0x1},
-	     {PHY_TYPE_KR, 0x1}, {PHY_TYPE_XAUI1, 0x1},
+	     {PHY_TYPE_SFI, 0x1}, {PHY_TYPE_XAUI1, 0x1},
 	     {PHY_TYPE_RXAUI1, 0x1}, {PHY_TYPE_SATA1, 0x4} } },
 	{7, {{PHY_TYPE_UNCONNECTED, 0x0}, {PHY_TYPE_SGMII0, 0x2}, /* Lane 4 */
-	     {PHY_TYPE_XAUI0, 0x1}, {PHY_TYPE_RXAUI0, 0x1}, {PHY_TYPE_KR, 0x1},
+	     {PHY_TYPE_XAUI0, 0x1}, {PHY_TYPE_RXAUI0, 0x1}, {PHY_TYPE_SFI, 0x1},
 	     {PHY_TYPE_SGMII2, 0x1}, {PHY_TYPE_XAUI2, 0x1} } },
 	{6, {{PHY_TYPE_UNCONNECTED, 0x0}, {PHY_TYPE_XAUI1, 0x1}, /* Lane 5 */
 	     {PHY_TYPE_RXAUI1, 0x1}, {PHY_TYPE_SGMII3, 0x1},
@@ -907,8 +907,8 @@ static int comphy_sgmii_power_up(u32 lane, u32 sgmii_speed,
 	return ret;
 }
 
-static int comphy_kr_power_up(u32 lane, void __iomem *hpipe_base,
-			      void __iomem *comphy_base)
+static int comphy_sfi_power_up(u32 lane, void __iomem *hpipe_base,
+			       void __iomem *comphy_base)
 {
 	u32 mask, data, ret = 1;
 	void __iomem *hpipe_addr = HPIPE_ADDR(hpipe_base, lane);
@@ -1696,9 +1696,9 @@ int comphy_cp110_init(struct chip_serdes_phy_config *ptr_chip_cfg,
 				lane, ptr_comphy_map->speed, hpipe_base_addr,
 				comphy_base_addr);
 			break;
-		case PHY_TYPE_KR:
-			ret = comphy_kr_power_up(lane, hpipe_base_addr,
-						 comphy_base_addr);
+		case PHY_TYPE_SFI:
+			ret = comphy_sfi_power_up(lane, hpipe_base_addr,
+						  comphy_base_addr);
 			break;
 		case PHY_TYPE_RXAUI0:
 		case PHY_TYPE_RXAUI1:
diff --git a/include/dt-bindings/comphy/comphy_data.h b/include/dt-bindings/comphy/comphy_data.h
index a3a6b40..8fd578a 100644
--- a/include/dt-bindings/comphy/comphy_data.h
+++ b/include/dt-bindings/comphy/comphy_data.h
@@ -42,7 +42,7 @@
 #define PHY_TYPE_XAUI3			20
 #define PHY_TYPE_RXAUI0			21
 #define PHY_TYPE_RXAUI1			22
-#define PHY_TYPE_KR			23
+#define PHY_TYPE_SFI			23
 #define PHY_TYPE_MAX			24
 #define PHY_TYPE_INVALID		0xff
 
-- 
2.7.4

  reply	other threads:[~2017-04-24 15:45 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-24 15:45 [U-Boot] [v2, 00/13] phy: marvell: cp110: varius comphy updates igall at marvell.com
2017-04-24 15:45 ` igall at marvell.com [this message]
2017-05-08  9:49   ` [U-Boot] [v2, 01/13] phy: marvell: Replace PHY_TYPE_KR with PHY_TYPE_SFI Stefan Roese
2017-04-24 15:45 ` [U-Boot] [v2, 02/13] phy: marvell: cp110: add support for end point configuration igall at marvell.com
2017-05-08  9:49   ` Stefan Roese
2017-04-24 15:45 ` [U-Boot] [v2, 03/13] phy: marvell: cp110: update utmi phy connection type igall at marvell.com
2017-05-08  9:50   ` Stefan Roese
2017-04-24 15:45 ` [U-Boot] [v2, 04/13] phy: marvell: add IGNORE COMPHY type igall at marvell.com
2017-05-08  9:50   ` Stefan Roese
2017-04-24 15:45 ` [U-Boot] [v2, 05/13] fix: phy: marvell: cp110: fix the KR/SFI line 4 selector igall at marvell.com
2017-05-08  9:51   ` Stefan Roese
2017-04-24 15:45 ` [U-Boot] [v2, 06/13] fix: phy: marvell: cp110: sata: update analog parameters according to latest ETP igall at marvell.com
2017-05-08  9:51   ` Stefan Roese
2017-04-24 15:45 ` [U-Boot] [v2, 07/13] fix: phy: marvell: cp110: update comphy selector option igall at marvell.com
2017-05-08  9:51   ` Stefan Roese
2017-04-24 15:45 ` [U-Boot] [v2, 08/13] phy: marvell: cp110: add 5G XFI mode igall at marvell.com
2017-05-08  9:52   ` Stefan Roese
2017-04-24 15:45 ` [U-Boot] [v2, 09/13] fix: phy: marvell: cp110: fix comphy lane 4 selection options igall at marvell.com
2017-05-08  9:52   ` Stefan Roese
2017-04-24 15:45 ` [U-Boot] [v2, 10/13] phy: marvell: print comphy status even when it's disconnected igall at marvell.com
2017-05-08  9:52   ` Stefan Roese
2017-04-24 15:45 ` [U-Boot] [v2, 11/13] fix: phy: marvell: cp110: sfi: update analog parameters according to latest ETP igall at marvell.com
2017-05-08  9:53   ` Stefan Roese
2017-04-24 15:45 ` [U-Boot] [v2, 12/13] fix: phy: marvell: cp110: rename comphy_index to cp_index igall at marvell.com
2017-05-08  9:53   ` Stefan Roese
2017-04-24 15:45 ` [U-Boot] [v2, 13/13] fix: phy: marvell: cp110: pcie: update analog parameters according to latest ETP igall at marvell.com
2017-05-08  9:54   ` Stefan Roese
2017-05-09 14:37 ` [U-Boot] [v2, 00/13] phy: marvell: cp110: varius comphy updates Stefan Roese

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=1493048733-22194-2-git-send-email-igall@marvell.com \
    --to=igall@marvell.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.