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