2 * Copyright 2016 Icenowy Zheng <icenowy@aosc.xyz>
4 * Based on sun5i-a13-olinuxino.dts, which is
5 * Copyright 2012 Maxime Ripard <maxime.ripard@free-electrons.com>
6 * Copyright 2013 Hans de Goede <hdegoede@redhat.com>
8 * This file is dual-licensed: you can use it either under the terms
9 * of the GPL or the X11 license, at your option. Note that this dual
10 * licensing only applies to this file, and not this project as a
13 * a) This file is free software; you can redistribute it and/or
14 * modify it under the terms of the GNU General Public License as
15 * published by the Free Software Foundation; either version 2 of the
16 * License, or (at your option) any later version.
18 * This file is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
25 * b) Permission is hereby granted, free of charge, to any person
26 * obtaining a copy of this software and associated documentation
27 * files (the "Software"), to deal in the Software without
28 * restriction, including without limitation the rights to use,
29 * copy, modify, merge, publish, distribute, sublicense, and/or
30 * sell copies of the Software, and to permit persons to whom the
31 * Software is furnished to do so, subject to the following
34 * The above copyright notice and this permission notice shall be
35 * included in all copies or substantial portions of the Software.
37 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
38 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
39 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
40 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
41 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
42 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
43 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
44 * OTHER DEALINGS IN THE SOFTWARE.
48 #include "sun5i-a13.dtsi"
49 #include "sunxi-common-regulators.dtsi"
51 #include <dt-bindings/gpio/gpio.h>
52 #include <dt-bindings/input/input.h>
55 model = "Lichee Pi One";
56 compatible = "licheepi,licheepi-one", "allwinner,sun5i-a13";
63 stdout-path = "serial0:115200n8";
67 compatible = "gpio-leds";
70 label ="licheepi:red:usr";
71 gpios = <&pio 2 5 GPIO_ACTIVE_LOW>;
75 label ="licheepi:green:usr";
76 gpios = <&pio 2 19 GPIO_ACTIVE_LOW>;
81 label ="licheepi:blue:usr";
82 gpios = <&pio 2 4 GPIO_ACTIVE_LOW>;
89 cpu-supply = <®_dcdc2>;
100 compatible = "x-powers,axp209";
104 interrupt-controller;
105 #interrupt-cells = <1>;
118 vref-supply = <®_ldo2>;
123 linux,code = <KEY_HOMEPAGE>;
130 vmmc-supply = <®_vcc3v3>;
137 pinctrl-names = "default";
138 pinctrl-0 = <&mmc2_4bit_pc_pins>;
139 vmmc-supply = <®_vcc3v3>;
153 #include "axp209.dtsi"
157 regulator-min-microvolt = <1000000>;
158 regulator-max-microvolt = <1500000>;
159 regulator-name = "vdd-cpu";
164 regulator-min-microvolt = <1000000>;
165 regulator-max-microvolt = <1400000>;
166 regulator-name = "vdd-int-dll";
170 regulator-name = "vdd-rtc";
175 regulator-min-microvolt = <3000000>;
176 regulator-max-microvolt = <3000000>;
177 regulator-name = "avcc";
181 regulator-min-microvolt = <1800000>;
182 regulator-max-microvolt = <1800000>;
183 regulator-name = "csi-1.8v";
187 regulator-min-microvolt = <2800000>;
188 regulator-max-microvolt = <2800000>;
189 regulator-name = "csi-2.8v";
193 gpio = <&pio 2 12 GPIO_ACTIVE_HIGH>; /* PC12 */
198 pinctrl-names = "default";
199 pinctrl-0 = <&uart1_pg_pins>;
209 usb0_id_det-gpios = <&pio 6 2 GPIO_ACTIVE_HIGH>; /* PG2 */
210 usb0_vbus_det-gpios = <&pio 6 1 GPIO_ACTIVE_HIGH>; /* PG1 */
211 usb0_vbus-supply = <®_usb0_vbus>;
212 usb1_vbus-supply = <®_vcc5v0>;