ARM: dts: sun6i: csq cs908 dts cleanup
[deliverable/linux.git] / arch / arm / boot / dts / sun4i-a10-pcduino.dts
CommitLineData
7f624cec
ZH
1/*
2 * Copyright 2014 Zoltan HERPAI
3 * Zoltan HERPAI <wigyori@uid0.hu>
4 *
a35070dd
MR
5 * This file is dual-licensed: you can use it either under the terms
6 * of the GPL or the X11 license, at your option. Note that this dual
7 * licensing only applies to this file, and not this project as a
8 * whole.
7f624cec 9 *
a35070dd
MR
10 * a) This file is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License as
12 * published by the Free Software Foundation; either version 2 of the
13 * License, or (at your option) any later version.
14 *
15 * This file is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public
21 * License along with this file; if not, write to the Free
22 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
23 * MA 02110-1301 USA
24 *
25 * Or, alternatively,
26 *
27 * b) Permission is hereby granted, free of charge, to any person
28 * obtaining a copy of this software and associated documentation
29 * files (the "Software"), to deal in the Software without
30 * restriction, including without limitation the rights to use,
31 * copy, modify, merge, publish, distribute, sublicense, and/or
32 * sell copies of the Software, and to permit persons to whom the
33 * Software is furnished to do so, subject to the following
34 * conditions:
35 *
36 * The above copyright notice and this permission notice shall be
37 * included in all copies or substantial portions of the Software.
38 *
39 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
40 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
41 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
42 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
43 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
44 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
45 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
46 * OTHER DEALINGS IN THE SOFTWARE.
7f624cec
ZH
47 */
48
49/dts-v1/;
71455701
MR
50#include "sun4i-a10.dtsi"
51#include "sunxi-common-regulators.dtsi"
7f624cec 52
bca12924 53#include <dt-bindings/gpio/gpio.h>
e721a287
ZH
54#include <dt-bindings/input/input.h>
55#include <dt-bindings/pinctrl/sun4i-a10.h>
bca12924 56
7f624cec
ZH
57/ {
58 model = "LinkSprite pcDuino";
59 compatible = "linksprite,a10-pcduino", "allwinner,sun4i-a10";
60
77978a37 61
e721a287
ZH
62 leds {
63 compatible = "gpio-leds";
64 pinctrl-names = "default";
65 pinctrl-0 = <&led_pins_pcduino>;
66
67 tx {
68 label = "pcduino:green:tx";
69 gpios = <&pio 7 15 GPIO_ACTIVE_LOW>;
70 };
71
72 rx {
73 label = "pcduino:green:rx";
74 gpios = <&pio 7 16 GPIO_ACTIVE_LOW>;
75 };
76 };
77
78 gpio_keys {
79 compatible = "gpio-keys";
80 pinctrl-names = "default";
81 pinctrl-0 = <&key_pins_pcduino>;
82 #address-cells = <1>;
83 #size-cells = <0>;
84
85 button@0 {
86 label = "Key Back";
87 linux,code = <KEY_BACK>;
88 gpios = <&pio 7 17 GPIO_ACTIVE_LOW>;
89 };
90
91 button@1 {
92 label = "Key Home";
93 linux,code = <KEY_HOME>;
94 gpios = <&pio 7 18 GPIO_ACTIVE_LOW>;
95 };
96
97 button@2 {
98 label = "Key Menu";
99 linux,code = <KEY_MENU>;
100 gpios = <&pio 7 19 GPIO_ACTIVE_LOW>;
101 };
102 };
5e877369
MR
103};
104
105&ehci0 {
106 status = "okay";
107};
e721a287 108
5e877369
MR
109&ehci1 {
110 status = "okay";
111};
112
113&emac {
114 pinctrl-names = "default";
115 pinctrl-0 = <&emac_pins_a>;
116 phy = <&phy1>;
117 status = "okay";
118};
119
120&i2c0 {
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 interrupts = <0>;
129
130 interrupt-controller;
131 #interrupt-cells = <1>;
77978a37 132 };
5e877369 133};
77978a37 134
5e877369
MR
135&mdio {
136 status = "okay";
137
138 phy1: ethernet-phy@1 {
139 reg = <1>;
77978a37 140 };
7f624cec 141};
5e877369
MR
142
143&mmc0 {
144 pinctrl-names = "default";
145 pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>;
146 vmmc-supply = <&reg_vcc3v3>;
147 bus-width = <4>;
148 cd-gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>; /* PH1 */
149 cd-inverted;
150 status = "okay";
151};
152
153&ohci0 {
154 status = "okay";
155};
156
157&ohci1 {
158 status = "okay";
159};
160
161&pio {
162 led_pins_pcduino: led_pins@0 {
163 allwinner,pins = "PH15", "PH16";
164 allwinner,function = "gpio_out";
165 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
166 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
167 };
168
169 key_pins_pcduino: key_pins@0 {
170 allwinner,pins = "PH17", "PH18", "PH19";
171 allwinner,function = "gpio_in";
172 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
173 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
174 };
175};
176
177&reg_usb1_vbus {
178 status = "okay";
179};
180
181&reg_usb2_vbus {
182 status = "okay";
183};
184
185&uart0 {
186 pinctrl-names = "default";
187 pinctrl-0 = <&uart0_pins_a>;
188 status = "okay";
189};
190
191&usbphy {
192 usb1_vbus-supply = <&reg_usb1_vbus>;
193 usb2_vbus-supply = <&reg_usb2_vbus>;
194 status = "okay";
195};
This page took 0.728976 seconds and 5 git commands to generate.