cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Explorer
Explorer
5,257 Views
Registered: ‎02-18-2013

Devicetree Generator issue

Jump to solution

Hello,

 

I'm using Vivado 2014.4 and the Xilinx Devicetree Generator from Github and since a few days I have the problem that the ethernet part in the ps.dtsi file got reset to this default value

 

		ps7_ethernet_0: ps7-ethernet@e000b000 {
			#address-cells = <1>;
			#size-cells = <0>;
			clock-names = "ref_clk", "aper_clk";
			clocks = <&clkc 13>, <&clkc 30>;
			compatible = "xlnx,ps7-ethernet-1.00.a";
			interrupt-parent = <&ps7_scugic_0>;
			interrupts = <0 22 4>;
			local-mac-address = [00 0a 35 00 00 00];
			phy-mode = "gmii";
			reg = <0xe000b000 0x1000>;
			xlnx,ptp-enet-clock = <0x6750918>;
			xlnx,enet-reset = "";
			xlnx,eth-mode = <0x0>;
			xlnx,has-mdio = <0x1>;
			mdio {
				#address-cells = <1>;
				#size-cells = <0>;
			} ;
		} ;

every time when I open the Xilinx SDK.
But i need a Phy entry to get my ethernet working:

 

		ps7_ethernet_0: ps7-ethernet@e000b000 {
			#address-cells = <1>;
			#size-cells = <0>;
			clock-names = "ref_clk", "aper_clk";
			clocks = <&clkc 13>, <&clkc 30>;
			compatible = "xlnx,ps7-ethernet-1.00.a";
			interrupt-parent = <&ps7_scugic_0>;
			interrupts = <0 22 4>;
			local-mac-address = [00 0a 35 00 00 00];
			phy-handle = <&phy0>;
			phy-mode = "rgmii-id";
			reg = <0xe000b000 0x1000>;
			xlnx,ptp-enet-clock = <0x6750918>;
			xlnx,enet-reset = "";
			xlnx,eth-mode = <0x1>;
			xlnx,has-mdio = <0x1>;

		mdio {
			#address-cells = <1>;
			#size-cells = <0>;
			phy0: phy@1 {
				compatible = "realtek,RTL8211E";
				device_type = "ethernet-phy";
				reg = <1>;
				} ;
			} ;
		} ;

 What is the reason for that problem?

Thanks for help...

0 Kudos
Reply
1 Solution

Accepted Solutions
Highlighted
Scholar
Scholar
8,610 Views
Registered: ‎11-09-2013

the ONLY file you can touch is

 

system.dts

 

if you make changes to any other file they will get lost of course.

 

so please use system.dts as you are supposed to, and do not try to modify any other files. then it all works.

View solution in original post

0 Kudos
Reply
2 Replies
Highlighted
Scholar
Scholar
8,611 Views
Registered: ‎11-09-2013

the ONLY file you can touch is

 

system.dts

 

if you make changes to any other file they will get lost of course.

 

so please use system.dts as you are supposed to, and do not try to modify any other files. then it all works.

View solution in original post

0 Kudos
Reply
Highlighted
Explorer
Explorer
5,208 Views
Registered: ‎02-18-2013

Thank you for your reply.

Can I add this part

 

		ps7_ethernet_0: ps7-ethernet@e000b000 {
			#address-cells = <1>;
			#size-cells = <0>;
			clock-names = "ref_clk", "aper_clk";
			clocks = <&clkc 13>, <&clkc 30>;
			compatible = "xlnx,ps7-ethernet-1.00.a";
			interrupt-parent = <&ps7_scugic_0>;
			interrupts = <0 22 4>;
			local-mac-address = [00 0a 35 00 00 00];
			phy-handle = <&phy0>;
			phy-mode = "rgmii-id";
			reg = <0xe000b000 0x1000>;
			xlnx,ptp-enet-clock = <0x6750918>;
			xlnx,enet-reset = "";
			xlnx,eth-mode = <0x1>;
			xlnx,has-mdio = <0x1>;

		mdio {
			#address-cells = <1>;
			#size-cells = <0>;
			phy0: phy@1 {
				compatible = "realtek,RTL8211E";
				device_type = "ethernet-phy";
				reg = <1>;
				} ;
			} ;
		} ;

 into my system.dtsi, or should I only add the modifications of the ethernet part into that file?

0 Kudos
Reply