Samuel Holland | 26bc4e7 | 2020-10-24 10:21:55 -0500 | [diff] [blame] | 1 | // SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
| 2 | // Copyright (c) 2016 ARM Ltd. |
Siarhei Siamashka | 3848f97 | 2016-03-29 17:29:11 +0200 | [diff] [blame] | 3 | |
Andre Przywara | 8d65e613e | 2017-05-24 10:34:56 +0100 | [diff] [blame] | 4 | #include "sun50i-a64-pine64.dts" |
Siarhei Siamashka | 3848f97 | 2016-03-29 17:29:11 +0200 | [diff] [blame] | 5 | |
| 6 | / { |
| 7 | model = "Pine64+"; |
Andre Przywara | 3674811 | 2016-05-04 22:15:33 +0100 | [diff] [blame] | 8 | compatible = "pine64,pine64-plus", "allwinner,sun50i-a64"; |
Siarhei Siamashka | 3848f97 | 2016-03-29 17:29:11 +0200 | [diff] [blame] | 9 | |
Andre Przywara | 0fcb830 | 2018-07-04 14:16:35 +0100 | [diff] [blame] | 10 | /* TODO: Camera, touchscreen, etc. */ |
| 11 | }; |
| 12 | |
| 13 | &emac { |
| 14 | pinctrl-names = "default"; |
| 15 | pinctrl-0 = <&rgmii_pins>; |
Andre Przywara | fb67547 | 2021-04-17 22:55:19 +0100 | [diff] [blame] | 16 | phy-mode = "rgmii-txid"; |
Andre Przywara | 0fcb830 | 2018-07-04 14:16:35 +0100 | [diff] [blame] | 17 | phy-handle = <&ext_rgmii_phy>; |
| 18 | status = "okay"; |
| 19 | }; |
| 20 | |
| 21 | &mdio { |
| 22 | ext_rgmii_phy: ethernet-phy@1 { |
| 23 | compatible = "ethernet-phy-ieee802.3-c22"; |
| 24 | reg = <1>; |
| 25 | }; |
Amit Singh Tomar | d194c0e | 2016-07-06 17:59:44 +0530 | [diff] [blame] | 26 | }; |
Samuel Holland | 26bc4e7 | 2020-10-24 10:21:55 -0500 | [diff] [blame] | 27 | |
| 28 | ®_dc1sw { |
| 29 | /* |
| 30 | * Ethernet PHY needs 30ms to properly power up and some more |
| 31 | * to initialize. 100ms should be plenty of time to finish |
| 32 | * whole process. |
| 33 | */ |
| 34 | regulator-enable-ramp-delay = <100000>; |
| 35 | }; |