1 #include "qcom-msm8974.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 Z1";
10 compatible = "sony,xperia-honami", "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>;
57 reg = <0 0x40000000>, <0x40000000 0x40000000>;
58 device_type = "memory";
66 regulator-min-microvolt = <675000>;
67 regulator-max-microvolt = <1050000>;
71 regulator-min-microvolt = <500000>;
72 regulator-max-microvolt = <1050000>;
76 regulator-min-microvolt = <500000>;
77 regulator-max-microvolt = <1050000>;
81 regulator-min-microvolt = <500000>;
82 regulator-max-microvolt = <1050000>;
87 vdd_l1_l3-supply = <&pm8941_s1>;
88 vdd_l2_lvs1_2_3-supply = <&pm8941_s3>;
89 vdd_l4_l11-supply = <&pm8941_s1>;
90 vdd_l5_l7-supply = <&pm8941_s2>;
91 vdd_l6_l12_l14_l15-supply = <&pm8941_s2>;
92 vdd_l9_l10_l17_l22-supply = <&vreg_boost>;
93 vdd_l13_l20_l23_l24-supply = <&vreg_boost>;
94 vdd_l21-supply = <&vreg_boost>;
95 vin_5vs-supply = <&pm8941_5v>;
98 regulator-min-microvolt = <1300000>;
99 regulator-max-microvolt = <1300000>;
105 regulator-min-microvolt = <2150000>;
106 regulator-max-microvolt = <2150000>;
111 regulator-min-microvolt = <1800000>;
112 regulator-max-microvolt = <1800000>;
118 regulator-min-microvolt = <5000000>;
119 regulator-max-microvolt = <5000000>;
123 regulator-min-microvolt = <1225000>;
124 regulator-max-microvolt = <1225000>;
131 regulator-min-microvolt = <1200000>;
132 regulator-max-microvolt = <1200000>;
136 regulator-min-microvolt = <1200000>;
137 regulator-max-microvolt = <1200000>;
141 regulator-min-microvolt = <1225000>;
142 regulator-max-microvolt = <1225000>;
146 regulator-min-microvolt = <1800000>;
147 regulator-max-microvolt = <1800000>;
151 regulator-min-microvolt = <1800000>;
152 regulator-max-microvolt = <1800000>;
158 regulator-min-microvolt = <1800000>;
159 regulator-max-microvolt = <1800000>;
165 regulator-min-microvolt = <1800000>;
166 regulator-max-microvolt = <1800000>;
170 regulator-min-microvolt = <1800000>;
171 regulator-max-microvolt = <2950000>;
175 regulator-min-microvolt = <1300000>;
176 regulator-max-microvolt = <1350000>;
180 regulator-min-microvolt = <1800000>;
181 regulator-max-microvolt = <1800000>;
188 regulator-min-microvolt = <1800000>;
189 regulator-max-microvolt = <2950000>;
195 regulator-min-microvolt = <1800000>;
196 regulator-max-microvolt = <1800000>;
200 regulator-min-microvolt = <2050000>;
201 regulator-max-microvolt = <2050000>;
205 regulator-min-microvolt = <2700000>;
206 regulator-max-microvolt = <2700000>;
210 regulator-min-microvolt = <2700000>;
211 regulator-max-microvolt = <2700000>;
215 regulator-min-microvolt = <2850000>;
216 regulator-max-microvolt = <2850000>;
220 regulator-min-microvolt = <3300000>;
221 regulator-max-microvolt = <3300000>;
225 regulator-min-microvolt = <2950000>;
226 regulator-max-microvolt = <2950000>;
228 regulator-allow-set-load;
230 regulator-system-load = <200000>;
234 regulator-min-microvolt = <2950000>;
235 regulator-max-microvolt = <2950000>;
241 regulator-min-microvolt = <3000000>;
242 regulator-max-microvolt = <3000000>;
246 regulator-min-microvolt = <2800000>;
247 regulator-max-microvolt = <2800000>;
251 regulator-min-microvolt = <3075000>;
252 regulator-max-microvolt = <3075000>;
261 vreg_boost: vreg-boost {
262 compatible = "regulator-fixed";
264 regulator-name = "vreg-boost";
265 regulator-min-microvolt = <3150000>;
266 regulator-max-microvolt = <3150000>;
271 gpio = <&pm8941_gpios 21 GPIO_ACTIVE_HIGH>;
274 pinctrl-names = "default";
275 pinctrl-0 = <&boost_bypass_n_pin>;
283 vmmc-supply = <&pm8941_l20>;
284 vqmmc-supply = <&pm8941_s3>;
289 pinctrl-names = "default";
290 pinctrl-0 = <&sdhc1_pin_a>;
298 vmmc-supply = <&pm8941_l21>;
299 vqmmc-supply = <&pm8941_l13>;
301 cd-gpios = <&msmgpio 62 GPIO_ACTIVE_LOW>;
303 pinctrl-names = "default";
304 pinctrl-0 = <&sdhc2_pin_a>, <&sdhc2_cd_pin_a>;
310 pinctrl-names = "default";
311 pinctrl-0 = <&blsp1_uart2_pin_a>;
315 blsp1_uart2_pin_a: blsp1-uart2-pin-active {
318 function = "blsp_uart2";
320 drive-strength = <2>;
326 function = "blsp_uart2";
328 drive-strength = <4>;
333 sdhc1_pin_a: sdhc1-pin-active {
336 drive-strength = <16>;
341 pins = "sdc1_cmd", "sdc1_data";
342 drive-strength = <10>;
347 sdhc2_cd_pin_a: sdhc2-cd-pin-active {
351 drive-strength = <2>;
355 sdhc2_pin_a: sdhc2-pin-active {
358 drive-strength = <10>;
363 pins = "sdc2_cmd", "sdc2_data";
364 drive-strength = <6>;
375 qcom,fast-charge-safe-current = <1500000>;
376 qcom,fast-charge-current-limit = <1500000>;
377 qcom,dc-current-limit = <1800000>;
378 qcom,fast-charge-safe-voltage = <4400000>;
379 qcom,fast-charge-high-threshold-voltage = <4350000>;
380 qcom,fast-charge-low-threshold-voltage = <3400000>;
381 qcom,auto-recharge-threshold-voltage = <4200000>;
382 qcom,minimum-input-voltage = <4300000>;
386 boost_bypass_n_pin: boost-bypass {
391 gpio_keys_pin_a: gpio-keys-active {
392 pins = "gpio2", "gpio3", "gpio4", "gpio5";
396 power-source = <PM8941_GPIO_S3>;
402 qcom,rset-ohms = <2100>;
403 qcom,vset-millivolts = <3000>;
412 qcom,current-limit = <20>;
413 qcom,current-boost-limit = <805>;
414 qcom,switching-freq = <1600>;
416 qcom,num-strings = <2>;