2 * Copyright (C) 2017 Chen-Yu Tsai <wens@csie.org>
3 * Copyright (C) 2017 Icenowy Zheng <icenowy@aosc.io>
5 * This file is dual-licensed: you can use it either under the terms
6 * of the GPL or the X11 license, at your option. Note that this dual
7 * licensing only applies to this file, and not this project as a
10 * a) This file is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License as
12 * published by the Free Software Foundation; either version 2 of the
13 * License, or (at your option) any later version.
15 * This file is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
22 * b) Permission is hereby granted, free of charge, to any person
23 * obtaining a copy of this software and associated documentation
24 * files (the "Software"), to deal in the Software without
25 * restriction, including without limitation the rights to use,
26 * copy, modify, merge, publish, distribute, sublicense, and/or
27 * sell copies of the Software, and to permit persons to whom the
28 * Software is furnished to do so, subject to the following
31 * The above copyright notice and this permission notice shall be
32 * included in all copies or substantial portions of the Software.
34 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
35 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
36 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
37 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
38 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
39 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
40 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
41 * OTHER DEALINGS IN THE SOFTWARE.
45 #include "sun8i-r40.dtsi"
47 #include <dt-bindings/gpio/gpio.h>
50 model = "Banana Pi BPI-M2-Ultra";
51 compatible = "sinovoip,bpi-m2-ultra", "allwinner,sun8i-r40";
59 stdout-path = "serial0:115200n8";
63 compatible = "gpio-leds";
66 label = "bananapi:red:pwr";
67 gpios = <&pio 7 20 GPIO_ACTIVE_HIGH>;
72 label = "bananapi:green:user";
73 gpios = <&pio 7 21 GPIO_ACTIVE_HIGH>;
77 label = "bananapi:blue:user";
78 gpios = <&pio 7 22 GPIO_ACTIVE_HIGH>;
83 compatible = "regulator-fixed";
84 regulator-name = "vcc5v0";
85 regulator-min-microvolt = <5000000>;
86 regulator-max-microvolt = <5000000>;
87 gpio = <&pio 7 23 GPIO_ACTIVE_HIGH>; /* PH23 */
91 wifi_pwrseq: wifi_pwrseq {
92 compatible = "mmc-pwrseq-simple";
93 reset-gpios = <&pio 6 10 GPIO_ACTIVE_LOW>; /* PG10 WIFI_EN */
106 pinctrl-names = "default";
107 pinctrl-0 = <&gmac_rgmii_pins>;
108 phy-handle = <&phy1>;
110 phy-supply = <®_dc1sw>;
115 phy1: ethernet-phy@1 {
116 compatible = "ethernet-phy-ieee802.3-c22";
125 compatible = "x-powers,axp221";
127 interrupt-parent = <&nmi_intc>;
128 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
132 #include "axp22x.dtsi"
135 vmmc-supply = <®_dcdc1>;
137 cd-gpios = <&pio 7 13 GPIO_ACTIVE_HIGH>; /* PH13 */
143 pinctrl-names = "default";
144 pinctrl-0 = <&mmc1_pg_pins>;
145 vmmc-supply = <®_dldo2>;
146 vqmmc-supply = <®_dldo1>;
147 mmc-pwrseq = <&wifi_pwrseq>;
154 vmmc-supply = <®_dcdc1>;
155 vqmmc-supply = <®_dcdc1>;
171 regulator-min-microvolt = <2500000>;
172 regulator-max-microvolt = <2500000>;
173 regulator-name = "vcc-pa";
178 regulator-min-microvolt = <2700000>;
179 regulator-max-microvolt = <3300000>;
180 regulator-name = "avcc";
184 regulator-min-microvolt = <3000000>;
185 regulator-max-microvolt = <3000000>;
186 regulator-name = "vcc-gmac-phy";
191 regulator-min-microvolt = <3000000>;
192 regulator-max-microvolt = <3000000>;
193 regulator-name = "vcc-3v0";
198 regulator-min-microvolt = <1000000>;
199 regulator-max-microvolt = <1300000>;
200 regulator-name = "vdd-cpu";
205 regulator-min-microvolt = <1000000>;
206 regulator-max-microvolt = <1300000>;
207 regulator-name = "vdd-sys";
212 regulator-min-microvolt = <1500000>;
213 regulator-max-microvolt = <1500000>;
214 regulator-name = "vcc-dram";
218 regulator-min-microvolt = <1800000>;
219 regulator-max-microvolt = <3300000>;
220 regulator-name = "vcc-wifi-io";
224 regulator-min-microvolt = <3300000>;
225 regulator-max-microvolt = <3300000>;
226 regulator-name = "vcc-wifi";
230 pinctrl-names = "default";
231 pinctrl-0 = <&uart0_pb_pins>;
236 usb1_vbus-supply = <®_vcc5v0>;
237 usb2_vbus-supply = <®_vcc5v0>;