File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 169169 clock-output-names = "hfclk";
170170 };
171171
172- xecclk: xecclk {
172+ xecclk0: xecclk0 {
173+ #clock-cells = <0>;
174+ compatible = "fixed-clock";
175+ clock-frequency = <25000000>;
176+ };
177+
178+ xecclk1: xecclk1 {
173179 #clock-cells = <0>;
174180 compatible = "fixed-clock";
175181 clock-frequency = <125000000>;
519525 status = "okay";
520526 };
521527
522- xec0 : xec@f9c210000 {
528+ eth0 : xec@f9c210000 {
523529 compatible = "nuclei,xec";
524530 reg = <0xf 0x9c210000 0x0 0x1000>;
525531 interrupt-parent = <&plic0>;
526532 interrupts = <67>;
527- clocks = <&xecclk >;
528- /*local-mac-address = [00 2b 20 21 03 23 ];*/
533+ clocks = <&xecclk0 >;
534+ /*local-mac-address = [00 2b 20 21 03 24 ];*/
529535 phy-handle = <&rtl8201f>;
530- phy-mode = "rgmii ";
536+ phy-mode = "mii ";
531537
532- status = "disabled ";
538+ status = "okay ";
533539 mdio {
534540 compatible = "snps,dwmac-mdio";
535541 #address-cells = <1>;
536542 #size-cells = <0>;
537543
538- rtl8201f: ethernet-phy@0 {
544+ rtl8201f: ethernet-phy@1 {
539545 compatible = "ethernet-phy-ieee802.3-c22";
540- reg = <0 >;
546+ reg = <1 >;
541547 };
542548 };
543549 };
544550
545- xec1 : xec@f9cdc0000 {
551+ eth1 : xec@f9cdc0000 {
546552 compatible = "nuclei,xec";
547553 reg = <0xf 0x9cdc0000 0x0 0x1000>;
548554 interrupt-parent = <&plic0>;
549555 interrupts = <68>;
550- clocks = <&xecclk >;
556+ clocks = <&xecclk1 >;
551557 /*local-mac-address = [00 2b 20 21 03 23];*/
552558 phy-handle = <&rtl8211f>;
553559 phy-mode = "gmii";
You can’t perform that action at this time.
0 commit comments