From: Tama <pkm_munot@yahoo.co.in>
To: "netdev@vger.kernel.org" <netdev@vger.kernel.org>
Subject: Device tree binding for Managed Switch
Date: Thu, 9 Jan 2014 14:12:24 +0800 (SGT) [thread overview]
Message-ID: <1389247944.40578.YahooMailNeo@web193105.mail.sg3.yahoo.com> (raw)
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
reply other threads:[~2014-01-09 6:19 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1389247944.40578.YahooMailNeo@web193105.mail.sg3.yahoo.com \
--to=pkm_munot@yahoo.co.in \
--cc=netdev@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox