treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / arch / arm / boot / dts / e60k02.dtsi
blob5a2c5320437dd246835d8a217c8cfad65694b1d0
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>
16 / {
18         chosen {
19                 stdout-path = &uart1;
20         };
22         gpio_keys: gpio-keys {
23                 compatible = "gpio-keys";
25                 power {
26                         label = "Power";
27                         gpios = <&gpio5 8 GPIO_ACTIVE_LOW>;
28                         linux,code = <KEY_POWER>;
29                         wakeup-source;
30                 };
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         };
41         leds: leds {
42                 compatible = "gpio-leds";
44                 on {
45                         label = "e60k02:white:on";
46                         gpios = <&gpio5 7 GPIO_ACTIVE_LOW>;
47                         linux,default-trigger = "timer";
48                 };
49         };
51         memory {
52                 reg = <0x80000000 0x20000000>;
53         };
55         reg_wifi: regulator-wifi {
56                 compatible = "regulator-fixed";
57                 regulator-name = "SD3_SPWR";
58                 regulator-min-microvolt = <3000000>;
59                 regulator-max-microvolt = <3000000>;
60                 gpio = <&gpio4 29 GPIO_ACTIVE_HIGH>;
61                 enable-active-high;
62         };
64         wifi_pwrseq: wifi_pwrseq {
65                 compatible = "mmc-pwrseq-simple";
66                 post-power-on-delay-ms = <20>;
67                 reset-gpios = <&gpio5 0 GPIO_ACTIVE_LOW>;
68         };
72 &i2c1 {
73         clock-frequency = <100000>;
74         status = "okay";
76         lm3630a: backlight@36 {
77                 reg = <0x36>;
78                 compatible = "ti,lm3630a";
79                 enable-gpios = <&gpio2 10 GPIO_ACTIVE_HIGH>;
81                 #address-cells = <1>;
82                 #size-cells = <0>;
84                 led@0 {
85                         reg = <0>;
86                         led-sources = <0>;
87                         label = "backlight_warm";
88                         default-brightness = <0>;
89                         max-brightness = <255>;
90                 };
92                 led@1 {
93                         reg = <1>;
94                         led-sources = <1>;
95                         label = "backlight_cold";
96                         default-brightness = <0>;
97                         max-brightness = <255>;
98                 };
99         };
102 &i2c2 {
103         clock-frequency = <100000>;
104         status = "okay";
106         /* TODO: CYTTSP5 touch controller at 0x24 */
108         /* TODO: TPS65185 PMIC for E Ink at 0x68 */
112 &i2c3 {
113         clock-frequency = <100000>;
114         status = "okay";
116         ricoh619: pmic@32 {
117                 compatible = "ricoh,rc5t619";
118                 reg = <0x32>;
119                 system-power-controller;
121                 regulators {
122                         dcdc1_reg: DCDC1 {
123                                 regulator-name = "DCDC1";
124                                 regulator-min-microvolt = <300000>;
125                                 regulator-max-microvolt = <1875000>;
126                                 regulator-always-on;
127                                 regulator-boot-on;
129                                 regulator-state-mem {
130                                         regulator-on-in-suspend;
131                                         regulator-suspend-max-microvolt = <900000>;
132                                         regulator-suspend-min-microvolt = <900000>;
133                                 };
134                         };
136                         /* Core3_3V3 */
137                         dcdc2_reg: DCDC2 {
138                                 regulator-name = "DCDC2";
139                                 regulator-always-on;
140                                 regulator-boot-on;
142                                 regulator-state-mem {
143                                         regulator-on-in-suspend;
144                                         regulator-suspend-max-microvolt = <3300000>;
145                                         regulator-suspend-min-microvolt = <3300000>;
146                                 };
147                         };
149                         dcdc3_reg: DCDC3 {
150                                 regulator-name = "DCDC3";
151                                 regulator-min-microvolt = <300000>;
152                                 regulator-max-microvolt = <1875000>;
153                                 regulator-always-on;
154                                 regulator-boot-on;
156                                 regulator-state-mem {
157                                         regulator-on-in-suspend;
158                                         regulator-suspend-max-microvolt = <1140000>;
159                                         regulator-suspend-min-microvolt = <1140000>;
160                                 };
161                         };
163                         /* Core4_1V2 */
164                         dcdc4_reg: DCDC4 {
165                                 regulator-name = "DCDC4";
166                                 regulator-min-microvolt = <1200000>;
167                                 regulator-max-microvolt = <1200000>;
168                                 regulator-always-on;
169                                 regulator-boot-on;
171                                 regulator-state-mem {
172                                         regulator-on-in-suspend;
173                                         regulator-suspend-max-microvolt = <1140000>;
174                                         regulator-suspend-min-microvolt = <1140000>;
175                                 };
176                         };
178                         /* Core4_1V8 */
179                         dcdc5_reg: DCDC5 {
180                                 regulator-name = "DCDC5";
181                                 regulator-min-microvolt = <1800000>;
182                                 regulator-max-microvolt = <1800000>;
183                                 regulator-always-on;
184                                 regulator-boot-on;
186                                 regulator-state-mem {
187                                         regulator-on-in-suspend;
188                                         regulator-suspend-max-microvolt = <1700000>;
189                                         regulator-suspend-min-microvolt = <1700000>;
190                                 };
191                         };
193                         /* IR_3V3 */
194                         ldo1_reg: LDO1  {
195                                 regulator-name = "LDO1";
196                                 regulator-boot-on;
197                         };
199                         /* Core1_3V3 */
200                         ldo2_reg: LDO2  {
201                                 regulator-name = "LDO2";
202                                 regulator-always-on;
203                                 regulator-boot-on;
205                                 regulator-state-mem {
206                                         regulator-on-in-suspend;
207                                         regulator-suspend-max-microvolt = <3000000>;
208                                         regulator-suspend-min-microvolt = <3000000>;
209                                 };
210                         };
212                         /* Core5_1V2 */
213                         ldo3_reg: LDO3  {
214                                 regulator-name = "LDO3";
215                                 regulator-always-on;
216                                 regulator-boot-on;
217                         };
219                         ldo4_reg: LDO4 {
220                                 regulator-name = "LDO4";
221                                 regulator-boot-on;
222                         };
224                         /* SPD_3V3 */
225                         ldo5_reg: LDO5 {
226                                 regulator-name = "LDO5";
227                                 regulator-always-on;
228                                 regulator-boot-on;
229                         };
231                         /* DDR_0V6 */
232                         ldo6_reg: LDO6 {
233                                 regulator-name = "LDO6";
234                                 regulator-always-on;
235                                 regulator-boot-on;
236                         };
238                         /* VDD_PWM */
239                         ldo7_reg: LDO7 {
240                                 regulator-name = "LDO7";
241                                 regulator-always-on;
242                                 regulator-boot-on;
243                         };
245                         /* ldo_1v8 */
246                         ldo8_reg: LDO8 {
247                                 regulator-name = "LDO8";
248                                 regulator-min-microvolt = <1800000>;
249                                 regulator-max-microvolt = <1800000>;
250                                 regulator-always-on;
251                                 regulator-boot-on;
252                         };
254                         ldo9_reg: LDO9 {
255                                 regulator-name = "LDO9";
256                                 regulator-boot-on;
257                         };
259                         ldo10_reg: LDO10 {
260                                 regulator-name = "LDO10";
261                                 regulator-boot-on;
262                         };
264                         ldortc1_reg: LDORTC1  {
265                                 regulator-name = "LDORTC1";
266                                 regulator-boot-on;
267                         };
268                 };
269         };
272 &snvs_rtc {
273         /* we are using the rtc in the pmic, not disabled in imx6sll.dtsi */
274         status = "disabled";
277 &uart1 {
278         status = "okay";
281 &usdhc2 {
282         non-removable;
283         status = "okay";
286 &usdhc3 {
287         vmmc-supply = <&reg_wifi>;
288         mmc-pwrseq = <&wifi_pwrseq>;
289         cap-power-off-card;
290         non-removable;
291         status = "okay";
294 &usbotg1 {
295         pinctrl-names = "default";
296         disable-over-current;
297         srp-disable;
298         hnp-disable;
299         adp-disable;
300         status = "okay";