2 * Copyright (C) 2017 Icenowy Zheng <icenowy@aosc.io>
4 * This file is dual-licensed: you can use it either under the terms
5 * of the GPL or the X11 license, at your option. Note that this dual
6 * licensing only applies to this file, and not this project as a
9 * a) This file is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License as
11 * published by the Free Software Foundation; either version 2 of the
12 * License, or (at your option) any later version.
14 * This file is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
21 * b) Permission is hereby granted, free of charge, to any person
22 * obtaining a copy of this software and associated documentation
23 * files (the "Software"), to deal in the Software without
24 * restriction, including without limitation the rights to use,
25 * copy, modify, merge, publish, distribute, sublicense, and/or
26 * sell copies of the Software, and to permit persons to whom the
27 * Software is furnished to do so, subject to the following
30 * The above copyright notice and this permission notice shall be
31 * included in all copies or substantial portions of the Software.
33 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
34 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
35 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
36 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
37 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
38 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
39 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
40 * OTHER DEALINGS IN THE SOFTWARE.
44 #include "sun8i-r40.dtsi"
46 #include <dt-bindings/gpio/gpio.h>
49 model = "Banana Pi M2 Berry";
50 compatible = "sinovoip,bpi-m2-berry", "allwinner,sun8i-r40";
58 stdout-path = "serial0:115200n8";
62 compatible = "hdmi-connector";
66 hdmi_con_in: endpoint {
67 remote-endpoint = <&hdmi_out_con>;
73 compatible = "gpio-leds";
76 label = "bananapi:red:pwr";
77 gpios = <&pio 7 20 GPIO_ACTIVE_HIGH>;
82 label = "bananapi:green:user";
83 gpios = <&pio 7 21 GPIO_ACTIVE_HIGH>;
88 compatible = "regulator-fixed";
89 regulator-name = "vcc5v0";
90 regulator-min-microvolt = <5000000>;
91 regulator-max-microvolt = <5000000>;
92 gpio = <&pio 7 23 GPIO_ACTIVE_HIGH>; /* PH23 */
96 wifi_pwrseq: wifi_pwrseq {
97 compatible = "mmc-pwrseq-simple";
98 reset-gpios = <&pio 6 10 GPIO_ACTIVE_LOW>; /* PG10 WIFI_EN */
99 clocks = <&ccu CLK_OUTA>;
100 clock-names = "ext_clock";
105 ahci-supply = <®_dldo4>;
106 phy-supply = <®_eldo3>;
115 /* Terminus Tech FE 1.1s 4-port USB 2.0 hub here */
120 pinctrl-names = "default";
121 pinctrl-0 = <&gmac_rgmii_pins>;
122 phy-handle = <&phy1>;
123 phy-mode = "rgmii-id";
124 phy-supply = <®_dc1sw>;
129 phy1: ethernet-phy@1 {
130 compatible = "ethernet-phy-ieee802.3-c22";
140 hdmi_out_con: endpoint {
141 remote-endpoint = <&hdmi_con_in>;
149 compatible = "x-powers,axp221";
151 interrupt-parent = <&nmi_intc>;
152 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
156 #include "axp22x.dtsi"
159 vmmc-supply = <®_dcdc1>;
161 cd-gpios = <&pio 7 13 GPIO_ACTIVE_LOW>; /* PH13 */
166 pinctrl-names = "default";
167 pinctrl-0 = <&mmc1_pg_pins>;
168 vmmc-supply = <®_dldo2>;
169 vqmmc-supply = <®_dldo1>;
170 mmc-pwrseq = <&wifi_pwrseq>;
177 pinctrl-names = "default";
178 pinctrl-0 = <&clk_out_a_pin>;
179 vcc-pa-supply = <®_aldo2>;
180 vcc-pc-supply = <®_dcdc1>;
181 vcc-pd-supply = <®_dcdc1>;
182 vcc-pe-supply = <®_eldo1>;
183 vcc-pf-supply = <®_dcdc1>;
184 vcc-pg-supply = <®_dldo1>;
188 regulator-min-microvolt = <2500000>;
189 regulator-max-microvolt = <2500000>;
190 regulator-name = "vcc-pa";
195 regulator-min-microvolt = <2700000>;
196 regulator-max-microvolt = <3300000>;
197 regulator-name = "avcc";
201 regulator-min-microvolt = <3300000>;
202 regulator-max-microvolt = <3300000>;
203 regulator-name = "vcc-gmac-phy";
208 regulator-min-microvolt = <3300000>;
209 regulator-max-microvolt = <3300000>;
210 regulator-name = "vcc-3v3";
215 regulator-min-microvolt = <1000000>;
216 regulator-max-microvolt = <1300000>;
217 regulator-name = "vdd-cpu";
222 regulator-min-microvolt = <1000000>;
223 regulator-max-microvolt = <1300000>;
224 regulator-name = "vdd-sys";
229 regulator-min-microvolt = <1500000>;
230 regulator-max-microvolt = <1500000>;
231 regulator-name = "vcc-dram";
235 regulator-min-microvolt = <1800000>;
236 regulator-max-microvolt = <3300000>;
237 regulator-name = "vcc-wifi-io";
241 * Our WiFi chip needs both DLDO2 and DLDO3 to be powered at the same
242 * time, with the two being in sync, to be able to meet maximum power
243 * consumption during transmits. Since this is not really supported
244 * right now, just use the two as always on, and we will fix it later.
249 regulator-min-microvolt = <3300000>;
250 regulator-max-microvolt = <3300000>;
251 regulator-name = "vcc-wifi";
256 regulator-min-microvolt = <3300000>;
257 regulator-max-microvolt = <3300000>;
258 regulator-name = "vcc-wifi-2";
262 regulator-min-microvolt = <2500000>;
263 regulator-max-microvolt = <2500000>;
264 regulator-name = "vdd2v5-sata";
268 regulator-min-microvolt = <1200000>;
269 regulator-max-microvolt = <1200000>;
270 regulator-name = "vdd1v2-sata";
278 pinctrl-names = "default";
279 pinctrl-0 = <&uart0_pb_pins>;
284 pinctrl-names = "default";
285 pinctrl-0 = <&uart3_pg_pins>, <&uart3_rts_cts_pg_pins>;
290 compatible = "brcm,bcm43438-bt";
291 clocks = <&ccu CLK_OUTA>;
293 vbat-supply = <®_dldo2>;
294 vddio-supply = <®_dldo1>;
295 device-wakeup-gpios = <&pio 6 11 GPIO_ACTIVE_HIGH>; /* PG11 */
296 /* TODO host wake line connected to PMIC GPIO pins */
297 shutdown-gpios = <&pio 7 12 GPIO_ACTIVE_HIGH>; /* PH12 */
298 max-speed = <1500000>;
303 usb1_vbus-supply = <®_vcc5v0>;