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 = "hdmi-connector";
67 hdmi_con_in: endpoint {
68 remote-endpoint = <&hdmi_out_con>;
74 compatible = "gpio-leds";
77 label = "bananapi:red:pwr";
78 gpios = <&pio 7 20 GPIO_ACTIVE_HIGH>;
83 label = "bananapi:green:user";
84 gpios = <&pio 7 21 GPIO_ACTIVE_HIGH>;
88 label = "bananapi:blue:user";
89 gpios = <&pio 7 22 GPIO_ACTIVE_HIGH>;
94 compatible = "regulator-fixed";
95 regulator-name = "vcc5v0";
96 regulator-min-microvolt = <5000000>;
97 regulator-max-microvolt = <5000000>;
98 gpio = <&pio 7 23 GPIO_ACTIVE_HIGH>; /* PH23 */
102 wifi_pwrseq: wifi_pwrseq {
103 compatible = "mmc-pwrseq-simple";
104 reset-gpios = <&pio 6 10 GPIO_ACTIVE_LOW>; /* PG10 WIFI_EN */
105 clocks = <&ccu CLK_OUTA>;
106 clock-names = "ext_clock";
111 ahci-supply = <®_dldo4>;
112 phy-supply = <®_eldo3>;
129 pinctrl-names = "default";
130 pinctrl-0 = <&gmac_rgmii_pins>;
131 phy-handle = <&phy1>;
133 phy-supply = <®_dc1sw>;
138 phy1: ethernet-phy@1 {
139 compatible = "ethernet-phy-ieee802.3-c22";
149 hdmi_out_con: endpoint {
150 remote-endpoint = <&hdmi_con_in>;
158 compatible = "x-powers,axp221";
160 interrupt-parent = <&nmi_intc>;
161 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
165 #include "axp22x.dtsi"
168 vmmc-supply = <®_dcdc1>;
170 cd-gpios = <&pio 7 13 GPIO_ACTIVE_LOW>; /* PH13 */
175 pinctrl-names = "default";
176 pinctrl-0 = <&mmc1_pg_pins>;
177 vmmc-supply = <®_dldo2>;
178 vqmmc-supply = <®_dldo1>;
179 mmc-pwrseq = <&wifi_pwrseq>;
186 vmmc-supply = <®_dcdc1>;
187 vqmmc-supply = <®_dcdc1>;
202 pinctrl-names = "default";
203 pinctrl-0 = <&clk_out_a_pin>;
208 regulator-min-microvolt = <2500000>;
209 regulator-max-microvolt = <2500000>;
210 regulator-name = "vcc-pa";
215 regulator-min-microvolt = <2700000>;
216 regulator-max-microvolt = <3300000>;
217 regulator-name = "avcc";
221 regulator-min-microvolt = <3000000>;
222 regulator-max-microvolt = <3000000>;
223 regulator-name = "vcc-gmac-phy";
228 regulator-min-microvolt = <3000000>;
229 regulator-max-microvolt = <3000000>;
230 regulator-name = "vcc-3v0";
235 regulator-min-microvolt = <1000000>;
236 regulator-max-microvolt = <1300000>;
237 regulator-name = "vdd-cpu";
242 regulator-min-microvolt = <1000000>;
243 regulator-max-microvolt = <1300000>;
244 regulator-name = "vdd-sys";
249 regulator-min-microvolt = <1500000>;
250 regulator-max-microvolt = <1500000>;
251 regulator-name = "vcc-dram";
255 regulator-min-microvolt = <1800000>;
256 regulator-max-microvolt = <3300000>;
257 regulator-name = "vcc-wifi-io";
261 * Our WiFi chip needs both DLDO2 and DLDO3 to be powered at the same
262 * time, with the two being in sync, to be able to meet maximum power
263 * consumption during transmits. Since this is not really supported
264 * right now, just use the two as always on, and we will fix it later.
269 regulator-min-microvolt = <3300000>;
270 regulator-max-microvolt = <3300000>;
271 regulator-name = "vcc-wifi";
276 regulator-min-microvolt = <3300000>;
277 regulator-max-microvolt = <3300000>;
278 regulator-name = "vcc-wifi-2";
282 regulator-min-microvolt = <2500000>;
283 regulator-max-microvolt = <2500000>;
284 regulator-name = "vdd2v5-sata";
288 regulator-min-microvolt = <1200000>;
289 regulator-max-microvolt = <1200000>;
290 regulator-name = "vdd1v2-sata";
298 pinctrl-names = "default";
299 pinctrl-0 = <&uart0_pb_pins>;
304 pinctrl-names = "default";
305 pinctrl-0 = <&uart3_pg_pins>, <&uart3_rts_cts_pg_pins>;
310 compatible = "brcm,bcm43438-bt";
311 clocks = <&ccu CLK_OUTA>;
313 vbat-supply = <®_dldo2>;
314 vddio-supply = <®_dldo1>;
315 device-wakeup-gpios = <&pio 6 11 GPIO_ACTIVE_HIGH>; /* PG11 */
316 /* TODO host wake line connected to PMIC GPIO pins */
317 shutdown-gpios = <&pio 7 12 GPIO_ACTIVE_HIGH>; /* PH12 */
318 max-speed = <1500000>;
323 usb1_vbus-supply = <®_vcc5v0>;
324 usb2_vbus-supply = <®_vcc5v0>;