pinctrl: at91: enhance (debugfs) at91_gpio_dbg_show
[cascardo/linux.git] / arch / arm / boot / dts / sun7i-a20-olinuxino-lime.dts
1 /*
2  * This is based on sun4i-a10-olinuxino-lime.dts
3  *
4  * Copyright 2014 - Hans de Goede <hdegoede@redhat.com>
5  * Copyright (c) 2014 FUKAUMI Naoki <naobsd@gmail.com>
6  *
7  * The code contained herein is licensed under the GNU General Public
8  * License. You may obtain a copy of the GNU General Public License
9  * Version 2 or later at the following locations:
10  *
11  * http://www.opensource.org/licenses/gpl-license.html
12  * http://www.gnu.org/copyleft/gpl.html
13  */
14
15 /dts-v1/;
16 /include/ "sun7i-a20.dtsi"
17 /include/ "sunxi-common-regulators.dtsi"
18
19 / {
20         model = "Olimex A20-OLinuXino-LIME";
21         compatible = "olimex,a20-olinuxino-lime", "allwinner,sun7i-a20";
22
23         soc@01c00000 {
24                 mmc0: mmc@01c0f000 {
25                         pinctrl-names = "default";
26                         pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>;
27                         vmmc-supply = <&reg_vcc3v3>;
28                         bus-width = <4>;
29                         cd-gpios = <&pio 7 1 0>; /* PH1 */
30                         cd-inverted;
31                         status = "okay";
32                 };
33
34                 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
48                 ahci: sata@01c18000 {
49                         target-supply = <&reg_ahci_5v>;
50                         status = "okay";
51                 };
52
53                 ehci1: usb@01c1c000 {
54                         status = "okay";
55                 };
56
57                 ohci1: usb@01c1c400 {
58                         status = "okay";
59                 };
60
61                 pinctrl@01c20800 {
62                         ahci_pwr_pin_olinuxinolime: ahci_pwr_pin@1 {
63                                 allwinner,pins = "PC3";
64                                 allwinner,function = "gpio_out";
65                                 allwinner,drive = <0>;
66                                 allwinner,pull = <0>;
67                         };
68
69                         led_pins_olinuxinolime: led_pins@0 {
70                                 allwinner,pins = "PH2";
71                                 allwinner,function = "gpio_out";
72                                 allwinner,drive = <1>;
73                                 allwinner,pull = <0>;
74                         };
75                 };
76
77                 uart0: serial@01c28000 {
78                         pinctrl-names = "default";
79                         pinctrl-0 = <&uart0_pins_a>;
80                         status = "okay";
81                 };
82
83                 i2c0: i2c@01c2ac00 {
84                         pinctrl-names = "default";
85                         pinctrl-0 = <&i2c0_pins_a>;
86                         status = "okay";
87
88                         axp209: pmic@34 {
89                                 compatible = "x-powers,axp209";
90                                 reg = <0x34>;
91                                 interrupt-parent = <&nmi_intc>;
92                                 interrupts = <0 8>;
93
94                                 interrupt-controller;
95                                 #interrupt-cells = <1>;
96                         };
97                 };
98
99                 gmac: ethernet@01c50000 {
100                         pinctrl-names = "default";
101                         pinctrl-0 = <&gmac_pins_mii_a>;
102                         phy = <&phy1>;
103                         phy-mode = "mii";
104                         status = "okay";
105
106                         phy1: ethernet-phy@1 {
107                                 reg = <1>;
108                         };
109                 };
110         };
111
112         leds {
113                 compatible = "gpio-leds";
114                 pinctrl-names = "default";
115                 pinctrl-0 = <&led_pins_olinuxinolime>;
116
117                 green {
118                         label = "a20-olinuxino-lime:green:usr";
119                         gpios = <&pio 7 2 0>;
120                         default-state = "on";
121                 };
122         };
123
124         reg_ahci_5v: ahci-5v {
125                 pinctrl-0 = <&ahci_pwr_pin_olinuxinolime>;
126                 gpio = <&pio 2 3 0>;
127                 status = "okay";
128         };
129
130         reg_usb1_vbus: usb1-vbus {
131                 status = "okay";
132         };
133
134         reg_usb2_vbus: usb2-vbus {
135                 status = "okay";
136         };
137 };