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";
23 device_type = "memory";
24 reg = <0x60000000 0x80000000>;
27 backlight: backlight {
28 compatible = "pwm-backlight";
29 power-supply = <&vsys>;
30 pwms = <&pwm1 0 25000>;
34 compatible = "gpio-keys";
36 pinctrl-names = "default";
37 pinctrl-0 = <&pwr_key &usb_int>;
40 gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_LOW>;
41 linux,code = <KEY_POWER>;
42 label = "GPIO Key Power";
43 linux,input-type = <1>;
44 debounce-interval = <100>;
48 wake_on_usb: wake-on-usb {
49 label = "Wake-on-USB";
50 gpios = <&gpio0 RK_PA7 GPIO_ACTIVE_LOW>;
51 linux,code = <KEY_WAKEUP>;
57 compatible = "gpio-poweroff";
58 gpios = <&gpio0 RK_PA0 GPIO_ACTIVE_LOW>;
59 pinctrl-names = "default";
60 pinctrl-0 = <&pwr_hold>;
61 /* only drive the pin low until device is off */
62 active-delay-ms = <3000>;
66 compatible = "ti,sn75lvds83", "lvds-encoder";
75 lvds_in_vop0: endpoint {
76 remote-endpoint = <&vop0_out_lvds>;
83 lvds_out_panel: endpoint {
84 remote-endpoint = <&panel_in_lvds>;
91 compatible = "innolux,ee101ia-01d", "panel-lvds";
92 backlight = <&backlight>;
94 /* pin LCD_CS, Nshtdn input of lvds-encoder */
95 enable-gpios = <&gpio3 RK_PD6 GPIO_ACTIVE_HIGH>;
96 pinctrl-names = "default";
97 pinctrl-0 = <&lcd_cs>;
98 power-supply = <&vcc_lcd>;
100 data-mapping = "vesa-24";
105 clock-frequency = <72000000>;
117 panel_in_lvds: endpoint {
118 remote-endpoint = <&lvds_out_panel>;
123 sdio_pwrseq: sdio-pwrseq {
124 compatible = "mmc-pwrseq-simple";
126 clock-names = "ext_clock";
127 pinctrl-names = "default";
128 pinctrl-0 = <&wifi_reg_on>;
129 reset-gpios = <&gpio3 RK_PD0 GPIO_ACTIVE_LOW>;
132 avdd_cif: cif-avdd-regulator {
133 compatible = "regulator-fixed";
134 regulator-name = "avdd-cif";
135 regulator-min-microvolt = <2800000>;
136 regulator-max-microvolt = <2800000>;
137 gpio = <&gpio1 RK_PA6 GPIO_ACTIVE_LOW>;
138 pinctrl-names = "default";
139 pinctrl-0 = <&cif_avdd_en>;
140 startup-delay-us = <100000>;
141 vin-supply = <&vcc28_cif>;
144 vcc_5v: vcc-5v-regulator {
145 compatible = "regulator-fixed";
146 regulator-name = "vcc-5v";
147 regulator-min-microvolt = <5000000>;
148 regulator-max-microvolt = <5000000>;
150 gpio = <&gpio0 RK_PA3 GPIO_ACTIVE_HIGH>;
151 pinctrl-names = "default";
152 pinctrl-0 = <&v5_drv>;
153 vin-supply = <&vsys>;
156 vcc_lcd: lcd-regulator {
157 compatible = "regulator-fixed";
158 regulator-name = "vcc-lcd";
159 gpio = <&gpio0 RK_PB0 GPIO_ACTIVE_LOW>;
160 pinctrl-names = "default";
161 pinctrl-0 = <&lcd_en>;
162 startup-delay-us = <50000>;
163 vin-supply = <&vcc_io>;
166 vcc_otg: usb-otg-regulator {
167 compatible = "regulator-fixed";
168 regulator-name = "vcc-otg";
169 regulator-min-microvolt = <5000000>;
170 regulator-max-microvolt = <5000000>;
172 gpio = <&gpio3 RK_PB1 GPIO_ACTIVE_HIGH>;
173 pinctrl-names = "default";
174 pinctrl-0 = <&otg_drv>;
175 startup-delay-us = <100000>;
176 vin-supply = <&vcc_5v>;
179 vcc_sd: sdmmc-regulator {
180 compatible = "regulator-fixed";
181 regulator-name = "vcc-sd";
182 regulator-min-microvolt = <3300000>;
183 regulator-max-microvolt = <3300000>;
184 gpio = <&gpio3 RK_PA1 GPIO_ACTIVE_LOW>;
185 pinctrl-names = "default";
186 pinctrl-0 = <&sdmmc_pwr>;
187 startup-delay-us = <100000>;
188 vin-supply = <&vcc_io>;
191 vccq_emmc: emmc-vccq-regulator {
192 compatible = "regulator-fixed";
193 regulator-name = "vccq-emmc";
194 regulator-min-microvolt = <2800000>;
195 regulator-max-microvolt = <2800000>;
196 vin-supply = <&vcc_io>;
199 /* supplied from the bq24196 */
200 vsys: vsys-regulator {
201 compatible = "regulator-fixed";
202 regulator-name = "vsys";
203 regulator-min-microvolt = <5000000>;
204 regulator-max-microvolt = <5000000>;
210 cpu-supply = <&vdd_arm>;
214 cpu-supply = <&vdd_arm>;
218 cpu-supply = <&vdd_arm>;
222 cpu-supply = <&vdd_arm>;
226 assigned-clocks = <&cru PLL_GPLL>, <&cru PLL_CPLL>,
228 <&cru HCLK_CPU>, <&cru PCLK_CPU>,
229 <&cru ACLK_PERI>, <&cru HCLK_PERI>,
231 assigned-clock-rates = <594000000>, <504000000>,
233 <150000000>, <75000000>,
234 <300000000>, <150000000>,
242 pinctrl-names = "default";
243 pinctrl-0 = <&emmc_clk &emmc_cmd>;
244 vmmc-supply = <&vcc_io>;
245 vqmmc-supply = <&vccq_emmc>;
254 clock-frequency = <400000>;
257 lis3de: accelerometer@29 {
258 compatible = "st,lis3de";
260 interrupt-parent = <&gpio0>;
261 interrupts = <RK_PB7 IRQ_TYPE_EDGE_RISING>;
262 pinctrl-names = "default";
263 pinctrl-0 = <&gsensor_int>;
264 rotation-matrix = "1", "0", "0",
267 vdd-supply = <&vcc_io>;
272 clock-frequency = <400000>;
276 compatible = "ti,tmp108";
278 interrupt-parent = <&gpio1>;
279 interrupts = <RK_PA7 IRQ_TYPE_LEVEL_LOW>;
280 pinctrl-names = "default";
281 pinctrl-0 = <&tmp_alrt>;
282 #thermal-sensor-cells = <0>;
286 compatible = "haoyu,hym8563";
288 interrupt-parent = <&gpio0>;
289 interrupts = <RK_PB5 IRQ_TYPE_EDGE_FALLING>;
290 pinctrl-names = "default";
291 pinctrl-0 = <&rtc_int>;
293 clock-output-names = "xin32k";
297 compatible = "ti,bq27541";
299 power-supplies = <&bq24196>;
303 compatible = "active-semi,act8846";
305 pinctrl-names = "default";
306 pinctrl-0 = <&dvs0_ctl &pmic_int>;
308 vp1-supply = <&vsys>;
309 vp2-supply = <&vsys>;
310 vp3-supply = <&vsys>;
311 vp4-supply = <&vsys>;
312 inl1-supply = <&vcc_io>;
313 inl2-supply = <&vsys>;
314 inl3-supply = <&vsys>;
318 regulator-name = "VCC_DDR";
319 regulator-min-microvolt = <1200000>;
320 regulator-max-microvolt = <1200000>;
325 regulator-name = "VDD_LOG";
326 regulator-min-microvolt = <1000000>;
327 regulator-max-microvolt = <1200000>;
332 regulator-name = "VDD_ARM";
333 regulator-min-microvolt = <875000>;
334 regulator-max-microvolt = <1350000>;
338 vcc_io: vcc_hdmi: REG4 {
339 regulator-name = "VCC_IO";
340 regulator-min-microvolt = <3000000>;
341 regulator-max-microvolt = <3000000>;
346 regulator-name = "VDD_10";
347 regulator-min-microvolt = <1000000>;
348 regulator-max-microvolt = <1000000>;
353 regulator-name = "VDD_12";
354 regulator-min-microvolt = <1200000>;
355 regulator-max-microvolt = <1200000>;
360 regulator-name = "VCC18_CIF";
361 regulator-min-microvolt = <1800000>;
362 regulator-max-microvolt = <1800000>;
367 regulator-name = "VCCA_33";
368 regulator-min-microvolt = <3300000>;
369 regulator-max-microvolt = <3300000>;
374 regulator-name = "VCC_TP";
375 regulator-min-microvolt = <3300000>;
376 regulator-max-microvolt = <3300000>;
381 regulator-name = "VCCIO_WL";
382 regulator-min-microvolt = <2800000>;
383 regulator-max-microvolt = <2800000>;
388 regulator-name = "VCC_18";
389 regulator-min-microvolt = <1800000>;
390 regulator-max-microvolt = <1800000>;
395 regulator-name = "VCC28_CIF";
396 regulator-min-microvolt = <2800000>;
397 regulator-max-microvolt = <2800000>;
403 bq24196: charger@6b {
404 compatible = "ti,bq24196";
406 interrupt-parent = <&gpio0>;
407 interrupts = <RK_PD7 IRQ_TYPE_EDGE_FALLING>;
408 pinctrl-names = "default";
409 pinctrl-0 = <&charger_int &chg_ctl &otg_en>;
410 ti,system-minimum-microvolt = <3200000>;
411 monitored-battery = <&bat>;
414 usb_otg_vbus: usb-otg-vbus { };
419 clock-frequency = <400000>;
422 ft5606: touchscreen@3e {
423 compatible = "edt,edt-ft5506";
425 interrupt-parent = <&gpio1>;
426 interrupts = <RK_PB7 IRQ_TYPE_EDGE_FALLING>;
427 pinctrl-names = "default";
428 pinctrl-0 = <&tp_int &tp_rst>;
429 reset-gpios = <&gpio0 RK_PB6 GPIO_ACTIVE_LOW>;
430 touchscreen-inverted-y;
431 /* hw ts resolution does not match display */
432 touchscreen-size-y = <1024>;
433 touchscreen-size-x = <768>;
434 touchscreen-swapped-x-y;
439 clock-frequency = <400000>;
444 clock-frequency = <400000>;
448 compatible = "realtek,rt5616";
450 clocks = <&cru SCLK_I2S0>;
451 clock-names = "mclk";
452 #sound-dai-cells = <0>;
465 pinctrl-names = "default";
466 pinctrl-0 = <&sd0_clk>, <&sd0_cmd>, <&sd0_cd>, <&sd0_bus4>;
467 vmmc-supply = <&vcc_sd>;
474 keep-power-in-suspend;
475 mmc-pwrseq = <&sdio_pwrseq>;
477 pinctrl-names = "default";
478 pinctrl-0 = <&sd1_clk>, <&sd1_cmd>, <&sd1_bus4>;
479 vqmmc-supply = <&vccio_wl>;
480 #address-cells = <1>;
486 compatible = "brcm,bcm4329-fmac";
487 interrupt-parent = <&gpio3>;
488 interrupts = <RK_PD2 GPIO_ACTIVE_HIGH>;
489 interrupt-names = "host-wake";
490 brcm,drive-strength = <5>;
491 pinctrl-names = "default";
492 pinctrl-0 = <&wifi_host_wake>;
501 pcfg_output_high: pcfg-output-high {
505 pcfg_output_low: pcfg-output-low {
511 rockchip,pins = <3 RK_PD3 RK_FUNC_GPIO &pcfg_output_low>;
515 rockchip,pins = <0 RK_PB3 RK_FUNC_GPIO &pcfg_pull_up>;
520 charger_int: charger-int {
521 rockchip,pins = <0 RK_PD7 RK_FUNC_GPIO &pcfg_pull_up>;
524 /* pin hog to make it select usb profile */
526 rockchip,pins = <0 RK_PA1 RK_FUNC_GPIO &pcfg_output_high>;
529 /* low: charging, high: complete, fault: blinking */
531 rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>;
534 /* charging enabled when pin low and register set */
536 rockchip,pins = <0 RK_PC1 RK_FUNC_GPIO &pcfg_output_low>;
539 /* bq29196 powergood (when low) signal */
541 rockchip,pins = <0 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
544 /* wire bq24196 otg pin to high, to enable 500mA charging */
546 rockchip,pins = <0 RK_PB1 RK_FUNC_GPIO &pcfg_output_high>;
552 rockchip,pins = <3 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>;
556 rockchip,pins = <3 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>;
559 cif_avdd_en: cif-avdd-en {
560 rockchip,pins = <1 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>;
566 rockchip,pins = <3 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>;
570 rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>;
576 rockchip,pins = <1 RK_PB7 RK_FUNC_GPIO &pcfg_pull_up>;
580 rockchip,pins = <0 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>;
586 rockchip,pins = <2 RK_PD6 RK_FUNC_GPIO &pcfg_pull_up>;
590 rockchip,pins = <3 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
596 rockchip,pins = <0 RK_PB5 RK_FUNC_GPIO &pcfg_pull_up>;
602 rockchip,pins = <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_up>;
606 rockchip,pins = <0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up>;
611 gsensor_int: gsensor-int {
612 rockchip,pins = <0 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>;
617 sdmmc_pwr: sdmmc-pwr {
618 rockchip,pins = <3 RK_PA1 RK_FUNC_GPIO &pcfg_pull_none>;
624 rockchip,pins = <1 RK_PA7 RK_FUNC_GPIO &pcfg_pull_none>;
630 rockchip,pins = <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>;
634 rockchip,pins = <3 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>;
638 rockchip,pins = <0 RK_PA7 RK_FUNC_GPIO &pcfg_pull_up>;
643 bt_host_wake: bt-host-wake {
644 rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>;
647 bt_reg_on: bt-reg-on {
648 rockchip,pins = <3 RK_PC7 RK_FUNC_GPIO &pcfg_pull_none>;
651 /* pin hog to pull the reset high */
653 rockchip,pins = <3 RK_PD1 RK_FUNC_GPIO &pcfg_output_high>;
657 rockchip,pins = <3 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>;
660 wifi_host_wake: wifi-host-wake {
661 rockchip,pins = <3 RK_PD2 RK_FUNC_GPIO &pcfg_pull_up>;
664 wifi_reg_on: wifi-reg-on {
665 rockchip,pins = <3 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>;
671 vref-supply = <&vcc_18>;
680 pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>;
684 compatible = "brcm,bcm43438-bt";
685 max-speed = <2000000>;
686 device-wakeup-gpios = <&gpio3 RK_PC6 GPIO_ACTIVE_HIGH>;
687 host-wakeup-gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_HIGH>;
688 shutdown-gpios = <&gpio3 RK_PC7 GPIO_ACTIVE_HIGH>;
689 pinctrl-names = "default";
690 pinctrl-0 = <&bt_host_wake &bt_reg_on &bt_rst &bt_wake>;
703 pinctrl-0 = <&uart3_xfer &uart3_cts &uart3_rts>;
724 vop0_out_lvds: endpoint {
725 remote-endpoint = <&lvds_in_vop0>;
730 pinctrl-names = "default";
731 pinctrl-0 = <&lcdc1_dclk &lcdc1_den &lcdc1_hsync
732 &lcdc1_vsync &lcdc1_rgb24>;