xref: /rk3399_rockchip-uboot/arch/arm/dts/sun50i-a64-orangepi-win.dts (revision ebba9d1daf7745483c8078bdae18875a84df5bc1)
1*bdf95773SJagan Teki/*
2*bdf95773SJagan Teki * Copyright (C) 2017 Jagan Teki <jteki@openedev.com>
3*bdf95773SJagan Teki *
4*bdf95773SJagan Teki * This file is dual-licensed: you can use it either under the terms
5*bdf95773SJagan Teki * of the GPL or the X11 license, at your option. Note that this dual
6*bdf95773SJagan Teki * licensing only applies to this file, and not this project as a
7*bdf95773SJagan Teki * whole.
8*bdf95773SJagan Teki *
9*bdf95773SJagan Teki *  a) This library is free software; you can redistribute it and/or
10*bdf95773SJagan Teki *     modify it under the terms of the GNU General Public License as
11*bdf95773SJagan Teki *     published by the Free Software Foundation; either version 2 of the
12*bdf95773SJagan Teki *     License, or (at your option) any later version.
13*bdf95773SJagan Teki *
14*bdf95773SJagan Teki *     This library is distributed in the hope that it will be useful,
15*bdf95773SJagan Teki *     but WITHOUT ANY WARRANTY; without even the implied warranty of
16*bdf95773SJagan Teki *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17*bdf95773SJagan Teki *     GNU General Public License for more details.
18*bdf95773SJagan Teki *
19*bdf95773SJagan Teki * Or, alternatively,
20*bdf95773SJagan Teki *
21*bdf95773SJagan Teki *  b) Permission is hereby granted, free of charge, to any person
22*bdf95773SJagan Teki *     obtaining a copy of this software and associated documentation
23*bdf95773SJagan Teki *     files (the "Software"), to deal in the Software without
24*bdf95773SJagan Teki *     restriction, including without limitation the rights to use,
25*bdf95773SJagan Teki *     copy, modify, merge, publish, distribute, sublicense, and/or
26*bdf95773SJagan Teki *     sell copies of the Software, and to permit persons to whom the
27*bdf95773SJagan Teki *     Software is furnished to do so, subject to the following
28*bdf95773SJagan Teki *     conditions:
29*bdf95773SJagan Teki *
30*bdf95773SJagan Teki *     The above copyright notice and this permission notice shall be
31*bdf95773SJagan Teki *     included in all copies or substantial portions of the Software.
32*bdf95773SJagan Teki *
33*bdf95773SJagan Teki *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
34*bdf95773SJagan Teki *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
35*bdf95773SJagan Teki *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
36*bdf95773SJagan Teki *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
37*bdf95773SJagan Teki *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
38*bdf95773SJagan Teki *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
39*bdf95773SJagan Teki *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
40*bdf95773SJagan Teki *     OTHER DEALINGS IN THE SOFTWARE.
41*bdf95773SJagan Teki */
42*bdf95773SJagan Teki
43*bdf95773SJagan Teki/dts-v1/;
44*bdf95773SJagan Teki
45*bdf95773SJagan Teki#include "sun50i-a64.dtsi"
46*bdf95773SJagan Teki
47*bdf95773SJagan Teki#include <dt-bindings/gpio/gpio.h>
48*bdf95773SJagan Teki
49*bdf95773SJagan Teki/ {
50*bdf95773SJagan Teki	model = "OrangePi Win/Win Plus";
51*bdf95773SJagan Teki	compatible = "xunlong,orangepi-win", "allwinner,sun50i-a64";
52*bdf95773SJagan Teki
53*bdf95773SJagan Teki	aliases {
54*bdf95773SJagan Teki		serial0 = &uart0;
55*bdf95773SJagan Teki	};
56*bdf95773SJagan Teki
57*bdf95773SJagan Teki	chosen {
58*bdf95773SJagan Teki		stdout-path = "serial0:115200n8";
59*bdf95773SJagan Teki	};
60*bdf95773SJagan Teki
61*bdf95773SJagan Teki	reg_vcc3v3: vcc3v3 {
62*bdf95773SJagan Teki		compatible = "regulator-fixed";
63*bdf95773SJagan Teki		regulator-name = "vcc3v3";
64*bdf95773SJagan Teki		regulator-min-microvolt = <3300000>;
65*bdf95773SJagan Teki		regulator-max-microvolt = <3300000>;
66*bdf95773SJagan Teki	};
67*bdf95773SJagan Teki};
68*bdf95773SJagan Teki
69*bdf95773SJagan Teki&ehci1 {
70*bdf95773SJagan Teki       status = "okay";
71*bdf95773SJagan Teki};
72*bdf95773SJagan Teki
73*bdf95773SJagan Teki&mmc0 {
74*bdf95773SJagan Teki	pinctrl-names = "default";
75*bdf95773SJagan Teki	pinctrl-0 = <&mmc0_pins>;
76*bdf95773SJagan Teki	vmmc-supply = <&reg_vcc3v3>;
77*bdf95773SJagan Teki	cd-gpios = <&pio 5 6 GPIO_ACTIVE_HIGH>;
78*bdf95773SJagan Teki	cd-inverted;
79*bdf95773SJagan Teki	status = "okay";
80*bdf95773SJagan Teki};
81*bdf95773SJagan Teki
82*bdf95773SJagan Teki&ohci1 {
83*bdf95773SJagan Teki       status = "okay";
84*bdf95773SJagan Teki};
85*bdf95773SJagan Teki
86*bdf95773SJagan Teki&uart0 {
87*bdf95773SJagan Teki	pinctrl-names = "default";
88*bdf95773SJagan Teki	pinctrl-0 = <&uart0_pins_a>;
89*bdf95773SJagan Teki	status = "okay";
90*bdf95773SJagan Teki};
91*bdf95773SJagan Teki
92*bdf95773SJagan Teki&usbphy {
93*bdf95773SJagan Teki       status = "okay";
94*bdf95773SJagan Teki};
95