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;
17 stdout-path = "serial0:115200n8";
21 compatible = "gpio-keys";
22 input-name = "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>;
60 vdd_l1_l3-supply = <&pm8941_s1>;
61 vdd_l2_lvs1_2_3-supply = <&pm8941_s3>;
62 vdd_l4_l11-supply = <&pm8941_s1>;
63 vdd_l5_l7-supply = <&pm8941_s2>;
64 vdd_l6_l12_l14_l15-supply = <&pm8941_s2>;
65 vdd_l9_l10_l17_l22-supply = <&vreg_boost>;
66 vdd_l13_l20_l23_l24-supply = <&vreg_boost>;
67 vdd_l21-supply = <&vreg_boost>;
70 regulator-min-microvolt = <1300000>;
71 regulator-max-microvolt = <1300000>;
77 regulator-min-microvolt = <2150000>;
78 regulator-max-microvolt = <2150000>;
83 regulator-min-microvolt = <1800000>;
84 regulator-max-microvolt = <1800000>;
88 regulator-system-load = <154000>;
92 regulator-min-microvolt = <5000000>;
93 regulator-max-microvolt = <5000000>;
97 regulator-min-microvolt = <1225000>;
98 regulator-max-microvolt = <1225000>;
105 regulator-min-microvolt = <1200000>;
106 regulator-max-microvolt = <1200000>;
110 regulator-min-microvolt = <1200000>;
111 regulator-max-microvolt = <1200000>;
115 regulator-min-microvolt = <1225000>;
116 regulator-max-microvolt = <1225000>;
120 regulator-min-microvolt = <1800000>;
121 regulator-max-microvolt = <1800000>;
125 regulator-min-microvolt = <1800000>;
126 regulator-max-microvolt = <1800000>;
132 regulator-min-microvolt = <1800000>;
133 regulator-max-microvolt = <1800000>;
139 regulator-min-microvolt = <1800000>;
140 regulator-max-microvolt = <1800000>;
144 regulator-min-microvolt = <1800000>;
145 regulator-max-microvolt = <2950000>;
149 regulator-min-microvolt = <1300000>;
150 regulator-max-microvolt = <1350000>;
154 regulator-min-microvolt = <1800000>;
155 regulator-max-microvolt = <1800000>;
162 regulator-min-microvolt = <1800000>;
163 regulator-max-microvolt = <2950000>;
169 regulator-min-microvolt = <1800000>;
170 regulator-max-microvolt = <1800000>;
174 regulator-min-microvolt = <2050000>;
175 regulator-max-microvolt = <2050000>;
179 regulator-min-microvolt = <2700000>;
180 regulator-max-microvolt = <2700000>;
184 regulator-min-microvolt = <2700000>;
185 regulator-max-microvolt = <2700000>;
189 regulator-min-microvolt = <2850000>;
190 regulator-max-microvolt = <2850000>;
194 regulator-min-microvolt = <2850000>;
195 regulator-max-microvolt = <2850000>;
199 regulator-min-microvolt = <2950000>;
200 regulator-max-microvolt = <2950000>;
202 regulator-allow-set-load;
204 regulator-allow-set-load;
205 regulator-system-load = <500000>;
209 regulator-min-microvolt = <2950000>;
210 regulator-max-microvolt = <2950000>;
216 regulator-min-microvolt = <3000000>;
217 regulator-max-microvolt = <3000000>;
221 regulator-min-microvolt = <2800000>;
222 regulator-max-microvolt = <2800000>;
226 regulator-min-microvolt = <3075000>;
227 regulator-max-microvolt = <3075000>;
236 vreg_bl_vddio: lcd-backlight-vddio {
237 compatible = "regulator-fixed";
238 regulator-name = "vreg_bl_vddio";
239 regulator-min-microvolt = <3150000>;
240 regulator-max-microvolt = <3150000>;
242 gpio = <&msmgpio 69 0>;
245 vin-supply = <&pm8941_s3>;
246 startup-delay-us = <70000>;
248 pinctrl-names = "default";
249 pinctrl-0 = <&lcd_backlight_en_pin_a>;
252 vreg_vsp: lcd-dcdc-regulator {
253 compatible = "regulator-fixed";
254 regulator-name = "vreg_vsp";
255 regulator-min-microvolt = <5600000>;
256 regulator-max-microvolt = <5600000>;
258 gpio = <&pm8941_gpios 20 GPIO_ACTIVE_HIGH>;
261 pinctrl-names = "default";
262 pinctrl-0 = <&lcd_dcdc_en_pin_a>;
265 vreg_wlan: wlan-regulator {
266 compatible = "regulator-fixed";
268 regulator-name = "wl-reg";
269 regulator-min-microvolt = <3300000>;
270 regulator-max-microvolt = <3300000>;
272 gpio = <&pm8941_gpios 18 GPIO_ACTIVE_HIGH>;
275 pinctrl-names = "default";
276 pinctrl-0 = <&wlan_regulator_pin>;
284 vmmc-supply = <&pm8941_l20>;
285 vqmmc-supply = <&pm8941_s3>;
290 pinctrl-names = "default";
291 pinctrl-0 = <&sdhc1_pin_a>;
297 max-frequency = <100000000>;
299 vmmc-supply = <&vreg_wlan>;
301 pinctrl-names = "default";
302 pinctrl-0 = <&sdhc3_pin_a>;
304 #address-cells = <1>;
308 compatible = "brcm,bcm4339-fmac", "brcm,bcm4329-fmac";
311 brcm,drive-strength = <10>;
313 pinctrl-names = "default";
314 pinctrl-0 = <&wlan_sleep_clk_pin>;
323 vmmc-supply = <&pm8941_l21>;
324 vqmmc-supply = <&pm8941_l13>;
326 cd-gpios = <&msmgpio 62 GPIO_ACTIVE_LOW>;
328 pinctrl-names = "default";
329 pinctrl-0 = <&sdhc2_pin_a>, <&sdhc2_cd_pin_a>;
335 pinctrl-names = "default";
336 pinctrl-0 = <&blsp1_uart2_pin_a>;
342 phys = <&usb_hs1_phy>;
343 phy-select = <&tcsr 0xb000 0>;
344 extcon = <&smbb>, <&usb_id>;
345 vbus-supply = <&chg_otg>;
355 v1p8-supply = <&pm8941_l6>;
356 v3p3-supply = <&pm8941_l24>;
359 qcom,init-seq = /bits/ 8 <0x1 0x64>;
365 blsp1_uart2_pin_a: blsp1-uart2-pin-active {
368 function = "blsp_uart2";
370 drive-strength = <2>;
376 function = "blsp_uart2";
378 drive-strength = <4>;
385 pins = "gpio47", "gpio48";
386 function = "blsp_i2c8";
388 drive-strength = <2>;
395 pins = "gpio83", "gpio84";
396 function = "blsp_i2c11";
398 drive-strength = <2>;
403 lcd_backlight_en_pin_a: lcd-backlight-vddio {
405 drive-strength = <10>;
410 sdhc1_pin_a: sdhc1-pin-active {
413 drive-strength = <16>;
418 pins = "sdc1_cmd", "sdc1_data";
419 drive-strength = <10>;
424 sdhc2_cd_pin_a: sdhc2-cd-pin-active {
428 drive-strength = <2>;
432 sdhc2_pin_a: sdhc2-pin-active {
435 drive-strength = <6>;
440 pins = "sdc2_cmd", "sdc2_data";
441 drive-strength = <6>;
446 sdhc3_pin_a: sdhc3-pin-active {
451 drive-strength = <10>;
459 drive-strength = <10>;
464 pins = "gpio35", "gpio36", "gpio37", "gpio38";
467 drive-strength = <10>;
472 ts_int_pin: synaptics {
477 drive-strength = <2>;
487 clock-frequency = <355000>;
488 qcom,src-freq = <50000000>;
490 pinctrl-names = "default";
491 pinctrl-0 = <&i2c8_pins>;
494 compatible = "syna,rmi4-i2c";
497 interrupt-parent = <&msmgpio>;
498 interrupts = <86 IRQ_TYPE_EDGE_FALLING>;
500 #address-cells = <1>;
503 vdd-supply = <&pm8941_l22>;
504 vio-supply = <&pm8941_lvs3>;
506 pinctrl-names = "default";
507 pinctrl-0 = <&ts_int_pin>;
509 syna,startup-delay-ms = <10>;
518 syna,f11-flip-x = <1>;
519 syna,sensor-type = <1>;
526 pinctrl-names = "default";
527 pinctrl-0 = <&i2c11_pins>;
528 clock-frequency = <355000>;
529 qcom,src-freq = <50000000>;
531 lp8566_wled: backlight@2c {
532 compatible = "ti,lp8556";
534 power-supply = <&vreg_bl_vddio>;
536 bl-name = "backlight";
537 dev-ctrl = /bits/ 8 <0x05>;
538 init-brt = /bits/ 8 <0x3f>;
540 rom-addr = /bits/ 8 <0xa0>;
541 rom-val = /bits/ 8 <0xff>;
544 rom-addr = /bits/ 8 <0xa1>;
545 rom-val = /bits/ 8 <0x3f>;
548 rom-addr = /bits/ 8 <0xa2>;
549 rom-val = /bits/ 8 <0x20>;
552 rom-addr = /bits/ 8 <0xa3>;
553 rom-val = /bits/ 8 <0x5e>;
556 rom-addr = /bits/ 8 <0xa4>;
557 rom-val = /bits/ 8 <0x02>;
560 rom-addr = /bits/ 8 <0xa5>;
561 rom-val = /bits/ 8 <0x04>;
564 rom-addr = /bits/ 8 <0xa6>;
565 rom-val = /bits/ 8 <0x80>;
568 rom-addr = /bits/ 8 <0xa7>;
569 rom-val = /bits/ 8 <0xf7>;
572 rom-addr = /bits/ 8 <0xa9>;
573 rom-val = /bits/ 8 <0x80>;
576 rom-addr = /bits/ 8 <0xaa>;
577 rom-val = /bits/ 8 <0x0f>;
580 rom-addr = /bits/ 8 <0xae>;
581 rom-val = /bits/ 8 <0x0f>;
590 qcom,fast-charge-safe-current = <1500000>;
591 qcom,fast-charge-current-limit = <1500000>;
592 qcom,dc-current-limit = <1800000>;
593 qcom,fast-charge-safe-voltage = <4400000>;
594 qcom,fast-charge-high-threshold-voltage = <4350000>;
595 qcom,fast-charge-low-threshold-voltage = <3400000>;
596 qcom,auto-recharge-threshold-voltage = <4200000>;
597 qcom,minimum-input-voltage = <4300000>;
601 gpio_keys_pin_a: gpio-keys-active {
602 pins = "gpio2", "gpio5";
606 power-source = <PM8941_GPIO_S3>;
609 wlan_sleep_clk_pin: wl-sleep-clk {
614 power-source = <PM8941_GPIO_S3>;
617 wlan_regulator_pin: wl-reg-active {
622 power-source = <PM8941_GPIO_S3>;
625 lcd_dcdc_en_pin_a: lcd-dcdc-en-active {
630 power-source = <PM8941_GPIO_S3>;
639 qcom,rset-ohms = <2100>;
640 qcom,vset-millivolts = <3000>;