blob: 429994e1943e83eda0ce8a0fa9ef29d39f435628 [file] [log] [blame]
Maxime Ripardd4da2eb2012-11-14 20:17:04 +01001/*
2 * Copyright 2012 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/;
Maxime Ripard68136b12012-12-12 17:08:23 +010015/include/ "sun5i-a13.dtsi"
Roman Byshko4703bc82014-03-01 20:26:31 +010016/include/ "sunxi-common-regulators.dtsi"
Maxime Ripardd4da2eb2012-11-14 20:17:04 +010017
18/ {
19 model = "Olimex A13-Olinuxino";
Maxime Ripard68136b12012-12-12 17:08:23 +010020 compatible = "olimex,a13-olinuxino", "allwinner,sun5i-a13";
Maxime Ripardd4da2eb2012-11-14 20:17:04 +010021
Maxime Ripard278fe8b2013-08-03 16:07:36 +020022 soc@01c00000 {
Hans de Goede31064bb2014-05-02 17:57:22 +020023 mmc0: mmc@01c0f000 {
24 pinctrl-names = "default";
25 pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_olinuxino>;
Hans de Goedeb4d6c772014-05-11 09:46:55 +020026 vmmc-supply = <&reg_vcc3v3>;
Hans de Goede31064bb2014-05-02 17:57:22 +020027 bus-width = <4>;
28 cd-gpios = <&pio 6 0 0>; /* PG0 */
29 cd-inverted;
30 status = "okay";
31 };
32
Roman Byshko4703bc82014-03-01 20:26:31 +010033 usbphy: phy@01c13400 {
34 usb1_vbus-supply = <&reg_usb1_vbus>;
35 status = "okay";
36 };
37
38 ehci0: usb@01c14000 {
39 status = "okay";
40 };
41
42 ohci0: usb@01c14400 {
43 status = "okay";
44 };
45
Maxime Ripardbfef0812013-01-08 22:35:17 +010046 pinctrl@01c20800 {
Hans de Goede31064bb2014-05-02 17:57:22 +020047 mmc0_cd_pin_olinuxino: mmc0_cd_pin@0 {
48 allwinner,pins = "PG0";
49 allwinner,function = "gpio_in";
50 allwinner,drive = <0>;
51 allwinner,pull = <1>;
52 };
53
Maxime Ripardbfef0812013-01-08 22:35:17 +010054 led_pins_olinuxino: led_pins@0 {
55 allwinner,pins = "PG9";
56 allwinner,function = "gpio_out";
57 allwinner,drive = <1>;
58 allwinner,pull = <0>;
59 };
Roman Byshko4703bc82014-03-01 20:26:31 +010060
61 usb1_vbus_pin_olinuxino: usb1_vbus_pin@0 {
62 allwinner,pins = "PG11";
63 allwinner,function = "gpio_out";
64 allwinner,drive = <0>;
65 allwinner,pull = <0>;
66 };
Maxime Ripardbfef0812013-01-08 22:35:17 +010067 };
68
Maxime Ripardb00adbe2013-03-18 10:54:49 +010069 uart1: serial@01c28400 {
Maxime Ripardc54729e2013-01-18 22:30:39 +010070 pinctrl-names = "default";
71 pinctrl-0 = <&uart1_pins_b>;
Maxime Ripardd4da2eb2012-11-14 20:17:04 +010072 status = "okay";
73 };
Maxime Ripard351617c2013-03-10 13:37:10 +010074
75 i2c0: i2c@01c2ac00 {
76 pinctrl-names = "default";
77 pinctrl-0 = <&i2c0_pins_a>;
78 status = "okay";
79 };
80
81 i2c1: i2c@01c2b000 {
82 pinctrl-names = "default";
83 pinctrl-0 = <&i2c1_pins_a>;
84 status = "okay";
85 };
86
87 i2c2: i2c@01c2b400 {
88 pinctrl-names = "default";
89 pinctrl-0 = <&i2c2_pins_a>;
90 status = "okay";
91 };
Maxime Ripardd4da2eb2012-11-14 20:17:04 +010092 };
Maxime Ripardbfef0812013-01-08 22:35:17 +010093
94 leds {
95 compatible = "gpio-leds";
96 pinctrl-names = "default";
97 pinctrl-0 = <&led_pins_olinuxino>;
98
99 power {
100 gpios = <&pio 6 9 0>;
101 default-state = "on";
102 };
103 };
Roman Byshko4703bc82014-03-01 20:26:31 +0100104
105 reg_usb1_vbus: usb1-vbus {
106 pinctrl-0 = <&usb1_vbus_pin_olinuxino>;
107 gpio = <&pio 6 11 0>;
108 status = "okay";
109 };
Maxime Ripardd4da2eb2012-11-14 20:17:04 +0100110};