blob: ead3013f9aca9db6a3a5e73b0539ba3698139784 [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"
16
17/ {
18 model = "Olimex A20-Olinuxino Micro";
19 compatible = "olimex,a20-olinuxino-micro", "allwinner,sun7i-a20";
20
21 soc@01c00000 {
Maxime Ripardf7ec00b2013-09-11 11:10:09 +020022 emac: ethernet@01c0b000 {
23 pinctrl-names = "default";
24 pinctrl-0 = <&emac_pins_a>;
25 phy = <&phy1>;
26 status = "okay";
27 };
28
29 mdio@01c0b080 {
30 status = "okay";
31
32 phy1: ethernet-phy@1 {
33 reg = <1>;
34 };
35 };
36
Maxime Ripard6e487da2013-07-25 00:12:45 +020037 pinctrl@01c20800 {
38 led_pins_olinuxino: led_pins@0 {
39 allwinner,pins = "PH2";
40 allwinner,function = "gpio_out";
41 allwinner,drive = <1>;
42 allwinner,pull = <0>;
43 };
44 };
45
Maxime Riparde476ac82013-07-17 10:12:16 +020046 uart0: serial@01c28000 {
Maxime Ripard2fff6ac2013-07-25 00:10:53 +020047 pinctrl-names = "default";
48 pinctrl-0 = <&uart0_pins_a>;
Maxime Riparde476ac82013-07-17 10:12:16 +020049 status = "okay";
50 };
51
52 uart6: serial@01c29800 {
Maxime Ripard2fff6ac2013-07-25 00:10:53 +020053 pinctrl-names = "default";
54 pinctrl-0 = <&uart6_pins_a>;
Maxime Riparde476ac82013-07-17 10:12:16 +020055 status = "okay";
56 };
57
58 uart7: serial@01c29c00 {
Maxime Ripard2fff6ac2013-07-25 00:10:53 +020059 pinctrl-names = "default";
60 pinctrl-0 = <&uart7_pins_a>;
Maxime Riparde476ac82013-07-17 10:12:16 +020061 status = "okay";
62 };
Maxime Ripardd6d3f9e2013-08-31 23:14:19 +020063
64 i2c0: i2c@01c2ac00 {
65 pinctrl-names = "default";
66 pinctrl-0 = <&i2c0_pins_a>;
67 status = "okay";
68 };
69
70 i2c1: i2c@01c2b000 {
71 pinctrl-names = "default";
72 pinctrl-0 = <&i2c1_pins_a>;
73 status = "okay";
74 };
75
76 i2c2: i2c@01c2b400 {
77 pinctrl-names = "default";
78 pinctrl-0 = <&i2c2_pins_a>;
79 status = "okay";
80 };
Maxime Riparde476ac82013-07-17 10:12:16 +020081 };
Maxime Ripard6e487da2013-07-25 00:12:45 +020082
83 leds {
84 compatible = "gpio-leds";
85 pinctrl-names = "default";
86 pinctrl-0 = <&led_pins_olinuxino>;
87
88 green {
89 label = "a20-olinuxino-micro:green:usr";
90 gpios = <&pio 7 2 0>;
91 default-state = "on";
92 };
93 };
Maxime Riparde476ac82013-07-17 10:12:16 +020094};