* Device tree binding for Managed Switch
@ 2014-01-09 6:12 Tama
0 siblings, 0 replies; only message in thread
From: Tama @ 2014-01-09 6:12 UTC (permalink / raw)
To: netdev@vger.kernel.org
Hi All,
I am new to this mailing this. I am using IMX28 based custom designed board, based on TQ Components TQMA28 module. In our board we are using KSZ8863 and KSZ8895 managed switches instead of standard phy device. How to add support for managed switch in device tree.
I am new to device tree configuration. At present I have got
mac0: ethernet@800f0000 {
compatible = "fsl,imx28-fec";
reg = <0x800f0000 0x4000>;
interrupts = <101>;
status = "disabled";
};
mac1: ethernet@800f4000 {
compatible = "fsl,imx28-fec";
reg = <0x800f4000 0x4000>;
interrupts = <102>;
status = "disabled";
};
In my device tree imx28.dtsi and in imx28-mba28.dts I have got
/* FCC1 management to switch */
eth0: ethernet@800f0000 {
device_type = "network";
compatible = "micrel,ksz8895";
reg = <0x800f0000 0x4000>;
local-mac-address = [ 00 01 02 03 04 07 ];
interrupts = <101>;
fixed-link = <1 1 1000 0 0>;
phy-handle = <&phy0>;
phy0: phy@0 {
fixed-link;
full-duplex;
speed = <1000>;
};
};
/* FCC1 management to switch */
eth1: ethernet@800f4000 {
device_type = "network";
compatible = "micrel, ksz8895";
reg = <0x800f0000 0x4000>;
local-mac-address = [ 00 01 02 03 04 08 ];
interrupts = <102>;
fixed-link = <1 1 1000 0 0>;
phy-handle = <&phy1>;
phy1: phy@1 {
fixed-link;
full-duplex;
speed = <1000>;
};
};
I read threads on this mailing list and modified the device tree for managed switch. I am not 100% sure if my configuration is correct. When the kernel is booting it is scanning for phy devices and as it doesnt get a phy device id it doesnt register any device.
Can some one please share information on how to configure the device tree for device and not a phy.
Thanks
Pritam
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-01-09 6:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-09 6:12 Device tree binding for Managed Switch Tama
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox