Merge branch 'mvebu/soc3' into next/dt
[firefly-linux-kernel-4.4.55.git] / arch / arm / boot / dts / sun7i-a20-cubietruck.dts
1 /*
2  * Copyright 2013 Oliver Schinagl
3  *
4  * Oliver Schinagl <oliver@schinagl.nl>
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 = "Cubietech Cubietruck";
19         compatible = "cubietech,cubietruck", "allwinner,sun7i-a20";
20
21         soc@01c00000 {
22                 pinctrl@01c20800 {
23                         led_pins_cubietruck: led_pins@0 {
24                                 allwinner,pins = "PH7", "PH11", "PH20", "PH21";
25                                 allwinner,function = "gpio_out";
26                                 allwinner,drive = <0>;
27                                 allwinner,pull = <0>;
28                         };
29                 };
30
31                 uart0: serial@01c28000 {
32                         pinctrl-names = "default";
33                         pinctrl-0 = <&uart0_pins_a>;
34                         status = "okay";
35                 };
36
37                 i2c0: i2c@01c2ac00 {
38                         pinctrl-names = "default";
39                         pinctrl-0 = <&i2c0_pins_a>;
40                         status = "okay";
41                 };
42
43                 i2c1: i2c@01c2b000 {
44                         pinctrl-names = "default";
45                         pinctrl-0 = <&i2c1_pins_a>;
46                         status = "okay";
47                 };
48
49                 i2c2: i2c@01c2b400 {
50                         pinctrl-names = "default";
51                         pinctrl-0 = <&i2c2_pins_a>;
52                         status = "okay";
53                 };
54
55                 gmac: ethernet@01c50000 {
56                         pinctrl-names = "default";
57                         pinctrl-0 = <&gmac_pins_rgmii_a>;
58                         phy = <&phy1>;
59                         phy-mode = "rgmii";
60                         status = "okay";
61
62                         phy1: ethernet-phy@1 {
63                                 reg = <1>;
64                         };
65                 };
66         };
67
68         leds {
69                 compatible = "gpio-leds";
70                 pinctrl-names = "default";
71                 pinctrl-0 = <&led_pins_cubietruck>;
72
73                 blue {
74                         label = "cubietruck:blue:usr";
75                         gpios = <&pio 7 21 0>;
76                 };
77
78                 orange {
79                         label = "cubietruck:orange:usr";
80                         gpios = <&pio 7 20 0>;
81                 };
82
83                 white {
84                         label = "cubietruck:white:usr";
85                         gpios = <&pio 7 11 0>;
86                 };
87
88                 green {
89                         label = "cubietruck:green:usr";
90                         gpios = <&pio 7 7 0>;
91                 };
92         };
93 };