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 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.
19 * You should have received a copy of the GNU General Public
20 * License along with this file; if not, write to the Free
21 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
26 * b) Permission is hereby granted, free of charge, to any person
27 * obtaining a copy of this software and associated documentation
28 * files (the "Software"), to deal in the Software without
29 * restriction, including without limitation the rights to use,
30 * copy, modify, merge, publish, distribute, sublicense, and/or
31 * sell copies of the Software, and to permit persons to whom the
32 * Software is furnished to do so, subject to the following
35 * The above copyright notice and this permission notice shall be
36 * included in all copies or substantial portions of the Software.
38 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
39 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
40 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
41 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
42 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
43 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
44 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
45 * OTHER DEALINGS IN THE SOFTWARE.
49 #include "sun7i-a20.dtsi"
50 #include "sunxi-common-regulators.dtsi"
51 #include <dt-bindings/gpio/gpio.h>
52 #include <dt-bindings/interrupt-controller/arm-gic.h>
55 model = "LeMaker Banana Pro";
56 compatible = "lemaker,bananapro", "allwinner,sun7i-a20";
59 compatible = "gpio-leds";
60 pinctrl-names = "default";
61 pinctrl-0 = <&led_pins_bananapro>;
64 label = "bananapro:blue:usr";
65 gpios = <&pio 6 2 GPIO_ACTIVE_HIGH>;
69 label = "bananapro:green:usr";
70 gpios = <&pio 7 24 GPIO_ACTIVE_HIGH>;
74 reg_gmac_3v3: gmac-3v3 {
75 compatible = "regulator-fixed";
76 pinctrl-names = "default";
77 pinctrl-0 = <&gmac_power_pin_bananapro>;
78 regulator-name = "gmac-3v3";
79 regulator-min-microvolt = <3300000>;
80 regulator-max-microvolt = <3300000>;
81 startup-delay-us = <100000>;
83 gpio = <&pio 7 23 GPIO_ACTIVE_HIGH>;
87 compatible = "regulator-fixed";
88 pinctrl-names = "default";
89 pinctrl-0 = <&vmmc3_pin_bananapro>;
90 regulator-name = "vmmc3";
91 regulator-min-microvolt = <3300000>;
92 regulator-max-microvolt = <3300000>;
94 gpio = <&pio 7 22 GPIO_ACTIVE_HIGH>;
111 pinctrl-names = "default";
112 pinctrl-0 = <&gmac_pins_rgmii_a>;
115 phy-supply = <®_gmac_3v3>;
118 phy1: ethernet-phy@1 {
124 pinctrl-names = "default";
125 pinctrl-0 = <&i2c0_pins_a>;
129 compatible = "x-powers,axp209";
131 interrupt-parent = <&nmi_intc>;
132 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
134 interrupt-controller;
135 #interrupt-cells = <1>;
140 pinctrl-names = "default";
141 pinctrl-0 = <&i2c2_pins_a>;
146 pinctrl-names = "default";
147 pinctrl-0 = <&ir0_pins_a>;
152 pinctrl-names = "default";
153 pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_bananapro>;
154 vmmc-supply = <®_vcc3v3>;
156 cd-gpios = <&pio 7 10 GPIO_ACTIVE_HIGH>; /* PH10 */
162 pinctrl-names = "default";
163 pinctrl-0 = <&mmc3_pins_a>;
164 vmmc-supply = <®_vmmc3>;
179 gmac_power_pin_bananapro: gmac_power_pin@0 {
180 allwinner,pins = "PH23";
181 allwinner,function = "gpio_out";
182 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
183 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
186 led_pins_bananapro: led_pins@0 {
187 allwinner,pins = "PH24", "PG2";
188 allwinner,function = "gpio_out";
189 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
190 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
193 mmc0_cd_pin_bananapro: mmc0_cd_pin@0 {
194 allwinner,pins = "PH10";
195 allwinner,function = "gpio_in";
196 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
197 allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
200 usb1_vbus_pin_bananapro: usb1_vbus_pin@0 {
201 allwinner,pins = "PH0";
202 allwinner,function = "gpio_out";
203 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
204 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
207 usb2_vbus_pin_bananapro: usb2_vbus_pin@0 {
208 allwinner,pins = "PH1";
209 allwinner,function = "gpio_out";
210 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
211 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
214 vmmc3_pin_bananapro: vmmc3_pin@0 {
215 allwinner,pins = "PH22";
216 allwinner,function = "gpio_out";
217 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
218 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
223 pinctrl-0 = <&usb1_vbus_pin_bananapro>;
224 gpio = <&pio 7 0 GPIO_ACTIVE_HIGH>; /* PH0 */
229 pinctrl-0 = <&usb2_vbus_pin_bananapro>;
230 gpio = <&pio 7 1 GPIO_ACTIVE_HIGH>; /* PH1 */
235 pinctrl-names = "default";
236 pinctrl-0 = <&spi0_pins_a>;
241 pinctrl-names = "default";
242 pinctrl-0 = <&uart0_pins_a>;
247 pinctrl-names = "default";
248 pinctrl-0 = <&uart2_pins_a>;
253 pinctrl-names = "default";
254 pinctrl-0 = <&uart7_pins_a>;
259 usb1_vbus-supply = <®_usb1_vbus>;
260 usb2_vbus-supply = <®_usb2_vbus>;