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