ARM: dts: sun6i: csq cs908 dts cleanup
[deliverable/linux.git] / arch / arm / boot / dts / sun5i-a13-olinuxino.dts
CommitLineData
d4da2ebb
MR
1/*
2 * Copyright 2012 Maxime Ripard
3 *
4 * Maxime Ripard <maxime.ripard@free-electrons.com>
5 *
5ba312c0
MR
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
9 * whole.
d4da2ebb 10 *
5ba312c0
MR
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.
15 *
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.
20 *
21 * You should have received a copy of the GNU General Public
22 * License along with this file; if not, write to the Free
23 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
24 * MA 02110-1301 USA
25 *
26 * Or, alternatively,
27 *
28 * b) Permission is hereby granted, free of charge, to any person
29 * obtaining a copy of this software and associated documentation
30 * files (the "Software"), to deal in the Software without
31 * restriction, including without limitation the rights to use,
32 * copy, modify, merge, publish, distribute, sublicense, and/or
33 * sell copies of the Software, and to permit persons to whom the
34 * Software is furnished to do so, subject to the following
35 * conditions:
36 *
37 * The above copyright notice and this permission notice shall be
38 * included in all copies or substantial portions of the Software.
39 *
40 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
41 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
42 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
43 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
44 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
45 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
46 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
47 * OTHER DEALINGS IN THE SOFTWARE.
d4da2ebb
MR
48 */
49
50/dts-v1/;
ec011af5
HG
51#include "sun5i-a13.dtsi"
52#include "sunxi-common-regulators.dtsi"
bca12924
MR
53
54#include <dt-bindings/gpio/gpio.h>
ec011af5 55#include <dt-bindings/input/input.h>
092a0c3b 56#include <dt-bindings/pinctrl/sun4i-a10.h>
d4da2ebb
MR
57
58/ {
59 model = "Olimex A13-Olinuxino";
68136b10 60 compatible = "olimex,a13-olinuxino", "allwinner,sun5i-a13";
d4da2ebb 61
117a2cc3
MR
62 aliases {
63 serial0 = &uart1;
64 };
65
b2547166
MR
66 leds {
67 compatible = "gpio-leds";
68 pinctrl-names = "default";
69 pinctrl-0 = <&led_pins_olinuxino>;
31064bbd 70
b2547166
MR
71 power {
72 gpios = <&pio 6 9 GPIO_ACTIVE_HIGH>;
73 default-state = "on";
4703bc83 74 };
b2547166
MR
75 };
76};
4703bc83 77
b2547166
MR
78&ehci0 {
79 status = "okay";
80};
4703bc83 81
b2547166
MR
82&i2c0 {
83 pinctrl-names = "default";
84 pinctrl-0 = <&i2c0_pins_a>;
85 status = "okay";
4703bc83 86
b2547166
MR
87 axp209: pmic@34 {
88 compatible = "x-powers,axp209";
89 reg = <0x34>;
90 interrupts = <0>;
bfef081d 91
b2547166
MR
92 interrupt-controller;
93 #interrupt-cells = <1>;
94 };
95};
bfef081d 96
b2547166
MR
97&i2c1 {
98 pinctrl-names = "default";
99 pinctrl-0 = <&i2c1_pins_a>;
100 status = "okay";
101};
351617cd 102
b2547166
MR
103&i2c2 {
104 pinctrl-names = "default";
105 pinctrl-0 = <&i2c2_pins_a>;
106 status = "okay";
107};
c121f45e 108
b2547166
MR
109&lradc {
110 vref-supply = <&reg_vcc3v0>;
111 status = "okay";
c121f45e 112
b2547166
MR
113 button@191 {
114 label = "Volume Up";
115 linux,code = <KEY_VOLUMEUP>;
116 channel = <0>;
117 voltage = <191274>;
118 };
351617cd 119
b2547166
MR
120 button@392 {
121 label = "Volume Down";
122 linux,code = <KEY_VOLUMEDOWN>;
123 channel = <0>;
124 voltage = <392644>;
125 };
351617cd 126
b2547166
MR
127 button@601 {
128 label = "Menu";
129 linux,code = <KEY_MENU>;
130 channel = <0>;
131 voltage = <601151>;
d4da2ebb 132 };
bfef081d 133
b2547166
MR
134 button@795 {
135 label = "Enter";
136 linux,code = <KEY_ENTER>;
137 channel = <0>;
138 voltage = <795090>;
139 };
bfef081d 140
b2547166
MR
141 button@987 {
142 label = "Home";
143 linux,code = <KEY_HOMEPAGE>;
144 channel = <0>;
145 voltage = <987387>;
146 };
147};
148
149&mmc0 {
150 pinctrl-names = "default";
151 pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_olinuxino>;
152 vmmc-supply = <&reg_vcc3v3>;
153 bus-width = <4>;
154 cd-gpios = <&pio 6 0 GPIO_ACTIVE_HIGH>; /* PG0 */
155 cd-inverted;
156 status = "okay";
157};
158
159&ohci0 {
160 status = "okay";
161};
162
163&pio {
164 mmc0_cd_pin_olinuxino: mmc0_cd_pin@0 {
165 allwinner,pins = "PG0";
166 allwinner,function = "gpio_in";
167 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
168 allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
169 };
170
171 led_pins_olinuxino: led_pins@0 {
172 allwinner,pins = "PG9";
173 allwinner,function = "gpio_out";
174 allwinner,drive = <SUN4I_PINCTRL_20_MA>;
175 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
bfef081d 176 };
4703bc83 177
b2547166
MR
178 usb1_vbus_pin_olinuxino: usb1_vbus_pin@0 {
179 allwinner,pins = "PG11";
180 allwinner,function = "gpio_out";
181 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
182 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
4703bc83 183 };
d4da2ebb 184};
b2547166
MR
185
186&reg_usb1_vbus {
187 pinctrl-0 = <&usb1_vbus_pin_olinuxino>;
188 gpio = <&pio 6 11 GPIO_ACTIVE_HIGH>;
189 status = "okay";
190};
191
192&uart1 {
193 pinctrl-names = "default";
194 pinctrl-0 = <&uart1_pins_b>;
195 status = "okay";
196};
197
198&usbphy {
199 usb1_vbus-supply = <&reg_usb1_vbus>;
200 status = "okay";
201};
This page took 0.174789 seconds and 5 git commands to generate.