Andre Przywara | 8d65e613e | 2017-05-24 10:34:56 +0100 | [diff] [blame] | 1 | / { |
| 2 | aliases { |
| 3 | ethernet0 = &emac; |
| 4 | }; |
| 5 | |
| 6 | soc { |
Andre Przywara | 028447e | 2018-04-04 01:31:17 +0100 | [diff] [blame] | 7 | syscon: syscon@1c00000 { |
| 8 | compatible = "allwinner,sun50i-a64-system-controller", |
| 9 | "syscon"; |
| 10 | reg = <0x01c00000 0x1000>; |
| 11 | }; |
| 12 | |
| 13 | emac: ethernet@1c30000 { |
Andre Przywara | 8d65e613e | 2017-05-24 10:34:56 +0100 | [diff] [blame] | 14 | compatible = "allwinner,sun50i-a64-emac"; |
Andre Przywara | 028447e | 2018-04-04 01:31:17 +0100 | [diff] [blame] | 15 | syscon = <&syscon>; |
| 16 | reg = <0x01c30000 0x10000>; |
Andre Przywara | 8d65e613e | 2017-05-24 10:34:56 +0100 | [diff] [blame] | 17 | interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>; |
Andre Przywara | 028447e | 2018-04-04 01:31:17 +0100 | [diff] [blame] | 18 | interrupt-names = "macirq"; |
Andre Przywara | 8d65e613e | 2017-05-24 10:34:56 +0100 | [diff] [blame] | 19 | resets = <&ccu RST_BUS_EMAC>; |
Andre Przywara | 028447e | 2018-04-04 01:31:17 +0100 | [diff] [blame] | 20 | reset-names = "stmmaceth"; |
Andre Przywara | 8d65e613e | 2017-05-24 10:34:56 +0100 | [diff] [blame] | 21 | clocks = <&ccu CLK_BUS_EMAC>; |
Andre Przywara | 028447e | 2018-04-04 01:31:17 +0100 | [diff] [blame] | 22 | clock-names = "stmmaceth"; |
Andre Przywara | 8d65e613e | 2017-05-24 10:34:56 +0100 | [diff] [blame] | 23 | #address-cells = <1>; |
| 24 | #size-cells = <0>; |
| 25 | pinctrl-names = "default"; |
| 26 | pinctrl-0 = <&rgmii_pins>; |
| 27 | phy-mode = "rgmii"; |
Andre Przywara | 028447e | 2018-04-04 01:31:17 +0100 | [diff] [blame] | 28 | phy-handle = <&ext_rgmii_phy>; |
Andre Przywara | 8d65e613e | 2017-05-24 10:34:56 +0100 | [diff] [blame] | 29 | status = "okay"; |
| 30 | |
Andre Przywara | 028447e | 2018-04-04 01:31:17 +0100 | [diff] [blame] | 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 | }; |
Andre Przywara | 8d65e613e | 2017-05-24 10:34:56 +0100 | [diff] [blame] | 39 | }; |
| 40 | }; |
| 41 | }; |
| 42 | }; |
| 43 | |
| 44 | &pio { |
| 45 | rmii_pins: rmii_pins { |
Andre Przywara | 028447e | 2018-04-04 01:31:17 +0100 | [diff] [blame] | 46 | pins = "PD10", "PD11", "PD13", "PD14", "PD17", |
| 47 | "PD18", "PD19", "PD20", "PD22", "PD23"; |
| 48 | function = "emac"; |
| 49 | drive-strength = <40>; |
Andre Przywara | 8d65e613e | 2017-05-24 10:34:56 +0100 | [diff] [blame] | 50 | }; |
| 51 | |
| 52 | rgmii_pins: rgmii_pins { |
Andre Przywara | 028447e | 2018-04-04 01:31:17 +0100 | [diff] [blame] | 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>; |
Andre Przywara | 8d65e613e | 2017-05-24 10:34:56 +0100 | [diff] [blame] | 58 | }; |
| 59 | }; |