blob: eeadf76362fa4238875bc83f6b0853edbba9c5c6 [file] [log] [blame]
Maxime Riparde476ac82013-07-17 10:12:16 +02001/*
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/ "sun7i-a20.dtsi"
Hans de Goede902febf2014-03-01 20:26:22 +010016/include/ "sunxi-common-regulators.dtsi"
Maxime Riparde476ac82013-07-17 10:12:16 +020017
18/ {
19 model = "Olimex A20-Olinuxino Micro";
20 compatible = "olimex,a20-olinuxino-micro", "allwinner,sun7i-a20";
21
Maxime Ripardd5cf89c2014-02-22 22:35:59 +010022 aliases {
23 spi0 = &spi1;
24 spi1 = &spi2;
25 };
26
Maxime Riparde476ac82013-07-17 10:12:16 +020027 soc@01c00000 {
Maxime Ripardd5cf89c2014-02-22 22:35:59 +010028 spi1: spi@01c06000 {
29 pinctrl-names = "default";
30 pinctrl-0 = <&spi1_pins_a>;
31 status = "okay";
32 };
33
Zalan Blenessye2f02652014-03-01 20:26:36 +010034 usbphy: phy@01c13400 {
35 usb1_vbus-supply = <&reg_usb1_vbus>;
36 usb2_vbus-supply = <&reg_usb2_vbus>;
37 status = "okay";
38 };
39
40 ehci0: usb@01c14000 {
41 status = "okay";
42 };
43
44 ohci0: usb@01c14400 {
45 status = "okay";
46 };
47
Maxime Ripardd5cf89c2014-02-22 22:35:59 +010048 spi2: spi@01c17000 {
49 pinctrl-names = "default";
50 pinctrl-0 = <&spi2_pins_a>;
51 status = "okay";
52 };
53
Hans de Goede902febf2014-03-01 20:26:22 +010054 ahci: sata@01c18000 {
55 target-supply = <&reg_ahci_5v>;
56 status = "okay";
57 };
58
Zalan Blenessye2f02652014-03-01 20:26:36 +010059 ehci1: usb@01c1c000 {
60 status = "okay";
61 };
62
63 ohci1: usb@01c1c400 {
64 status = "okay";
65 };
66
Maxime Ripard6e487da2013-07-25 00:12:45 +020067 pinctrl@01c20800 {
68 led_pins_olinuxino: led_pins@0 {
69 allwinner,pins = "PH2";
70 allwinner,function = "gpio_out";
71 allwinner,drive = <1>;
72 allwinner,pull = <0>;
73 };
74 };
75
Maxime Riparde476ac82013-07-17 10:12:16 +020076 uart0: serial@01c28000 {
Maxime Ripard2fff6ac2013-07-25 00:10:53 +020077 pinctrl-names = "default";
78 pinctrl-0 = <&uart0_pins_a>;
Maxime Riparde476ac82013-07-17 10:12:16 +020079 status = "okay";
80 };
81
82 uart6: serial@01c29800 {
Maxime Ripard2fff6ac2013-07-25 00:10:53 +020083 pinctrl-names = "default";
84 pinctrl-0 = <&uart6_pins_a>;
Maxime Riparde476ac82013-07-17 10:12:16 +020085 status = "okay";
86 };
87
88 uart7: serial@01c29c00 {
Maxime Ripard2fff6ac2013-07-25 00:10:53 +020089 pinctrl-names = "default";
90 pinctrl-0 = <&uart7_pins_a>;
Maxime Riparde476ac82013-07-17 10:12:16 +020091 status = "okay";
92 };
Maxime Ripardd6d3f9e2013-08-31 23:14:19 +020093
94 i2c0: i2c@01c2ac00 {
95 pinctrl-names = "default";
96 pinctrl-0 = <&i2c0_pins_a>;
97 status = "okay";
98 };
99
100 i2c1: i2c@01c2b000 {
101 pinctrl-names = "default";
102 pinctrl-0 = <&i2c1_pins_a>;
103 status = "okay";
104 };
105
106 i2c2: i2c@01c2b400 {
107 pinctrl-names = "default";
108 pinctrl-0 = <&i2c2_pins_a>;
109 status = "okay";
110 };
Chen-Yu Tsai71643182014-02-10 18:35:53 +0800111
112 gmac: ethernet@01c50000 {
113 pinctrl-names = "default";
114 pinctrl-0 = <&gmac_pins_mii_a>;
115 phy = <&phy1>;
116 phy-mode = "mii";
117 status = "okay";
118
119 phy1: ethernet-phy@1 {
120 reg = <1>;
121 };
122 };
Maxime Riparde476ac82013-07-17 10:12:16 +0200123 };
Maxime Ripard6e487da2013-07-25 00:12:45 +0200124
125 leds {
126 compatible = "gpio-leds";
127 pinctrl-names = "default";
128 pinctrl-0 = <&led_pins_olinuxino>;
129
130 green {
131 label = "a20-olinuxino-micro:green:usr";
132 gpios = <&pio 7 2 0>;
133 default-state = "on";
134 };
135 };
Hans de Goede902febf2014-03-01 20:26:22 +0100136
137 reg_ahci_5v: ahci-5v {
138 status = "okay";
139 };
Zalan Blenessye2f02652014-03-01 20:26:36 +0100140
141 reg_usb1_vbus: usb1-vbus {
142 status = "okay";
143 };
144
145 reg_usb2_vbus: usb2-vbus {
146 status = "okay";
147 };
Maxime Riparde476ac82013-07-17 10:12:16 +0200148};