2 * Copyright 2015 Hans de Goede <hdegoede@redhat.com>
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 library 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 library 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 "sun6i-a31s.dtsi"
45 #include <dt-bindings/gpio/gpio.h>
48 model = "Sinovoip BPI-M2";
49 compatible = "sinovoip,bpi-m2", "allwinner,sun6i-a31s";
56 stdout-path = "serial0:115200n8";
60 compatible = "gpio-leds";
63 label = "bpi-m2:blue:usr";
64 gpios = <&pio 6 11 GPIO_ACTIVE_HIGH>; /* PG11 */
68 label = "bpi-m2:green:usr";
69 gpios = <&pio 6 10 GPIO_ACTIVE_HIGH>; /* PG10 */
73 label = "bpi-m2:red:usr";
74 gpios = <&pio 6 5 GPIO_ACTIVE_HIGH>; /* PG5 */
78 mmc2_pwrseq: mmc2_pwrseq {
79 compatible = "mmc-pwrseq-simple";
80 reset-gpios = <&r_pio 0 8 GPIO_ACTIVE_LOW>; /* PL8 WIFI_EN */
85 cpu-supply = <®_dcdc3>;
93 pinctrl-names = "default";
94 pinctrl-0 = <&gmac_rgmii_pins>;
97 phy-supply = <®_dldo1>;
102 pinctrl-names = "default";
103 pinctrl-0 = <&s_ir_rx_pin>;
108 phy1: ethernet-phy@1 {
110 reset-gpios = <&pio 0 21 GPIO_ACTIVE_LOW>; /* PA21 */
111 reset-assert-us = <10000>;
112 reset-deassert-us = <30000>;
117 vmmc-supply = <®_dcdc1>;
119 cd-gpios = <&pio 0 4 GPIO_ACTIVE_LOW>; /* PA4 */
124 pinctrl-names = "default";
125 pinctrl-0 = <&mmc2_4bit_pins>;
126 vmmc-supply = <®_aldo1>;
127 mmc-pwrseq = <&mmc2_pwrseq>;
134 compatible = "brcm,bcm4329-fmac";
135 interrupt-parent = <&r_pio>;
136 interrupts = <0 5 IRQ_TYPE_LEVEL_LOW>; /* PL5 */
137 interrupt-names = "host-wake";
149 compatible = "x-powers,axp221";
151 interrupt-parent = <&nmi_intc>;
152 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
153 eldoin-supply = <®_dcdc1>;
154 x-powers,drive-vbus-en;
158 #include "axp22x.dtsi"
161 regulator-min-microvolt = <3300000>;
162 regulator-max-microvolt = <3300000>;
163 regulator-name = "vcc-wifi";
168 regulator-min-microvolt = <2500000>;
169 regulator-max-microvolt = <2500000>;
170 regulator-name = "vcc-gmac";
175 regulator-min-microvolt = <3000000>;
176 regulator-max-microvolt = <3000000>;
177 regulator-name = "avcc";
182 regulator-min-microvolt = <700000>;
183 regulator-max-microvolt = <1320000>;
184 regulator-name = "vdd-cpus";
189 regulator-min-microvolt = <3000000>;
190 regulator-max-microvolt = <3000000>;
191 regulator-name = "vdd-3v0";
195 regulator-min-microvolt = <700000>;
196 regulator-max-microvolt = <1320000>;
197 regulator-name = "vdd-gpu";
202 regulator-min-microvolt = <700000>;
203 regulator-max-microvolt = <1320000>;
204 regulator-name = "vdd-cpu";
209 regulator-min-microvolt = <700000>;
210 regulator-max-microvolt = <1320000>;
211 regulator-name = "vdd-sys-dll";
216 regulator-min-microvolt = <1500000>;
217 regulator-max-microvolt = <1500000>;
218 regulator-name = "vcc-dram";
222 regulator-min-microvolt = <3000000>;
223 regulator-max-microvolt = <3000000>;
224 regulator-name = "vcc-mac";
228 regulator-min-microvolt = <2800000>;
229 regulator-max-microvolt = <2800000>;
230 regulator-name = "avdd-csi";
235 regulator-min-microvolt = <3300000>;
236 regulator-max-microvolt = <3300000>;
237 regulator-name = "vcc-pb";
241 regulator-min-microvolt = <1800000>;
242 regulator-max-microvolt = <1800000>;
243 regulator-name = "vdd-csi";
249 regulator-min-microvolt = <1800000>;
250 regulator-max-microvolt = <1800000>;
251 regulator-name = "vcc-pm-cpus";
256 pinctrl-names = "default";
257 pinctrl-0 = <&uart0_ph_pins>;