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/pinctrl/qcom,pmic-gpio.h>
9 model = "Sony Xperia Z2 Tablet";
10 compatible = "sony,xperia-castor", "qcom,msm8974";
13 serial0 = &blsp1_uart2;
14 serial1 = &blsp2_uart1;
18 stdout-path = "serial0:115200n8";
22 compatible = "gpio-keys";
24 pinctrl-names = "default";
25 pinctrl-0 = <&gpio_keys_pin_a>;
28 label = "volume_down";
29 gpios = <&pm8941_gpios 2 GPIO_ACTIVE_LOW>;
30 linux,input-type = <1>;
31 linux,code = <KEY_VOLUMEDOWN>;
35 label = "camera_snapshot";
36 gpios = <&pm8941_gpios 3 GPIO_ACTIVE_LOW>;
37 linux,input-type = <1>;
38 linux,code = <KEY_CAMERA>;
42 label = "camera_focus";
43 gpios = <&pm8941_gpios 4 GPIO_ACTIVE_LOW>;
44 linux,input-type = <1>;
45 linux,code = <KEY_CAMERA_FOCUS>;
50 gpios = <&pm8941_gpios 5 GPIO_ACTIVE_LOW>;
51 linux,input-type = <1>;
52 linux,code = <KEY_VOLUMEUP>;
56 vreg_bl_vddio: lcd-backlight-vddio {
57 compatible = "regulator-fixed";
58 regulator-name = "vreg_bl_vddio";
59 regulator-min-microvolt = <3150000>;
60 regulator-max-microvolt = <3150000>;
65 vin-supply = <&pm8941_s3>;
66 startup-delay-us = <70000>;
68 pinctrl-names = "default";
69 pinctrl-0 = <&lcd_backlight_en_pin_a>;
72 vreg_vsp: lcd-dcdc-regulator {
73 compatible = "regulator-fixed";
74 regulator-name = "vreg_vsp";
75 regulator-min-microvolt = <5600000>;
76 regulator-max-microvolt = <5600000>;
78 gpio = <&pm8941_gpios 20 GPIO_ACTIVE_HIGH>;
81 pinctrl-names = "default";
82 pinctrl-0 = <&lcd_dcdc_en_pin_a>;
85 vreg_wlan: wlan-regulator {
86 compatible = "regulator-fixed";
88 regulator-name = "wl-reg";
89 regulator-min-microvolt = <3300000>;
90 regulator-max-microvolt = <3300000>;
92 gpio = <&pm8941_gpios 18 GPIO_ACTIVE_HIGH>;
95 pinctrl-names = "default";
96 pinctrl-0 = <&wlan_regulator_pin>;
106 clock-frequency = <355000>;
109 compatible = "syna,rmi4-i2c";
112 interrupt-parent = <&tlmm>;
113 interrupts = <86 IRQ_TYPE_EDGE_FALLING>;
115 #address-cells = <1>;
118 vdd-supply = <&pm8941_l22>;
119 vio-supply = <&pm8941_lvs3>;
121 pinctrl-names = "default";
122 pinctrl-0 = <&ts_int_pin>;
124 syna,startup-delay-ms = <10>;
133 syna,f11-flip-x = <1>;
134 syna,sensor-type = <1>;
141 clock-frequency = <355000>;
143 lp8566_wled: backlight@2c {
144 compatible = "ti,lp8556";
146 power-supply = <&vreg_bl_vddio>;
148 bl-name = "backlight";
149 dev-ctrl = /bits/ 8 <0x05>;
150 init-brt = /bits/ 8 <0x3f>;
152 rom-addr = /bits/ 8 <0xa0>;
153 rom-val = /bits/ 8 <0xff>;
156 rom-addr = /bits/ 8 <0xa1>;
157 rom-val = /bits/ 8 <0x3f>;
160 rom-addr = /bits/ 8 <0xa2>;
161 rom-val = /bits/ 8 <0x20>;
164 rom-addr = /bits/ 8 <0xa3>;
165 rom-val = /bits/ 8 <0x5e>;
168 rom-addr = /bits/ 8 <0xa4>;
169 rom-val = /bits/ 8 <0x02>;
172 rom-addr = /bits/ 8 <0xa5>;
173 rom-val = /bits/ 8 <0x04>;
176 rom-addr = /bits/ 8 <0xa6>;
177 rom-val = /bits/ 8 <0x80>;
180 rom-addr = /bits/ 8 <0xa7>;
181 rom-val = /bits/ 8 <0xf7>;
184 rom-addr = /bits/ 8 <0xa9>;
185 rom-val = /bits/ 8 <0x80>;
188 rom-addr = /bits/ 8 <0xaa>;
189 rom-val = /bits/ 8 <0x0f>;
192 rom-addr = /bits/ 8 <0xae>;
193 rom-val = /bits/ 8 <0x0f>;
202 compatible = "brcm,bcm43438-bt";
203 max-speed = <3000000>;
205 pinctrl-names = "default";
206 pinctrl-0 = <&bt_host_wake_pin>, <&bt_dev_wake_pin>, <&bt_reg_on_pin>;
208 host-wakeup-gpios = <&tlmm 95 GPIO_ACTIVE_HIGH>;
209 device-wakeup-gpios = <&tlmm 96 GPIO_ACTIVE_HIGH>;
210 shutdown-gpios = <&pm8941_gpios 16 GPIO_ACTIVE_HIGH>;
217 phys = <&usb_hs1_phy>;
218 phy-select = <&tcsr 0xb000 0>;
219 extcon = <&smbb>, <&usb_id>;
220 vbus-supply = <&chg_otg>;
230 v1p8-supply = <&pm8941_l6>;
231 v3p3-supply = <&pm8941_l24>;
234 qcom,init-seq = /bits/ 8 <0x1 0x64>;
242 qcom,rset-ohms = <2100>;
243 qcom,vset-millivolts = <3000>;
247 gpio_keys_pin_a: gpio-keys-active {
248 pins = "gpio2", "gpio5";
252 power-source = <PM8941_GPIO_S3>;
255 bt_reg_on_pin: bt-reg-on {
260 power-source = <PM8941_GPIO_S3>;
263 wlan_sleep_clk_pin: wl-sleep-clk {
268 power-source = <PM8941_GPIO_S3>;
271 wlan_regulator_pin: wl-reg-active {
276 power-source = <PM8941_GPIO_S3>;
279 lcd_dcdc_en_pin_a: lcd-dcdc-en-active {
284 power-source = <PM8941_GPIO_S3>;
293 compatible = "qcom,rpm-pm8941-regulators";
295 vdd_l1_l3-supply = <&pm8941_s1>;
296 vdd_l2_lvs1_2_3-supply = <&pm8941_s3>;
297 vdd_l4_l11-supply = <&pm8941_s1>;
298 vdd_l5_l7-supply = <&pm8941_s2>;
299 vdd_l6_l12_l14_l15-supply = <&pm8941_s2>;
300 vdd_l9_l10_l17_l22-supply = <&vreg_boost>;
301 vdd_l13_l20_l23_l24-supply = <&vreg_boost>;
302 vdd_l21-supply = <&vreg_boost>;
305 regulator-min-microvolt = <1300000>;
306 regulator-max-microvolt = <1300000>;
312 regulator-min-microvolt = <2150000>;
313 regulator-max-microvolt = <2150000>;
318 regulator-min-microvolt = <1800000>;
319 regulator-max-microvolt = <1800000>;
320 regulator-system-load = <154000>;
326 regulator-min-microvolt = <5000000>;
327 regulator-max-microvolt = <5000000>;
331 regulator-min-microvolt = <1225000>;
332 regulator-max-microvolt = <1225000>;
338 regulator-min-microvolt = <1200000>;
339 regulator-max-microvolt = <1200000>;
343 regulator-min-microvolt = <1200000>;
344 regulator-max-microvolt = <1200000>;
348 regulator-min-microvolt = <1225000>;
349 regulator-max-microvolt = <1225000>;
353 regulator-min-microvolt = <1800000>;
354 regulator-max-microvolt = <1800000>;
358 regulator-min-microvolt = <1800000>;
359 regulator-max-microvolt = <1800000>;
364 regulator-min-microvolt = <1800000>;
365 regulator-max-microvolt = <1800000>;
370 regulator-min-microvolt = <1800000>;
371 regulator-max-microvolt = <1800000>;
375 regulator-min-microvolt = <1800000>;
376 regulator-max-microvolt = <2950000>;
380 regulator-min-microvolt = <1300000>;
381 regulator-max-microvolt = <1350000>;
385 regulator-min-microvolt = <1800000>;
386 regulator-max-microvolt = <1800000>;
392 regulator-min-microvolt = <1800000>;
393 regulator-max-microvolt = <2950000>;
398 regulator-min-microvolt = <1800000>;
399 regulator-max-microvolt = <1800000>;
403 regulator-min-microvolt = <2050000>;
404 regulator-max-microvolt = <2050000>;
408 regulator-min-microvolt = <2700000>;
409 regulator-max-microvolt = <2700000>;
413 regulator-min-microvolt = <2700000>;
414 regulator-max-microvolt = <2700000>;
418 regulator-min-microvolt = <2850000>;
419 regulator-max-microvolt = <2850000>;
423 regulator-min-microvolt = <2850000>;
424 regulator-max-microvolt = <2850000>;
428 regulator-min-microvolt = <2950000>;
429 regulator-max-microvolt = <2950000>;
430 regulator-system-load = <500000>;
431 regulator-allow-set-load;
436 regulator-min-microvolt = <2950000>;
437 regulator-max-microvolt = <2950000>;
442 regulator-min-microvolt = <3000000>;
443 regulator-max-microvolt = <3000000>;
447 regulator-min-microvolt = <2800000>;
448 regulator-max-microvolt = <2800000>;
452 regulator-min-microvolt = <3075000>;
453 regulator-max-microvolt = <3075000>;
457 pm8941_lvs3: lvs3 {};
464 vmmc-supply = <&pm8941_l20>;
465 vqmmc-supply = <&pm8941_s3>;
467 pinctrl-names = "default", "sleep";
468 pinctrl-0 = <&sdc1_on>;
469 pinctrl-1 = <&sdc1_off>;
475 vmmc-supply = <&pm8941_l21>;
476 vqmmc-supply = <&pm8941_l13>;
478 cd-gpios = <&tlmm 62 GPIO_ACTIVE_LOW>;
480 pinctrl-names = "default", "sleep";
481 pinctrl-0 = <&sdc2_on>;
482 pinctrl-1 = <&sdc2_off>;
488 max-frequency = <100000000>;
489 vmmc-supply = <&vreg_wlan>;
492 pinctrl-names = "default";
493 pinctrl-0 = <&sdc3_on>;
495 #address-cells = <1>;
499 compatible = "brcm,bcm4339-fmac", "brcm,bcm4329-fmac";
502 brcm,drive-strength = <10>;
504 pinctrl-names = "default";
505 pinctrl-0 = <&wlan_sleep_clk_pin>;
510 qcom,fast-charge-safe-current = <1500000>;
511 qcom,fast-charge-current-limit = <1500000>;
512 qcom,dc-current-limit = <1800000>;
513 qcom,fast-charge-safe-voltage = <4400000>;
514 qcom,fast-charge-high-threshold-voltage = <4350000>;
515 qcom,fast-charge-low-threshold-voltage = <3400000>;
516 qcom,auto-recharge-threshold-voltage = <4200000>;
517 qcom,minimum-input-voltage = <4300000>;
521 lcd_backlight_en_pin_a: lcd-backlight-vddio {
523 drive-strength = <10>;
531 drive-strength = <16>;
536 pins = "sdc1_cmd", "sdc1_data";
537 drive-strength = <10>;
545 drive-strength = <6>;
550 pins = "sdc2_cmd", "sdc2_data";
551 drive-strength = <6>;
558 drive-strength = <2>;
567 drive-strength = <10>;
574 drive-strength = <10>;
579 pins = "gpio35", "gpio36", "gpio37", "gpio38";
581 drive-strength = <10>;
586 ts_int_pin: ts-int-pin {
589 drive-strength = <2>;
594 bt_host_wake_pin: bt-host-wake {
597 drive-strength = <2>;
602 bt_dev_wake_pin: bt-dev-wake {
605 drive-strength = <2>;