ARM: sun7i: dt: Add ahci / sata support
[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 /include/ "sunxi-common-regulators.dtsi"
17
18 / {
19         model = "Olimex A20-Olinuxino Micro";
20         compatible = "olimex,a20-olinuxino-micro", "allwinner,sun7i-a20";
21
22         aliases {
23                 spi0 = &spi1;
24                 spi1 = &spi2;
25         };
26
27         soc@01c00000 {
28                 spi1: spi@01c06000 {
29                         pinctrl-names = "default";
30                         pinctrl-0 = <&spi1_pins_a>;
31                         status = "okay";
32                 };
33
34                 spi2: spi@01c17000 {
35                         pinctrl-names = "default";
36                         pinctrl-0 = <&spi2_pins_a>;
37                         status = "okay";
38                 };
39
40                 ahci: sata@01c18000 {
41                         target-supply = <&reg_ahci_5v>;
42                         status = "okay";
43                 };
44
45                 pinctrl@01c20800 {
46                         led_pins_olinuxino: led_pins@0 {
47                                 allwinner,pins = "PH2";
48                                 allwinner,function = "gpio_out";
49                                 allwinner,drive = <1>;
50                                 allwinner,pull = <0>;
51                         };
52                 };
53
54                 uart0: serial@01c28000 {
55                         pinctrl-names = "default";
56                         pinctrl-0 = <&uart0_pins_a>;
57                         status = "okay";
58                 };
59
60                 uart6: serial@01c29800 {
61                         pinctrl-names = "default";
62                         pinctrl-0 = <&uart6_pins_a>;
63                         status = "okay";
64                 };
65
66                 uart7: serial@01c29c00 {
67                         pinctrl-names = "default";
68                         pinctrl-0 = <&uart7_pins_a>;
69                         status = "okay";
70                 };
71
72                 i2c0: i2c@01c2ac00 {
73                         pinctrl-names = "default";
74                         pinctrl-0 = <&i2c0_pins_a>;
75                         status = "okay";
76                 };
77
78                 i2c1: i2c@01c2b000 {
79                         pinctrl-names = "default";
80                         pinctrl-0 = <&i2c1_pins_a>;
81                         status = "okay";
82                 };
83
84                 i2c2: i2c@01c2b400 {
85                         pinctrl-names = "default";
86                         pinctrl-0 = <&i2c2_pins_a>;
87                         status = "okay";
88                 };
89
90                 gmac: ethernet@01c50000 {
91                         pinctrl-names = "default";
92                         pinctrl-0 = <&gmac_pins_mii_a>;
93                         phy = <&phy1>;
94                         phy-mode = "mii";
95                         status = "okay";
96
97                         phy1: ethernet-phy@1 {
98                                 reg = <1>;
99                         };
100                 };
101         };
102
103         leds {
104                 compatible = "gpio-leds";
105                 pinctrl-names = "default";
106                 pinctrl-0 = <&led_pins_olinuxino>;
107
108                 green {
109                         label = "a20-olinuxino-micro:green:usr";
110                         gpios = <&pio 7 2 0>;
111                         default-state = "on";
112                 };
113         };
114
115         reg_ahci_5v: ahci-5v {
116                 status = "okay";
117         };
118 };