Commit | Line | Data |
---|---|---|
0bef900b MR |
1 | /* |
2 | * Copyright 2013 Maxime Ripard | |
3 | * | |
4 | * Maxime Ripard <maxime.ripard@free-electrons.com> | |
5 | * | |
6 | * The code contained herein is licensed under the GNU General Public | |
7 | * License. You may obtain a copy of the GNU General Public License | |
8 | * Version 2 or later at the following locations: | |
9 | * | |
10 | * http://www.opensource.org/licenses/gpl-license.html | |
11 | * http://www.gnu.org/copyleft/gpl.html | |
12 | */ | |
13 | ||
14 | /dts-v1/; | |
15 | /include/ "sun6i-a31.dtsi" | |
a9bfb5f8 | 16 | /include/ "sunxi-common-regulators.dtsi" |
0bef900b MR |
17 | |
18 | / { | |
19 | model = "WITS A31 Colombus Evaluation Board"; | |
20 | compatible = "wits,colombus", "allwinner,sun6i-a31"; | |
21 | ||
22 | chosen { | |
23 | bootargs = "earlyprintk console=ttyS0,115200"; | |
24 | }; | |
25 | ||
26 | soc@01c00000 { | |
ece99c4e MR |
27 | mmc0: mmc@01c0f000 { |
28 | pinctrl-names = "default"; | |
29 | pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_colombus>; | |
30 | vmmc-supply = <®_vcc3v0>; | |
31 | bus-width = <4>; | |
32 | cd-gpios = <&pio 0 8 0>; /* PA8 */ | |
33 | cd-inverted; | |
34 | status = "okay"; | |
35 | }; | |
36 | ||
a9bfb5f8 MR |
37 | usbphy: phy@01c19400 { |
38 | usb2_vbus-supply = <®_usb2_vbus>; | |
39 | status = "okay"; | |
40 | }; | |
41 | ||
42 | ehci1: usb@01c1b000 { | |
43 | status = "okay"; | |
44 | }; | |
45 | ||
46 | pio: pinctrl@01c20800 { | |
ece99c4e MR |
47 | mmc0_pins_a: mmc0@0 { |
48 | allwinner,pull = <1>; | |
49 | }; | |
50 | ||
51 | mmc0_cd_pin_colombus: mmc0_cd_pin@0 { | |
52 | allwinner,pins = "PA8"; | |
53 | allwinner,function = "gpio_in"; | |
54 | allwinner,drive = <0>; | |
55 | allwinner,pull = <1>; | |
56 | }; | |
57 | ||
a9bfb5f8 MR |
58 | usb2_vbus_pin_colombus: usb2_vbus_pin@0 { |
59 | allwinner,pins = "PH24"; | |
60 | allwinner,function = "gpio_out"; | |
61 | allwinner,drive = <0>; | |
62 | allwinner,pull = <0>; | |
63 | }; | |
64 | }; | |
65 | ||
0bef900b | 66 | uart0: serial@01c28000 { |
69fb3c04 MR |
67 | pinctrl-names = "default"; |
68 | pinctrl-0 = <&uart0_pins_a>; | |
0bef900b MR |
69 | status = "okay"; |
70 | }; | |
1cff7402 MR |
71 | |
72 | i2c0: i2c@01c2ac00 { | |
73 | pinctrl-names = "default"; | |
74 | pinctrl-0 = <&i2c0_pins_a>; | |
75 | status = "fail"; | |
76 | }; | |
77 | ||
78 | i2c1: i2c@01c2b000 { | |
79 | pinctrl-names = "default"; | |
80 | pinctrl-0 = <&i2c1_pins_a>; | |
81 | status = "okay"; | |
82 | }; | |
83 | ||
84 | i2c2: i2c@01c2b400 { | |
85 | pinctrl-names = "default"; | |
86 | pinctrl-0 = <&i2c2_pins_a>; | |
87 | status = "okay"; | |
88 | }; | |
0bef900b | 89 | }; |
a9bfb5f8 MR |
90 | |
91 | reg_usb2_vbus: usb2-vbus { | |
92 | pinctrl-names = "default"; | |
93 | pinctrl-0 = <&usb2_vbus_pin_colombus>; | |
94 | gpio = <&pio 7 24 0>; | |
95 | status = "okay"; | |
96 | }; | |
0bef900b | 97 | }; |