1 #include "qcom-msm8974pro.dtsi"
2 #include "qcom-pm8841.dtsi"
3 #include "qcom-pm8941.dtsi"
4 #include <dt-bindings/gpio/gpio.h>
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_uart7;
18 stdout-path = "serial0:115200n8";
22 compatible = "gpio-keys";
23 input-name = "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>;
61 vdd_l1_l3-supply = <&pm8941_s1>;
62 vdd_l2_lvs1_2_3-supply = <&pm8941_s3>;
63 vdd_l4_l11-supply = <&pm8941_s1>;
64 vdd_l5_l7-supply = <&pm8941_s2>;
65 vdd_l6_l12_l14_l15-supply = <&pm8941_s2>;
66 vdd_l9_l10_l17_l22-supply = <&vreg_boost>;
67 vdd_l13_l20_l23_l24-supply = <&vreg_boost>;
68 vdd_l21-supply = <&vreg_boost>;
71 regulator-min-microvolt = <1300000>;
72 regulator-max-microvolt = <1300000>;
78 regulator-min-microvolt = <2150000>;
79 regulator-max-microvolt = <2150000>;
84 regulator-min-microvolt = <1800000>;
85 regulator-max-microvolt = <1800000>;
89 regulator-system-load = <154000>;
93 regulator-min-microvolt = <5000000>;
94 regulator-max-microvolt = <5000000>;
98 regulator-min-microvolt = <1225000>;
99 regulator-max-microvolt = <1225000>;
106 regulator-min-microvolt = <1200000>;
107 regulator-max-microvolt = <1200000>;
111 regulator-min-microvolt = <1200000>;
112 regulator-max-microvolt = <1200000>;
116 regulator-min-microvolt = <1225000>;
117 regulator-max-microvolt = <1225000>;
121 regulator-min-microvolt = <1800000>;
122 regulator-max-microvolt = <1800000>;
126 regulator-min-microvolt = <1800000>;
127 regulator-max-microvolt = <1800000>;
133 regulator-min-microvolt = <1800000>;
134 regulator-max-microvolt = <1800000>;
140 regulator-min-microvolt = <1800000>;
141 regulator-max-microvolt = <1800000>;
145 regulator-min-microvolt = <1800000>;
146 regulator-max-microvolt = <2950000>;
150 regulator-min-microvolt = <1300000>;
151 regulator-max-microvolt = <1350000>;
155 regulator-min-microvolt = <1800000>;
156 regulator-max-microvolt = <1800000>;
163 regulator-min-microvolt = <1800000>;
164 regulator-max-microvolt = <2950000>;
170 regulator-min-microvolt = <1800000>;
171 regulator-max-microvolt = <1800000>;
175 regulator-min-microvolt = <2050000>;
176 regulator-max-microvolt = <2050000>;
180 regulator-min-microvolt = <2700000>;
181 regulator-max-microvolt = <2700000>;
185 regulator-min-microvolt = <2700000>;
186 regulator-max-microvolt = <2700000>;
190 regulator-min-microvolt = <2850000>;
191 regulator-max-microvolt = <2850000>;
195 regulator-min-microvolt = <2850000>;
196 regulator-max-microvolt = <2850000>;
200 regulator-min-microvolt = <2950000>;
201 regulator-max-microvolt = <2950000>;
203 regulator-allow-set-load;
205 regulator-allow-set-load;
206 regulator-system-load = <500000>;
210 regulator-min-microvolt = <2950000>;
211 regulator-max-microvolt = <2950000>;
217 regulator-min-microvolt = <3000000>;
218 regulator-max-microvolt = <3000000>;
222 regulator-min-microvolt = <2800000>;
223 regulator-max-microvolt = <2800000>;
227 regulator-min-microvolt = <3075000>;
228 regulator-max-microvolt = <3075000>;
237 vreg_bl_vddio: lcd-backlight-vddio {
238 compatible = "regulator-fixed";
239 regulator-name = "vreg_bl_vddio";
240 regulator-min-microvolt = <3150000>;
241 regulator-max-microvolt = <3150000>;
243 gpio = <&msmgpio 69 0>;
246 vin-supply = <&pm8941_s3>;
247 startup-delay-us = <70000>;
249 pinctrl-names = "default";
250 pinctrl-0 = <&lcd_backlight_en_pin_a>;
253 vreg_vsp: lcd-dcdc-regulator {
254 compatible = "regulator-fixed";
255 regulator-name = "vreg_vsp";
256 regulator-min-microvolt = <5600000>;
257 regulator-max-microvolt = <5600000>;
259 gpio = <&pm8941_gpios 20 GPIO_ACTIVE_HIGH>;
262 pinctrl-names = "default";
263 pinctrl-0 = <&lcd_dcdc_en_pin_a>;
266 vreg_wlan: wlan-regulator {
267 compatible = "regulator-fixed";
269 regulator-name = "wl-reg";
270 regulator-min-microvolt = <3300000>;
271 regulator-max-microvolt = <3300000>;
273 gpio = <&pm8941_gpios 18 GPIO_ACTIVE_HIGH>;
276 pinctrl-names = "default";
277 pinctrl-0 = <&wlan_regulator_pin>;
285 vmmc-supply = <&pm8941_l20>;
286 vqmmc-supply = <&pm8941_s3>;
291 pinctrl-names = "default";
292 pinctrl-0 = <&sdhc1_pin_a>;
298 max-frequency = <100000000>;
300 vmmc-supply = <&vreg_wlan>;
302 pinctrl-names = "default";
303 pinctrl-0 = <&sdhc3_pin_a>;
305 #address-cells = <1>;
309 compatible = "brcm,bcm4339-fmac", "brcm,bcm4329-fmac";
312 brcm,drive-strength = <10>;
314 pinctrl-names = "default";
315 pinctrl-0 = <&wlan_sleep_clk_pin>;
324 vmmc-supply = <&pm8941_l21>;
325 vqmmc-supply = <&pm8941_l13>;
327 cd-gpios = <&msmgpio 62 GPIO_ACTIVE_LOW>;
329 pinctrl-names = "default";
330 pinctrl-0 = <&sdhc2_pin_a>, <&sdhc2_cd_pin_a>;
336 pinctrl-names = "default";
337 pinctrl-0 = <&blsp1_uart2_pin_a>;
343 pinctrl-names = "default";
344 pinctrl-0 = <&blsp2_uart7_pin_a>;
347 compatible = "brcm,bcm43438-bt";
348 max-speed = <3000000>;
350 pinctrl-names = "default";
351 pinctrl-0 = <&bt_host_wake_pin>,
355 host-wakeup-gpios = <&msmgpio 95 GPIO_ACTIVE_HIGH>;
356 device-wakeup-gpios = <&msmgpio 96 GPIO_ACTIVE_HIGH>;
357 shutdown-gpios = <&pm8941_gpios 16 GPIO_ACTIVE_HIGH>;
364 phys = <&usb_hs1_phy>;
365 phy-select = <&tcsr 0xb000 0>;
366 extcon = <&smbb>, <&usb_id>;
367 vbus-supply = <&chg_otg>;
377 v1p8-supply = <&pm8941_l6>;
378 v3p3-supply = <&pm8941_l24>;
381 qcom,init-seq = /bits/ 8 <0x1 0x64>;
387 blsp1_uart2_pin_a: blsp1-uart2-pin-active {
390 function = "blsp_uart2";
392 drive-strength = <2>;
398 function = "blsp_uart2";
400 drive-strength = <4>;
405 blsp2_uart7_pin_a: blsp2-uart7-pin-active {
408 function = "blsp_uart7";
410 drive-strength = <2>;
416 function = "blsp_uart7";
418 drive-strength = <2>;
424 function = "blsp_uart7";
426 drive-strength = <2>;
432 function = "blsp_uart7";
434 drive-strength = <2>;
441 pins = "gpio47", "gpio48";
442 function = "blsp_i2c8";
444 drive-strength = <2>;
451 pins = "gpio83", "gpio84";
452 function = "blsp_i2c11";
454 drive-strength = <2>;
459 lcd_backlight_en_pin_a: lcd-backlight-vddio {
461 drive-strength = <10>;
466 sdhc1_pin_a: sdhc1-pin-active {
469 drive-strength = <16>;
474 pins = "sdc1_cmd", "sdc1_data";
475 drive-strength = <10>;
480 sdhc2_cd_pin_a: sdhc2-cd-pin-active {
484 drive-strength = <2>;
488 sdhc2_pin_a: sdhc2-pin-active {
491 drive-strength = <6>;
496 pins = "sdc2_cmd", "sdc2_data";
497 drive-strength = <6>;
502 sdhc3_pin_a: sdhc3-pin-active {
507 drive-strength = <10>;
515 drive-strength = <10>;
520 pins = "gpio35", "gpio36", "gpio37", "gpio38";
523 drive-strength = <10>;
528 ts_int_pin: synaptics {
533 drive-strength = <2>;
539 bt_host_wake_pin: bt-host-wake {
543 drive-strength = <2>;
548 bt_dev_wake_pin: bt-dev-wake {
552 drive-strength = <2>;
560 clock-frequency = <355000>;
561 qcom,src-freq = <50000000>;
563 pinctrl-names = "default";
564 pinctrl-0 = <&i2c8_pins>;
567 compatible = "syna,rmi4-i2c";
570 interrupt-parent = <&msmgpio>;
571 interrupts = <86 IRQ_TYPE_EDGE_FALLING>;
573 #address-cells = <1>;
576 vdd-supply = <&pm8941_l22>;
577 vio-supply = <&pm8941_lvs3>;
579 pinctrl-names = "default";
580 pinctrl-0 = <&ts_int_pin>;
582 syna,startup-delay-ms = <10>;
591 syna,f11-flip-x = <1>;
592 syna,sensor-type = <1>;
599 pinctrl-names = "default";
600 pinctrl-0 = <&i2c11_pins>;
601 clock-frequency = <355000>;
602 qcom,src-freq = <50000000>;
604 lp8566_wled: backlight@2c {
605 compatible = "ti,lp8556";
607 power-supply = <&vreg_bl_vddio>;
609 bl-name = "backlight";
610 dev-ctrl = /bits/ 8 <0x05>;
611 init-brt = /bits/ 8 <0x3f>;
613 rom-addr = /bits/ 8 <0xa0>;
614 rom-val = /bits/ 8 <0xff>;
617 rom-addr = /bits/ 8 <0xa1>;
618 rom-val = /bits/ 8 <0x3f>;
621 rom-addr = /bits/ 8 <0xa2>;
622 rom-val = /bits/ 8 <0x20>;
625 rom-addr = /bits/ 8 <0xa3>;
626 rom-val = /bits/ 8 <0x5e>;
629 rom-addr = /bits/ 8 <0xa4>;
630 rom-val = /bits/ 8 <0x02>;
633 rom-addr = /bits/ 8 <0xa5>;
634 rom-val = /bits/ 8 <0x04>;
637 rom-addr = /bits/ 8 <0xa6>;
638 rom-val = /bits/ 8 <0x80>;
641 rom-addr = /bits/ 8 <0xa7>;
642 rom-val = /bits/ 8 <0xf7>;
645 rom-addr = /bits/ 8 <0xa9>;
646 rom-val = /bits/ 8 <0x80>;
649 rom-addr = /bits/ 8 <0xaa>;
650 rom-val = /bits/ 8 <0x0f>;
653 rom-addr = /bits/ 8 <0xae>;
654 rom-val = /bits/ 8 <0x0f>;
663 qcom,fast-charge-safe-current = <1500000>;
664 qcom,fast-charge-current-limit = <1500000>;
665 qcom,dc-current-limit = <1800000>;
666 qcom,fast-charge-safe-voltage = <4400000>;
667 qcom,fast-charge-high-threshold-voltage = <4350000>;
668 qcom,fast-charge-low-threshold-voltage = <3400000>;
669 qcom,auto-recharge-threshold-voltage = <4200000>;
670 qcom,minimum-input-voltage = <4300000>;
674 gpio_keys_pin_a: gpio-keys-active {
675 pins = "gpio2", "gpio5";
679 power-source = <PM8941_GPIO_S3>;
682 bt_reg_on_pin: bt-reg-on {
687 power-source = <PM8941_GPIO_S3>;
690 wlan_sleep_clk_pin: wl-sleep-clk {
695 power-source = <PM8941_GPIO_S3>;
698 wlan_regulator_pin: wl-reg-active {
703 power-source = <PM8941_GPIO_S3>;
706 lcd_dcdc_en_pin_a: lcd-dcdc-en-active {
711 power-source = <PM8941_GPIO_S3>;
720 qcom,rset-ohms = <2100>;
721 qcom,vset-millivolts = <3000>;