UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Scholar ronnywebers
Scholar
4,043 Views
Registered: ‎10-10-2014

Device tree bindings doc for GMII2RGMII IP (linux-xlnx)

I'm trying to find info on the required and optional bindings of for the GMII2RGMII IP block, which I'm using on my Zynq GEM1 interface.

 

I'm looking under linux-xlnx/Documentation/devicetree/bindings, but no success. 

 

on this link I've found some example, but it seems old, the compatible = "xlnx,gmii2rgmii" string seems to be deprecated (?)

 

 

ps7_ethernet_1: ps7-ethernet@e000c00 {
	#address-cells = <1>;
	#size-cells = <0>;
	compatible = "xlnx,ps7-ethernet-1.00.a";
	gmii2rgmii-phy-handle = <&phy1>;
	interrupt-parent = <&ps7_scugic_0>;
	interrupts = < 0 45 1 >;
	local-mac-address = [ 00 0a 35 00 00 00 ];
	phy-handle = <&phy0>;
	phy-mode = "gmii";
	reg = < 0xe000c000 0x1000 >;
	xlnx,enet-clk-freq-hz = <0x7735940>;
	xlnx,enet-reset = <0xffffffff>;
	xlnx,enet-slcr-1000mbps-div0 = <0x1>;
	xlnx,enet-slcr-1000mbps-div1 = <0x1>;
	xlnx,enet-slcr-100mbps-div0 = <0x1>;
	xlnx,enet-slcr-100mbps-div1 = <0x5>;
	xlnx,enet-slcr-10mbps-div0 = <0x1>;
	xlnx,enet-slcr-10mbps-div1 = <0x32>;
	xlnx,eth-mode = <0x0>;
	xlnx,has-mdio = <0x1>;
	xlnx,ptp-enet-clock = <111111115>;
	mdio {
		#address-cells = <1>;
		#size-cells = <0>;
		phy0: phy@7 {
			compatible = "marvell,88e1116r";
			device_type = "ethernet-phy";
			reg = <7>;
		} ;
		phy1: phy@8 {
			compatible = "xlnx,gmii2rgmii";
			device_type = "ethernet-phy";
			reg = <8>;
		} ;
	} ;
} ;

 

 

 

 

 

 

 

** kudo if the answer was helpful. Accept as solution if your question is answered **
0 Kudos
2 Replies
Adventurer
Adventurer
4,030 Views
Registered: ‎12-03-2015

Re: Device tree bindings doc for GMII2RGMII IP (linux-xlnx)

Yes, the compatible string "xlnx,gmii2rgmii" doesn't exist in kernel 4.4. Looks like "xlnx,ps7-ethernet-1.00.a" should work. All the gmii2rgmii_phy functionality is in xlinix_emacps.c now.

 

Scholar ronnywebers
Scholar
1,666 Views
Registered: ‎10-10-2014

Re: Device tree bindings doc for GMII2RGMII IP (linux-xlnx)

@rgrossman, coming back to this post ... I'm still having trouble getting my eth1 with GMII2RGMII convertor to work, see this new thread that I started. 

 

I'm currently using Petalinux 2017.2, which uses kernel 4.9

 

Do you happen to have a device tree example for such eth + gmii2rgmii node? If so would you mind sharing it?

** kudo if the answer was helpful. Accept as solution if your question is answered **
0 Kudos