]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blame - arch/arm/boot/dts/sun7i-a20-olinuxino-lime2.dts
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/nab/target...
[mirror_ubuntu-zesty-kernel.git] / arch / arm / boot / dts / sun7i-a20-olinuxino-lime2.dts
CommitLineData
35669b39
IP
1/*
2 * Copyright 2014 - Iain Paton <ipaton0@gmail.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 *
136d18a8 9 * a) This file is free software; you can redistribute it and/or
35669b39
IP
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 *
136d18a8 14 * This file is distributed in the hope that it will be useful,
35669b39
IP
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 * You should have received a copy of the GNU General Public
136d18a8 20 * License along with this file; if not, write to the Free
35669b39
IP
21 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
22 * MA 02110-1301 USA
23 *
24 * Or, alternatively,
25 *
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
33 * conditions:
34 *
35 * The above copyright notice and this permission notice shall be
36 * included in all copies or substantial portions of the Software.
37 *
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.
46 */
47
48/dts-v1/;
71455701
MR
49#include "sun7i-a20.dtsi"
50#include "sunxi-common-regulators.dtsi"
35669b39 51
bca12924 52#include <dt-bindings/gpio/gpio.h>
a6bac9eb 53#include <dt-bindings/interrupt-controller/irq.h>
092a0c3b 54#include <dt-bindings/pinctrl/sun4i-a10.h>
bca12924 55
35669b39
IP
56/ {
57 model = "Olimex A20-OLinuXino-LIME2";
58 compatible = "olimex,a20-olinuxino-lime2", "allwinner,sun7i-a20";
59
60 soc@01c00000 {
61 mmc0: mmc@01c0f000 {
62 pinctrl-names = "default";
63 pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>;
64 vmmc-supply = <&reg_vcc3v3>;
65 bus-width = <4>;
bca12924 66 cd-gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>; /* PH1 */
35669b39
IP
67 cd-inverted;
68 status = "okay";
69 };
70
71 usbphy: phy@01c13400 {
72 usb1_vbus-supply = <&reg_usb1_vbus>;
73 usb2_vbus-supply = <&reg_usb2_vbus>;
74 status = "okay";
75 };
76
77 ehci0: usb@01c14000 {
78 status = "okay";
79 };
80
81 ohci0: usb@01c14400 {
82 status = "okay";
83 };
84
85 ahci: sata@01c18000 {
86 target-supply = <&reg_ahci_5v>;
87 status = "okay";
88 };
89
90 ehci1: usb@01c1c000 {
91 status = "okay";
92 };
93
94 ohci1: usb@01c1c400 {
95 status = "okay";
96 };
97
98 pinctrl@01c20800 {
99 ahci_pwr_pin_olinuxinolime: ahci_pwr_pin@1 {
100 allwinner,pins = "PC3";
101 allwinner,function = "gpio_out";
092a0c3b
MR
102 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
103 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
35669b39
IP
104 };
105
106 led_pins_olinuxinolime: led_pins@0 {
107 allwinner,pins = "PH2";
108 allwinner,function = "gpio_out";
092a0c3b
MR
109 allwinner,drive = <SUN4I_PINCTRL_20_MA>;
110 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
35669b39
IP
111 };
112 };
113
114 uart0: serial@01c28000 {
115 pinctrl-names = "default";
116 pinctrl-0 = <&uart0_pins_a>;
117 status = "okay";
118 };
119
120 i2c0: i2c@01c2ac00 {
121 pinctrl-names = "default";
122 pinctrl-0 = <&i2c0_pins_a>;
123 status = "okay";
124
125 axp209: pmic@34 {
126 compatible = "x-powers,axp209";
127 reg = <0x34>;
128 interrupt-parent = <&nmi_intc>;
a6bac9eb 129 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
35669b39
IP
130
131 interrupt-controller;
132 #interrupt-cells = <1>;
133
134 acin-supply = <&reg_axp_ipsout>;
135 vin2-supply = <&reg_axp_ipsout>;
136 vin3-supply = <&reg_axp_ipsout>;
137 ldo24in-supply = <&reg_axp_ipsout>;
138 ldo3in-supply = <&reg_axp_ipsout>;
139
140 regulators {
141 vdd_rtc: ldo1 {
142 regulator-min-microvolt = <1300000>;
143 regulator-max-microvolt = <1300000>;
144 regulator-always-on;
145 };
146
147 avcc: ldo2 {
148 regulator-min-microvolt = <1800000>;
149 regulator-max-microvolt = <3300000>;
150 regulator-always-on;
151 };
152
153 vcc_csi0: ldo3 {
154 regulator-min-microvolt = <700000>;
155 regulator-max-microvolt = <3500000>;
156 regulator-always-on;
157 };
158
159 vcc_csi1: ldo4 {
160 regulator-min-microvolt = <1250000>;
161 regulator-max-microvolt = <3300000>;
162 regulator-always-on;
163 };
164
165 vdd_cpu: dcdc2 {
166 regulator-min-microvolt = <700000>;
167 regulator-max-microvolt = <2275000>;
168 regulator-always-on;
169 };
170
171 vdd_int: dcdc3 {
172 regulator-min-microvolt = <700000>;
173 regulator-max-microvolt = <3500000>;
174 regulator-always-on;
175 };
176 };
177 };
178 };
179
180 i2c1: i2c@01c2b000 {
181 pinctrl-names = "default";
182 pinctrl-0 = <&i2c1_pins_a>;
183 status = "okay";
184 };
185
186 gmac: ethernet@01c50000 {
187 pinctrl-names = "default";
188 pinctrl-0 = <&gmac_pins_rgmii_a>;
189 phy = <&phy1>;
190 phy-mode = "rgmii";
191 status = "okay";
192
193 phy1: ethernet-phy@1 {
194 reg = <1>;
195 };
196 };
197 };
198
199 leds {
200 compatible = "gpio-leds";
201 pinctrl-names = "default";
202 pinctrl-0 = <&led_pins_olinuxinolime>;
203
204 green {
205 label = "a20-olinuxino-lime2:green:usr";
bca12924 206 gpios = <&pio 7 2 GPIO_ACTIVE_HIGH>;
35669b39
IP
207 default-state = "on";
208 };
209 };
210
211 reg_ahci_5v: ahci-5v {
212 pinctrl-0 = <&ahci_pwr_pin_olinuxinolime>;
bca12924 213 gpio = <&pio 2 3 GPIO_ACTIVE_HIGH>;
35669b39
IP
214 status = "okay";
215 };
216
217 reg_usb1_vbus: usb1-vbus {
218 status = "okay";
219 };
220
221 reg_usb2_vbus: usb2-vbus {
222 status = "okay";
223 };
224
225 reg_axp_ipsout: axp_ipsout {
226 compatible = "regulator-fixed";
227 regulator-name = "axp-ipsout";
228 regulator-min-microvolt = <5000000>;
229 regulator-max-microvolt = <5000000>;
230 regulator-always-on;
231 };
232};