1*df3ebdc9SAndre Przywara/*
2*df3ebdc9SAndre Przywara * Copyright (c) 2017 Icenowy Zheng <icenowy@aosc.xyz>
3*df3ebdc9SAndre Przywara *
4*df3ebdc9SAndre Przywara * Based on sun50i-a64-pine64.dts, which is:
5*df3ebdc9SAndre Przywara *   Copyright (c) 2016 ARM Ltd.
6*df3ebdc9SAndre Przywara *
7*df3ebdc9SAndre Przywara * This file is dual-licensed: you can use it either under the terms
8*df3ebdc9SAndre Przywara * of the GPL or the X11 license, at your option. Note that this dual
9*df3ebdc9SAndre Przywara * licensing only applies to this file, and not this project as a
10*df3ebdc9SAndre Przywara * whole.
11*df3ebdc9SAndre Przywara *
12*df3ebdc9SAndre Przywara *  a) This library is free software; you can redistribute it and/or
13*df3ebdc9SAndre Przywara *     modify it under the terms of the GNU General Public License as
14*df3ebdc9SAndre Przywara *     published by the Free Software Foundation; either version 2 of the
15*df3ebdc9SAndre Przywara *     License, or (at your option) any later version.
16*df3ebdc9SAndre Przywara *
17*df3ebdc9SAndre Przywara *     This library is distributed in the hope that it will be useful,
18*df3ebdc9SAndre Przywara *     but WITHOUT ANY WARRANTY; without even the implied warranty of
19*df3ebdc9SAndre Przywara *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20*df3ebdc9SAndre Przywara *     GNU General Public License for more details.
21*df3ebdc9SAndre Przywara *
22*df3ebdc9SAndre Przywara * Or, alternatively,
23*df3ebdc9SAndre Przywara *
24*df3ebdc9SAndre Przywara *  b) Permission is hereby granted, free of charge, to any person
25*df3ebdc9SAndre Przywara *     obtaining a copy of this software and associated documentation
26*df3ebdc9SAndre Przywara *     files (the "Software"), to deal in the Software without
27*df3ebdc9SAndre Przywara *     restriction, including without limitation the rights to use,
28*df3ebdc9SAndre Przywara *     copy, modify, merge, publish, distribute, sublicense, and/or
29*df3ebdc9SAndre Przywara *     sell copies of the Software, and to permit persons to whom the
30*df3ebdc9SAndre Przywara *     Software is furnished to do so, subject to the following
31*df3ebdc9SAndre Przywara *     conditions:
32*df3ebdc9SAndre Przywara *
33*df3ebdc9SAndre Przywara *     The above copyright notice and this permission notice shall be
34*df3ebdc9SAndre Przywara *     included in all copies or substantial portions of the Software.
35*df3ebdc9SAndre Przywara *
36*df3ebdc9SAndre Przywara *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
37*df3ebdc9SAndre Przywara *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
38*df3ebdc9SAndre Przywara *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
39*df3ebdc9SAndre Przywara *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
40*df3ebdc9SAndre Przywara *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
41*df3ebdc9SAndre Przywara *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
42*df3ebdc9SAndre Przywara *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
43*df3ebdc9SAndre Przywara *     OTHER DEALINGS IN THE SOFTWARE.
44*df3ebdc9SAndre Przywara */
45*df3ebdc9SAndre Przywara
46*df3ebdc9SAndre Przywara/dts-v1/;
47*df3ebdc9SAndre Przywara
48*df3ebdc9SAndre Przywara#include "sun50i-a64-sopine.dtsi"
49*df3ebdc9SAndre Przywara
50*df3ebdc9SAndre Przywara/ {
51*df3ebdc9SAndre Przywara	model = "SoPine with baseboard";
52*df3ebdc9SAndre Przywara	compatible = "pine64,sopine-baseboard", "pine64,sopine",
53*df3ebdc9SAndre Przywara		     "allwinner,sun50i-a64";
54*df3ebdc9SAndre Przywara
55*df3ebdc9SAndre Przywara	aliases {
56*df3ebdc9SAndre Przywara		ethernet0 = &emac;
57*df3ebdc9SAndre Przywara		serial0 = &uart0;
58*df3ebdc9SAndre Przywara	};
59*df3ebdc9SAndre Przywara
60*df3ebdc9SAndre Przywara	chosen {
61*df3ebdc9SAndre Przywara		stdout-path = "serial0:115200n8";
62*df3ebdc9SAndre Przywara	};
63*df3ebdc9SAndre Przywara
64*df3ebdc9SAndre Przywara	reg_vcc1v8: vcc1v8 {
65*df3ebdc9SAndre Przywara		compatible = "regulator-fixed";
66*df3ebdc9SAndre Przywara		regulator-name = "vcc1v8";
67*df3ebdc9SAndre Przywara		regulator-min-microvolt = <1800000>;
68*df3ebdc9SAndre Przywara		regulator-max-microvolt = <1800000>;
69*df3ebdc9SAndre Przywara	};
70*df3ebdc9SAndre Przywara};
71*df3ebdc9SAndre Przywara
72*df3ebdc9SAndre Przywara&ehci0 {
73*df3ebdc9SAndre Przywara	status = "okay";
74*df3ebdc9SAndre Przywara};
75*df3ebdc9SAndre Przywara
76*df3ebdc9SAndre Przywara&ehci1 {
77*df3ebdc9SAndre Przywara	status = "okay";
78*df3ebdc9SAndre Przywara};
79*df3ebdc9SAndre Przywara
80*df3ebdc9SAndre Przywara&emac {
81*df3ebdc9SAndre Przywara	pinctrl-names = "default";
82*df3ebdc9SAndre Przywara	pinctrl-0 = <&rgmii_pins>;
83*df3ebdc9SAndre Przywara	phy-mode = "rgmii";
84*df3ebdc9SAndre Przywara	phy-handle = <&ext_rgmii_phy>;
85*df3ebdc9SAndre Przywara	phy-supply = <&reg_dc1sw>;
86*df3ebdc9SAndre Przywara	status = "okay";
87*df3ebdc9SAndre Przywara};
88*df3ebdc9SAndre Przywara
89*df3ebdc9SAndre Przywara&mdio {
90*df3ebdc9SAndre Przywara	ext_rgmii_phy: ethernet-phy@1 {
91*df3ebdc9SAndre Przywara		compatible = "ethernet-phy-ieee802.3-c22";
92*df3ebdc9SAndre Przywara		reg = <1>;
93*df3ebdc9SAndre Przywara	};
94*df3ebdc9SAndre Przywara};
95*df3ebdc9SAndre Przywara
96*df3ebdc9SAndre Przywara&mmc2 {
97*df3ebdc9SAndre Przywara	pinctrl-names = "default";
98*df3ebdc9SAndre Przywara	pinctrl-0 = <&mmc2_pins>;
99*df3ebdc9SAndre Przywara	vmmc-supply = <&reg_dcdc1>;
100*df3ebdc9SAndre Przywara	vqmmc-supply = <&reg_vcc1v8>;
101*df3ebdc9SAndre Przywara	bus-width = <8>;
102*df3ebdc9SAndre Przywara	non-removable;
103*df3ebdc9SAndre Przywara	cap-mmc-hw-reset;
104*df3ebdc9SAndre Przywara	status = "okay";
105*df3ebdc9SAndre Przywara};
106*df3ebdc9SAndre Przywara
107*df3ebdc9SAndre Przywara&ohci0 {
108*df3ebdc9SAndre Przywara	status = "okay";
109*df3ebdc9SAndre Przywara};
110*df3ebdc9SAndre Przywara
111*df3ebdc9SAndre Przywara&ohci1 {
112*df3ebdc9SAndre Przywara	status = "okay";
113*df3ebdc9SAndre Przywara};
114*df3ebdc9SAndre Przywara
115*df3ebdc9SAndre Przywara&reg_dc1sw {
116*df3ebdc9SAndre Przywara	regulator-name = "vcc-phy";
117*df3ebdc9SAndre Przywara};
118*df3ebdc9SAndre Przywara
119*df3ebdc9SAndre Przywara&reg_dldo1 {
120*df3ebdc9SAndre Przywara	regulator-min-microvolt = <3300000>;
121*df3ebdc9SAndre Przywara	regulator-max-microvolt = <3300000>;
122*df3ebdc9SAndre Przywara	regulator-name = "vcc-hdmi";
123*df3ebdc9SAndre Przywara};
124*df3ebdc9SAndre Przywara
125*df3ebdc9SAndre Przywara&reg_dldo2 {
126*df3ebdc9SAndre Przywara	regulator-min-microvolt = <3300000>;
127*df3ebdc9SAndre Przywara	regulator-max-microvolt = <3300000>;
128*df3ebdc9SAndre Przywara	regulator-name = "vcc-mipi";
129*df3ebdc9SAndre Przywara};
130*df3ebdc9SAndre Przywara
131*df3ebdc9SAndre Przywara&reg_dldo4 {
132*df3ebdc9SAndre Przywara	regulator-min-microvolt = <3300000>;
133*df3ebdc9SAndre Przywara	regulator-max-microvolt = <3300000>;
134*df3ebdc9SAndre Przywara	regulator-name = "vcc-wifi";
135*df3ebdc9SAndre Przywara};
136*df3ebdc9SAndre Przywara
137*df3ebdc9SAndre Przywara&uart0 {
138*df3ebdc9SAndre Przywara	pinctrl-names = "default";
139*df3ebdc9SAndre Przywara	pinctrl-0 = <&uart0_pins_a>;
140*df3ebdc9SAndre Przywara	status = "okay";
141*df3ebdc9SAndre Przywara};
142*df3ebdc9SAndre Przywara
143*df3ebdc9SAndre Przywara&usb_otg {
144*df3ebdc9SAndre Przywara	dr_mode = "host";
145*df3ebdc9SAndre Przywara	status = "okay";
146*df3ebdc9SAndre Przywara};
147*df3ebdc9SAndre Przywara
148*df3ebdc9SAndre Przywara&usbphy {
149*df3ebdc9SAndre Przywara	status = "okay";
150*df3ebdc9SAndre Przywara};
151