blob: b54099b654c8a676998712adfa495eb5866baf40 [file] [log] [blame]
Samuel Hollande210ec02020-10-24 10:21:55 -05001// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2// Copyright (c) 2016 ARM Ltd.
Siarhei Siamashka7adbd1162016-03-29 17:29:11 +02003
Andre Przywaraf98852b2017-05-24 10:34:56 +01004#include "sun50i-a64-pine64.dts"
Siarhei Siamashka7adbd1162016-03-29 17:29:11 +02005
6/ {
7 model = "Pine64+";
Andre Przywarac1fd2442016-05-04 22:15:33 +01008 compatible = "pine64,pine64-plus", "allwinner,sun50i-a64";
Siarhei Siamashka7adbd1162016-03-29 17:29:11 +02009
Andre Przywara68dd17c2018-07-04 14:16:35 +010010 /* TODO: Camera, touchscreen, etc. */
11};
12
13&emac {
14 pinctrl-names = "default";
15 pinctrl-0 = <&rgmii_pins>;
Andre Przywara647b3922021-04-17 22:55:19 +010016 phy-mode = "rgmii-txid";
Andre Przywara68dd17c2018-07-04 14:16:35 +010017 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 };
Siarhei Siamashka7adbd1162016-03-29 17:29:11 +020026};
Samuel Hollande210ec02020-10-24 10:21:55 -050027
28&reg_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};