2 * Copyright 2017 Chen-Yu Tsai
4 * Chen-Yu Tsai <wens@csie.org>
6 * This file is dual-licensed: you can use it either under the terms
7 * of the GPL or the X11 license, at your option. Note that this dual
8 * licensing only applies to this file, and not this project as a
11 * a) This file is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License as
13 * published by the Free Software Foundation; either version 2 of the
14 * License, or (at your option) any later version.
16 * This file is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
23 * b) Permission is hereby granted, free of charge, to any person
24 * obtaining a copy of this software and associated documentation
25 * files (the "Software"), to deal in the Software without
26 * restriction, including without limitation the rights to use,
27 * copy, modify, merge, publish, distribute, sublicense, and/or
28 * sell copies of the Software, and to permit persons to whom the
29 * Software is furnished to do so, subject to the following
32 * The above copyright notice and this permission notice shall be
33 * included in all copies or substantial portions of the Software.
35 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
36 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
37 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
38 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
39 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
40 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
41 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
42 * OTHER DEALINGS IN THE SOFTWARE.
46 #include "sun8i-a83t.dtsi"
48 #include <dt-bindings/gpio/gpio.h>
51 model = "Banana Pi BPI-M3";
52 compatible = "sinovoip,bpi-m3", "allwinner,sun8i-a83t";
60 stdout-path = "serial0:115200n8";
64 compatible = "hdmi-connector";
68 hdmi_con_in: endpoint {
69 remote-endpoint = <&hdmi_out_con>;
75 compatible = "gpio-leds";
78 label = "bananapi-m3:blue:usr";
79 gpios = <&axp_gpio 1 GPIO_ACTIVE_HIGH>;
83 label = "bananapi-m3:green:usr";
84 gpios = <&axp_gpio 0 GPIO_ACTIVE_HIGH>;
88 reg_usb1_vbus: reg-usb1-vbus {
89 compatible = "regulator-fixed";
90 regulator-name = "usb1-vbus";
91 regulator-min-microvolt = <5000000>;
92 regulator-max-microvolt = <5000000>;
95 gpio = <&pio 3 24 GPIO_ACTIVE_HIGH>; /* PD24 */
98 wifi_pwrseq: wifi_pwrseq {
99 compatible = "mmc-pwrseq-simple";
100 clocks = <&ac100_rtc 1>;
101 clock-names = "ext_clock";
102 /* The WiFi low power clock must be 32768 Hz */
103 assigned-clocks = <&ac100_rtc 1>;
104 assigned-clock-rates = <32768>;
105 /* enables internal regulator and de-asserts reset */
106 reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 WL-PMU-EN */
110 * Power supply for the SATA disk, behind a USB-SATA bridge.
111 * Since it is a USB device, there is no consumer in the DT, so we
112 * have to keep this always on.
114 regulator-sata-disk-pwr {
115 compatible = "regulator-fixed";
116 regulator-name = "sata-disk-pwr";
117 regulator-min-microvolt = <5000000>;
118 regulator-max-microvolt = <5000000>;
121 gpio = <&pio 3 25 GPIO_ACTIVE_HIGH>; /* PD25 */
126 cpu-supply = <®_dcdc2>;
130 cpu-supply = <®_dcdc3>;
138 /* Terminus Tech FE 1.1s 4-port USB 2.0 hub here */
141 /* TODO GL830 USB-to-SATA bridge downstream w/ GPIO power controls */
145 pinctrl-names = "default";
146 pinctrl-0 = <&emac_rgmii_pins>;
147 phy-supply = <®_sw>;
148 phy-handle = <&rgmii_phy>;
149 phy-mode = "rgmii-id";
150 allwinner,rx-delay-ps = <700>;
151 allwinner,tx-delay-ps = <700>;
160 hdmi_out_con: endpoint {
161 remote-endpoint = <&hdmi_con_in>;
166 rgmii_phy: ethernet-phy@1 {
167 compatible = "ethernet-phy-ieee802.3-c22";
173 pinctrl-names = "default";
174 pinctrl-0 = <&mmc0_pins>;
175 vmmc-supply = <®_dcdc1>;
177 cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
182 vmmc-supply = <®_dldo1>;
183 vqmmc-supply = <®_dldo1>;
184 mmc-pwrseq = <&wifi_pwrseq>;
191 compatible = "brcm,bcm4329-fmac";
192 interrupt-parent = <&r_pio>;
193 interrupts = <0 3 IRQ_TYPE_LEVEL_LOW>;
194 interrupt-names = "host-wake";
199 pinctrl-names = "default";
200 pinctrl-0 = <&mmc2_8bit_emmc_pins>;
201 vmmc-supply = <®_dcdc1>;
202 vqmmc-supply = <®_dcdc1>;
210 clock-frequency = <3000000>;
218 compatible = "x-powers,axp813";
220 interrupt-parent = <&r_intc>;
221 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_LOW>;
222 eldoin-supply = <®_dcdc1>;
223 fldoin-supply = <®_dcdc5>;
224 swin-supply = <®_dcdc1>;
225 x-powers,drive-vbus-en;
229 compatible = "x-powers,ac100";
233 compatible = "x-powers,ac100-codec";
234 interrupt-parent = <&r_pio>;
235 interrupts = <0 11 IRQ_TYPE_LEVEL_LOW>; /* PL11 */
237 clock-output-names = "4M_adda";
241 compatible = "x-powers,ac100-rtc";
242 interrupt-parent = <&r_intc>;
243 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_LOW>;
244 clocks = <&ac100_codec>;
246 clock-output-names = "cko1_rtc",
253 #include "axp81x.dtsi"
259 &battery_power_supply {
265 regulator-min-microvolt = <1800000>;
266 regulator-max-microvolt = <1800000>;
267 regulator-name = "vcc-1v8";
272 regulator-min-microvolt = <1800000>;
273 regulator-max-microvolt = <1800000>;
274 regulator-name = "dram-pll";
279 regulator-min-microvolt = <3000000>;
280 regulator-max-microvolt = <3000000>;
281 regulator-name = "avcc";
285 /* schematics says 3.1V but FEX file says 3.3V */
287 regulator-min-microvolt = <3300000>;
288 regulator-max-microvolt = <3300000>;
289 regulator-name = "vcc-3v3";
294 regulator-min-microvolt = <700000>;
295 regulator-max-microvolt = <1100000>;
296 regulator-name = "vdd-cpua";
301 regulator-min-microvolt = <700000>;
302 regulator-max-microvolt = <1100000>;
303 regulator-name = "vdd-cpub";
307 regulator-min-microvolt = <700000>;
308 regulator-max-microvolt = <1100000>;
309 regulator-name = "vdd-gpu";
314 regulator-min-microvolt = <1200000>;
315 regulator-max-microvolt = <1200000>;
316 regulator-name = "vcc-dram";
321 regulator-min-microvolt = <900000>;
322 regulator-max-microvolt = <900000>;
323 regulator-name = "vdd-sys";
328 * This powers both the WiFi/BT module's main power, I/O supply,
329 * and external pull-ups on all the data lines. It should be set
330 * to the same voltage as the I/O supply (DCDC1 in this case) to
331 * avoid any leakage or mismatch.
333 regulator-min-microvolt = <3300000>;
334 regulator-max-microvolt = <3300000>;
335 regulator-name = "vcc-wifi";
340 regulator-min-microvolt = <3300000>;
341 regulator-max-microvolt = <3300000>;
342 regulator-name = "vcc-pd";
346 regulator-name = "usb0-vbus";
351 regulator-min-microvolt = <1080000>;
352 regulator-max-microvolt = <1320000>;
353 regulator-name = "vdd12-hsic";
358 * Despite the embedded CPUs core not being used in any way,
359 * this must remain on or the system will hang.
362 regulator-min-microvolt = <700000>;
363 regulator-max-microvolt = <1100000>;
364 regulator-name = "vdd-cpus";
368 regulator-name = "vcc-rtc";
373 * The PHY requires 20ms after all voltages
374 * are applied until core logic is ready and
375 * 30ms after the reset pin is de-asserted.
376 * Set a 100ms delay to account for PMIC
377 * ramp time and board traces.
379 regulator-enable-ramp-delay = <100000>;
380 regulator-name = "vcc-ephy";
384 pinctrl-names = "default";
385 pinctrl-0 = <&uart0_pb_pins>;
390 pinctrl-names = "default";
391 pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>;
396 compatible = "brcm,bcm43438-bt";
397 clocks = <&ac100_rtc 1>;
399 vbat-supply = <®_dldo1>;
400 vddio-supply = <®_dldo1>;
401 device-wakeup-gpios = <&pio 7 9 GPIO_ACTIVE_HIGH>; /* PH9 */
402 host-wakeup-gpios = <&r_pio 0 5 GPIO_ACTIVE_HIGH>; /* PL5 */
403 shutdown-gpios = <&r_pio 0 4 GPIO_ACTIVE_HIGH>; /* PL4 */
417 usb0_id_det-gpios = <&pio 7 11 GPIO_ACTIVE_HIGH>; /* PH11 */
418 usb0_vbus_power-supply = <&usb_power_supply>;
419 usb0_vbus-supply = <®_drivevbus>;
420 usb1_vbus-supply = <®_usb1_vbus>;