Home | History | Annotate | Download | only in dts
      1 / {
      2 	aliases {
      3 		ethernet0 = &emac;
      4 	};
      5 
      6 	soc {
      7 		syscon: syscon@1c00000 {
      8 			compatible = "allwinner,sun50i-a64-system-controller",
      9 				     "syscon";
     10 			reg = <0x01c00000 0x1000>;
     11 		};
     12 
     13 		emac: ethernet@1c30000 {
     14 			compatible = "allwinner,sun50i-a64-emac";
     15 			syscon = <&syscon>;
     16 			reg = <0x01c30000 0x10000>;
     17 			interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
     18 			interrupt-names = "macirq";
     19 			resets = <&ccu RST_BUS_EMAC>;
     20 			reset-names = "stmmaceth";
     21 			clocks = <&ccu CLK_BUS_EMAC>;
     22 			clock-names = "stmmaceth";
     23 			#address-cells = <1>;
     24 			#size-cells = <0>;
     25 			pinctrl-names = "default";
     26 			pinctrl-0 = <&rgmii_pins>;
     27 			phy-mode = "rgmii";
     28 			phy-handle = <&ext_rgmii_phy>;
     29 			status = "okay";
     30 
     31 			mdio: mdio {
     32 				compatible = "snps,dwmac-mdio";
     33 				#address-cells = <1>;
     34 				#size-cells = <0>;
     35 				ext_rgmii_phy: ethernet-phy@1 {
     36 					compatible = "ethernet-phy-ieee802.3-c22";
     37 					reg = <1>;
     38 				};
     39 			};
     40 		};
     41 	};
     42 };
     43 
     44 &pio {
     45 	rmii_pins: rmii_pins {
     46 		pins = "PD10", "PD11", "PD13", "PD14", "PD17",
     47 		       "PD18", "PD19", "PD20", "PD22", "PD23";
     48 		function = "emac";
     49 		drive-strength = <40>;
     50 	};
     51 
     52 	rgmii_pins: rgmii_pins {
     53 		pins = "PD8", "PD9", "PD10", "PD11", "PD12",
     54 		       "PD13", "PD15", "PD16", "PD17", "PD18",
     55 		       "PD19", "PD20", "PD21", "PD22", "PD23";
     56 		function = "emac";
     57 		drive-strength = <40>;
     58 	};
     59 };
     60