Merge tag 'v5.7-rc7' into perf/core, to pick up fixes
[linux-2.6-microblaze.git] / arch / arm / boot / dts / e60k02.dtsi
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3  * Copyright 2019 Andreas Kemnade
4  * based on works
5  * Copyright 2016 Freescale Semiconductor, Inc.
6  * and
7  * Copyright (C) 2014 Ricoh Electronic Devices Co., Ltd
8  *
9  * Netronix E60K02 board common.
10  * This board is equipped with different SoCs and
11  * found in ebook-readers like the Kobo Clara HD (with i.MX6SLL) and
12  * the Tolino Shine 3 (with i.MX6SL)
13  */
14 #include <dt-bindings/input/input.h>
15
16 / {
17
18         chosen {
19                 stdout-path = &uart1;
20         };
21
22         gpio_keys: gpio-keys {
23                 compatible = "gpio-keys";
24
25                 power {
26                         label = "Power";
27                         gpios = <&gpio5 8 GPIO_ACTIVE_LOW>;
28                         linux,code = <KEY_POWER>;
29                         wakeup-source;
30                 };
31
32                 cover {
33                         label = "Cover";
34                         gpios = <&gpio5 12 GPIO_ACTIVE_LOW>;
35                         linux,code = <SW_LID>;
36                         linux,input-type = <EV_SW>;
37                         wakeup-source;
38                 };
39         };
40
41         leds: leds {
42                 compatible = "gpio-leds";
43
44                 on {
45                         label = "e60k02:white:on";
46                         gpios = <&gpio5 7 GPIO_ACTIVE_LOW>;
47                         linux,default-trigger = "timer";
48                 };
49         };
50
51         memory@80000000 {
52                 device_type = "memory";
53                 reg = <0x80000000 0x20000000>;
54         };
55
56         reg_wifi: regulator-wifi {
57                 compatible = "regulator-fixed";
58                 regulator-name = "SD3_SPWR";
59                 regulator-min-microvolt = <3000000>;
60                 regulator-max-microvolt = <3000000>;
61                 gpio = <&gpio4 29 GPIO_ACTIVE_HIGH>;
62                 enable-active-high;
63         };
64
65         wifi_pwrseq: wifi_pwrseq {
66                 compatible = "mmc-pwrseq-simple";
67                 post-power-on-delay-ms = <20>;
68                 reset-gpios = <&gpio5 0 GPIO_ACTIVE_LOW>;
69         };
70 };
71
72
73 &i2c1 {
74         clock-frequency = <100000>;
75         status = "okay";
76
77         lm3630a: backlight@36 {
78                 reg = <0x36>;
79                 compatible = "ti,lm3630a";
80                 enable-gpios = <&gpio2 10 GPIO_ACTIVE_HIGH>;
81
82                 #address-cells = <1>;
83                 #size-cells = <0>;
84
85                 led@0 {
86                         reg = <0>;
87                         led-sources = <0>;
88                         label = "backlight_warm";
89                         default-brightness = <0>;
90                         max-brightness = <255>;
91                 };
92
93                 led@1 {
94                         reg = <1>;
95                         led-sources = <1>;
96                         label = "backlight_cold";
97                         default-brightness = <0>;
98                         max-brightness = <255>;
99                 };
100         };
101 };
102
103 &i2c2 {
104         clock-frequency = <100000>;
105         status = "okay";
106
107         /* TODO: CYTTSP5 touch controller at 0x24 */
108
109         /* TODO: TPS65185 PMIC for E Ink at 0x68 */
110
111 };
112
113 &i2c3 {
114         clock-frequency = <100000>;
115         status = "okay";
116
117         ricoh619: pmic@32 {
118                 compatible = "ricoh,rc5t619";
119                 reg = <0x32>;
120                 system-power-controller;
121
122                 regulators {
123                         dcdc1_reg: DCDC1 {
124                                 regulator-name = "DCDC1";
125                                 regulator-min-microvolt = <300000>;
126                                 regulator-max-microvolt = <1875000>;
127                                 regulator-always-on;
128                                 regulator-boot-on;
129
130                                 regulator-state-mem {
131                                         regulator-on-in-suspend;
132                                         regulator-suspend-max-microvolt = <900000>;
133                                         regulator-suspend-min-microvolt = <900000>;
134                                 };
135                         };
136
137                         /* Core3_3V3 */
138                         dcdc2_reg: DCDC2 {
139                                 regulator-name = "DCDC2";
140                                 regulator-always-on;
141                                 regulator-boot-on;
142
143                                 regulator-state-mem {
144                                         regulator-on-in-suspend;
145                                         regulator-suspend-max-microvolt = <3300000>;
146                                         regulator-suspend-min-microvolt = <3300000>;
147                                 };
148                         };
149
150                         dcdc3_reg: DCDC3 {
151                                 regulator-name = "DCDC3";
152                                 regulator-min-microvolt = <300000>;
153                                 regulator-max-microvolt = <1875000>;
154                                 regulator-always-on;
155                                 regulator-boot-on;
156
157                                 regulator-state-mem {
158                                         regulator-on-in-suspend;
159                                         regulator-suspend-max-microvolt = <1140000>;
160                                         regulator-suspend-min-microvolt = <1140000>;
161                                 };
162                         };
163
164                         /* Core4_1V2 */
165                         dcdc4_reg: DCDC4 {
166                                 regulator-name = "DCDC4";
167                                 regulator-min-microvolt = <1200000>;
168                                 regulator-max-microvolt = <1200000>;
169                                 regulator-always-on;
170                                 regulator-boot-on;
171
172                                 regulator-state-mem {
173                                         regulator-on-in-suspend;
174                                         regulator-suspend-max-microvolt = <1140000>;
175                                         regulator-suspend-min-microvolt = <1140000>;
176                                 };
177                         };
178
179                         /* Core4_1V8 */
180                         dcdc5_reg: DCDC5 {
181                                 regulator-name = "DCDC5";
182                                 regulator-min-microvolt = <1800000>;
183                                 regulator-max-microvolt = <1800000>;
184                                 regulator-always-on;
185                                 regulator-boot-on;
186
187                                 regulator-state-mem {
188                                         regulator-on-in-suspend;
189                                         regulator-suspend-max-microvolt = <1700000>;
190                                         regulator-suspend-min-microvolt = <1700000>;
191                                 };
192                         };
193
194                         /* IR_3V3 */
195                         ldo1_reg: LDO1  {
196                                 regulator-name = "LDO1";
197                                 regulator-boot-on;
198                         };
199
200                         /* Core1_3V3 */
201                         ldo2_reg: LDO2  {
202                                 regulator-name = "LDO2";
203                                 regulator-always-on;
204                                 regulator-boot-on;
205
206                                 regulator-state-mem {
207                                         regulator-on-in-suspend;
208                                         regulator-suspend-max-microvolt = <3000000>;
209                                         regulator-suspend-min-microvolt = <3000000>;
210                                 };
211                         };
212
213                         /* Core5_1V2 */
214                         ldo3_reg: LDO3  {
215                                 regulator-name = "LDO3";
216                                 regulator-always-on;
217                                 regulator-boot-on;
218                         };
219
220                         ldo4_reg: LDO4 {
221                                 regulator-name = "LDO4";
222                                 regulator-boot-on;
223                         };
224
225                         /* SPD_3V3 */
226                         ldo5_reg: LDO5 {
227                                 regulator-name = "LDO5";
228                                 regulator-always-on;
229                                 regulator-boot-on;
230                         };
231
232                         /* DDR_0V6 */
233                         ldo6_reg: LDO6 {
234                                 regulator-name = "LDO6";
235                                 regulator-always-on;
236                                 regulator-boot-on;
237                         };
238
239                         /* VDD_PWM */
240                         ldo7_reg: LDO7 {
241                                 regulator-name = "LDO7";
242                                 regulator-always-on;
243                                 regulator-boot-on;
244                         };
245
246                         /* ldo_1v8 */
247                         ldo8_reg: LDO8 {
248                                 regulator-name = "LDO8";
249                                 regulator-min-microvolt = <1800000>;
250                                 regulator-max-microvolt = <1800000>;
251                                 regulator-always-on;
252                                 regulator-boot-on;
253                         };
254
255                         ldo9_reg: LDO9 {
256                                 regulator-name = "LDO9";
257                                 regulator-boot-on;
258                         };
259
260                         ldo10_reg: LDO10 {
261                                 regulator-name = "LDO10";
262                                 regulator-boot-on;
263                         };
264
265                         ldortc1_reg: LDORTC1  {
266                                 regulator-name = "LDORTC1";
267                                 regulator-boot-on;
268                         };
269                 };
270         };
271 };
272
273 &snvs_rtc {
274         /* we are using the rtc in the pmic, not disabled in imx6sll.dtsi */
275         status = "disabled";
276 };
277
278 &uart1 {
279         status = "okay";
280 };
281
282 &usdhc2 {
283         non-removable;
284         status = "okay";
285 };
286
287 &usdhc3 {
288         vmmc-supply = <&reg_wifi>;
289         mmc-pwrseq = <&wifi_pwrseq>;
290         cap-power-off-card;
291         non-removable;
292         status = "okay";
293 };
294
295 &usbotg1 {
296         pinctrl-names = "default";
297         disable-over-current;
298         srp-disable;
299         hnp-disable;
300         adp-disable;
301         status = "okay";
302 };