196219b00SIcenowy Zheng/*
296219b00SIcenowy Zheng * Copyright (c) 2017 Icenowy Zheng <icenowy@aosc.xyz>
396219b00SIcenowy Zheng *
496219b00SIcenowy Zheng * Based on sun50i-a64-pine64.dts, which is:
596219b00SIcenowy Zheng *   Copyright (c) 2016 ARM Ltd.
696219b00SIcenowy Zheng *
796219b00SIcenowy Zheng * This file is dual-licensed: you can use it either under the terms
896219b00SIcenowy Zheng * of the GPL or the X11 license, at your option. Note that this dual
996219b00SIcenowy Zheng * licensing only applies to this file, and not this project as a
1096219b00SIcenowy Zheng * whole.
1196219b00SIcenowy Zheng *
1296219b00SIcenowy Zheng *  a) This library is free software; you can redistribute it and/or
1396219b00SIcenowy Zheng *     modify it under the terms of the GNU General Public License as
1496219b00SIcenowy Zheng *     published by the Free Software Foundation; either version 2 of the
1596219b00SIcenowy Zheng *     License, or (at your option) any later version.
1696219b00SIcenowy Zheng *
1796219b00SIcenowy Zheng *     This library is distributed in the hope that it will be useful,
1896219b00SIcenowy Zheng *     but WITHOUT ANY WARRANTY; without even the implied warranty of
1996219b00SIcenowy Zheng *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
2096219b00SIcenowy Zheng *     GNU General Public License for more details.
2196219b00SIcenowy Zheng *
2296219b00SIcenowy Zheng * Or, alternatively,
2396219b00SIcenowy Zheng *
2496219b00SIcenowy Zheng *  b) Permission is hereby granted, free of charge, to any person
2596219b00SIcenowy Zheng *     obtaining a copy of this software and associated documentation
2696219b00SIcenowy Zheng *     files (the "Software"), to deal in the Software without
2796219b00SIcenowy Zheng *     restriction, including without limitation the rights to use,
2896219b00SIcenowy Zheng *     copy, modify, merge, publish, distribute, sublicense, and/or
2996219b00SIcenowy Zheng *     sell copies of the Software, and to permit persons to whom the
3096219b00SIcenowy Zheng *     Software is furnished to do so, subject to the following
3196219b00SIcenowy Zheng *     conditions:
3296219b00SIcenowy Zheng *
3396219b00SIcenowy Zheng *     The above copyright notice and this permission notice shall be
3496219b00SIcenowy Zheng *     included in all copies or substantial portions of the Software.
3596219b00SIcenowy Zheng *
3696219b00SIcenowy Zheng *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
3796219b00SIcenowy Zheng *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
3896219b00SIcenowy Zheng *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
3996219b00SIcenowy Zheng *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
4096219b00SIcenowy Zheng *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
4196219b00SIcenowy Zheng *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
4296219b00SIcenowy Zheng *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
4396219b00SIcenowy Zheng *     OTHER DEALINGS IN THE SOFTWARE.
4496219b00SIcenowy Zheng */
4596219b00SIcenowy Zheng
4696219b00SIcenowy Zheng/dts-v1/;
4796219b00SIcenowy Zheng
4896219b00SIcenowy Zheng#include "sun50i-a64-sopine.dtsi"
4996219b00SIcenowy Zheng
5096219b00SIcenowy Zheng/ {
5196219b00SIcenowy Zheng	model = "SoPine with baseboard";
5296219b00SIcenowy Zheng	compatible = "pine64,sopine-baseboard", "pine64,sopine",
5396219b00SIcenowy Zheng		     "allwinner,sun50i-a64";
5496219b00SIcenowy Zheng
5596219b00SIcenowy Zheng	aliases {
5696219b00SIcenowy Zheng		serial0 = &uart0;
5796219b00SIcenowy Zheng	};
5896219b00SIcenowy Zheng
5996219b00SIcenowy Zheng	chosen {
6096219b00SIcenowy Zheng		stdout-path = "serial0:115200n8";
6196219b00SIcenowy Zheng	};
6296219b00SIcenowy Zheng
6396219b00SIcenowy Zheng	reg_vcc1v8: vcc1v8 {
6496219b00SIcenowy Zheng		compatible = "regulator-fixed";
6596219b00SIcenowy Zheng		regulator-name = "vcc1v8";
6696219b00SIcenowy Zheng		regulator-min-microvolt = <1800000>;
6796219b00SIcenowy Zheng		regulator-max-microvolt = <1800000>;
6896219b00SIcenowy Zheng	};
6996219b00SIcenowy Zheng};
7096219b00SIcenowy Zheng
7196219b00SIcenowy Zheng&ehci0 {
7296219b00SIcenowy Zheng	status = "okay";
7396219b00SIcenowy Zheng};
7496219b00SIcenowy Zheng
7596219b00SIcenowy Zheng&ehci1 {
7696219b00SIcenowy Zheng	status = "okay";
7796219b00SIcenowy Zheng};
7896219b00SIcenowy Zheng
7996219b00SIcenowy Zheng&emac {
8096219b00SIcenowy Zheng	pinctrl-names = "default";
8196219b00SIcenowy Zheng	pinctrl-0 = <&rgmii_pins>;
8296219b00SIcenowy Zheng	phy-mode = "rgmii";
8396219b00SIcenowy Zheng	phy-handle = <&ext_rgmii_phy>;
8496219b00SIcenowy Zheng	status = "okay";
8596219b00SIcenowy Zheng};
8696219b00SIcenowy Zheng
8796219b00SIcenowy Zheng&mdio {
8896219b00SIcenowy Zheng	ext_rgmii_phy: ethernet-phy@1 {
8996219b00SIcenowy Zheng		compatible = "ethernet-phy-ieee802.3-c22";
9096219b00SIcenowy Zheng		reg = <1>;
9196219b00SIcenowy Zheng	};
9296219b00SIcenowy Zheng};
9396219b00SIcenowy Zheng
9496219b00SIcenowy Zheng&mmc2 {
9596219b00SIcenowy Zheng	pinctrl-names = "default";
9696219b00SIcenowy Zheng	pinctrl-0 = <&mmc2_pins>;
9796219b00SIcenowy Zheng	vmmc-supply = <&reg_vcc3v3>;
9896219b00SIcenowy Zheng	vqmmc-supply = <&reg_vcc1v8>;
9996219b00SIcenowy Zheng	bus-width = <8>;
10096219b00SIcenowy Zheng	non-removable;
10196219b00SIcenowy Zheng	cap-mmc-hw-reset;
10296219b00SIcenowy Zheng	status = "okay";
10396219b00SIcenowy Zheng};
10496219b00SIcenowy Zheng
10596219b00SIcenowy Zheng&ohci0 {
10696219b00SIcenowy Zheng	status = "okay";
10796219b00SIcenowy Zheng};
10896219b00SIcenowy Zheng
10996219b00SIcenowy Zheng&ohci1 {
11096219b00SIcenowy Zheng	status = "okay";
11196219b00SIcenowy Zheng};
11296219b00SIcenowy Zheng
11396219b00SIcenowy Zheng&uart0 {
11496219b00SIcenowy Zheng	pinctrl-names = "default";
11596219b00SIcenowy Zheng	pinctrl-0 = <&uart0_pins_a>;
11696219b00SIcenowy Zheng	status = "okay";
11796219b00SIcenowy Zheng};
11896219b00SIcenowy Zheng
11996219b00SIcenowy Zheng&usb_otg {
12096219b00SIcenowy Zheng	dr_mode = "host";
12196219b00SIcenowy Zheng	status = "okay";
12296219b00SIcenowy Zheng};
12396219b00SIcenowy Zheng
12496219b00SIcenowy Zheng&usbphy {
12596219b00SIcenowy Zheng	status = "okay";
12696219b00SIcenowy Zheng};
127