[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20121104020311.GA26747@obsidianresearch.com>
Date: Sat, 3 Nov 2012 20:03:11 -0600
From: Jason Gunthorpe <jgunthorpe@...idianresearch.com>
To: Thomas Petazzoni <thomas.petazzoni@...e-electrons.com>
Cc: Lior Amsalem <alior@...vell.com>, Andrew Lunn <andrew@...n.ch>,
Jason Cooper <jason@...edaemon.net>, netdev@...r.kernel.org,
Maen Suleiman <maen@...vell.com>,
Gregory Clement <gregory.clement@...e-electrons.com>,
linux-arm-kernel@...ts.infradead.org,
Ian Molton <ian.molton@...ethink.co.uk>
Subject: Re: [4/4] arm: mvebu: enable Ethernet controllers on Armada 370/XP
eval boards
+ ethernet@...70000 {
+ clock-frequency = <200000000>;
+ status = "okay";
+ phy-mode = "rgmii-id";
+ phy-addr = <0>;
+ };
We've been using the patches from Ian Molton for the mv643xx driver
that make it use the more standard, separately described MDIO
bus..
Please consider not copying the unsual 'phy-addr' binding
for the new driver.
What we are used to seeing for ethernet+mdio is more like:
smi0: mdio@...00 {
device_type = "mdio";
compatible = "marvell,mdio-mv643xx";
reg = <0x72000 0x4000>;
interrupts = <46>;
tx_csum_limit = <1600>;
#address-cells = <1>;
#size-cells = <0>;
PHY1: ethernet-phy@1 {
reg = <1>;
device_type = "ethernet-phy";
phy-id = <0x01410e90>;
};
};
egiga0 {
device_type = "network";
compatible = "marvell,mv643xx-eth";
reg = <0x72000 0x4000>;
mdio = <&smi0>;
port_number = <0>;
phy-handle = <&PHY1>;
interrupts = <11>;
};
};
Where the MDIO bus is explicit, the PHY, its address and parameters
are explicit - the PHY has an of_node pointer - and phy-handle is used
to connect them.
I'm not sure having the MDIO bus as a distinct top level item is
great, considering how the registers overlap.. It might be better
to put it under the egiga0 block? But that is a minor nit :)
Regards,
Jason
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists