blob: 409d1798de34ecbdb5edad84dfc8d12737fb9521 [file] [log] [blame]
Tom Rini53633a82024-02-29 12:33:36 -05001// SPDX-License-Identifier: GPL-2.0
Tom Rini762f85b2024-07-20 11:15:10 -06002#include "qcom-msm8974pro-sony-xperia-shinano-common.dtsi"
Tom Rini53633a82024-02-29 12:33:36 -05003
4/ {
5 model = "Sony Xperia Z2 Tablet";
6 compatible = "sony,xperia-castor", "qcom,msm8974pro", "qcom,msm8974";
7 chassis-type = "tablet";
8
Tom Rini53633a82024-02-29 12:33:36 -05009 vreg_bl_vddio: lcd-backlight-vddio {
10 compatible = "regulator-fixed";
11 regulator-name = "vreg_bl_vddio";
12 regulator-min-microvolt = <3150000>;
13 regulator-max-microvolt = <3150000>;
14
15 gpio = <&tlmm 69 0>;
16 enable-active-high;
17
18 vin-supply = <&pm8941_s3>;
19 startup-delay-us = <70000>;
20
Tom Rini53633a82024-02-29 12:33:36 -050021 pinctrl-0 = <&lcd_backlight_en_pin_a>;
Tom Rini93743d22024-04-01 09:08:13 -040022 pinctrl-names = "default";
Tom Rini93743d22024-04-01 09:08:13 -040023 };
Tom Rini53633a82024-02-29 12:33:36 -050024};
25
Tom Rini762f85b2024-07-20 11:15:10 -060026&blsp2_i2c5 {
Tom Rini53633a82024-02-29 12:33:36 -050027 clock-frequency = <355000>;
28
Tom Rini53633a82024-02-29 12:33:36 -050029 status = "okay";
Tom Rini53633a82024-02-29 12:33:36 -050030
31 lp8566_wled: backlight@2c {
32 compatible = "ti,lp8556";
33 reg = <0x2c>;
34 power-supply = <&vreg_bl_vddio>;
35
36 bl-name = "backlight";
37 dev-ctrl = /bits/ 8 <0x05>;
38 init-brt = /bits/ 8 <0x3f>;
39
40 rom-a0h {
41 rom-addr = /bits/ 8 <0xa0>;
42 rom-val = /bits/ 8 <0xff>;
43 };
Tom Rini762f85b2024-07-20 11:15:10 -060044
Tom Rini53633a82024-02-29 12:33:36 -050045 rom-a1h {
46 rom-addr = /bits/ 8 <0xa1>;
47 rom-val = /bits/ 8 <0x3f>;
48 };
Tom Rini762f85b2024-07-20 11:15:10 -060049
Tom Rini53633a82024-02-29 12:33:36 -050050 rom-a2h {
51 rom-addr = /bits/ 8 <0xa2>;
52 rom-val = /bits/ 8 <0x20>;
53 };
Tom Rini762f85b2024-07-20 11:15:10 -060054
Tom Rini53633a82024-02-29 12:33:36 -050055 rom-a3h {
56 rom-addr = /bits/ 8 <0xa3>;
57 rom-val = /bits/ 8 <0x5e>;
58 };
Tom Rini762f85b2024-07-20 11:15:10 -060059
Tom Rini53633a82024-02-29 12:33:36 -050060 rom-a4h {
61 rom-addr = /bits/ 8 <0xa4>;
62 rom-val = /bits/ 8 <0x02>;
63 };
Tom Rini762f85b2024-07-20 11:15:10 -060064
Tom Rini53633a82024-02-29 12:33:36 -050065 rom-a5h {
66 rom-addr = /bits/ 8 <0xa5>;
67 rom-val = /bits/ 8 <0x04>;
68 };
Tom Rini762f85b2024-07-20 11:15:10 -060069
Tom Rini53633a82024-02-29 12:33:36 -050070 rom-a6h {
71 rom-addr = /bits/ 8 <0xa6>;
72 rom-val = /bits/ 8 <0x80>;
73 };
Tom Rini762f85b2024-07-20 11:15:10 -060074
Tom Rini53633a82024-02-29 12:33:36 -050075 rom-a7h {
76 rom-addr = /bits/ 8 <0xa7>;
77 rom-val = /bits/ 8 <0xf7>;
78 };
Tom Rini762f85b2024-07-20 11:15:10 -060079
Tom Rini53633a82024-02-29 12:33:36 -050080 rom-a9h {
81 rom-addr = /bits/ 8 <0xa9>;
82 rom-val = /bits/ 8 <0x80>;
83 };
Tom Rini762f85b2024-07-20 11:15:10 -060084
Tom Rini53633a82024-02-29 12:33:36 -050085 rom-aah {
86 rom-addr = /bits/ 8 <0xaa>;
87 rom-val = /bits/ 8 <0x0f>;
88 };
Tom Rini762f85b2024-07-20 11:15:10 -060089
Tom Rini53633a82024-02-29 12:33:36 -050090 rom-aeh {
91 rom-addr = /bits/ 8 <0xae>;
92 rom-val = /bits/ 8 <0x0f>;
93 };
94 };
95};
96
97&blsp2_uart1 {
98 status = "okay";
99
100 bluetooth {
101 compatible = "brcm,bcm43438-bt";
102 max-speed = <3000000>;
103
Tom Rini53633a82024-02-29 12:33:36 -0500104 pinctrl-0 = <&bt_host_wake_pin>, <&bt_dev_wake_pin>, <&bt_reg_on_pin>;
Tom Rini762f85b2024-07-20 11:15:10 -0600105 pinctrl-names = "default";
Tom Rini53633a82024-02-29 12:33:36 -0500106
107 host-wakeup-gpios = <&tlmm 95 GPIO_ACTIVE_HIGH>;
108 device-wakeup-gpios = <&tlmm 96 GPIO_ACTIVE_HIGH>;
109 shutdown-gpios = <&pm8941_gpios 16 GPIO_ACTIVE_HIGH>;
110 };
111};
112
Tom Rini53633a82024-02-29 12:33:36 -0500113&pm8941_gpios {
Tom Rini53633a82024-02-29 12:33:36 -0500114 bt_reg_on_pin: bt-reg-on-state {
115 pins = "gpio16";
116 function = "normal";
Tom Rini53633a82024-02-29 12:33:36 -0500117 output-low;
118 power-source = <PM8941_GPIO_S3>;
119 };
Tom Rini53633a82024-02-29 12:33:36 -0500120};
121
Tom Rini53633a82024-02-29 12:33:36 -0500122&rpm_requests {
Tom Rini53633a82024-02-29 12:33:36 -0500123 regulators-1 {
Tom Rini53633a82024-02-29 12:33:36 -0500124 pm8941_l11: l11 {
125 regulator-min-microvolt = <1300000>;
126 regulator-max-microvolt = <1350000>;
127 };
128
Tom Rini53633a82024-02-29 12:33:36 -0500129 pm8941_l19: l19 {
130 regulator-min-microvolt = <2850000>;
131 regulator-max-microvolt = <2850000>;
132 };
Tom Rini53633a82024-02-29 12:33:36 -0500133 };
134};
135
Tom Rini53633a82024-02-29 12:33:36 -0500136&smbb {
137 qcom,fast-charge-safe-current = <1500000>;
138 qcom,fast-charge-current-limit = <1500000>;
139 qcom,dc-current-limit = <1800000>;
140 usb-charge-current-limit = <1800000>;
141 qcom,fast-charge-safe-voltage = <4400000>;
142 qcom,fast-charge-high-threshold-voltage = <4350000>;
143 qcom,fast-charge-low-threshold-voltage = <3400000>;
144 qcom,auto-recharge-threshold-voltage = <4200000>;
145 qcom,minimum-input-voltage = <4300000>;
Tom Rini93743d22024-04-01 09:08:13 -0400146
147 status = "okay";
Tom Rini53633a82024-02-29 12:33:36 -0500148};
149
Tom Rini762f85b2024-07-20 11:15:10 -0600150&synaptics_touchscreen {
151 vio-supply = <&pm8941_lvs3>;
152};
Tom Rini53633a82024-02-29 12:33:36 -0500153
Tom Rini762f85b2024-07-20 11:15:10 -0600154&tlmm {
155 bt_dev_wake_pin: bt-dev-wake-state {
156 pins = "gpio96";
Tom Rini53633a82024-02-29 12:33:36 -0500157 function = "gpio";
158 drive-strength = <2>;
159 bias-disable;
160 };
161
162 bt_host_wake_pin: bt-host-wake-state {
163 pins = "gpio95";
164 function = "gpio";
165 drive-strength = <2>;
166 bias-disable;
167 output-low;
168 };
169
Tom Rini762f85b2024-07-20 11:15:10 -0600170 lcd_backlight_en_pin_a: lcd-backlight-vddio-state {
171 pins = "gpio69";
Tom Rini53633a82024-02-29 12:33:36 -0500172 function = "gpio";
Tom Rini762f85b2024-07-20 11:15:10 -0600173 drive-strength = <10>;
174 output-low;
Tom Rini53633a82024-02-29 12:33:36 -0500175 bias-disable;
176 };
177};