1 // SPDX-License-Identifier: GPL-2.0
2 #include "qcom-apq8064-v2.0.dtsi"
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/mfd/qcom-rpm.h>
6 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
9 model = "Sony Xperia Z";
10 compatible = "sony,xperia-yuga", "qcom,apq8064";
13 serial0 = &gsbi5_serial;
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 = "camera_focus";
29 gpios = <&pm8921_gpio 3 GPIO_ACTIVE_LOW>;
30 linux,input-type = <1>;
31 linux,code = <KEY_CAMERA_FOCUS>;
35 label = "camera_snapshot";
36 gpios = <&pm8921_gpio 4 GPIO_ACTIVE_LOW>;
37 linux,input-type = <1>;
38 linux,code = <KEY_CAMERA>;
42 label = "volume_down";
43 gpios = <&pm8921_gpio 29 GPIO_ACTIVE_LOW>;
44 linux,input-type = <1>;
45 linux,code = <KEY_VOLUMEDOWN>;
50 gpios = <&pm8921_gpio 35 GPIO_ACTIVE_LOW>;
51 linux,input-type = <1>;
52 linux,code = <KEY_VOLUMEUP>;
58 gsbi5_uart_pin_a: gsbi5-uart-pin-active {
75 sdcc3_cd_pin_a: sdcc3-cd-pin-active {
87 vin_l1_l2_l12_l18-supply = <&pm8921_s4>;
88 vin_lvs_1_3_6-supply = <&pm8921_s4>;
89 vin_lvs_4_5_7-supply = <&pm8921_s4>;
90 vin_ncp-supply = <&pm8921_l6>;
91 vin_lvs2-supply = <&pm8921_s4>;
92 vin_l24-supply = <&pm8921_s1>;
93 vin_l25-supply = <&pm8921_s1>;
94 vin_l27-supply = <&pm8921_s7>;
95 vin_l28-supply = <&pm8921_s7>;
100 regulator-min-microvolt = <1225000>;
101 regulator-max-microvolt = <1225000>;
102 qcom,switch-mode-frequency = <3200000>;
107 regulator-min-microvolt = <1300000>;
108 regulator-max-microvolt = <1300000>;
109 qcom,switch-mode-frequency = <1600000>;
114 regulator-min-microvolt = <500000>;
115 regulator-max-microvolt = <1150000>;
116 qcom,switch-mode-frequency = <4800000>;
122 regulator-min-microvolt = <1800000>;
123 regulator-max-microvolt = <1800000>;
124 qcom,switch-mode-frequency = <1600000>;
126 qcom,force-mode = <QCOM_RPM_FORCE_MODE_AUTO>;
130 regulator-min-microvolt = <1300000>;
131 regulator-max-microvolt = <1300000>;
132 qcom,switch-mode-frequency = <3200000>;
136 regulator-min-microvolt = <2200000>;
137 regulator-max-microvolt = <2200000>;
138 qcom,switch-mode-frequency = <1600000>;
144 regulator-min-microvolt = <1100000>;
145 regulator-max-microvolt = <1100000>;
150 regulator-min-microvolt = <1200000>;
151 regulator-max-microvolt = <1200000>;
156 regulator-min-microvolt = <3075000>;
157 regulator-max-microvolt = <3075000>;
163 regulator-min-microvolt = <1800000>;
164 regulator-max-microvolt = <1800000>;
169 regulator-min-microvolt = <2950000>;
170 regulator-max-microvolt = <2950000>;
175 regulator-min-microvolt = <2950000>;
176 regulator-max-microvolt = <2950000>;
181 regulator-min-microvolt = <1850000>;
182 regulator-max-microvolt = <2950000>;
187 regulator-min-microvolt = <2800000>;
188 regulator-max-microvolt = <2800000>;
193 regulator-min-microvolt = <3000000>;
194 regulator-max-microvolt = <3000000>;
199 regulator-min-microvolt = <2900000>;
200 regulator-max-microvolt = <2900000>;
205 regulator-min-microvolt = <3000000>;
206 regulator-max-microvolt = <3000000>;
211 regulator-min-microvolt = <1200000>;
212 regulator-max-microvolt = <1200000>;
217 regulator-min-microvolt = <1800000>;
218 regulator-max-microvolt = <1800000>;
223 regulator-min-microvolt = <1800000>;
224 regulator-max-microvolt = <2950000>;
229 regulator-min-microvolt = <2800000>;
230 regulator-max-microvolt = <2800000>;
235 regulator-min-microvolt = <2000000>;
236 regulator-max-microvolt = <2000000>;
241 regulator-min-microvolt = <1200000>;
242 regulator-max-microvolt = <1200000>;
247 regulator-min-microvolt = <1050000>;
248 regulator-max-microvolt = <1050000>;
253 regulator-min-microvolt = <2600000>;
254 regulator-max-microvolt = <2600000>;
259 regulator-min-microvolt = <1800000>;
260 regulator-max-microvolt = <1800000>;
265 regulator-min-microvolt = <750000>;
266 regulator-max-microvolt = <1150000>;
272 regulator-min-microvolt = <1250000>;
273 regulator-max-microvolt = <1250000>;
278 regulator-min-microvolt = <1100000>;
279 regulator-max-microvolt = <1100000>;
283 regulator-min-microvolt = <1050000>;
284 regulator-max-microvolt = <1050000>;
289 regulator-min-microvolt = <2000000>;
290 regulator-max-microvolt = <2000000>;
294 /* Low Voltage Switch */
328 regulator-min-microvolt = <1800000>;
329 regulator-max-microvolt = <1800000>;
330 qcom,switch-mode-frequency = <1600000>;
338 gpio_keys_pin_a: gpio-keys-pin-active {
339 pins = "gpio3", "gpio4", "gpio29", "gpio35";
346 qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>;
347 qcom,pull-up-strength = <0>;
358 v3p3-supply = <&pm8921_l3>;
359 v1p8-supply = <&pm8921_l4>;
366 qcom,mode = <GSBI_PROT_I2C_UART>;
371 pinctrl-names = "default";
372 pinctrl-0 = <&gsbi5_uart_pin_a>;
377 sdcc1: sdcc@12400000 {
380 vmmc-supply = <&pm8921_l5>;
381 vqmmc-supply = <&pm8921_s4>;
384 sdcc3: sdcc@12180000 {
387 vmmc-supply = <&pm8921_l6>;
388 cd-gpios = <&tlmm_pinmux 26 GPIO_ACTIVE_LOW>;
390 pinctrl-names = "default";
391 pinctrl-0 = <&sdcc3_pins>, <&sdcc3_cd_pin_a>;
398 pinctrl-names = "default";
399 pinctrl-0 = <&riva_wlan_pin_a>, <&riva_bt_pin_a>, <&riva_fm_pin_a>;