14e388608SAndre Przywara/*
24e388608SAndre Przywara * Copyright (c) 2016 ARM Ltd.
34e388608SAndre Przywara *
44e388608SAndre Przywara * This file is dual-licensed: you can use it either under the terms
54e388608SAndre Przywara * of the GPL or the X11 license, at your option. Note that this dual
64e388608SAndre Przywara * licensing only applies to this file, and not this project as a
74e388608SAndre Przywara * whole.
84e388608SAndre Przywara *
94e388608SAndre Przywara *  a) This library is free software; you can redistribute it and/or
104e388608SAndre Przywara *     modify it under the terms of the GNU General Public License as
114e388608SAndre Przywara *     published by the Free Software Foundation; either version 2 of the
124e388608SAndre Przywara *     License, or (at your option) any later version.
134e388608SAndre Przywara *
144e388608SAndre Przywara *     This library is distributed in the hope that it will be useful,
154e388608SAndre Przywara *     but WITHOUT ANY WARRANTY; without even the implied warranty of
164e388608SAndre Przywara *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
174e388608SAndre Przywara *     GNU General Public License for more details.
184e388608SAndre Przywara *
194e388608SAndre Przywara * Or, alternatively,
204e388608SAndre Przywara *
214e388608SAndre Przywara *  b) Permission is hereby granted, free of charge, to any person
224e388608SAndre Przywara *     obtaining a copy of this software and associated documentation
234e388608SAndre Przywara *     files (the "Software"), to deal in the Software without
244e388608SAndre Przywara *     restriction, including without limitation the rights to use,
254e388608SAndre Przywara *     copy, modify, merge, publish, distribute, sublicense, and/or
264e388608SAndre Przywara *     sell copies of the Software, and to permit persons to whom the
274e388608SAndre Przywara *     Software is furnished to do so, subject to the following
284e388608SAndre Przywara *     conditions:
294e388608SAndre Przywara *
304e388608SAndre Przywara *     The above copyright notice and this permission notice shall be
314e388608SAndre Przywara *     included in all copies or substantial portions of the Software.
324e388608SAndre Przywara *
334e388608SAndre Przywara *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
344e388608SAndre Przywara *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
354e388608SAndre Przywara *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
364e388608SAndre Przywara *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
374e388608SAndre Przywara *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
384e388608SAndre Przywara *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
394e388608SAndre Przywara *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
404e388608SAndre Przywara *     OTHER DEALINGS IN THE SOFTWARE.
414e388608SAndre Przywara */
424e388608SAndre Przywara
434e388608SAndre Przywara#include "sun50i-a64-pine64.dts"
444e388608SAndre Przywara
454e388608SAndre Przywara/ {
464e388608SAndre Przywara	model = "Pine64+";
474e388608SAndre Przywara	compatible = "pine64,pine64-plus", "allwinner,sun50i-a64";
484e388608SAndre Przywara
4994dcfdc7SCorentin Labbe	/* TODO: Camera, touchscreen, etc. */
5094dcfdc7SCorentin Labbe};
5194f44288SCorentin Labbe
5294f44288SCorentin Labbe&emac {
5394f44288SCorentin Labbe	pinctrl-names = "default";
5494f44288SCorentin Labbe	pinctrl-0 = <&rgmii_pins>;
5594f44288SCorentin Labbe	phy-mode = "rgmii";
5694f44288SCorentin Labbe	phy-handle = <&ext_rgmii_phy>;
5794f44288SCorentin Labbe	status = "okay";
5894f44288SCorentin Labbe};
5994f44288SCorentin Labbe
6094f44288SCorentin Labbe&mdio {
6194f44288SCorentin Labbe	ext_rgmii_phy: ethernet-phy@1 {
6294f44288SCorentin Labbe		compatible = "ethernet-phy-ieee802.3-c22";
6394f44288SCorentin Labbe		reg = <1>;
6494f44288SCorentin Labbe	};
6594f44288SCorentin Labbe};
6625113667SJernej Skrabec
6725113667SJernej Skrabec&reg_dc1sw {
6825113667SJernej Skrabec	/*
6925113667SJernej Skrabec	 * Ethernet PHY needs 30ms to properly power up and some more
7025113667SJernej Skrabec	 * to initialize. 100ms should be plenty of time to finish
7125113667SJernej Skrabec	 * whole process.
7225113667SJernej Skrabec	 */
7325113667SJernej Skrabec	regulator-enable-ramp-delay = <100000>;
7425113667SJernej Skrabec};
75