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";
69 lvds_in_vop0: endpoint {
70 remote-endpoint = <&vop0_out_lvds>;
77 lvds_out_panel: endpoint {
78 remote-endpoint = <&panel_in_lvds>;
85 compatible = "innolux,ee101ia-01d", "panel-lvds";
86 backlight = <&backlight>;
88 /* pin LCD_CS, Nshtdn input of lvds-encoder */
89 enable-gpios = <&gpio3 RK_PD6 GPIO_ACTIVE_HIGH>;
90 pinctrl-names = "default";
91 pinctrl-0 = <&lcd_cs>;
92 power-supply = <&vcc_lcd>;
94 data-mapping = "vesa-24";
99 clock-frequency = <72000000>;
111 panel_in_lvds: endpoint {
112 remote-endpoint = <&lvds_out_panel>;
117 sdio_pwrseq: sdio-pwrseq {
118 compatible = "mmc-pwrseq-simple";
120 clock-names = "ext_clock";
121 pinctrl-names = "default";
122 pinctrl-0 = <&wifi_reg_on>;
123 reset-gpios = <&gpio3 RK_PD0 GPIO_ACTIVE_LOW>;
126 avdd_cif: cif-avdd-regulator {
127 compatible = "regulator-fixed";
128 regulator-name = "avdd-cif";
129 regulator-min-microvolt = <2800000>;
130 regulator-max-microvolt = <2800000>;
131 gpio = <&gpio1 RK_PA6 GPIO_ACTIVE_LOW>;
132 pinctrl-names = "default";
133 pinctrl-0 = <&cif_avdd_en>;
134 startup-delay-us = <100000>;
135 vin-supply = <&vcc28_cif>;
138 vcc_5v: vcc-5v-regulator {
139 compatible = "regulator-fixed";
140 regulator-name = "vcc-5v";
141 regulator-min-microvolt = <5000000>;
142 regulator-max-microvolt = <5000000>;
144 gpio = <&gpio0 RK_PA3 GPIO_ACTIVE_HIGH>;
145 pinctrl-names = "default";
146 pinctrl-0 = <&v5_drv>;
147 vin-supply = <&vsys>;
150 vcc_lcd: lcd-regulator {
151 compatible = "regulator-fixed";
152 regulator-name = "vcc-lcd";
153 gpio = <&gpio0 RK_PB0 GPIO_ACTIVE_LOW>;
154 pinctrl-names = "default";
155 pinctrl-0 = <&lcd_en>;
156 startup-delay-us = <50000>;
157 vin-supply = <&vcc_io>;
160 vcc_otg: usb-otg-regulator {
161 compatible = "regulator-fixed";
162 regulator-name = "vcc-otg";
163 regulator-min-microvolt = <5000000>;
164 regulator-max-microvolt = <5000000>;
166 gpio = <&gpio3 RK_PB1 GPIO_ACTIVE_HIGH>;
167 pinctrl-names = "default";
168 pinctrl-0 = <&otg_drv>;
169 startup-delay-us = <100000>;
170 vin-supply = <&vcc_5v>;
173 vcc_sd: sdmmc-regulator {
174 compatible = "regulator-fixed";
175 regulator-name = "vcc-sd";
176 regulator-min-microvolt = <3300000>;
177 regulator-max-microvolt = <3300000>;
178 gpio = <&gpio3 RK_PA1 GPIO_ACTIVE_LOW>;
179 pinctrl-names = "default";
180 pinctrl-0 = <&sdmmc_pwr>;
181 startup-delay-us = <100000>;
182 vin-supply = <&vcc_io>;
185 vccq_emmc: emmc-vccq-regulator {
186 compatible = "regulator-fixed";
187 regulator-name = "vccq-emmc";
188 regulator-min-microvolt = <2800000>;
189 regulator-max-microvolt = <2800000>;
190 vin-supply = <&vcc_io>;
193 /* supplied from the bq24196 */
194 vsys: vsys-regulator {
195 compatible = "regulator-fixed";
196 regulator-name = "vsys";
197 regulator-min-microvolt = <5000000>;
198 regulator-max-microvolt = <5000000>;
204 cpu-supply = <&vdd_arm>;
208 cpu-supply = <&vdd_arm>;
212 cpu-supply = <&vdd_arm>;
216 cpu-supply = <&vdd_arm>;
220 assigned-clocks = <&cru PLL_GPLL>, <&cru PLL_CPLL>,
222 <&cru HCLK_CPU>, <&cru PCLK_CPU>,
223 <&cru ACLK_PERI>, <&cru HCLK_PERI>,
225 assigned-clock-rates = <594000000>, <504000000>,
227 <150000000>, <75000000>,
228 <300000000>, <150000000>,
236 pinctrl-names = "default";
237 pinctrl-0 = <&emmc_clk &emmc_cmd>;
238 vmmc-supply = <&vcc_io>;
239 vqmmc-supply = <&vccq_emmc>;
248 clock-frequency = <400000>;
251 lis3de: accelerometer@29 {
252 compatible = "st,lis3de";
254 interrupt-parent = <&gpio0>;
255 interrupts = <RK_PB7 IRQ_TYPE_EDGE_RISING>;
256 pinctrl-names = "default";
257 pinctrl-0 = <&gsensor_int>;
258 rotation-matrix = "1", "0", "0",
261 vdd-supply = <&vcc_io>;
266 clock-frequency = <400000>;
270 compatible = "ti,tmp108";
272 interrupt-parent = <&gpio1>;
273 interrupts = <RK_PA7 IRQ_TYPE_LEVEL_LOW>;
274 pinctrl-names = "default";
275 pinctrl-0 = <&tmp_alrt>;
276 #thermal-sensor-cells = <0>;
280 compatible = "haoyu,hym8563";
282 interrupt-parent = <&gpio0>;
283 interrupts = <RK_PB5 IRQ_TYPE_EDGE_FALLING>;
284 pinctrl-names = "default";
285 pinctrl-0 = <&rtc_int>;
287 clock-output-names = "xin32k";
291 compatible = "ti,bq27541";
293 power-supplies = <&bq24196>;
297 compatible = "active-semi,act8846";
299 pinctrl-names = "default";
300 pinctrl-0 = <&dvs0_ctl &pmic_int>;
302 vp1-supply = <&vsys>;
303 vp2-supply = <&vsys>;
304 vp3-supply = <&vsys>;
305 vp4-supply = <&vsys>;
306 inl1-supply = <&vcc_io>;
307 inl2-supply = <&vsys>;
308 inl3-supply = <&vsys>;
312 regulator-name = "VCC_DDR";
313 regulator-min-microvolt = <1200000>;
314 regulator-max-microvolt = <1200000>;
319 regulator-name = "VDD_LOG";
320 regulator-min-microvolt = <1000000>;
321 regulator-max-microvolt = <1200000>;
326 regulator-name = "VDD_ARM";
327 regulator-min-microvolt = <875000>;
328 regulator-max-microvolt = <1350000>;
332 vcc_io: vcc_hdmi: REG4 {
333 regulator-name = "VCC_IO";
334 regulator-min-microvolt = <3000000>;
335 regulator-max-microvolt = <3000000>;
340 regulator-name = "VDD_10";
341 regulator-min-microvolt = <1000000>;
342 regulator-max-microvolt = <1000000>;
347 regulator-name = "VDD_12";
348 regulator-min-microvolt = <1200000>;
349 regulator-max-microvolt = <1200000>;
354 regulator-name = "VCC18_CIF";
355 regulator-min-microvolt = <1800000>;
356 regulator-max-microvolt = <1800000>;
361 regulator-name = "VCCA_33";
362 regulator-min-microvolt = <3300000>;
363 regulator-max-microvolt = <3300000>;
368 regulator-name = "VCC_TP";
369 regulator-min-microvolt = <3300000>;
370 regulator-max-microvolt = <3300000>;
375 regulator-name = "VCCIO_WL";
376 regulator-min-microvolt = <2800000>;
377 regulator-max-microvolt = <2800000>;
382 regulator-name = "VCC_18";
383 regulator-min-microvolt = <1800000>;
384 regulator-max-microvolt = <1800000>;
389 regulator-name = "VCC28_CIF";
390 regulator-min-microvolt = <2800000>;
391 regulator-max-microvolt = <2800000>;
397 bq24196: charger@6b {
398 compatible = "ti,bq24196";
400 interrupt-parent = <&gpio0>;
401 interrupts = <RK_PD7 IRQ_TYPE_EDGE_FALLING>;
402 pinctrl-names = "default";
403 pinctrl-0 = <&charger_int &chg_ctl &otg_en>;
404 ti,system-minimum-microvolt = <3200000>;
405 monitored-battery = <&bat>;
408 usb_otg_vbus: usb-otg-vbus { };
413 clock-frequency = <400000>;
416 ft5606: touchscreen@3e {
417 compatible = "edt,edt-ft5506";
419 interrupt-parent = <&gpio1>;
420 interrupts = <RK_PB7 IRQ_TYPE_EDGE_FALLING>;
421 pinctrl-names = "default";
422 pinctrl-0 = <&tp_int &tp_rst>;
423 reset-gpios = <&gpio0 RK_PB6 GPIO_ACTIVE_LOW>;
424 touchscreen-inverted-y;
425 /* hw ts resolution does not match display */
426 touchscreen-size-y = <1024>;
427 touchscreen-size-x = <768>;
428 touchscreen-swapped-x-y;
433 clock-frequency = <400000>;
438 clock-frequency = <400000>;
442 compatible = "realtek,rt5616";
444 clocks = <&cru SCLK_I2S0>;
445 clock-names = "mclk";
446 #sound-dai-cells = <0>;
459 pinctrl-names = "default";
460 pinctrl-0 = <&sd0_clk>, <&sd0_cmd>, <&sd0_cd>, <&sd0_bus4>;
461 vmmc-supply = <&vcc_sd>;
468 keep-power-in-suspend;
469 mmc-pwrseq = <&sdio_pwrseq>;
471 pinctrl-names = "default";
472 pinctrl-0 = <&sd1_clk>, <&sd1_cmd>, <&sd1_bus4>;
473 vqmmc-supply = <&vccio_wl>;
474 #address-cells = <1>;
480 compatible = "brcm,bcm4329-fmac";
481 interrupt-parent = <&gpio3>;
482 interrupts = <RK_PD2 GPIO_ACTIVE_HIGH>;
483 interrupt-names = "host-wake";
484 brcm,drive-strength = <5>;
485 pinctrl-names = "default";
486 pinctrl-0 = <&wifi_host_wake>;
495 pcfg_output_high: pcfg-output-high {
499 pcfg_output_low: pcfg-output-low {
505 rockchip,pins = <3 RK_PD3 RK_FUNC_GPIO &pcfg_output_low>;
509 rockchip,pins = <0 RK_PB3 RK_FUNC_GPIO &pcfg_pull_up>;
514 charger_int: charger-int {
515 rockchip,pins = <0 RK_PD7 RK_FUNC_GPIO &pcfg_pull_up>;
518 /* pin hog to make it select usb profile */
520 rockchip,pins = <0 RK_PA1 RK_FUNC_GPIO &pcfg_output_high>;
523 /* low: charging, high: complete, fault: blinking */
525 rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>;
528 /* charging enabled when pin low and register set */
530 rockchip,pins = <0 RK_PC1 RK_FUNC_GPIO &pcfg_output_low>;
533 /* bq29196 powergood (when low) signal */
535 rockchip,pins = <0 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
538 /* wire bq24196 otg pin to high, to enable 500mA charging */
540 rockchip,pins = <0 RK_PB1 RK_FUNC_GPIO &pcfg_output_high>;
546 rockchip,pins = <3 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>;
550 rockchip,pins = <3 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>;
553 cif_avdd_en: cif-avdd-en {
554 rockchip,pins = <1 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>;
560 rockchip,pins = <3 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>;
564 rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>;
570 rockchip,pins = <1 RK_PB7 RK_FUNC_GPIO &pcfg_pull_up>;
574 rockchip,pins = <0 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>;
580 rockchip,pins = <2 RK_PD6 RK_FUNC_GPIO &pcfg_pull_up>;
584 rockchip,pins = <3 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
590 rockchip,pins = <0 RK_PB5 RK_FUNC_GPIO &pcfg_pull_up>;
596 rockchip,pins = <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_up>;
600 rockchip,pins = <0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up>;
605 gsensor_int: gsensor-int {
606 rockchip,pins = <0 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>;
611 sdmmc_pwr: sdmmc-pwr {
612 rockchip,pins = <3 RK_PA1 RK_FUNC_GPIO &pcfg_pull_none>;
618 rockchip,pins = <1 RK_PA7 RK_FUNC_GPIO &pcfg_pull_none>;
624 rockchip,pins = <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>;
628 rockchip,pins = <3 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>;
632 rockchip,pins = <0 RK_PA7 RK_FUNC_GPIO &pcfg_pull_up>;
637 bt_host_wake: bt-host-wake {
638 rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>;
641 bt_reg_on: bt-reg-on {
642 rockchip,pins = <3 RK_PC7 RK_FUNC_GPIO &pcfg_pull_none>;
645 /* pin hog to pull the reset high */
647 rockchip,pins = <3 RK_PD1 RK_FUNC_GPIO &pcfg_output_high>;
651 rockchip,pins = <3 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>;
654 wifi_host_wake: wifi-host-wake {
655 rockchip,pins = <3 RK_PD2 RK_FUNC_GPIO &pcfg_pull_up>;
658 wifi_reg_on: wifi-reg-on {
659 rockchip,pins = <3 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>;
665 vref-supply = <&vcc_18>;
674 pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>;
678 compatible = "brcm,bcm43438-bt";
679 max-speed = <2000000>;
680 device-wakeup-gpios = <&gpio3 RK_PC6 GPIO_ACTIVE_HIGH>;
681 host-wakeup-gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_HIGH>;
682 shutdown-gpios = <&gpio3 RK_PC7 GPIO_ACTIVE_HIGH>;
683 pinctrl-names = "default";
684 pinctrl-0 = <&bt_host_wake &bt_reg_on &bt_rst &bt_wake>;
697 pinctrl-0 = <&uart3_xfer &uart3_cts &uart3_rts>;
718 vop0_out_lvds: endpoint {
719 remote-endpoint = <&lvds_in_vop0>;
724 pinctrl-names = "default";
725 pinctrl-0 = <&lcdc1_dclk &lcdc1_den &lcdc1_hsync
726 &lcdc1_vsync &lcdc1_rgb24>;