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