net/phy/marvell: update m88e1111 support for SGMII mode
Subsystems (5)
PATCH 1/4 net/phy/marvell: update m88e1111 support for SGMII mode
Disable fiber/copper auto selection for Marvell m88e1111 SGMII support.
--- drivers/net/phy/marvell.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/net/phy/marvell.c +1 -0
@@ -243,6 +243,7 @@ static int m88e1111_config_init(struct phy_device *phydev) temp &= ~(MII_M1111_HWCFG_MODE_MASK ); temp |=MII_M1111_HWCFG_MODE_SGMII_NO_CLK ; + temp |=MII_M1111_HWCFG_FIBER_COPPER_AUTO ; err =phy_write (phydev,MII_M1111_PHY_EXT_SR , temp);if (err <0 )
Signature · 1 line
1.6.0.2
PATCH 2/4 fsl_pq_mido: Set the first UCC as the mii management interface master
Current code makes the UCC whose register range includes the current mdio register to be the MII managemnt interface master of the QE. If there is more than one mdio bus for QE, the UCC of the last mdio bus will be the MII management interface master which will make the primary mdio bus working unproperly, e.g. can notget the right clock. Normally the primary mdio bus is the first UEC's mdio bus.
This patch allows the first UCC to be the MII management interface master of the multiple UCC mdio buses.
--- drivers/net/fsl_pq_mdio.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-)
drivers/net/fsl_pq_mdio.c +5 -1
@@ -338,13 +338,17 @@ static int fsl_pq_mdio_probe(struct of_device *ofdev, of_device_is_compatible(np, "ucc_geth_phy")) {#ifdef CONFIG_UCC_GETH u32 id; +static u32 mii_mng_master; tbipa = ®s->utbipar;if ((err =get_ucc_id_for_range (addr, addr + size, &id))) goto err_free_irqs; -ucc_set_qe_mux_mii_mng (id -1 ); +if (!mii_mng_master) { + mii_mng_master = id; +ucc_set_qe_mux_mii_mng (id -1 ); + }#else err = -ENODEV ; goto err_free_irqs;
Signature · 1 line
1.6.0.2
PATCH 3/4 net/ucc_geth: Add SGMII support for UEC GETH driver Signed-off-by: Haiying Wang <[email protected]>
--- arch/powerpc/include/asm/qe.h | 2 + drivers/net/ucc_geth.c | 79 ++++++++++++++++++++++++++++++++++++++++- drivers/net/ucc_geth.h | 28 ++++++++++++++- 3 files changed, 107 insertions(+), 2 deletions(-)
arch/powerpc/include/asm/qe.h +2 -0
@@ -675,6 +675,8 @@ struct ucc_slow_pram {#define UCC_GETH_UPSMR_RMM 0x00001000#define UCC_GETH_UPSMR_CAM 0x00000400#define UCC_GETH_UPSMR_BRO 0x00000200 +#define UCC_GETH_UPSMR_SMM 0x00000080 +#define UCC_GETH_UPSMR_SGMM 0x00000020/* UCC Transmit On Demand Register (UTODR) */ #define UCC_SLOW_TOD 0x8000
drivers/net/ucc_geth.c +78 -1
132 lines not on this page · raw message
drivers/net/ucc_geth.h +27 -1
@@ -1,5 +1,5 @@/* -* Copyright (C) Freescale Semicondutor, Inc. 2006. All rights reserved. +* Copyright (C) Freescale Semicondutor, Inc. 2006-2009. All rights reserved. * * Author: Shlomi Gridish <[email protected]> *
@@ -193,6 +193,31 @@ struct ucc_geth {#define ENET_TBI_MII_JD 0x10/* Jitter diagnostics */ #define ENET_TBI_MII_TBICON 0x11/* TBI control */ +/* TBI MDIO register bit fields*/ +#define TBISR_LSTATUS 0x0004 +#define TBICON_CLK_SELECT 0x0020 +#define TBIANA_ASYMMETRIC_PAUSE 0x0100 +#define TBIANA_SYMMETRIC_PAUSE 0x0080 +#define TBIANA_HALF_DUPLEX 0x0040 +#define TBIANA_FULL_DUPLEX 0x0020 +#define TBICR_PHY_RESET 0x8000 +#define TBICR_ANEG_ENABLE 0x1000 +#define TBICR_RESTART_ANEG 0x0200 +#define TBICR_FULL_DUPLEX 0x0100 +#define TBICR_SPEED1_SET 0x0040 + +#define TBIANA_SETTINGS ( \ + TBIANA_ASYMMETRIC_PAUSE \ + | TBIANA_SYMMETRIC_PAUSE \ + | TBIANA_FULL_DUPLEX \ + ) +#define TBICR_SETTINGS ( \ + TBICR_PHY_RESET \ + | TBICR_ANEG_ENABLE \ + | TBICR_FULL_DUPLEX \ + | TBICR_SPEED1_SET \ + ) +/* UCC GETH MACCFG1 (MAC Configuration 1 Register) */ #define MACCFG1_FLOW_RX 0x00000020/* Flow Control Rx */
@@ -1189,6 +1214,7 @@ struct ucc_geth_private {struct ugeth_mii_info *mii_info;struct phy_device *phydev; +struct phy_device *tbiphy;phy_interface_t phy_interface;int max_speed;uint32_t msg_enable;
Signature · 1 line
1.6.0.2
PATCH 4/4 MPC85xx: Add UCC6 and UCC8 nodes in SGMII mode for MPC8569MDS
--- arch/powerpc/boot/dts/mpc8569mds.dts | 63 ++++++++++++++++++++++++++++++++++ 1 files changed, 63 insertions(+), 0 deletions(-)
arch/powerpc/boot/dts/mpc8569mds.dts +63 -0
@@ -24,6 +24,8 @@ ethernet1 = &enet1; ethernet2 = &enet2; ethernet3 = &enet3; + ethernet5 = &enet5; + ethernet7 = &enet7; pci1 = &pci1; rapidio0 = &rio0; };
@@ -466,6 +468,37 @@ reg = <0x3>; device_type = "ethernet-phy"; }; + qe_phy5: ethernet-phy@04 { + interrupt-parent = <&mpic>; + reg = <0x04>; + device_type = "ethernet-phy"; + }; + qe_phy7: ethernet-phy@06 { + interrupt-parent = <&mpic>; + reg = <0x6>; + device_type = "ethernet-phy"; + }; + }; + mdio@3520 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0x3520 0x18>; + compatible = "fsl,ucc-mdio"; + + tbi0: tbi-phy@15 { + reg = <0x15>; + device_type = "tbi-phy"; + }; + }; + mdio@3720 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0x3720 0x38>; + compatible = "fsl,ucc-mdio"; + tbi1: tbi-phy@17 { + reg = <0x17>; + device_type = "tbi-phy"; + }; }; enet2: ucc@2200 {
@@ -513,6 +546,36 @@ phy-connection-type = "rgmii-id"; }; + enet5: ucc@3400 { + device_type = "network"; + compatible = "ucc_geth"; + cell-index = <6>; + reg = <0x3400 0x200>; + interrupts = <41>; + interrupt-parent = <&qeic>; + local-mac-address = [ 00 00 00 00 00 00 ]; + rx-clock-name = "none"; + tx-clock-name = "none"; + tbi-handle = <&tbi0>; + phy-handle = <&qe_phy5>; + phy-connection-type = "sgmii"; + }; + + enet7: ucc@3600 { + device_type = "network"; + compatible = "ucc_geth"; + cell-index = <8>; + reg = <0x3600 0x200>; + interrupts = <43>; + interrupt-parent = <&qeic>; + local-mac-address = [ 00 00 00 00 00 00 ]; + rx-clock-name = "none"; + tx-clock-name = "none"; + tbi-handle = <&tbi1>; + phy-handle = <&qe_phy7>; + phy-connection-type = "sgmii"; + }; + muram@10000 { #address-cells = <1>; #size-cells = <1>;
Signature · 1 line
1.6.0.2
David Miller
maintainerPatch 3 of this series doesn't apply cleanly to net-next-2.6 so I'm dropping the entire patch set.
Also, in patch 3 you put your signoff in the Subject line.
Please fix all of this up and resubmit your patch series.
Thank you.
Quoted 6 lines · David Miller
Patch 3 of this series doesn't apply cleanly to net-next-2.6 so I'm dropping the entire patch set.
Also, in patch 3 you put your signoff in the Subject line.
Please fix all of this up and resubmit your patch series.
I only verified the first three patches could be applied to your net-2.6, did not verify whether they could be applied for net-next-2.6. Sorry.
I've fixed the patch3 against net-next-2.6 now, and will resubmit the patches.
But the patch4 can not be applied to your net-next-2.6 since there is not 8569mds support in that tree. Hope Kumar can pick up the patch 4.
Thanks.
Haiying