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>
10 model = "Fairphone 2";
11 compatible = "fairphone,fp2", "qcom,msm8974";
14 serial0 = &blsp1_uart2;
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 = "camera_snapshot";
30 gpios = <&pm8941_gpios 1 GPIO_ACTIVE_LOW>;
31 linux,code = <KEY_CAMERA>;
33 debounce-interval = <15>;
37 label = "volume_down";
38 gpios = <&pm8941_gpios 2 GPIO_ACTIVE_LOW>;
39 linux,code = <KEY_VOLUMEDOWN>;
41 debounce-interval = <15>;
46 gpios = <&pm8941_gpios 5 GPIO_ACTIVE_LOW>;
47 linux,code = <KEY_VOLUMEUP>;
49 debounce-interval = <15>;
54 compatible = "gpio-vibrator";
55 enable-gpios = <&msmgpio 86 GPIO_ACTIVE_HIGH>;
56 vcc-supply = <&pm8941_l18>;
64 regulator-min-microvolt = <675000>;
65 regulator-max-microvolt = <1050000>;
69 regulator-min-microvolt = <500000>;
70 regulator-max-microvolt = <1050000>;
74 regulator-min-microvolt = <1050000>;
75 regulator-max-microvolt = <1050000>;
80 vdd_l1_l3-supply = <&pm8941_s1>;
81 vdd_l2_lvs1_2_3-supply = <&pm8941_s3>;
82 vdd_l4_l11-supply = <&pm8941_s1>;
83 vdd_l5_l7-supply = <&pm8941_s2>;
84 vdd_l6_l12_l14_l15-supply = <&pm8941_s2>;
85 vdd_l9_l10_l17_l22-supply = <&vreg_boost>;
86 vdd_l13_l20_l23_l24-supply = <&vreg_boost>;
87 vdd_l21-supply = <&vreg_boost>;
90 regulator-min-microvolt = <1300000>;
91 regulator-max-microvolt = <1300000>;
98 regulator-min-microvolt = <2150000>;
99 regulator-max-microvolt = <2150000>;
105 regulator-min-microvolt = <1800000>;
106 regulator-max-microvolt = <1800000>;
113 regulator-min-microvolt = <1225000>;
114 regulator-max-microvolt = <1225000>;
121 regulator-min-microvolt = <1200000>;
122 regulator-max-microvolt = <1200000>;
126 regulator-min-microvolt = <1225000>;
127 regulator-max-microvolt = <1225000>;
131 regulator-min-microvolt = <1225000>;
132 regulator-max-microvolt = <1225000>;
136 regulator-min-microvolt = <1800000>;
137 regulator-max-microvolt = <1800000>;
141 regulator-min-microvolt = <1800000>;
142 regulator-max-microvolt = <1800000>;
148 regulator-min-microvolt = <1800000>;
149 regulator-max-microvolt = <1800000>;
155 regulator-min-microvolt = <1800000>;
156 regulator-max-microvolt = <1800000>;
160 regulator-min-microvolt = <1800000>;
161 regulator-max-microvolt = <2950000>;
165 regulator-min-microvolt = <1800000>;
166 regulator-max-microvolt = <2950000>;
170 regulator-min-microvolt = <1225000>;
171 regulator-max-microvolt = <1350000>;
175 regulator-min-microvolt = <1800000>;
176 regulator-max-microvolt = <1800000>;
183 regulator-min-microvolt = <1800000>;
184 regulator-max-microvolt = <2950000>;
190 regulator-min-microvolt = <1800000>;
191 regulator-max-microvolt = <1800000>;
195 regulator-min-microvolt = <2050000>;
196 regulator-max-microvolt = <2050000>;
200 regulator-min-microvolt = <2700000>;
201 regulator-max-microvolt = <2700000>;
205 regulator-min-microvolt = <2850000>;
206 regulator-max-microvolt = <2850000>;
210 regulator-min-microvolt = <2850000>;
211 regulator-max-microvolt = <2850000>;
215 regulator-min-microvolt = <2900000>;
216 regulator-max-microvolt = <3350000>;
220 regulator-min-microvolt = <2950000>;
221 regulator-max-microvolt = <2950000>;
227 regulator-min-microvolt = <2950000>;
228 regulator-max-microvolt = <2950000>;
234 regulator-min-microvolt = <3000000>;
235 regulator-max-microvolt = <3300000>;
239 regulator-min-microvolt = <3000000>;
240 regulator-max-microvolt = <3000000>;
244 regulator-min-microvolt = <3075000>;
245 regulator-max-microvolt = <3075000>;
261 sdhc1_pin_a: sdhc1-pin-active {
264 drive-strength = <16>;
269 pins = "sdc1_cmd", "sdc1_data";
270 drive-strength = <10>;
275 sdhc2_cd_pin_a: sdhc2-cd-pin-active {
279 drive-strength = <2>;
283 sdhc2_pin_a: sdhc2-pin-active {
286 drive-strength = <10>;
291 pins = "sdc2_cmd", "sdc2_data";
292 drive-strength = <6>;
301 vmmc-supply = <&pm8941_l20>;
302 vqmmc-supply = <&pm8941_s3>;
307 pinctrl-names = "default";
308 pinctrl-0 = <&sdhc1_pin_a>;
314 vmmc-supply = <&pm8941_l21>;
315 vqmmc-supply = <&pm8941_l13>;
319 pinctrl-names = "default";
320 pinctrl-0 = <&sdhc2_pin_a>, <&sdhc2_cd_pin_a>;
326 phys = <&usb_hs1_phy>;
327 phy-select = <&tcsr 0xb000 0>;
328 extcon = <&smbb>, <&usb_id>;
329 vbus-supply = <&chg_otg>;
339 v1p8-supply = <&pm8941_l6>;
340 v3p3-supply = <&pm8941_l24>;
343 qcom,init-seq = /bits/ 8 <0x1 0x64>;
352 gpio_keys_pin_a: gpio-keys-active {
353 pins = "gpio1", "gpio2", "gpio5";
357 power-source = <PM8941_GPIO_S3>;