| 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 |
aliases { |
| 18 |
mmc0 = &usdhc2; |
| 19 |
mmc1 = &usdhc3; |
| 20 |
}; |
| 21 |
|
| 22 |
chosen { |
| 23 |
stdout-path = &uart1; |
| 24 |
}; |
| 25 |
|
| 26 |
epd_pmic_supply: regulator-epd-pmic-in { |
| 27 |
compatible = "regulator-fixed"; |
| 28 |
regulator-name = "epd_pmic_supply"; |
| 29 |
gpio = <&gpio2 14 GPIO_ACTIVE_HIGH>; |
| 30 |
enable-active-high; |
| 31 |
startup-delay-us = <20000>; |
| 32 |
}; |
| 33 |
|
| 34 |
gpio_keys: gpio-keys { |
| 35 |
compatible = "gpio-keys"; |
| 36 |
|
| 37 |
key-power { |
| 38 |
label = "Power"; |
| 39 |
gpios = <&gpio5 8 GPIO_ACTIVE_LOW>; |
| 40 |
linux,code = <KEY_POWER>; |
| 41 |
wakeup-source; |
| 42 |
}; |
| 43 |
|
| 44 |
key-cover { |
| 45 |
label = "Cover"; |
| 46 |
gpios = <&gpio5 12 GPIO_ACTIVE_LOW>; |
| 47 |
linux,code = <SW_LID>; |
| 48 |
linux,input-type = <EV_SW>; |
| 49 |
wakeup-source; |
| 50 |
}; |
| 51 |
}; |
| 52 |
|
| 53 |
leds: leds { |
| 54 |
compatible = "gpio-leds"; |
| 55 |
|
| 56 |
led { |
| 57 |
label = "e60k02:white:on"; |
| 58 |
gpios = <&gpio5 7 GPIO_ACTIVE_LOW>; |
| 59 |
linux,default-trigger = "timer"; |
| 60 |
}; |
| 61 |
}; |
| 62 |
|
| 63 |
memory@80000000 { |
| 64 |
device_type = "memory"; |
| 65 |
reg = <0x80000000 0x20000000>; |
| 66 |
}; |
| 67 |
|
| 68 |
reg_wifi: regulator-wifi { |
| 69 |
compatible = "regulator-fixed"; |
| 70 |
regulator-name = "SD3_SPWR"; |
| 71 |
regulator-min-microvolt = <3000000>; |
| 72 |
regulator-max-microvolt = <3000000>; |
| 73 |
gpio = <&gpio4 29 GPIO_ACTIVE_HIGH>; |
| 74 |
enable-active-high; |
| 75 |
}; |
| 76 |
|
| 77 |
wifi_pwrseq: wifi_pwrseq { |
| 78 |
compatible = "mmc-pwrseq-simple"; |
| 79 |
post-power-on-delay-ms = <20>; |
| 80 |
reset-gpios = <&gpio5 0 GPIO_ACTIVE_LOW>; |
| 81 |
}; |
| 82 |
}; |
| 83 |
|
| 84 |
|
| 85 |
&i2c1 { |
| 86 |
clock-frequency = <100000>; |
| 87 |
status = "okay"; |
| 88 |
|
| 89 |
lm3630a: backlight@36 { |
| 90 |
reg = <0x36>; |
| 91 |
compatible = "ti,lm3630a"; |
| 92 |
enable-gpios = <&gpio2 10 GPIO_ACTIVE_HIGH>; |
| 93 |
|
| 94 |
#address-cells = <1>; |
| 95 |
#size-cells = <0>; |
| 96 |
|
| 97 |
led@0 { |
| 98 |
reg = <0>; |
| 99 |
led-sources = <0>; |
| 100 |
label = "backlight_warm"; |
| 101 |
default-brightness = <0>; |
| 102 |
max-brightness = <255>; |
| 103 |
}; |
| 104 |
|
| 105 |
led@1 { |
| 106 |
reg = <1>; |
| 107 |
led-sources = <1>; |
| 108 |
label = "backlight_cold"; |
| 109 |
default-brightness = <0>; |
| 110 |
max-brightness = <255>; |
| 111 |
}; |
| 112 |
}; |
| 113 |
}; |
| 114 |
|
| 115 |
&i2c2 { |
| 116 |
clock-frequency = <100000>; |
| 117 |
status = "okay"; |
| 118 |
|
| 119 |
touchscreen@24 { |
| 120 |
compatible = "cypress,tt21000"; |
| 121 |
reg = <0x24>; |
| 122 |
pinctrl-names = "default"; |
| 123 |
pinctrl-0 = <&pinctrl_cyttsp5_gpio>; |
| 124 |
interrupt-parent = <&gpio5>; |
| 125 |
interrupts = <6 IRQ_TYPE_EDGE_FALLING>; |
| 126 |
reset-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>; |
| 127 |
vdd-supply = <&ldo5_reg>; |
| 128 |
}; |
| 129 |
|
| 130 |
tps65185: pmic@68 { |
| 131 |
compatible = "ti,tps65185"; |
| 132 |
reg = <0x68>; |
| 133 |
interrupt-parent = <&gpio2>; |
| 134 |
interrupts = <9 IRQ_TYPE_LEVEL_LOW>; |
| 135 |
vin-supply = <&epd_pmic_supply>; |
| 136 |
pwr-good-gpios = <&gpio2 13 GPIO_ACTIVE_HIGH>; |
| 137 |
vcom-ctrl-gpios = <&gpio2 3 GPIO_ACTIVE_HIGH>; |
| 138 |
wakeup-gpios = <&gpio2 7 GPIO_ACTIVE_HIGH>; |
| 139 |
enable-gpios = <&gpio2 8 GPIO_ACTIVE_HIGH>; |
| 140 |
|
| 141 |
regulators { |
| 142 |
vcom_reg: vcom { |
| 143 |
regulator-name = "vcom"; |
| 144 |
}; |
| 145 |
|
| 146 |
vposneg_reg: vposneg { |
| 147 |
regulator-name = "vposneg"; |
| 148 |
regulator-min-microvolt = <15000000>; |
| 149 |
regulator-max-microvolt = <15000000>; |
| 150 |
}; |
| 151 |
|
| 152 |
v3p3_reg: v3p3 { |
| 153 |
regulator-name = "v3p3"; |
| 154 |
}; |
| 155 |
}; |
| 156 |
}; |
| 157 |
}; |
| 158 |
|
| 159 |
&i2c3 { |
| 160 |
clock-frequency = <100000>; |
| 161 |
status = "okay"; |
| 162 |
|
| 163 |
ricoh619: pmic@32 { |
| 164 |
compatible = "ricoh,rc5t619"; |
| 165 |
reg = <0x32>; |
| 166 |
interrupt-parent = <&gpio5>; |
| 167 |
interrupts = <11 IRQ_TYPE_LEVEL_LOW>; |
| 168 |
system-power-controller; |
| 169 |
|
| 170 |
regulators { |
| 171 |
dcdc1_reg: DCDC1 { |
| 172 |
regulator-name = "DCDC1"; |
| 173 |
regulator-min-microvolt = <300000>; |
| 174 |
regulator-max-microvolt = <1875000>; |
| 175 |
regulator-always-on; |
| 176 |
regulator-boot-on; |
| 177 |
|
| 178 |
regulator-state-mem { |
| 179 |
regulator-on-in-suspend; |
| 180 |
regulator-suspend-max-microvolt = <900000>; |
| 181 |
regulator-suspend-min-microvolt = <900000>; |
| 182 |
}; |
| 183 |
}; |
| 184 |
|
| 185 |
/* Core3_3V3 */ |
| 186 |
dcdc2_reg: DCDC2 { |
| 187 |
regulator-name = "DCDC2"; |
| 188 |
regulator-always-on; |
| 189 |
regulator-boot-on; |
| 190 |
|
| 191 |
regulator-state-mem { |
| 192 |
regulator-on-in-suspend; |
| 193 |
regulator-suspend-max-microvolt = <3300000>; |
| 194 |
regulator-suspend-min-microvolt = <3300000>; |
| 195 |
}; |
| 196 |
}; |
| 197 |
|
| 198 |
dcdc3_reg: DCDC3 { |
| 199 |
regulator-name = "DCDC3"; |
| 200 |
regulator-min-microvolt = <300000>; |
| 201 |
regulator-max-microvolt = <1875000>; |
| 202 |
regulator-always-on; |
| 203 |
regulator-boot-on; |
| 204 |
|
| 205 |
regulator-state-mem { |
| 206 |
regulator-on-in-suspend; |
| 207 |
regulator-suspend-max-microvolt = <1140000>; |
| 208 |
regulator-suspend-min-microvolt = <1140000>; |
| 209 |
}; |
| 210 |
}; |
| 211 |
|
| 212 |
/* Core4_1V2 */ |
| 213 |
dcdc4_reg: DCDC4 { |
| 214 |
regulator-name = "DCDC4"; |
| 215 |
regulator-min-microvolt = <1200000>; |
| 216 |
regulator-max-microvolt = <1200000>; |
| 217 |
regulator-always-on; |
| 218 |
regulator-boot-on; |
| 219 |
|
| 220 |
regulator-state-mem { |
| 221 |
regulator-on-in-suspend; |
| 222 |
regulator-suspend-max-microvolt = <1140000>; |
| 223 |
regulator-suspend-min-microvolt = <1140000>; |
| 224 |
}; |
| 225 |
}; |
| 226 |
|
| 227 |
/* Core4_1V8 */ |
| 228 |
dcdc5_reg: DCDC5 { |
| 229 |
regulator-name = "DCDC5"; |
| 230 |
regulator-min-microvolt = <1800000>; |
| 231 |
regulator-max-microvolt = <1800000>; |
| 232 |
regulator-always-on; |
| 233 |
regulator-boot-on; |
| 234 |
|
| 235 |
regulator-state-mem { |
| 236 |
regulator-on-in-suspend; |
| 237 |
regulator-suspend-max-microvolt = <1700000>; |
| 238 |
regulator-suspend-min-microvolt = <1700000>; |
| 239 |
}; |
| 240 |
}; |
| 241 |
|
| 242 |
/* IR_3V3 */ |
| 243 |
ldo1_reg: LDO1 { |
| 244 |
regulator-name = "LDO1"; |
| 245 |
regulator-boot-on; |
| 246 |
}; |
| 247 |
|
| 248 |
/* Core1_3V3 */ |
| 249 |
ldo2_reg: LDO2 { |
| 250 |
regulator-name = "LDO2"; |
| 251 |
regulator-always-on; |
| 252 |
regulator-boot-on; |
| 253 |
|
| 254 |
regulator-state-mem { |
| 255 |
regulator-on-in-suspend; |
| 256 |
regulator-suspend-max-microvolt = <3000000>; |
| 257 |
regulator-suspend-min-microvolt = <3000000>; |
| 258 |
}; |
| 259 |
}; |
| 260 |
|
| 261 |
/* Core5_1V2 */ |
| 262 |
ldo3_reg: LDO3 { |
| 263 |
regulator-name = "LDO3"; |
| 264 |
regulator-always-on; |
| 265 |
regulator-boot-on; |
| 266 |
}; |
| 267 |
|
| 268 |
ldo4_reg: LDO4 { |
| 269 |
regulator-name = "LDO4"; |
| 270 |
regulator-boot-on; |
| 271 |
}; |
| 272 |
|
| 273 |
/* SPD_3V3 */ |
| 274 |
ldo5_reg: LDO5 { |
| 275 |
regulator-name = "LDO5"; |
| 276 |
regulator-always-on; |
| 277 |
regulator-boot-on; |
| 278 |
}; |
| 279 |
|
| 280 |
/* DDR_0V6 */ |
| 281 |
ldo6_reg: LDO6 { |
| 282 |
regulator-name = "LDO6"; |
| 283 |
regulator-always-on; |
| 284 |
regulator-boot-on; |
| 285 |
}; |
| 286 |
|
| 287 |
/* VDD_PWM */ |
| 288 |
ldo7_reg: LDO7 { |
| 289 |
regulator-name = "LDO7"; |
| 290 |
regulator-always-on; |
| 291 |
regulator-boot-on; |
| 292 |
}; |
| 293 |
|
| 294 |
/* ldo_1v8 */ |
| 295 |
ldo8_reg: LDO8 { |
| 296 |
regulator-name = "LDO8"; |
| 297 |
regulator-min-microvolt = <1800000>; |
| 298 |
regulator-max-microvolt = <1800000>; |
| 299 |
regulator-always-on; |
| 300 |
regulator-boot-on; |
| 301 |
}; |
| 302 |
|
| 303 |
ldo9_reg: LDO9 { |
| 304 |
regulator-name = "LDO9"; |
| 305 |
regulator-boot-on; |
| 306 |
}; |
| 307 |
|
| 308 |
ldo10_reg: LDO10 { |
| 309 |
regulator-name = "LDO10"; |
| 310 |
regulator-boot-on; |
| 311 |
}; |
| 312 |
|
| 313 |
ldortc1_reg: LDORTC1 { |
| 314 |
regulator-name = "LDORTC1"; |
| 315 |
regulator-boot-on; |
| 316 |
}; |
| 317 |
}; |
| 318 |
}; |
| 319 |
}; |
| 320 |
|
| 321 |
&snvs_rtc { |
| 322 |
/* we are using the rtc in the pmic, not disabled in imx6sll.dtsi */ |
| 323 |
status = "disabled"; |
| 324 |
}; |
| 325 |
|
| 326 |
&uart1 { |
| 327 |
/* J4, through-hole */ |
| 328 |
status = "okay"; |
| 329 |
}; |
| 330 |
|
| 331 |
&uart4 { |
| 332 |
/* TP198, next to J4, SMD pads */ |
| 333 |
status = "okay"; |
| 334 |
}; |
| 335 |
|
| 336 |
&usdhc2 { |
| 337 |
non-removable; |
| 338 |
status = "okay"; |
| 339 |
}; |
| 340 |
|
| 341 |
&usdhc3 { |
| 342 |
vmmc-supply = <®_wifi>; |
| 343 |
mmc-pwrseq = <&wifi_pwrseq>; |
| 344 |
cap-power-off-card; |
| 345 |
non-removable; |
| 346 |
status = "okay"; |
| 347 |
}; |
| 348 |
|
| 349 |
&usbotg1 { |
| 350 |
pinctrl-names = "default"; |
| 351 |
pinctrl-0 = <&pinctrl_usbotg1>; |
| 352 |
disable-over-current; |
| 353 |
srp-disable; |
| 354 |
hnp-disable; |
| 355 |
adp-disable; |
| 356 |
status = "okay"; |
| 357 |
}; |