]> git.karo-electronics.de Git - karo-tx-linux.git/blob - arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi
Merge remote-tracking branch 'l2-mtd/master'
[karo-tx-linux.git] / arch / arm64 / boot / dts / qcom / apq8016-sbc.dtsi
1 /*
2  * Copyright (c) 2015, The Linux Foundation. All rights reserved.
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License version 2 and
6  * only version 2 as published by the Free Software Foundation.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11  * GNU General Public License for more details.
12  */
13
14 #include "msm8916.dtsi"
15 #include "pm8916.dtsi"
16 #include "apq8016-sbc-soc-pins.dtsi"
17 #include "apq8016-sbc-pmic-pins.dtsi"
18
19 / {
20         aliases {
21                 serial0 = &blsp1_uart2;
22                 serial1 = &blsp1_uart1;
23                 usid0 = &pm8916_0;
24                 i2c0    = &blsp_i2c2;
25                 i2c1    = &blsp_i2c6;
26                 i2c3    = &blsp_i2c4;
27                 spi0    = &blsp_spi5;
28                 spi1    = &blsp_spi3;
29         };
30
31         chosen {
32                 stdout-path = "serial0";
33         };
34
35         soc {
36                 serial@78af000 {
37                         label = "LS-UART0";
38                         status = "okay";
39                         pinctrl-names = "default", "sleep";
40                         pinctrl-0 = <&blsp1_uart1_default>;
41                         pinctrl-1 = <&blsp1_uart1_sleep>;
42                 };
43
44                 serial@78b0000 {
45                         label = "LS-UART1";
46                         status = "okay";
47                         pinctrl-names = "default", "sleep";
48                         pinctrl-0 = <&blsp1_uart2_default>;
49                         pinctrl-1 = <&blsp1_uart2_sleep>;
50                 };
51
52                 i2c@78b6000 {
53                 /* On Low speed expansion */
54                         label = "LS-I2C0";
55                         status = "okay";
56                 };
57
58                 i2c@78b8000 {
59                 /* On High speed expansion */
60                         label = "HS-I2C2";
61                         status = "okay";
62                 };
63
64                 i2c@78ba000 {
65                 /* On Low speed expansion */
66                         label = "LS-I2C1";
67                         status = "okay";
68                 };
69
70                 spi@78b7000 {
71                 /* On High speed expansion */
72                         label = "HS-SPI1";
73                         status = "okay";
74                 };
75
76                 spi@78b9000 {
77                 /* On Low speed expansion */
78                         label = "LS-SPI0";
79                         status = "okay";
80                 };
81
82                 leds {
83                         pinctrl-names = "default";
84                         pinctrl-0 = <&msmgpio_leds>,
85                                     <&pm8916_gpios_leds>,
86                                     <&pm8916_mpps_leds>;
87
88                         compatible = "gpio-leds";
89
90                         led@1 {
91                                 label = "apq8016-sbc:green:user1";
92                                 gpios = <&msmgpio 21 GPIO_ACTIVE_HIGH>;
93                                 linux,default-trigger = "heartbeat";
94                                 default-state = "off";
95                         };
96
97                         led@2 {
98                                 label = "apq8016-sbc:green:user2";
99                                 gpios = <&msmgpio 120 GPIO_ACTIVE_HIGH>;
100                                 linux,default-trigger = "mmc0";
101                                 default-state = "off";
102                         };
103
104                         led@3 {
105                                 label = "apq8016-sbc:green:user3";
106                                 gpios = <&pm8916_gpios 1 GPIO_ACTIVE_HIGH>;
107                                 linux,default-trigger = "mmc1";
108                                 default-state = "off";
109                         };
110
111                         led@4 {
112                                 label = "apq8016-sbc:green:user4";
113                                 gpios = <&pm8916_gpios 2 GPIO_ACTIVE_HIGH>;
114                                 linux,default-trigger = "none";
115                                 default-state = "off";
116                         };
117
118                         led@5 {
119                                 label = "apq8016-sbc:yellow:wlan";
120                                 gpios = <&pm8916_mpps 2 GPIO_ACTIVE_HIGH>;
121                                 linux,default-trigger = "wlan";
122                                 default-state = "off";
123                         };
124
125                         led@6 {
126                                 label = "apq8016-sbc:blue:bt";
127                                 gpios = <&pm8916_mpps 3 GPIO_ACTIVE_HIGH>;
128                                 linux,default-trigger = "bt";
129                                 default-state = "off";
130                         };
131                 };
132
133                 sdhci@07824000 {
134                         vmmc-supply = <&pm8916_l8>;
135                         vqmmc-supply = <&pm8916_l5>;
136
137                         pinctrl-names = "default", "sleep";
138                         pinctrl-0 = <&sdc1_clk_on &sdc1_cmd_on &sdc1_data_on>;
139                         pinctrl-1 = <&sdc1_clk_off &sdc1_cmd_off &sdc1_data_off>;
140                         status = "okay";
141                 };
142         };
143 };
144
145 &smd_rpm_regulators {
146         vdd_l1_l2_l3-supply = <&pm8916_s3>;
147         vdd_l5-supply = <&pm8916_s3>;
148         vdd_l4_l5_l6-supply = <&pm8916_s4>;
149         vdd_l7-supply = <&pm8916_s4>;
150
151         s1 {
152                 regulator-min-microvolt = <375000>;
153                 regulator-max-microvolt = <1562000>;
154         };
155
156         s3 {
157                 regulator-min-microvolt = <375000>;
158                 regulator-max-microvolt = <1562000>;
159         };
160
161         s4 {
162                 regulator-min-microvolt = <1800000>;
163                 regulator-max-microvolt = <1800000>;
164
165                 regulator-always-on;
166                 regulator-boot-on;
167         };
168
169         l1 {
170                 regulator-min-microvolt = <375000>;
171                 regulator-max-microvolt = <1525000>;
172         };
173
174         l2 {
175                 regulator-min-microvolt = <375000>;
176                 regulator-max-microvolt = <1525000>;
177         };
178
179         l3 {
180                 regulator-min-microvolt = <375000>;
181                 regulator-max-microvolt = <1525000>;
182         };
183
184         l4 {
185                 regulator-min-microvolt = <1750000>;
186                 regulator-max-microvolt = <3337000>;
187         };
188
189         l5 {
190                 regulator-min-microvolt = <1750000>;
191                 regulator-max-microvolt = <3337000>;
192         };
193
194         l6 {
195                 regulator-min-microvolt = <1750000>;
196                 regulator-max-microvolt = <3337000>;
197         };
198
199         l7 {
200                 regulator-min-microvolt = <1750000>;
201                 regulator-max-microvolt = <3337000>;
202         };
203
204         l8 {
205                 regulator-min-microvolt = <1750000>;
206                 regulator-max-microvolt = <3337000>;
207         };
208
209         l9 {
210                 regulator-min-microvolt = <1750000>;
211                 regulator-max-microvolt = <3337000>;
212         };
213
214         l10 {
215                 regulator-min-microvolt = <1750000>;
216                 regulator-max-microvolt = <3337000>;
217         };
218
219         l11 {
220                 regulator-min-microvolt = <1750000>;
221                 regulator-max-microvolt = <3337000>;
222         };
223
224         l12 {
225                 regulator-min-microvolt = <1750000>;
226                 regulator-max-microvolt = <3337000>;
227         };
228
229         l13 {
230                 regulator-min-microvolt = <1750000>;
231                 regulator-max-microvolt = <3337000>;
232         };
233
234         l14 {
235                 regulator-min-microvolt = <1750000>;
236                 regulator-max-microvolt = <3337000>;
237         };
238
239         /**
240          * 1.8v required on LS expansion
241          * for mezzanine boards
242          */
243         l15 {
244                 regulator-min-microvolt = <1750000>;
245                 regulator-max-microvolt = <3337000>;
246                 regulator-always-on;
247         };
248
249         l16 {
250                 regulator-min-microvolt = <1750000>;
251                 regulator-max-microvolt = <3337000>;
252         };
253
254         l17 {
255                 regulator-min-microvolt = <1750000>;
256                 regulator-max-microvolt = <3337000>;
257         };
258
259         l18 {
260                 regulator-min-microvolt = <1750000>;
261                 regulator-max-microvolt = <3337000>;
262         };
263 };