1 // SPDX-License-Identifier: GPL-2.0
2 #include "qcom-msm8974pro.dtsi"
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/leds/common.h>
7 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
10 model = "Sony Xperia Z2 Tablet";
11 compatible = "sony,xperia-castor", "qcom,msm8974pro", "qcom,msm8974";
12 chassis-type = "tablet";
15 serial0 = &blsp1_uart2;
16 serial1 = &blsp2_uart1;
20 stdout-path = "serial0:115200n8";
24 compatible = "gpio-keys";
26 pinctrl-names = "default";
27 pinctrl-0 = <&gpio_keys_pin_a>;
30 label = "volume_down";
31 gpios = <&pm8941_gpios 2 GPIO_ACTIVE_LOW>;
32 linux,input-type = <1>;
33 linux,code = <KEY_VOLUMEDOWN>;
37 label = "camera_snapshot";
38 gpios = <&pm8941_gpios 3 GPIO_ACTIVE_LOW>;
39 linux,input-type = <1>;
40 linux,code = <KEY_CAMERA>;
44 label = "camera_focus";
45 gpios = <&pm8941_gpios 4 GPIO_ACTIVE_LOW>;
46 linux,input-type = <1>;
47 linux,code = <KEY_CAMERA_FOCUS>;
52 gpios = <&pm8941_gpios 5 GPIO_ACTIVE_LOW>;
53 linux,input-type = <1>;
54 linux,code = <KEY_VOLUMEUP>;
58 vreg_bl_vddio: lcd-backlight-vddio {
59 compatible = "regulator-fixed";
60 regulator-name = "vreg_bl_vddio";
61 regulator-min-microvolt = <3150000>;
62 regulator-max-microvolt = <3150000>;
67 vin-supply = <&pm8941_s3>;
68 startup-delay-us = <70000>;
70 pinctrl-names = "default";
71 pinctrl-0 = <&lcd_backlight_en_pin_a>;
74 vreg_vsp: lcd-dcdc-regulator {
75 compatible = "regulator-fixed";
76 regulator-name = "vreg_vsp";
77 regulator-min-microvolt = <5600000>;
78 regulator-max-microvolt = <5600000>;
80 gpio = <&pm8941_gpios 20 GPIO_ACTIVE_HIGH>;
83 pinctrl-names = "default";
84 pinctrl-0 = <&lcd_dcdc_en_pin_a>;
87 vreg_boost: vreg-boost {
88 compatible = "regulator-fixed";
90 regulator-name = "vreg-boost";
91 regulator-min-microvolt = <3150000>;
92 regulator-max-microvolt = <3150000>;
97 gpio = <&pm8941_gpios 21 GPIO_ACTIVE_HIGH>;
100 pinctrl-names = "default";
101 pinctrl-0 = <&boost_bypass_n_pin>;
104 vreg_vph_pwr: vreg-vph-pwr {
105 compatible = "regulator-fixed";
106 regulator-name = "vph-pwr";
108 regulator-min-microvolt = <3600000>;
109 regulator-max-microvolt = <3600000>;
114 vreg_wlan: wlan-regulator {
115 compatible = "regulator-fixed";
117 regulator-name = "wl-reg";
118 regulator-min-microvolt = <3300000>;
119 regulator-max-microvolt = <3300000>;
121 gpio = <&pm8941_gpios 18 GPIO_ACTIVE_HIGH>;
124 pinctrl-names = "default";
125 pinctrl-0 = <&wlan_regulator_pin>;
135 clock-frequency = <355000>;
138 compatible = "syna,rmi4-i2c";
141 interrupt-parent = <&tlmm>;
142 interrupts = <86 IRQ_TYPE_EDGE_FALLING>;
144 #address-cells = <1>;
147 vdd-supply = <&pm8941_l22>;
148 vio-supply = <&pm8941_lvs3>;
150 pinctrl-names = "default";
151 pinctrl-0 = <&ts_int_pin>;
153 syna,startup-delay-ms = <100>;
157 syna,nosleep-mode = <1>;
162 syna,sensor-type = <1>;
163 touchscreen-inverted-x;
170 clock-frequency = <355000>;
172 lp8566_wled: backlight@2c {
173 compatible = "ti,lp8556";
175 power-supply = <&vreg_bl_vddio>;
177 bl-name = "backlight";
178 dev-ctrl = /bits/ 8 <0x05>;
179 init-brt = /bits/ 8 <0x3f>;
182 rom-addr = /bits/ 8 <0xa0>;
183 rom-val = /bits/ 8 <0xff>;
186 rom-addr = /bits/ 8 <0xa1>;
187 rom-val = /bits/ 8 <0x3f>;
190 rom-addr = /bits/ 8 <0xa2>;
191 rom-val = /bits/ 8 <0x20>;
194 rom-addr = /bits/ 8 <0xa3>;
195 rom-val = /bits/ 8 <0x5e>;
198 rom-addr = /bits/ 8 <0xa4>;
199 rom-val = /bits/ 8 <0x02>;
202 rom-addr = /bits/ 8 <0xa5>;
203 rom-val = /bits/ 8 <0x04>;
206 rom-addr = /bits/ 8 <0xa6>;
207 rom-val = /bits/ 8 <0x80>;
210 rom-addr = /bits/ 8 <0xa7>;
211 rom-val = /bits/ 8 <0xf7>;
214 rom-addr = /bits/ 8 <0xa9>;
215 rom-val = /bits/ 8 <0x80>;
218 rom-addr = /bits/ 8 <0xaa>;
219 rom-val = /bits/ 8 <0x0f>;
222 rom-addr = /bits/ 8 <0xae>;
223 rom-val = /bits/ 8 <0x0f>;
232 compatible = "brcm,bcm43438-bt";
233 max-speed = <3000000>;
235 pinctrl-names = "default";
236 pinctrl-0 = <&bt_host_wake_pin>, <&bt_dev_wake_pin>, <&bt_reg_on_pin>;
238 host-wakeup-gpios = <&tlmm 95 GPIO_ACTIVE_HIGH>;
239 device-wakeup-gpios = <&tlmm 96 GPIO_ACTIVE_HIGH>;
240 shutdown-gpios = <&pm8941_gpios 16 GPIO_ACTIVE_HIGH>;
247 qcom,rset-ohms = <2100>;
248 qcom,vset-millivolts = <3000>;
252 gpio_keys_pin_a: gpio-keys-active-state {
253 pins = "gpio2", "gpio5";
257 power-source = <PM8941_GPIO_S3>;
260 bt_reg_on_pin: bt-reg-on-state {
265 power-source = <PM8941_GPIO_S3>;
268 wlan_sleep_clk_pin: wl-sleep-clk-state {
273 power-source = <PM8941_GPIO_S3>;
276 wlan_regulator_pin: wl-reg-active-state {
281 power-source = <PM8941_GPIO_S3>;
284 lcd_dcdc_en_pin_a: lcd-dcdc-en-active-state {
289 power-source = <PM8941_GPIO_S3>;
299 qcom,power-source = <1>;
302 color = <LED_COLOR_ID_RGB>;
303 function = LED_FUNCTION_STATUS;
305 #address-cells = <1>;
310 color = <LED_COLOR_ID_BLUE>;
315 color = <LED_COLOR_ID_GREEN>;
320 color = <LED_COLOR_ID_RED>;
326 cx-supply = <&pm8841_s2>;
331 cx-supply = <&pm8841_s2>;
332 mss-supply = <&pm8841_s3>;
333 mx-supply = <&pm8841_s1>;
334 pll-supply = <&pm8941_l12>;
340 compatible = "qcom,rpm-pm8841-regulators";
343 regulator-min-microvolt = <675000>;
344 regulator-max-microvolt = <1050000>;
348 regulator-min-microvolt = <500000>;
349 regulator-max-microvolt = <1050000>;
353 regulator-min-microvolt = <500000>;
354 regulator-max-microvolt = <1050000>;
358 regulator-min-microvolt = <500000>;
359 regulator-max-microvolt = <1050000>;
364 compatible = "qcom,rpm-pm8941-regulators";
366 vdd_l1_l3-supply = <&pm8941_s1>;
367 vdd_l2_lvs1_2_3-supply = <&pm8941_s3>;
368 vdd_l4_l11-supply = <&pm8941_s1>;
369 vdd_l5_l7-supply = <&pm8941_s2>;
370 vdd_l6_l12_l14_l15-supply = <&pm8941_s2>;
371 vdd_l9_l10_l17_l22-supply = <&vreg_boost>;
372 vdd_l13_l20_l23_l24-supply = <&vreg_boost>;
373 vdd_l21-supply = <&vreg_boost>;
376 regulator-min-microvolt = <1300000>;
377 regulator-max-microvolt = <1300000>;
383 regulator-min-microvolt = <2150000>;
384 regulator-max-microvolt = <2150000>;
389 regulator-min-microvolt = <1800000>;
390 regulator-max-microvolt = <1800000>;
391 regulator-system-load = <154000>;
397 regulator-min-microvolt = <5000000>;
398 regulator-max-microvolt = <5000000>;
402 regulator-min-microvolt = <1225000>;
403 regulator-max-microvolt = <1225000>;
409 regulator-min-microvolt = <1200000>;
410 regulator-max-microvolt = <1200000>;
414 regulator-min-microvolt = <1200000>;
415 regulator-max-microvolt = <1200000>;
419 regulator-min-microvolt = <1225000>;
420 regulator-max-microvolt = <1225000>;
424 regulator-min-microvolt = <1800000>;
425 regulator-max-microvolt = <1800000>;
429 regulator-min-microvolt = <1800000>;
430 regulator-max-microvolt = <1800000>;
435 regulator-min-microvolt = <1800000>;
436 regulator-max-microvolt = <1800000>;
441 regulator-min-microvolt = <1800000>;
442 regulator-max-microvolt = <1800000>;
446 regulator-min-microvolt = <1800000>;
447 regulator-max-microvolt = <2950000>;
451 regulator-min-microvolt = <1300000>;
452 regulator-max-microvolt = <1350000>;
456 regulator-min-microvolt = <1800000>;
457 regulator-max-microvolt = <1800000>;
463 regulator-min-microvolt = <1800000>;
464 regulator-max-microvolt = <2950000>;
469 regulator-min-microvolt = <1800000>;
470 regulator-max-microvolt = <1800000>;
474 regulator-min-microvolt = <2050000>;
475 regulator-max-microvolt = <2050000>;
479 regulator-min-microvolt = <2700000>;
480 regulator-max-microvolt = <2700000>;
484 regulator-min-microvolt = <2700000>;
485 regulator-max-microvolt = <2700000>;
489 regulator-min-microvolt = <2850000>;
490 regulator-max-microvolt = <2850000>;
494 regulator-min-microvolt = <2850000>;
495 regulator-max-microvolt = <2850000>;
499 regulator-min-microvolt = <2950000>;
500 regulator-max-microvolt = <2950000>;
501 regulator-system-load = <500000>;
502 regulator-allow-set-load;
507 regulator-min-microvolt = <2950000>;
508 regulator-max-microvolt = <2950000>;
513 regulator-min-microvolt = <3000000>;
514 regulator-max-microvolt = <3000000>;
518 regulator-min-microvolt = <2800000>;
519 regulator-max-microvolt = <2800000>;
523 regulator-min-microvolt = <3075000>;
524 regulator-max-microvolt = <3075000>;
528 pm8941_lvs3: lvs3 {};
535 vmmc-supply = <&pm8941_l20>;
536 vqmmc-supply = <&pm8941_s3>;
538 pinctrl-names = "default", "sleep";
539 pinctrl-0 = <&sdc1_on>;
540 pinctrl-1 = <&sdc1_off>;
546 vmmc-supply = <&pm8941_l21>;
547 vqmmc-supply = <&pm8941_l13>;
549 cd-gpios = <&tlmm 62 GPIO_ACTIVE_LOW>;
551 pinctrl-names = "default", "sleep";
552 pinctrl-0 = <&sdc2_on>;
553 pinctrl-1 = <&sdc2_off>;
559 max-frequency = <100000000>;
560 vmmc-supply = <&vreg_wlan>;
563 pinctrl-names = "default";
564 pinctrl-0 = <&sdc3_on>;
566 #address-cells = <1>;
570 compatible = "brcm,bcm4339-fmac", "brcm,bcm4329-fmac";
573 brcm,drive-strength = <10>;
575 pinctrl-names = "default";
576 pinctrl-0 = <&wlan_sleep_clk_pin>;
581 qcom,fast-charge-safe-current = <1500000>;
582 qcom,fast-charge-current-limit = <1500000>;
583 qcom,dc-current-limit = <1800000>;
584 usb-charge-current-limit = <1800000>;
585 qcom,fast-charge-safe-voltage = <4400000>;
586 qcom,fast-charge-high-threshold-voltage = <4350000>;
587 qcom,fast-charge-low-threshold-voltage = <3400000>;
588 qcom,auto-recharge-threshold-voltage = <4200000>;
589 qcom,minimum-input-voltage = <4300000>;
595 lcd_backlight_en_pin_a: lcd-backlight-vddio-state {
598 drive-strength = <10>;
603 sdc1_on: sdc1-on-state {
606 drive-strength = <16>;
611 pins = "sdc1_cmd", "sdc1_data";
612 drive-strength = <10>;
617 sdc2_on: sdc2-on-state {
620 drive-strength = <6>;
625 pins = "sdc2_cmd", "sdc2_data";
626 drive-strength = <6>;
633 drive-strength = <2>;
638 sdc3_on: sdc3-on-state {
642 drive-strength = <10>;
649 drive-strength = <10>;
654 pins = "gpio35", "gpio36", "gpio37", "gpio38";
656 drive-strength = <10>;
661 ts_int_pin: ts-int-pin-state {
664 drive-strength = <2>;
668 bt_host_wake_pin: bt-host-wake-state {
671 drive-strength = <2>;
676 bt_dev_wake_pin: bt-dev-wake-state {
679 drive-strength = <2>;
687 phys = <&usb_hs1_phy>;
688 phy-select = <&tcsr 0xb000 0>;
689 extcon = <&smbb>, <&usb_id>;
690 vbus-supply = <&chg_otg>;
700 v1p8-supply = <&pm8941_l6>;
701 v3p3-supply = <&pm8941_l24>;
704 qcom,init-seq = /bits/ 8 <0x1 0x64>;