blob: 32a263ce3d863a73e34d2cec3c5cae43f81b8c28 [file] [log] [blame]
Andre Przywara8d65e613e2017-05-24 10:34:56 +01001/ {
2 aliases {
3 ethernet0 = &emac;
4 };
5
6 soc {
Andre Przywara028447e2018-04-04 01:31:17 +01007 syscon: syscon@1c00000 {
8 compatible = "allwinner,sun50i-a64-system-controller",
9 "syscon";
10 reg = <0x01c00000 0x1000>;
11 };
12
13 emac: ethernet@1c30000 {
Andre Przywara8d65e613e2017-05-24 10:34:56 +010014 compatible = "allwinner,sun50i-a64-emac";
Andre Przywara028447e2018-04-04 01:31:17 +010015 syscon = <&syscon>;
16 reg = <0x01c30000 0x10000>;
Andre Przywara8d65e613e2017-05-24 10:34:56 +010017 interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
Andre Przywara028447e2018-04-04 01:31:17 +010018 interrupt-names = "macirq";
Andre Przywara8d65e613e2017-05-24 10:34:56 +010019 resets = <&ccu RST_BUS_EMAC>;
Andre Przywara028447e2018-04-04 01:31:17 +010020 reset-names = "stmmaceth";
Andre Przywara8d65e613e2017-05-24 10:34:56 +010021 clocks = <&ccu CLK_BUS_EMAC>;
Andre Przywara028447e2018-04-04 01:31:17 +010022 clock-names = "stmmaceth";
Andre Przywara8d65e613e2017-05-24 10:34:56 +010023 #address-cells = <1>;
24 #size-cells = <0>;
25 pinctrl-names = "default";
26 pinctrl-0 = <&rgmii_pins>;
27 phy-mode = "rgmii";
Andre Przywara028447e2018-04-04 01:31:17 +010028 phy-handle = <&ext_rgmii_phy>;
Andre Przywara8d65e613e2017-05-24 10:34:56 +010029 status = "okay";
30
Andre Przywara028447e2018-04-04 01:31:17 +010031 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 };
Andre Przywara8d65e613e2017-05-24 10:34:56 +010039 };
40 };
41 };
42};
43
44&pio {
45 rmii_pins: rmii_pins {
Andre Przywara028447e2018-04-04 01:31:17 +010046 pins = "PD10", "PD11", "PD13", "PD14", "PD17",
47 "PD18", "PD19", "PD20", "PD22", "PD23";
48 function = "emac";
49 drive-strength = <40>;
Andre Przywara8d65e613e2017-05-24 10:34:56 +010050 };
51
52 rgmii_pins: rgmii_pins {
Andre Przywara028447e2018-04-04 01:31:17 +010053 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>;
Andre Przywara8d65e613e2017-05-24 10:34:56 +010058 };
59};