Jernej Skrabec | 463304d | 2021-01-06 18:02:56 +0100 | [diff] [blame] | 1 | // SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
| 2 | // Copyright (C) 2018 Amarula Solutions |
| 3 | // Author: Jagan Teki <jagan@amarulasolutions.com> |
Jagan Teki | 3a0854f | 2018-07-29 00:03:31 +0530 | [diff] [blame] | 4 | |
Jagan Teki | 4c44d50 | 2018-11-05 13:20:39 +0530 | [diff] [blame] | 5 | #include "sun50i-h6-orangepi.dtsi" |
Jagan Teki | 3a0854f | 2018-07-29 00:03:31 +0530 | [diff] [blame] | 6 | |
| 7 | / { |
| 8 | model = "OrangePi One Plus"; |
| 9 | compatible = "xunlong,orangepi-one-plus", "allwinner,sun50i-h6"; |
Jernej Skrabec | 463304d | 2021-01-06 18:02:56 +0100 | [diff] [blame] | 10 | |
| 11 | aliases { |
| 12 | ethernet0 = &emac; |
| 13 | }; |
| 14 | |
| 15 | reg_gmac_3v3: gmac-3v3 { |
| 16 | compatible = "regulator-fixed"; |
| 17 | regulator-name = "vcc-gmac-3v3"; |
| 18 | regulator-min-microvolt = <3300000>; |
| 19 | regulator-max-microvolt = <3300000>; |
| 20 | startup-delay-us = <100000>; |
| 21 | enable-active-high; |
| 22 | gpio = <&pio 3 6 GPIO_ACTIVE_HIGH>; /* PD6 */ |
| 23 | vin-supply = <®_aldo2>; |
| 24 | }; |
| 25 | }; |
| 26 | |
| 27 | &emac { |
| 28 | pinctrl-names = "default"; |
| 29 | pinctrl-0 = <&ext_rgmii_pins>; |
| 30 | phy-mode = "rgmii-id"; |
| 31 | phy-handle = <&ext_rgmii_phy>; |
| 32 | phy-supply = <®_gmac_3v3>; |
| 33 | allwinner,rx-delay-ps = <200>; |
| 34 | allwinner,tx-delay-ps = <200>; |
| 35 | status = "okay"; |
| 36 | }; |
| 37 | |
| 38 | &mdio { |
| 39 | ext_rgmii_phy: ethernet-phy@1 { |
| 40 | compatible = "ethernet-phy-ieee802.3-c22"; |
| 41 | reg = <1>; |
| 42 | }; |
Jagan Teki | 3a0854f | 2018-07-29 00:03:31 +0530 | [diff] [blame] | 43 | }; |