xref: /freebsd-src/sys/contrib/device-tree/src/arm/allwinner/sun8i-h2-plus-orangepi-r1.dts (revision 7d0873ebb83b19ba1e8a89e679470d885efe12e3)
1f126890aSEmmanuel Vadot/*
2f126890aSEmmanuel Vadot * Copyright (C) 2017 Icenowy Zheng <icenowy@aosc.xyz>
3f126890aSEmmanuel Vadot *
4f126890aSEmmanuel Vadot * This file is dual-licensed: you can use it either under the terms
5f126890aSEmmanuel Vadot * of the GPL or the X11 license, at your option. Note that this dual
6f126890aSEmmanuel Vadot * licensing only applies to this file, and not this project as a
7f126890aSEmmanuel Vadot * whole.
8f126890aSEmmanuel Vadot *
9f126890aSEmmanuel Vadot *  a) This file is free software; you can redistribute it and/or
10f126890aSEmmanuel Vadot *     modify it under the terms of the GNU General Public License as
11f126890aSEmmanuel Vadot *     published by the Free Software Foundation; either version 2 of the
12f126890aSEmmanuel Vadot *     License, or (at your option) any later version.
13f126890aSEmmanuel Vadot *
14f126890aSEmmanuel Vadot *     This file is distributed in the hope that it will be useful,
15f126890aSEmmanuel Vadot *     but WITHOUT ANY WARRANTY; without even the implied warranty of
16f126890aSEmmanuel Vadot *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17f126890aSEmmanuel Vadot *     GNU General Public License for more details.
18f126890aSEmmanuel Vadot *
19f126890aSEmmanuel Vadot * Or, alternatively,
20f126890aSEmmanuel Vadot *
21f126890aSEmmanuel Vadot *  b) Permission is hereby granted, free of charge, to any person
22f126890aSEmmanuel Vadot *     obtaining a copy of this software and associated documentation
23f126890aSEmmanuel Vadot *     files (the "Software"), to deal in the Software without
24f126890aSEmmanuel Vadot *     restriction, including without limitation the rights to use,
25f126890aSEmmanuel Vadot *     copy, modify, merge, publish, distribute, sublicense, and/or
26f126890aSEmmanuel Vadot *     sell copies of the Software, and to permit persons to whom the
27f126890aSEmmanuel Vadot *     Software is furnished to do so, subject to the following
28f126890aSEmmanuel Vadot *     conditions:
29f126890aSEmmanuel Vadot *
30f126890aSEmmanuel Vadot *     The above copyright notice and this permission notice shall be
31f126890aSEmmanuel Vadot *     included in all copies or substantial portions of the Software.
32f126890aSEmmanuel Vadot *
33f126890aSEmmanuel Vadot *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
34f126890aSEmmanuel Vadot *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
35f126890aSEmmanuel Vadot *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
36f126890aSEmmanuel Vadot *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
37f126890aSEmmanuel Vadot *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
38f126890aSEmmanuel Vadot *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
39f126890aSEmmanuel Vadot *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
40f126890aSEmmanuel Vadot *     OTHER DEALINGS IN THE SOFTWARE.
41f126890aSEmmanuel Vadot */
42f126890aSEmmanuel Vadot
43f126890aSEmmanuel Vadot/* Orange Pi R1 is based on Orange Pi Zero design */
44f126890aSEmmanuel Vadot#include "sun8i-h2-plus-orangepi-zero.dts"
45f126890aSEmmanuel Vadot
46*7d0873ebSEmmanuel Vadot/delete-node/ &reg_vcc_wifi;
47*7d0873ebSEmmanuel Vadot
48f126890aSEmmanuel Vadot/ {
49f126890aSEmmanuel Vadot	model = "Xunlong Orange Pi R1";
50f126890aSEmmanuel Vadot	compatible = "xunlong,orangepi-r1", "allwinner,sun8i-h2-plus";
51f126890aSEmmanuel Vadot
52f126890aSEmmanuel Vadot
53f126890aSEmmanuel Vadot	/*
54f126890aSEmmanuel Vadot	 * Ths pin of this regulator is the same with the Wi-Fi extra
55f126890aSEmmanuel Vadot	 * regulator on the original Zero. However it's used for USB
56f126890aSEmmanuel Vadot	 * Ethernet rather than the Wi-Fi now.
57f126890aSEmmanuel Vadot	 */
58f126890aSEmmanuel Vadot	reg_vcc_usb_eth: reg-vcc-usb-ethernet {
59f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
60f126890aSEmmanuel Vadot		regulator-min-microvolt = <3300000>;
61f126890aSEmmanuel Vadot		regulator-max-microvolt = <3300000>;
62f126890aSEmmanuel Vadot		regulator-name = "vcc-usb-ethernet";
63f126890aSEmmanuel Vadot		enable-active-high;
64f126890aSEmmanuel Vadot		gpio = <&pio 0 20 GPIO_ACTIVE_HIGH>;
65f126890aSEmmanuel Vadot	};
66f126890aSEmmanuel Vadot
67f126890aSEmmanuel Vadot	aliases {
68f126890aSEmmanuel Vadot		ethernet1 = &rtl8189etv;
69f126890aSEmmanuel Vadot	};
70f126890aSEmmanuel Vadot};
71f126890aSEmmanuel Vadot
72f126890aSEmmanuel Vadot&spi0 {
73f126890aSEmmanuel Vadot	status = "okay";
74f126890aSEmmanuel Vadot
75f126890aSEmmanuel Vadot	flash@0 {
76f126890aSEmmanuel Vadot		compatible = "mxicy,mx25l12805d", "jedec,spi-nor";
77f126890aSEmmanuel Vadot	};
78f126890aSEmmanuel Vadot};
79f126890aSEmmanuel Vadot
80f126890aSEmmanuel Vadot&ohci1 {
81f126890aSEmmanuel Vadot	/*
82f126890aSEmmanuel Vadot	 * RTL8152B USB-Ethernet adapter is connected to USB1,
83f126890aSEmmanuel Vadot	 * and it's a USB 2.0 device. So the OHCI1 controller
84f126890aSEmmanuel Vadot	 * can be left disabled.
85f126890aSEmmanuel Vadot	 */
86f126890aSEmmanuel Vadot	status = "disabled";
87f126890aSEmmanuel Vadot};
88f126890aSEmmanuel Vadot
89f126890aSEmmanuel Vadot&mmc1 {
90f126890aSEmmanuel Vadot	vmmc-supply = <&reg_vcc3v3>;
91f126890aSEmmanuel Vadot	vqmmc-supply = <&reg_vcc3v3>;
92f126890aSEmmanuel Vadot
93*7d0873ebSEmmanuel Vadot	rtl8189etv: wifi@1 {
94f126890aSEmmanuel Vadot		reg = <1>;
95f126890aSEmmanuel Vadot	};
96f126890aSEmmanuel Vadot};
97f126890aSEmmanuel Vadot
98f126890aSEmmanuel Vadot&usbphy {
99f126890aSEmmanuel Vadot	usb1_vbus-supply = <&reg_vcc_usb_eth>;
100f126890aSEmmanuel Vadot};
101