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,msm8974";
14 serial0 = &blsp1_uart2;
15 serial1 = &blsp2_uart1;
19 stdout-path = "serial0:115200n8";
23 compatible = "gpio-keys";
25 pinctrl-names = "default";
26 pinctrl-0 = <&gpio_keys_pin_a>;
29 label = "volume_down";
30 gpios = <&pm8941_gpios 2 GPIO_ACTIVE_LOW>;
31 linux,input-type = <1>;
32 linux,code = <KEY_VOLUMEDOWN>;
36 label = "camera_snapshot";
37 gpios = <&pm8941_gpios 3 GPIO_ACTIVE_LOW>;
38 linux,input-type = <1>;
39 linux,code = <KEY_CAMERA>;
43 label = "camera_focus";
44 gpios = <&pm8941_gpios 4 GPIO_ACTIVE_LOW>;
45 linux,input-type = <1>;
46 linux,code = <KEY_CAMERA_FOCUS>;
51 gpios = <&pm8941_gpios 5 GPIO_ACTIVE_LOW>;
52 linux,input-type = <1>;
53 linux,code = <KEY_VOLUMEUP>;
57 vreg_bl_vddio: lcd-backlight-vddio {
58 compatible = "regulator-fixed";
59 regulator-name = "vreg_bl_vddio";
60 regulator-min-microvolt = <3150000>;
61 regulator-max-microvolt = <3150000>;
66 vin-supply = <&pm8941_s3>;
67 startup-delay-us = <70000>;
69 pinctrl-names = "default";
70 pinctrl-0 = <&lcd_backlight_en_pin_a>;
73 vreg_vsp: lcd-dcdc-regulator {
74 compatible = "regulator-fixed";
75 regulator-name = "vreg_vsp";
76 regulator-min-microvolt = <5600000>;
77 regulator-max-microvolt = <5600000>;
79 gpio = <&pm8941_gpios 20 GPIO_ACTIVE_HIGH>;
82 pinctrl-names = "default";
83 pinctrl-0 = <&lcd_dcdc_en_pin_a>;
86 vreg_wlan: wlan-regulator {
87 compatible = "regulator-fixed";
89 regulator-name = "wl-reg";
90 regulator-min-microvolt = <3300000>;
91 regulator-max-microvolt = <3300000>;
93 gpio = <&pm8941_gpios 18 GPIO_ACTIVE_HIGH>;
96 pinctrl-names = "default";
97 pinctrl-0 = <&wlan_regulator_pin>;
107 clock-frequency = <355000>;
110 compatible = "syna,rmi4-i2c";
113 interrupt-parent = <&tlmm>;
114 interrupts = <86 IRQ_TYPE_EDGE_FALLING>;
116 #address-cells = <1>;
119 vdd-supply = <&pm8941_l22>;
120 vio-supply = <&pm8941_lvs3>;
122 pinctrl-names = "default";
123 pinctrl-0 = <&ts_int_pin>;
125 syna,startup-delay-ms = <10>;
129 syna,nosleep-mode = <1>;
134 syna,sensor-type = <1>;
135 touchscreen-inverted-x;
142 clock-frequency = <355000>;
144 lp8566_wled: backlight@2c {
145 compatible = "ti,lp8556";
147 power-supply = <&vreg_bl_vddio>;
149 bl-name = "backlight";
150 dev-ctrl = /bits/ 8 <0x05>;
151 init-brt = /bits/ 8 <0x3f>;
153 rom-addr = /bits/ 8 <0xa0>;
154 rom-val = /bits/ 8 <0xff>;
157 rom-addr = /bits/ 8 <0xa1>;
158 rom-val = /bits/ 8 <0x3f>;
161 rom-addr = /bits/ 8 <0xa2>;
162 rom-val = /bits/ 8 <0x20>;
165 rom-addr = /bits/ 8 <0xa3>;
166 rom-val = /bits/ 8 <0x5e>;
169 rom-addr = /bits/ 8 <0xa4>;
170 rom-val = /bits/ 8 <0x02>;
173 rom-addr = /bits/ 8 <0xa5>;
174 rom-val = /bits/ 8 <0x04>;
177 rom-addr = /bits/ 8 <0xa6>;
178 rom-val = /bits/ 8 <0x80>;
181 rom-addr = /bits/ 8 <0xa7>;
182 rom-val = /bits/ 8 <0xf7>;
185 rom-addr = /bits/ 8 <0xa9>;
186 rom-val = /bits/ 8 <0x80>;
189 rom-addr = /bits/ 8 <0xaa>;
190 rom-val = /bits/ 8 <0x0f>;
193 rom-addr = /bits/ 8 <0xae>;
194 rom-val = /bits/ 8 <0x0f>;
203 compatible = "brcm,bcm43438-bt";
204 max-speed = <3000000>;
206 pinctrl-names = "default";
207 pinctrl-0 = <&bt_host_wake_pin>, <&bt_dev_wake_pin>, <&bt_reg_on_pin>;
209 host-wakeup-gpios = <&tlmm 95 GPIO_ACTIVE_HIGH>;
210 device-wakeup-gpios = <&tlmm 96 GPIO_ACTIVE_HIGH>;
211 shutdown-gpios = <&pm8941_gpios 16 GPIO_ACTIVE_HIGH>;
218 phys = <&usb_hs1_phy>;
219 phy-select = <&tcsr 0xb000 0>;
220 extcon = <&smbb>, <&usb_id>;
221 vbus-supply = <&chg_otg>;
231 v1p8-supply = <&pm8941_l6>;
232 v3p3-supply = <&pm8941_l24>;
235 qcom,init-seq = /bits/ 8 <0x1 0x64>;
243 qcom,rset-ohms = <2100>;
244 qcom,vset-millivolts = <3000>;
248 gpio_keys_pin_a: gpio-keys-active-state {
249 pins = "gpio2", "gpio5";
253 power-source = <PM8941_GPIO_S3>;
256 bt_reg_on_pin: bt-reg-on-state {
261 power-source = <PM8941_GPIO_S3>;
264 wlan_sleep_clk_pin: wl-sleep-clk-state {
269 power-source = <PM8941_GPIO_S3>;
272 wlan_regulator_pin: wl-reg-active-state {
277 power-source = <PM8941_GPIO_S3>;
280 lcd_dcdc_en_pin_a: lcd-dcdc-en-active-state {
285 power-source = <PM8941_GPIO_S3>;
295 qcom,power-source = <1>;
298 color = <LED_COLOR_ID_RGB>;
299 function = LED_FUNCTION_STATUS;
301 #address-cells = <1>;
306 color = <LED_COLOR_ID_BLUE>;
311 color = <LED_COLOR_ID_GREEN>;
316 color = <LED_COLOR_ID_RED>;
323 compatible = "qcom,rpm-pm8941-regulators";
325 vdd_l1_l3-supply = <&pm8941_s1>;
326 vdd_l2_lvs1_2_3-supply = <&pm8941_s3>;
327 vdd_l4_l11-supply = <&pm8941_s1>;
328 vdd_l5_l7-supply = <&pm8941_s2>;
329 vdd_l6_l12_l14_l15-supply = <&pm8941_s2>;
330 vdd_l9_l10_l17_l22-supply = <&vreg_boost>;
331 vdd_l13_l20_l23_l24-supply = <&vreg_boost>;
332 vdd_l21-supply = <&vreg_boost>;
335 regulator-min-microvolt = <1300000>;
336 regulator-max-microvolt = <1300000>;
342 regulator-min-microvolt = <2150000>;
343 regulator-max-microvolt = <2150000>;
348 regulator-min-microvolt = <1800000>;
349 regulator-max-microvolt = <1800000>;
350 regulator-system-load = <154000>;
356 regulator-min-microvolt = <5000000>;
357 regulator-max-microvolt = <5000000>;
361 regulator-min-microvolt = <1225000>;
362 regulator-max-microvolt = <1225000>;
368 regulator-min-microvolt = <1200000>;
369 regulator-max-microvolt = <1200000>;
373 regulator-min-microvolt = <1200000>;
374 regulator-max-microvolt = <1200000>;
378 regulator-min-microvolt = <1225000>;
379 regulator-max-microvolt = <1225000>;
383 regulator-min-microvolt = <1800000>;
384 regulator-max-microvolt = <1800000>;
388 regulator-min-microvolt = <1800000>;
389 regulator-max-microvolt = <1800000>;
394 regulator-min-microvolt = <1800000>;
395 regulator-max-microvolt = <1800000>;
400 regulator-min-microvolt = <1800000>;
401 regulator-max-microvolt = <1800000>;
405 regulator-min-microvolt = <1800000>;
406 regulator-max-microvolt = <2950000>;
410 regulator-min-microvolt = <1300000>;
411 regulator-max-microvolt = <1350000>;
415 regulator-min-microvolt = <1800000>;
416 regulator-max-microvolt = <1800000>;
422 regulator-min-microvolt = <1800000>;
423 regulator-max-microvolt = <2950000>;
428 regulator-min-microvolt = <1800000>;
429 regulator-max-microvolt = <1800000>;
433 regulator-min-microvolt = <2050000>;
434 regulator-max-microvolt = <2050000>;
438 regulator-min-microvolt = <2700000>;
439 regulator-max-microvolt = <2700000>;
443 regulator-min-microvolt = <2700000>;
444 regulator-max-microvolt = <2700000>;
448 regulator-min-microvolt = <2850000>;
449 regulator-max-microvolt = <2850000>;
453 regulator-min-microvolt = <2850000>;
454 regulator-max-microvolt = <2850000>;
458 regulator-min-microvolt = <2950000>;
459 regulator-max-microvolt = <2950000>;
460 regulator-system-load = <500000>;
461 regulator-allow-set-load;
466 regulator-min-microvolt = <2950000>;
467 regulator-max-microvolt = <2950000>;
472 regulator-min-microvolt = <3000000>;
473 regulator-max-microvolt = <3000000>;
477 regulator-min-microvolt = <2800000>;
478 regulator-max-microvolt = <2800000>;
482 regulator-min-microvolt = <3075000>;
483 regulator-max-microvolt = <3075000>;
487 pm8941_lvs3: lvs3 {};
494 vmmc-supply = <&pm8941_l20>;
495 vqmmc-supply = <&pm8941_s3>;
497 pinctrl-names = "default", "sleep";
498 pinctrl-0 = <&sdc1_on>;
499 pinctrl-1 = <&sdc1_off>;
505 vmmc-supply = <&pm8941_l21>;
506 vqmmc-supply = <&pm8941_l13>;
508 cd-gpios = <&tlmm 62 GPIO_ACTIVE_LOW>;
510 pinctrl-names = "default", "sleep";
511 pinctrl-0 = <&sdc2_on>;
512 pinctrl-1 = <&sdc2_off>;
518 max-frequency = <100000000>;
519 vmmc-supply = <&vreg_wlan>;
522 pinctrl-names = "default";
523 pinctrl-0 = <&sdc3_on>;
525 #address-cells = <1>;
529 compatible = "brcm,bcm4339-fmac", "brcm,bcm4329-fmac";
532 brcm,drive-strength = <10>;
534 pinctrl-names = "default";
535 pinctrl-0 = <&wlan_sleep_clk_pin>;
540 qcom,fast-charge-safe-current = <1500000>;
541 qcom,fast-charge-current-limit = <1500000>;
542 qcom,dc-current-limit = <1800000>;
543 qcom,fast-charge-safe-voltage = <4400000>;
544 qcom,fast-charge-high-threshold-voltage = <4350000>;
545 qcom,fast-charge-low-threshold-voltage = <3400000>;
546 qcom,auto-recharge-threshold-voltage = <4200000>;
547 qcom,minimum-input-voltage = <4300000>;
551 lcd_backlight_en_pin_a: lcd-backlight-vddio {
553 drive-strength = <10>;
561 drive-strength = <16>;
566 pins = "sdc1_cmd", "sdc1_data";
567 drive-strength = <10>;
575 drive-strength = <6>;
580 pins = "sdc2_cmd", "sdc2_data";
581 drive-strength = <6>;
588 drive-strength = <2>;
597 drive-strength = <10>;
604 drive-strength = <10>;
609 pins = "gpio35", "gpio36", "gpio37", "gpio38";
611 drive-strength = <10>;
616 ts_int_pin: ts-int-pin {
619 drive-strength = <2>;
624 bt_host_wake_pin: bt-host-wake {
627 drive-strength = <2>;
632 bt_dev_wake_pin: bt-dev-wake {
635 drive-strength = <2>;