Merge tag 'renesas-dt3-for-v3.15' of git://git.kernel.org/pub/scm/linux/kernel/git...
[firefly-linux-kernel-4.4.55.git] / arch / arm / boot / dts / sun7i-a20-olinuxino-micro.dts
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/ "sun7i-a20.dtsi"
16
17 / {
18         model = "Olimex A20-Olinuxino Micro";
19         compatible = "olimex,a20-olinuxino-micro", "allwinner,sun7i-a20";
20
21         aliases {
22                 spi0 = &spi1;
23                 spi1 = &spi2;
24         };
25
26         soc@01c00000 {
27                 spi1: spi@01c06000 {
28                         pinctrl-names = "default";
29                         pinctrl-0 = <&spi1_pins_a>;
30                         status = "okay";
31                 };
32
33                 spi2: spi@01c17000 {
34                         pinctrl-names = "default";
35                         pinctrl-0 = <&spi2_pins_a>;
36                         status = "okay";
37                 };
38
39                 pinctrl@01c20800 {
40                         led_pins_olinuxino: led_pins@0 {
41                                 allwinner,pins = "PH2";
42                                 allwinner,function = "gpio_out";
43                                 allwinner,drive = <1>;
44                                 allwinner,pull = <0>;
45                         };
46                 };
47
48                 uart0: serial@01c28000 {
49                         pinctrl-names = "default";
50                         pinctrl-0 = <&uart0_pins_a>;
51                         status = "okay";
52                 };
53
54                 uart6: serial@01c29800 {
55                         pinctrl-names = "default";
56                         pinctrl-0 = <&uart6_pins_a>;
57                         status = "okay";
58                 };
59
60                 uart7: serial@01c29c00 {
61                         pinctrl-names = "default";
62                         pinctrl-0 = <&uart7_pins_a>;
63                         status = "okay";
64                 };
65
66                 i2c0: i2c@01c2ac00 {
67                         pinctrl-names = "default";
68                         pinctrl-0 = <&i2c0_pins_a>;
69                         status = "okay";
70                 };
71
72                 i2c1: i2c@01c2b000 {
73                         pinctrl-names = "default";
74                         pinctrl-0 = <&i2c1_pins_a>;
75                         status = "okay";
76                 };
77
78                 i2c2: i2c@01c2b400 {
79                         pinctrl-names = "default";
80                         pinctrl-0 = <&i2c2_pins_a>;
81                         status = "okay";
82                 };
83
84                 gmac: ethernet@01c50000 {
85                         pinctrl-names = "default";
86                         pinctrl-0 = <&gmac_pins_mii_a>;
87                         phy = <&phy1>;
88                         phy-mode = "mii";
89                         status = "okay";
90
91                         phy1: ethernet-phy@1 {
92                                 reg = <1>;
93                         };
94                 };
95         };
96
97         leds {
98                 compatible = "gpio-leds";
99                 pinctrl-names = "default";
100                 pinctrl-0 = <&led_pins_olinuxino>;
101
102                 green {
103                         label = "a20-olinuxino-micro:green:usr";
104                         gpios = <&pio 7 2 0>;
105                         default-state = "on";
106                 };
107         };
108 };