LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-07-2014, 05:36 AM   #1
redbrain17
LQ Newbie
 
Registered: Nov 2014
Posts: 1

Rep: Reputation: Disabled
How to specify the MDIO Bus details in Device tree (DTS) for a imx28 Board?


I try to define a Device Tree for my MDIO Bus on a costum based imx28 Board The goal is to connect a DSA Marvel Switch 88E6071 via MDIO to my imx28 CPU. The MDIO Bus is accessable via phy1.

Somebody a clou how to handle this?

currently i'am stucked with this error on Linux Bootup:

[ 2.311696] libphy: Fixed MDIO Bus: probed
[ 2.484603] fsl-pq_mdio mdio.6: could not obtain address information
[ 2.491217] fsl-pq_mdio: probe of mdio.6 failed with error -22


mdio_bus: mdio {
#address-cells = <1>;
#size-cells = <0>;
device_type = "mdio";
compatible = "fsl,gianfar-mdio";
status = "okay";

ethphy0: ethernet-phy@0 {
reg = <0>;
};
ethphy1: ethernet-phy@1 {
reg = <1>;
};
};
}

dsa@0 {
compatible = "marvell,dsa";
#address-cells = <2>;
#size-cells = <0>;


interrupts = <10>;
dsa,ethernet = <&mac1>;
dsa,mii-bus = <&ethphy1>;


switch@0 {
#address-cells = <1>;
#size-cells = <0>;
//reg = <16 0>; /* MDIO address 16, switch 0 in tree */
reg = <5 0>; /* MDIO address 16, switch 0 in tree */


port@0 {
reg = <0>;
label = "lan1";
phy-handle = <&ethphy1>;
};


port@1 {
reg = <1>;
label = "lan2";
};


port@2 {
reg = <2>;
label = "lan3";
};


port@3 {
reg = <3>;
label = "lan4";
};


port@4 {
reg = <4>;
label = "lan5";
};


port@5 {
reg = <5>;
label = "cpu";
};


};


};
};
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to extract DTS core from DTS-HD MA? earthw0rmjim Linux - Software 0 09-06-2012 01:24 PM
Can a PCI device communicate with another device attached to the bus system? bhagatindia Linux - Kernel 3 10-16-2008 12:44 AM
how to Add board specific code into the kernel tree. zahidul Linux - Software 2 09-26-2008 02:17 AM
Mounting known Bus / Device jymmi Ubuntu 5 02-11-2008 04:31 AM
WUSB54G No Bus Device Link al_erola Linux - Hardware 1 02-10-2005 11:18 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration