xref: /freebsd/sys/contrib/device-tree/src/arm/qcom/qcom-msm8974pro-sony-xperia-shinano-leo.dts (revision 7d0873ebb83b19ba1e8a89e679470d885efe12e3)
1*7d0873ebSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0
2*7d0873ebSEmmanuel Vadot#include "qcom-msm8974pro-sony-xperia-shinano-common.dtsi"
3*7d0873ebSEmmanuel Vadot
4*7d0873ebSEmmanuel Vadot/ {
5*7d0873ebSEmmanuel Vadot	model = "Sony Xperia Z3";
6*7d0873ebSEmmanuel Vadot	compatible = "sony,xperia-leo", "qcom,msm8974pro", "qcom,msm8974";
7*7d0873ebSEmmanuel Vadot	chassis-type = "handset";
8*7d0873ebSEmmanuel Vadot
9*7d0873ebSEmmanuel Vadot	gpio-keys {
10*7d0873ebSEmmanuel Vadot		key-camera-snapshot {
11*7d0873ebSEmmanuel Vadot			label = "camera_snapshot";
12*7d0873ebSEmmanuel Vadot			gpios = <&pm8941_gpios 3 GPIO_ACTIVE_LOW>;
13*7d0873ebSEmmanuel Vadot			linux,code = <KEY_CAMERA>;
14*7d0873ebSEmmanuel Vadot			debounce-interval = <15>;
15*7d0873ebSEmmanuel Vadot		};
16*7d0873ebSEmmanuel Vadot
17*7d0873ebSEmmanuel Vadot		key-camera-focus {
18*7d0873ebSEmmanuel Vadot			label = "camera_focus";
19*7d0873ebSEmmanuel Vadot			gpios = <&pm8941_gpios 4 GPIO_ACTIVE_LOW>;
20*7d0873ebSEmmanuel Vadot			linux,code = <KEY_CAMERA_FOCUS>;
21*7d0873ebSEmmanuel Vadot			debounce-interval = <15>;
22*7d0873ebSEmmanuel Vadot		};
23*7d0873ebSEmmanuel Vadot	};
24*7d0873ebSEmmanuel Vadot};
25*7d0873ebSEmmanuel Vadot
26*7d0873ebSEmmanuel Vadot&gpio_keys_pin_a {
27*7d0873ebSEmmanuel Vadot	pins = "gpio2", "gpio3", "gpio4", "gpio5";
28*7d0873ebSEmmanuel Vadot};
29*7d0873ebSEmmanuel Vadot
30*7d0873ebSEmmanuel Vadot&smbb {
31*7d0873ebSEmmanuel Vadot	usb-charge-current-limit = <1500000>;
32*7d0873ebSEmmanuel Vadot	qcom,fast-charge-safe-current = <3000000>;
33*7d0873ebSEmmanuel Vadot	qcom,fast-charge-current-limit = <2150000>;
34*7d0873ebSEmmanuel Vadot	qcom,fast-charge-safe-voltage = <4400000>;
35*7d0873ebSEmmanuel Vadot	qcom,fast-charge-high-threshold-voltage = <4350000>;
36*7d0873ebSEmmanuel Vadot	qcom,auto-recharge-threshold-voltage = <4280000>;
37*7d0873ebSEmmanuel Vadot	qcom,minimum-input-voltage = <4200000>;
38*7d0873ebSEmmanuel Vadot
39*7d0873ebSEmmanuel Vadot	status = "okay";
40*7d0873ebSEmmanuel Vadot};
41*7d0873ebSEmmanuel Vadot
42*7d0873ebSEmmanuel Vadot&synaptics_touchscreen {
43*7d0873ebSEmmanuel Vadot	vio-supply = <&pm8941_s3>;
44*7d0873ebSEmmanuel Vadot};
45