2017-05-24 09:34:56 +00:00
|
|
|
/ {
|
|
|
|
aliases {
|
|
|
|
ethernet0 = &emac;
|
|
|
|
};
|
|
|
|
|
|
|
|
soc {
|
2018-04-04 00:31:17 +00:00
|
|
|
syscon: syscon@1c00000 {
|
|
|
|
compatible = "allwinner,sun50i-a64-system-controller",
|
|
|
|
"syscon";
|
|
|
|
reg = <0x01c00000 0x1000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
emac: ethernet@1c30000 {
|
2017-05-24 09:34:56 +00:00
|
|
|
compatible = "allwinner,sun50i-a64-emac";
|
2018-04-04 00:31:17 +00:00
|
|
|
syscon = <&syscon>;
|
|
|
|
reg = <0x01c30000 0x10000>;
|
2017-05-24 09:34:56 +00:00
|
|
|
interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
|
2018-04-04 00:31:17 +00:00
|
|
|
interrupt-names = "macirq";
|
2017-05-24 09:34:56 +00:00
|
|
|
resets = <&ccu RST_BUS_EMAC>;
|
2018-04-04 00:31:17 +00:00
|
|
|
reset-names = "stmmaceth";
|
2017-05-24 09:34:56 +00:00
|
|
|
clocks = <&ccu CLK_BUS_EMAC>;
|
2018-04-04 00:31:17 +00:00
|
|
|
clock-names = "stmmaceth";
|
2017-05-24 09:34:56 +00:00
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&rgmii_pins>;
|
|
|
|
phy-mode = "rgmii";
|
2018-04-04 00:31:17 +00:00
|
|
|
phy-handle = <&ext_rgmii_phy>;
|
2017-05-24 09:34:56 +00:00
|
|
|
status = "okay";
|
|
|
|
|
2018-04-04 00:31:17 +00:00
|
|
|
mdio: mdio {
|
|
|
|
compatible = "snps,dwmac-mdio";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
ext_rgmii_phy: ethernet-phy@1 {
|
|
|
|
compatible = "ethernet-phy-ieee802.3-c22";
|
|
|
|
reg = <1>;
|
|
|
|
};
|
2017-05-24 09:34:56 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&pio {
|
|
|
|
rmii_pins: rmii_pins {
|
2018-04-04 00:31:17 +00:00
|
|
|
pins = "PD10", "PD11", "PD13", "PD14", "PD17",
|
|
|
|
"PD18", "PD19", "PD20", "PD22", "PD23";
|
|
|
|
function = "emac";
|
|
|
|
drive-strength = <40>;
|
2017-05-24 09:34:56 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
rgmii_pins: rgmii_pins {
|
2018-04-04 00:31:17 +00:00
|
|
|
pins = "PD8", "PD9", "PD10", "PD11", "PD12",
|
|
|
|
"PD13", "PD15", "PD16", "PD17", "PD18",
|
|
|
|
"PD19", "PD20", "PD21", "PD22", "PD23";
|
|
|
|
function = "emac";
|
|
|
|
drive-strength = <40>;
|
2017-05-24 09:34:56 +00:00
|
|
|
};
|
|
|
|
};
|