mtd: nand: omap: Fix comment in platform data using wrong Kconfig symbol
[linux/fpc-iii.git] / arch / arm / boot / dts / sun6i-a31s-sinovoip-bpi-m2.dts
blob8e724c52feffeccaab0a5c25afcc6638d91de67a
1 /*
2  * Copyright 2015 Hans de Goede <hdegoede@redhat.com>
3  *
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
7  * whole.
8  *
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.
13  *
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.
18  *
19  * Or, alternatively,
20  *
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
28  *     conditions:
29  *
30  *     The above copyright notice and this permission notice shall be
31  *     included in all copies or substantial portions of the Software.
32  *
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.
41  */
43 /dts-v1/;
44 #include "sun6i-a31s.dtsi"
45 #include <dt-bindings/gpio/gpio.h>
47 / {
48         model = "Sinovoip BPI-M2";
49         compatible = "sinovoip,bpi-m2", "allwinner,sun6i-a31s";
51         aliases {
52                 serial0 = &uart0;
53         };
55         chosen {
56                 stdout-path = "serial0:115200n8";
57         };
59         leds {
60                 compatible = "gpio-leds";
62                 blue {
63                         label = "bpi-m2:blue:usr";
64                         gpios = <&pio 6 11 GPIO_ACTIVE_HIGH>; /* PG11 */
65                 };
67                 green {
68                         label = "bpi-m2:green:usr";
69                         gpios = <&pio 6 10 GPIO_ACTIVE_HIGH>; /* PG10 */
70                 };
72                 red {
73                         label = "bpi-m2:red:usr";
74                         gpios = <&pio 6 5 GPIO_ACTIVE_HIGH>; /* PG5 */
75                 };
76         };
78         mmc2_pwrseq: mmc2_pwrseq {
79                 compatible = "mmc-pwrseq-simple";
80                 reset-gpios = <&r_pio 0 8 GPIO_ACTIVE_LOW>; /* PL8 WIFI_EN */
81         };
84 &cpu0 {
85         cpu-supply = <&reg_dcdc3>;
88 &ehci0 {
89         status = "okay";
92 &gmac {
93         pinctrl-names = "default";
94         pinctrl-0 = <&gmac_rgmii_pins>;
95         phy = <&phy1>;
96         phy-mode = "rgmii";
97         phy-supply = <&reg_dldo1>;
98         snps,reset-gpio = <&pio 0 21 GPIO_ACTIVE_HIGH>; /* PA21 */
99         snps,reset-active-low;
100         snps,reset-delays-us = <0 10000 30000>;
101         status = "okay";
103         phy1: ethernet-phy@1 {
104                 reg = <1>;
105         };
108 &ir {
109         pinctrl-names = "default";
110         pinctrl-0 = <&s_ir_rx_pin>;
111         status = "okay";
114 &mmc0 {
115         vmmc-supply = <&reg_dcdc1>;
116         bus-width = <4>;
117         cd-gpios = <&pio 0 4 GPIO_ACTIVE_LOW>; /* PA4 */
118         status = "okay";
121 &mmc2 {
122         pinctrl-names = "default";
123         pinctrl-0 = <&mmc2_4bit_pins>;
124         vmmc-supply = <&reg_aldo1>;
125         mmc-pwrseq = <&mmc2_pwrseq>;
126         bus-width = <4>;
127         non-removable;
128         status = "okay";
130         brcmf: wifi@1 {
131                 reg = <1>;
132                 compatible = "brcm,bcm4329-fmac";
133                 interrupt-parent = <&r_pio>;
134                 interrupts = <0 5 IRQ_TYPE_LEVEL_LOW>; /* PL5 */
135                 interrupt-names = "host-wake";
136         };
139 &ohci0 {
140         status = "okay";
143 &p2wi {
144         status = "okay";
146         axp22x: pmic@68 {
147                 compatible = "x-powers,axp221";
148                 reg = <0x68>;
149                 interrupt-parent = <&nmi_intc>;
150                 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
151                 eldoin-supply = <&reg_dcdc1>;
152                 x-powers,drive-vbus-en;
153         };
156 #include "axp22x.dtsi"
158 &reg_aldo1 {
159         regulator-min-microvolt = <3300000>;
160         regulator-max-microvolt = <3300000>;
161         regulator-name = "vcc-wifi";
164 &reg_aldo2 {
165         regulator-always-on;
166         regulator-min-microvolt = <2500000>;
167         regulator-max-microvolt = <2500000>;
168         regulator-name = "vcc-gmac";
171 &reg_aldo3 {
172         regulator-always-on;
173         regulator-min-microvolt = <3000000>;
174         regulator-max-microvolt = <3000000>;
175         regulator-name = "avcc";
178 &reg_dc5ldo {
179         regulator-always-on;
180         regulator-min-microvolt = <700000>;
181         regulator-max-microvolt = <1320000>;
182         regulator-name = "vdd-cpus";
185 &reg_dcdc1 {
186         regulator-always-on;
187         regulator-min-microvolt = <3000000>;
188         regulator-max-microvolt = <3000000>;
189         regulator-name = "vdd-3v0";
192 &reg_dcdc2 {
193         regulator-min-microvolt = <700000>;
194         regulator-max-microvolt = <1320000>;
195         regulator-name = "vdd-gpu";
198 &reg_dcdc3 {
199         regulator-always-on;
200         regulator-min-microvolt = <700000>;
201         regulator-max-microvolt = <1320000>;
202         regulator-name = "vdd-cpu";
205 &reg_dcdc4 {
206         regulator-always-on;
207         regulator-min-microvolt = <700000>;
208         regulator-max-microvolt = <1320000>;
209         regulator-name = "vdd-sys-dll";
212 &reg_dcdc5 {
213         regulator-always-on;
214         regulator-min-microvolt = <1500000>;
215         regulator-max-microvolt = <1500000>;
216         regulator-name = "vcc-dram";
219 &reg_dldo1 {
220         regulator-min-microvolt = <3000000>;
221         regulator-max-microvolt = <3000000>;
222         regulator-name = "vcc-mac";
225 &reg_dldo2 {
226         regulator-min-microvolt = <2800000>;
227         regulator-max-microvolt = <2800000>;
228         regulator-name = "avdd-csi";
231 &reg_dldo3 {
232         regulator-always-on;
233         regulator-min-microvolt = <3300000>;
234         regulator-max-microvolt = <3300000>;
235         regulator-name = "vcc-pb";
238 &reg_eldo1 {
239         regulator-min-microvolt = <1800000>;
240         regulator-max-microvolt = <1800000>;
241         regulator-name = "vdd-csi";
242         status = "okay";
245 &reg_ldo_io1 {
246         regulator-always-on;
247         regulator-min-microvolt = <1800000>;
248         regulator-max-microvolt = <1800000>;
249         regulator-name = "vcc-pm-cpus";
250         status = "okay";
253 &uart0 {
254         pinctrl-names = "default";
255         pinctrl-0 = <&uart0_ph_pins>;
256         status = "okay";
259 &usbphy {
260         status = "okay";