blob: 7a9187bbeb28fd6574ede79d7e74f4f928d96a9a [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 {
Roman Byshko4703bc82014-03-01 20:26:31 +010023 usbphy: phy@01c13400 {
24 usb1_vbus-supply = <&reg_usb1_vbus>;
25 status = "okay";
26 };
27
28 ehci0: usb@01c14000 {
29 status = "okay";
30 };
31
32 ohci0: usb@01c14400 {
33 status = "okay";
34 };
35
Maxime Ripardbfef0812013-01-08 22:35:17 +010036 pinctrl@01c20800 {
37 led_pins_olinuxino: led_pins@0 {
38 allwinner,pins = "PG9";
39 allwinner,function = "gpio_out";
40 allwinner,drive = <1>;
41 allwinner,pull = <0>;
42 };
Roman Byshko4703bc82014-03-01 20:26:31 +010043
44 usb1_vbus_pin_olinuxino: usb1_vbus_pin@0 {
45 allwinner,pins = "PG11";
46 allwinner,function = "gpio_out";
47 allwinner,drive = <0>;
48 allwinner,pull = <0>;
49 };
Maxime Ripardbfef0812013-01-08 22:35:17 +010050 };
51
Maxime Ripardb00adbe2013-03-18 10:54:49 +010052 uart1: serial@01c28400 {
Maxime Ripardc54729e2013-01-18 22:30:39 +010053 pinctrl-names = "default";
54 pinctrl-0 = <&uart1_pins_b>;
Maxime Ripardd4da2eb2012-11-14 20:17:04 +010055 status = "okay";
56 };
Maxime Ripard351617c2013-03-10 13:37:10 +010057
58 i2c0: i2c@01c2ac00 {
59 pinctrl-names = "default";
60 pinctrl-0 = <&i2c0_pins_a>;
61 status = "okay";
62 };
63
64 i2c1: i2c@01c2b000 {
65 pinctrl-names = "default";
66 pinctrl-0 = <&i2c1_pins_a>;
67 status = "okay";
68 };
69
70 i2c2: i2c@01c2b400 {
71 pinctrl-names = "default";
72 pinctrl-0 = <&i2c2_pins_a>;
73 status = "okay";
74 };
Maxime Ripardd4da2eb2012-11-14 20:17:04 +010075 };
Maxime Ripardbfef0812013-01-08 22:35:17 +010076
77 leds {
78 compatible = "gpio-leds";
79 pinctrl-names = "default";
80 pinctrl-0 = <&led_pins_olinuxino>;
81
82 power {
83 gpios = <&pio 6 9 0>;
84 default-state = "on";
85 };
86 };
Roman Byshko4703bc82014-03-01 20:26:31 +010087
88 reg_usb1_vbus: usb1-vbus {
89 pinctrl-0 = <&usb1_vbus_pin_olinuxino>;
90 gpio = <&pio 6 11 0>;
91 status = "okay";
92 };
Maxime Ripardd4da2eb2012-11-14 20:17:04 +010093};