1 // SPDX-License-Identifier: GPL-2.0
2 #include "qcom-msm8974pro.dtsi"
3 #include "qcom-pm8841.dtsi"
4 #include "qcom-pm8941.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_wlan: wlan-regulator {
88 compatible = "regulator-fixed";
90 regulator-name = "wl-reg";
91 regulator-min-microvolt = <3300000>;
92 regulator-max-microvolt = <3300000>;
94 gpio = <&pm8941_gpios 18 GPIO_ACTIVE_HIGH>;
97 pinctrl-names = "default";
98 pinctrl-0 = <&wlan_regulator_pin>;
108 clock-frequency = <355000>;
111 compatible = "syna,rmi4-i2c";
114 interrupt-parent = <&tlmm>;
115 interrupts = <86 IRQ_TYPE_EDGE_FALLING>;
117 #address-cells = <1>;
120 vdd-supply = <&pm8941_l22>;
121 vio-supply = <&pm8941_lvs3>;
123 pinctrl-names = "default";
124 pinctrl-0 = <&ts_int_pin>;
126 syna,startup-delay-ms = <100>;
135 syna,f11-flip-x = <1>;
136 syna,sensor-type = <1>;
143 clock-frequency = <355000>;
145 lp8566_wled: backlight@2c {
146 compatible = "ti,lp8556";
148 power-supply = <&vreg_bl_vddio>;
150 bl-name = "backlight";
151 dev-ctrl = /bits/ 8 <0x05>;
152 init-brt = /bits/ 8 <0x3f>;
155 rom-addr = /bits/ 8 <0xa0>;
156 rom-val = /bits/ 8 <0xff>;
159 rom-addr = /bits/ 8 <0xa1>;
160 rom-val = /bits/ 8 <0x3f>;
163 rom-addr = /bits/ 8 <0xa2>;
164 rom-val = /bits/ 8 <0x20>;
167 rom-addr = /bits/ 8 <0xa3>;
168 rom-val = /bits/ 8 <0x5e>;
171 rom-addr = /bits/ 8 <0xa4>;
172 rom-val = /bits/ 8 <0x02>;
175 rom-addr = /bits/ 8 <0xa5>;
176 rom-val = /bits/ 8 <0x04>;
179 rom-addr = /bits/ 8 <0xa6>;
180 rom-val = /bits/ 8 <0x80>;
183 rom-addr = /bits/ 8 <0xa7>;
184 rom-val = /bits/ 8 <0xf7>;
187 rom-addr = /bits/ 8 <0xa9>;
188 rom-val = /bits/ 8 <0x80>;
191 rom-addr = /bits/ 8 <0xaa>;
192 rom-val = /bits/ 8 <0x0f>;
195 rom-addr = /bits/ 8 <0xae>;
196 rom-val = /bits/ 8 <0x0f>;
205 compatible = "brcm,bcm43438-bt";
206 max-speed = <3000000>;
208 pinctrl-names = "default";
209 pinctrl-0 = <&bt_host_wake_pin>, <&bt_dev_wake_pin>, <&bt_reg_on_pin>;
211 host-wakeup-gpios = <&tlmm 95 GPIO_ACTIVE_HIGH>;
212 device-wakeup-gpios = <&tlmm 96 GPIO_ACTIVE_HIGH>;
213 shutdown-gpios = <&pm8941_gpios 16 GPIO_ACTIVE_HIGH>;
220 qcom,rset-ohms = <2100>;
221 qcom,vset-millivolts = <3000>;
225 gpio_keys_pin_a: gpio-keys-active-state {
226 pins = "gpio2", "gpio5";
230 power-source = <PM8941_GPIO_S3>;
233 bt_reg_on_pin: bt-reg-on-state {
238 power-source = <PM8941_GPIO_S3>;
241 wlan_sleep_clk_pin: wl-sleep-clk-state {
246 power-source = <PM8941_GPIO_S3>;
249 wlan_regulator_pin: wl-reg-active-state {
254 power-source = <PM8941_GPIO_S3>;
257 lcd_dcdc_en_pin_a: lcd-dcdc-en-active-state {
262 power-source = <PM8941_GPIO_S3>;
272 qcom,power-source = <1>;
275 color = <LED_COLOR_ID_RGB>;
276 function = LED_FUNCTION_STATUS;
278 #address-cells = <1>;
283 color = <LED_COLOR_ID_BLUE>;
288 color = <LED_COLOR_ID_GREEN>;
293 color = <LED_COLOR_ID_RED>;
299 cx-supply = <&pm8841_s2>;
303 cx-supply = <&pm8841_s2>;
304 mss-supply = <&pm8841_s3>;
305 mx-supply = <&pm8841_s1>;
306 pll-supply = <&pm8941_l12>;
311 compatible = "qcom,rpm-pm8841-regulators";
314 regulator-min-microvolt = <675000>;
315 regulator-max-microvolt = <1050000>;
319 regulator-min-microvolt = <500000>;
320 regulator-max-microvolt = <1050000>;
324 regulator-min-microvolt = <500000>;
325 regulator-max-microvolt = <1050000>;
329 regulator-min-microvolt = <500000>;
330 regulator-max-microvolt = <1050000>;
335 compatible = "qcom,rpm-pm8941-regulators";
337 vdd_l1_l3-supply = <&pm8941_s1>;
338 vdd_l2_lvs1_2_3-supply = <&pm8941_s3>;
339 vdd_l4_l11-supply = <&pm8941_s1>;
340 vdd_l5_l7-supply = <&pm8941_s2>;
341 vdd_l6_l12_l14_l15-supply = <&pm8941_s2>;
342 vdd_l9_l10_l17_l22-supply = <&vreg_boost>;
343 vdd_l13_l20_l23_l24-supply = <&vreg_boost>;
344 vdd_l21-supply = <&vreg_boost>;
347 regulator-min-microvolt = <1300000>;
348 regulator-max-microvolt = <1300000>;
354 regulator-min-microvolt = <2150000>;
355 regulator-max-microvolt = <2150000>;
360 regulator-min-microvolt = <1800000>;
361 regulator-max-microvolt = <1800000>;
362 regulator-system-load = <154000>;
368 regulator-min-microvolt = <5000000>;
369 regulator-max-microvolt = <5000000>;
373 regulator-min-microvolt = <1225000>;
374 regulator-max-microvolt = <1225000>;
380 regulator-min-microvolt = <1200000>;
381 regulator-max-microvolt = <1200000>;
385 regulator-min-microvolt = <1200000>;
386 regulator-max-microvolt = <1200000>;
390 regulator-min-microvolt = <1225000>;
391 regulator-max-microvolt = <1225000>;
395 regulator-min-microvolt = <1800000>;
396 regulator-max-microvolt = <1800000>;
400 regulator-min-microvolt = <1800000>;
401 regulator-max-microvolt = <1800000>;
406 regulator-min-microvolt = <1800000>;
407 regulator-max-microvolt = <1800000>;
412 regulator-min-microvolt = <1800000>;
413 regulator-max-microvolt = <1800000>;
417 regulator-min-microvolt = <1800000>;
418 regulator-max-microvolt = <2950000>;
422 regulator-min-microvolt = <1300000>;
423 regulator-max-microvolt = <1350000>;
427 regulator-min-microvolt = <1800000>;
428 regulator-max-microvolt = <1800000>;
434 regulator-min-microvolt = <1800000>;
435 regulator-max-microvolt = <2950000>;
440 regulator-min-microvolt = <1800000>;
441 regulator-max-microvolt = <1800000>;
445 regulator-min-microvolt = <2050000>;
446 regulator-max-microvolt = <2050000>;
450 regulator-min-microvolt = <2700000>;
451 regulator-max-microvolt = <2700000>;
455 regulator-min-microvolt = <2700000>;
456 regulator-max-microvolt = <2700000>;
460 regulator-min-microvolt = <2850000>;
461 regulator-max-microvolt = <2850000>;
465 regulator-min-microvolt = <2850000>;
466 regulator-max-microvolt = <2850000>;
470 regulator-min-microvolt = <2950000>;
471 regulator-max-microvolt = <2950000>;
472 regulator-system-load = <500000>;
473 regulator-allow-set-load;
478 regulator-min-microvolt = <2950000>;
479 regulator-max-microvolt = <2950000>;
484 regulator-min-microvolt = <3000000>;
485 regulator-max-microvolt = <3000000>;
489 regulator-min-microvolt = <2800000>;
490 regulator-max-microvolt = <2800000>;
494 regulator-min-microvolt = <3075000>;
495 regulator-max-microvolt = <3075000>;
499 pm8941_lvs3: lvs3 {};
506 vmmc-supply = <&pm8941_l20>;
507 vqmmc-supply = <&pm8941_s3>;
509 pinctrl-names = "default", "sleep";
510 pinctrl-0 = <&sdc1_on>;
511 pinctrl-1 = <&sdc1_off>;
517 vmmc-supply = <&pm8941_l21>;
518 vqmmc-supply = <&pm8941_l13>;
520 cd-gpios = <&tlmm 62 GPIO_ACTIVE_LOW>;
522 pinctrl-names = "default", "sleep";
523 pinctrl-0 = <&sdc2_on>;
524 pinctrl-1 = <&sdc2_off>;
530 max-frequency = <100000000>;
531 vmmc-supply = <&vreg_wlan>;
534 pinctrl-names = "default";
535 pinctrl-0 = <&sdc3_on>;
537 #address-cells = <1>;
541 compatible = "brcm,bcm4339-fmac", "brcm,bcm4329-fmac";
544 brcm,drive-strength = <10>;
546 pinctrl-names = "default";
547 pinctrl-0 = <&wlan_sleep_clk_pin>;
552 qcom,fast-charge-safe-current = <1500000>;
553 qcom,fast-charge-current-limit = <1500000>;
554 qcom,dc-current-limit = <1800000>;
555 usb-charge-current-limit = <1800000>;
556 qcom,fast-charge-safe-voltage = <4400000>;
557 qcom,fast-charge-high-threshold-voltage = <4350000>;
558 qcom,fast-charge-low-threshold-voltage = <3400000>;
559 qcom,auto-recharge-threshold-voltage = <4200000>;
560 qcom,minimum-input-voltage = <4300000>;
564 lcd_backlight_en_pin_a: lcd-backlight-vddio-state {
567 drive-strength = <10>;
572 sdc1_on: sdc1-on-state {
575 drive-strength = <16>;
580 pins = "sdc1_cmd", "sdc1_data";
581 drive-strength = <10>;
586 sdc2_on: sdc2-on-state {
589 drive-strength = <6>;
594 pins = "sdc2_cmd", "sdc2_data";
595 drive-strength = <6>;
602 drive-strength = <2>;
607 sdc3_on: sdc3-on-state {
611 drive-strength = <10>;
618 drive-strength = <10>;
623 pins = "gpio35", "gpio36", "gpio37", "gpio38";
625 drive-strength = <10>;
630 ts_int_pin: ts-int-pin-state {
633 drive-strength = <2>;
637 bt_host_wake_pin: bt-host-wake-state {
640 drive-strength = <2>;
645 bt_dev_wake_pin: bt-dev-wake-state {
648 drive-strength = <2>;
656 phys = <&usb_hs1_phy>;
657 phy-select = <&tcsr 0xb000 0>;
658 extcon = <&smbb>, <&usb_id>;
659 vbus-supply = <&chg_otg>;
669 v1p8-supply = <&pm8941_l6>;
670 v3p3-supply = <&pm8941_l24>;
673 qcom,init-seq = /bits/ 8 <0x1 0x64>;