1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2018 MundoReader S.L.
4 * Author: Heiko Stuebner <heiko.stuebner@bq.com>
8 #include <dt-bindings/i2c/i2c.h>
9 #include <dt-bindings/input/input.h>
10 #include "rk3188.dtsi"
13 model = "BQ Edison2 Quad-Core";
14 compatible = "mundoreader,bq-edison2qc", "rockchip,rk3188";
17 device_type = "memory";
18 reg = <0x60000000 0x80000000>;
21 backlight: backlight {
22 compatible = "pwm-backlight";
23 power-supply = <&vsys>;
24 pwms = <&pwm1 0 25000>;
28 compatible = "gpio-keys";
30 pinctrl-names = "default";
31 pinctrl-0 = <&pwr_key &usb_int>;
34 gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_LOW>;
35 linux,code = <KEY_POWER>;
36 label = "GPIO Key Power";
37 linux,input-type = <1>;
38 debounce-interval = <100>;
42 wake_on_usb: wake-on-usb {
43 label = "Wake-on-USB";
44 gpios = <&gpio0 RK_PA7 GPIO_ACTIVE_LOW>;
45 linux,code = <KEY_WAKEUP>;
51 compatible = "gpio-poweroff";
52 gpios = <&gpio0 RK_PA0 GPIO_ACTIVE_LOW>;
53 pinctrl-names = "default";
54 pinctrl-0 = <&pwr_hold>;
55 /* only drive the pin low until device is off */
56 active-delay-ms = <3000>;
60 compatible = "ti,sn75lvds83", "lvds-encoder";
66 lvds_in_vop0: endpoint {
67 remote-endpoint = <&vop0_out_lvds>;
73 lvds_out_panel: endpoint {
74 remote-endpoint = <&panel_in_lvds>;
80 compatible = "innolux,ee101ia-01d", "panel-lvds";
81 backlight = <&backlight>;
83 /* pin LCD_CS, Nshtdn input of lvds-encoder */
84 enable-gpios = <&gpio3 RK_PD6 GPIO_ACTIVE_HIGH>;
85 pinctrl-names = "default";
86 pinctrl-0 = <&lcd_cs>;
87 power-supply = <&vcc_lcd>;
89 data-mapping = "vesa-24";
94 clock-frequency = <72000000>;
106 panel_in_lvds: endpoint {
107 remote-endpoint = <&lvds_out_panel>;
112 sdio_pwrseq: sdio-pwrseq {
113 compatible = "mmc-pwrseq-simple";
115 clock-names = "ext_clock";
116 pinctrl-names = "default";
117 pinctrl-0 = <&wifi_reg_on>;
118 reset-gpios = <&gpio3 RK_PD0 GPIO_ACTIVE_LOW>;
121 avdd_cif: cif-avdd-regulator {
122 compatible = "regulator-fixed";
123 regulator-name = "avdd-cif";
124 regulator-min-microvolt = <2800000>;
125 regulator-max-microvolt = <2800000>;
126 gpio = <&gpio1 RK_PA6 GPIO_ACTIVE_LOW>;
127 pinctrl-names = "default";
128 pinctrl-0 = <&cif_avdd_en>;
129 startup-delay-us = <100000>;
130 vin-supply = <&vcc28_cif>;
133 vcc_5v: vcc-5v-regulator {
134 compatible = "regulator-fixed";
135 regulator-name = "vcc-5v";
136 regulator-min-microvolt = <5000000>;
137 regulator-max-microvolt = <5000000>;
139 gpio = <&gpio0 RK_PA3 GPIO_ACTIVE_HIGH>;
140 pinctrl-names = "default";
141 pinctrl-0 = <&v5_drv>;
142 vin-supply = <&vsys>;
145 vcc_lcd: lcd-regulator {
146 compatible = "regulator-fixed";
147 regulator-name = "vcc-lcd";
148 gpio = <&gpio0 RK_PB0 GPIO_ACTIVE_LOW>;
149 pinctrl-names = "default";
150 pinctrl-0 = <&lcd_en>;
151 startup-delay-us = <50000>;
152 vin-supply = <&vcc_io>;
155 vcc_otg: usb-otg-regulator {
156 compatible = "regulator-fixed";
157 regulator-name = "vcc-otg";
158 regulator-min-microvolt = <5000000>;
159 regulator-max-microvolt = <5000000>;
161 gpio = <&gpio3 RK_PB1 GPIO_ACTIVE_HIGH>;
162 pinctrl-names = "default";
163 pinctrl-0 = <&otg_drv>;
164 startup-delay-us = <100000>;
165 vin-supply = <&vcc_5v>;
168 vcc_sd: sdmmc-regulator {
169 compatible = "regulator-fixed";
170 regulator-name = "vcc-sd";
171 regulator-min-microvolt = <3300000>;
172 regulator-max-microvolt = <3300000>;
173 gpio = <&gpio3 RK_PA1 GPIO_ACTIVE_LOW>;
174 pinctrl-names = "default";
175 pinctrl-0 = <&sdmmc_pwr>;
176 startup-delay-us = <100000>;
177 vin-supply = <&vcc_io>;
180 vccq_emmc: emmc-vccq-regulator {
181 compatible = "regulator-fixed";
182 regulator-name = "vccq-emmc";
183 regulator-min-microvolt = <2800000>;
184 regulator-max-microvolt = <2800000>;
185 vin-supply = <&vcc_io>;
188 /* supplied from the bq24196 */
189 vsys: vsys-regulator {
190 compatible = "regulator-fixed";
191 regulator-name = "vsys";
192 regulator-min-microvolt = <5000000>;
193 regulator-max-microvolt = <5000000>;
199 cpu-supply = <&vdd_arm>;
203 cpu-supply = <&vdd_arm>;
207 cpu-supply = <&vdd_arm>;
211 cpu-supply = <&vdd_arm>;
215 assigned-clocks = <&cru PLL_GPLL>, <&cru PLL_CPLL>,
217 <&cru HCLK_CPU>, <&cru PCLK_CPU>,
218 <&cru ACLK_PERI>, <&cru HCLK_PERI>,
220 assigned-clock-rates = <594000000>, <504000000>,
222 <150000000>, <75000000>,
223 <300000000>, <150000000>,
232 pinctrl-names = "default";
233 pinctrl-0 = <&emmc_clk &emmc_cmd>;
234 vmmc-supply = <&vcc_io>;
235 vqmmc-supply = <&vccq_emmc>;
244 clock-frequency = <400000>;
247 lis3de: accelerometer@29 {
248 compatible = "st,lis3de";
250 interrupt-parent = <&gpio0>;
251 interrupts = <RK_PB7 IRQ_TYPE_EDGE_RISING>;
252 pinctrl-names = "default";
253 pinctrl-0 = <&gsensor_int>;
254 rotation-matrix = "1", "0", "0",
257 vdd-supply = <&vcc_io>;
262 clock-frequency = <400000>;
266 compatible = "ti,tmp108";
268 interrupt-parent = <&gpio1>;
269 interrupts = <RK_PA7 IRQ_TYPE_LEVEL_LOW>;
270 pinctrl-names = "default";
271 pinctrl-0 = <&tmp_alrt>;
272 #thermal-sensor-cells = <0>;
276 compatible = "haoyu,hym8563";
278 interrupt-parent = <&gpio0>;
279 interrupts = <RK_PB5 IRQ_TYPE_EDGE_FALLING>;
280 pinctrl-names = "default";
281 pinctrl-0 = <&rtc_int>;
283 clock-output-names = "xin32k";
287 compatible = "ti,bq27541";
289 power-supplies = <&bq24196>;
293 compatible = "active-semi,act8846";
295 pinctrl-names = "default";
296 pinctrl-0 = <&dvs0_ctl &pmic_int>;
298 vp1-supply = <&vsys>;
299 vp2-supply = <&vsys>;
300 vp3-supply = <&vsys>;
301 vp4-supply = <&vsys>;
302 inl1-supply = <&vcc_io>;
303 inl2-supply = <&vsys>;
304 inl3-supply = <&vsys>;
308 regulator-name = "VCC_DDR";
309 regulator-min-microvolt = <1200000>;
310 regulator-max-microvolt = <1200000>;
315 regulator-name = "VDD_LOG";
316 regulator-min-microvolt = <1000000>;
317 regulator-max-microvolt = <1200000>;
322 regulator-name = "VDD_ARM";
323 regulator-min-microvolt = <875000>;
324 regulator-max-microvolt = <1350000>;
328 vcc_io: vcc_hdmi: REG4 {
329 regulator-name = "VCC_IO";
330 regulator-min-microvolt = <3000000>;
331 regulator-max-microvolt = <3000000>;
336 regulator-name = "VDD_10";
337 regulator-min-microvolt = <1000000>;
338 regulator-max-microvolt = <1000000>;
343 regulator-name = "VDD_12";
344 regulator-min-microvolt = <1200000>;
345 regulator-max-microvolt = <1200000>;
350 regulator-name = "VCC18_CIF";
351 regulator-min-microvolt = <1800000>;
352 regulator-max-microvolt = <1800000>;
357 regulator-name = "VCCA_33";
358 regulator-min-microvolt = <3300000>;
359 regulator-max-microvolt = <3300000>;
364 regulator-name = "VCC_TP";
365 regulator-min-microvolt = <3300000>;
366 regulator-max-microvolt = <3300000>;
371 regulator-name = "VCCIO_WL";
372 regulator-min-microvolt = <2800000>;
373 regulator-max-microvolt = <2800000>;
378 regulator-name = "VCC_18";
379 regulator-min-microvolt = <1800000>;
380 regulator-max-microvolt = <1800000>;
385 regulator-name = "VCC28_CIF";
386 regulator-min-microvolt = <2800000>;
387 regulator-max-microvolt = <2800000>;
393 bq24196: charger@6b {
394 compatible = "ti,bq24196";
396 interrupt-parent = <&gpio0>;
397 interrupts = <RK_PD7 IRQ_TYPE_EDGE_FALLING>;
398 pinctrl-names = "default";
399 pinctrl-0 = <&charger_int &chg_ctl &otg_en>;
400 ti,system-minimum-microvolt = <3200000>;
401 monitored-battery = <&bat>;
404 usb_otg_vbus: usb-otg-vbus { };
409 clock-frequency = <400000>;
412 ft5606: touchscreen@3e {
413 compatible = "edt,edt-ft5506";
415 interrupt-parent = <&gpio1>;
416 interrupts = <RK_PB7 IRQ_TYPE_EDGE_FALLING>;
417 pinctrl-names = "default";
418 pinctrl-0 = <&tp_int &tp_rst>;
419 reset-gpios = <&gpio0 RK_PB6 GPIO_ACTIVE_LOW>;
420 touchscreen-inverted-y;
421 /* hw ts resolution does not match display */
422 touchscreen-size-y = <1024>;
423 touchscreen-size-x = <768>;
424 touchscreen-swapped-x-y;
429 clock-frequency = <400000>;
434 clock-frequency = <400000>;
438 compatible = "realtek,rt5616";
440 clocks = <&cru SCLK_I2S0>;
441 clock-names = "mclk";
442 #sound-dai-cells = <0>;
455 pinctrl-names = "default";
456 pinctrl-0 = <&sd0_clk>, <&sd0_cmd>, <&sd0_cd>, <&sd0_bus4>;
457 vmmc-supply = <&vcc_sd>;
465 keep-power-in-suspend;
466 mmc-pwrseq = <&sdio_pwrseq>;
468 pinctrl-names = "default";
469 pinctrl-0 = <&sd1_clk>, <&sd1_cmd>, <&sd1_bus4>;
470 vmmcq-supply = <&vccio_wl>;
474 compatible = "brcm,bcm4329-fmac";
475 interrupt-parent = <&gpio3>;
476 interrupts = <RK_PD2 GPIO_ACTIVE_HIGH>;
477 interrupt-names = "host-wake";
478 brcm,drive-strength = <5>;
479 pinctrl-names = "default";
480 pinctrl-0 = <&wifi_host_wake>;
489 pcfg_output_high: pcfg-output-high {
493 pcfg_output_low: pcfg-output-low {
499 rockchip,pins = <3 RK_PD3 RK_FUNC_GPIO &pcfg_output_low>;
503 rockchip,pins = <0 RK_PB3 RK_FUNC_GPIO &pcfg_pull_up>;
508 charger_int: charger-int {
509 rockchip,pins = <0 RK_PD7 RK_FUNC_GPIO &pcfg_pull_up>;
512 /* pin hog to make it select usb profile */
514 rockchip,pins = <0 RK_PA1 RK_FUNC_GPIO &pcfg_output_high>;
517 /* low: charging, high: complete, fault: blinking */
519 rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>;
522 /* charging enabled when pin low and register set */
524 rockchip,pins = <0 RK_PC1 RK_FUNC_GPIO &pcfg_output_low>;
527 /* bq29196 powergood (when low) signal */
529 rockchip,pins = <0 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
532 /* wire bq24196 otg pin to high, to enable 500mA charging */
534 rockchip,pins = <0 RK_PB1 RK_FUNC_GPIO &pcfg_output_high>;
540 rockchip,pins = <3 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>;
544 rockchip,pins = <3 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>;
547 cif_avdd_en: cif-avdd-en {
548 rockchip,pins = <1 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>;
554 rockchip,pins = <3 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>;
558 rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>;
564 rockchip,pins = <1 RK_PB7 RK_FUNC_GPIO &pcfg_pull_up>;
568 rockchip,pins = <0 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>;
574 rockchip,pins = <2 RK_PD6 RK_FUNC_GPIO &pcfg_pull_up>;
578 rockchip,pins = <3 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
584 rockchip,pins = <0 RK_PB5 RK_FUNC_GPIO &pcfg_pull_up>;
590 rockchip,pins = <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_up>;
594 rockchip,pins = <0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up>;
599 gsensor_int: gsensor-int {
600 rockchip,pins = <0 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>;
605 sdmmc_pwr: sdmmc-pwr {
606 rockchip,pins = <3 RK_PA1 RK_FUNC_GPIO &pcfg_pull_none>;
612 rockchip,pins = <1 RK_PA7 RK_FUNC_GPIO &pcfg_pull_none>;
618 rockchip,pins = <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>;
622 rockchip,pins = <3 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>;
626 rockchip,pins = <0 RK_PA7 RK_FUNC_GPIO &pcfg_pull_up>;
631 bt_host_wake: bt-host-wake {
632 rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>;
635 bt_reg_on: bt-reg-on {
636 rockchip,pins = <3 RK_PC7 RK_FUNC_GPIO &pcfg_pull_none>;
639 /* pin hog to pull the reset high */
641 rockchip,pins = <3 RK_PD1 RK_FUNC_GPIO &pcfg_output_high>;
645 rockchip,pins = <3 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>;
648 wifi_host_wake: wifi-host-wake {
649 rockchip,pins = <3 RK_PD2 RK_FUNC_GPIO &pcfg_pull_up>;
652 wifi_reg_on: wifi-reg-on {
653 rockchip,pins = <3 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>;
659 vref-supply = <&vcc_18>;
668 pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>;
672 compatible = "brcm,bcm43438-bt";
673 max-speed = <2000000>;
674 device-wakeup-gpios = <&gpio3 RK_PC6 GPIO_ACTIVE_HIGH>;
675 host-wakeup-gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_HIGH>;
676 shutdown-gpios = <&gpio3 RK_PC7 GPIO_ACTIVE_HIGH>;
677 pinctrl-names = "default";
678 pinctrl-0 = <&bt_host_wake &bt_reg_on &bt_rst &bt_wake>;
691 pinctrl-0 = <&uart3_xfer &uart3_cts &uart3_rts>;
712 vop0_out_lvds: endpoint {
713 remote-endpoint = <&lvds_in_vop0>;
718 pinctrl-names = "default";
719 pinctrl-0 = <&lcdc1_dclk &lcdc1_den &lcdc1_hsync
720 &lcdc1_vsync &lcdc1_rgb24>;