1868e3715SJagan Teki/*
2868e3715SJagan Teki * Copyright (C) 2017 Jagan Teki <jteki@openedev.com>
3868e3715SJagan Teki *
4868e3715SJagan Teki * This file is dual-licensed: you can use it either under the terms
5868e3715SJagan Teki * of the GPL or the X11 license, at your option. Note that this dual
6868e3715SJagan Teki * licensing only applies to this file, and not this project as a
7868e3715SJagan Teki * whole.
8868e3715SJagan Teki *
9868e3715SJagan Teki *  a) This library is free software; you can redistribute it and/or
10868e3715SJagan Teki *     modify it under the terms of the GNU General Public License as
11868e3715SJagan Teki *     published by the Free Software Foundation; either version 2 of the
12868e3715SJagan Teki *     License, or (at your option) any later version.
13868e3715SJagan Teki *
14868e3715SJagan Teki *     This library is distributed in the hope that it will be useful,
15868e3715SJagan Teki *     but WITHOUT ANY WARRANTY; without even the implied warranty of
16868e3715SJagan Teki *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17868e3715SJagan Teki *     GNU General Public License for more details.
18868e3715SJagan Teki *
19868e3715SJagan Teki * Or, alternatively,
20868e3715SJagan Teki *
21868e3715SJagan Teki *  b) Permission is hereby granted, free of charge, to any person
22868e3715SJagan Teki *     obtaining a copy of this software and associated documentation
23868e3715SJagan Teki *     files (the "Software"), to deal in the Software without
24868e3715SJagan Teki *     restriction, including without limitation the rights to use,
25868e3715SJagan Teki *     copy, modify, merge, publish, distribute, sublicense, and/or
26868e3715SJagan Teki *     sell copies of the Software, and to permit persons to whom the
27868e3715SJagan Teki *     Software is furnished to do so, subject to the following
28868e3715SJagan Teki *     conditions:
29868e3715SJagan Teki *
30868e3715SJagan Teki *     The above copyright notice and this permission notice shall be
31868e3715SJagan Teki *     included in all copies or substantial portions of the Software.
32868e3715SJagan Teki *
33868e3715SJagan Teki *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
34868e3715SJagan Teki *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
35868e3715SJagan Teki *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
36868e3715SJagan Teki *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
37868e3715SJagan Teki *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
38868e3715SJagan Teki *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
39868e3715SJagan Teki *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
40868e3715SJagan Teki *     OTHER DEALINGS IN THE SOFTWARE.
41868e3715SJagan Teki */
42868e3715SJagan Teki
43868e3715SJagan Teki/dts-v1/;
44868e3715SJagan Teki
45868e3715SJagan Teki#include "sun50i-h5.dtsi"
46868e3715SJagan Teki
47868e3715SJagan Teki#include <dt-bindings/gpio/gpio.h>
48868e3715SJagan Teki
49868e3715SJagan Teki/ {
50868e3715SJagan Teki	model = "OrangePi Prime";
51868e3715SJagan Teki	compatible = "xunlong,orangepi-prime", "allwinner,sun50i-h5";
52868e3715SJagan Teki
53868e3715SJagan Teki	aliases {
54868e3715SJagan Teki		serial0 = &uart0;
55868e3715SJagan Teki	};
56868e3715SJagan Teki
57868e3715SJagan Teki	chosen {
58868e3715SJagan Teki		stdout-path = "serial0:115200n8";
59868e3715SJagan Teki	};
60868e3715SJagan Teki
61868e3715SJagan Teki	memory {
62868e3715SJagan Teki		reg = <0x40000000 0x80000000>;
63868e3715SJagan Teki	};
64868e3715SJagan Teki
65868e3715SJagan Teki	soc {
66868e3715SJagan Teki		reg_vcc3v3: vcc3v3 {
67868e3715SJagan Teki			compatible = "regulator-fixed";
68868e3715SJagan Teki			regulator-name = "vcc3v3";
69868e3715SJagan Teki			regulator-min-microvolt = <3300000>;
70868e3715SJagan Teki			regulator-max-microvolt = <3300000>;
71868e3715SJagan Teki		};
72868e3715SJagan Teki	};
73868e3715SJagan Teki};
74868e3715SJagan Teki
75*23cd00abSJagan Teki&ehci1 {
76*23cd00abSJagan Teki	status = "okay";
77*23cd00abSJagan Teki};
78*23cd00abSJagan Teki
79868e3715SJagan Teki&mmc0 {
80868e3715SJagan Teki	compatible = "allwinner,sun50i-h5-mmc",
81868e3715SJagan Teki		     "allwinner,sun50i-a64-mmc",
82868e3715SJagan Teki		     "allwinner,sun5i-a13-mmc";
83868e3715SJagan Teki	pinctrl-names = "default";
84868e3715SJagan Teki	pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin>;
85868e3715SJagan Teki	vmmc-supply = <&reg_vcc3v3>;
86868e3715SJagan Teki	bus-width = <4>;
87868e3715SJagan Teki	cd-gpios = <&pio 5 6 GPIO_ACTIVE_HIGH>;
88868e3715SJagan Teki	cd-inverted;
89868e3715SJagan Teki	status = "okay";
90868e3715SJagan Teki};
91868e3715SJagan Teki
92*23cd00abSJagan Teki&ohci1 {
93*23cd00abSJagan Teki	status = "okay";
94*23cd00abSJagan Teki};
95*23cd00abSJagan Teki
96868e3715SJagan Teki&uart0 {
97868e3715SJagan Teki	pinctrl-names = "default";
98868e3715SJagan Teki	pinctrl-0 = <&uart0_pins_a>;
99868e3715SJagan Teki	status = "okay";
100868e3715SJagan Teki};
101868e3715SJagan Teki
102868e3715SJagan Teki&usbphy {
103868e3715SJagan Teki	status = "okay";
104868e3715SJagan Teki};
105