1 // SPDX-License-Identifier: GPL-2.0-only
5 #include "msm8939-pm8916.dtsi"
6 #include <dt-bindings/gpio/gpio.h>
9 model = "Huawei Honor 5X / GR5 (2016)";
10 compatible = "huawei,kiwi", "qcom,msm8939";
11 chassis-type = "handset";
14 mmc0 = &sdhc_1; /* SDC1 eMMC slot */
15 mmc1 = &sdhc_2; /* SDC2 SD card slot */
16 serial0 = &blsp_uart2;
20 stdout-path = "serial0";
24 qseecom_mem: qseecom@84a00000 {
25 reg = <0x0 0x84a00000 0x0 0x1600000>;
31 compatible = "gpio-keys";
33 pinctrl-0 = <&gpio_hall_sensor_default>;
34 pinctrl-names = "default";
36 label = "GPIO Hall Effect Sensor";
39 label = "Hall Effect Sensor";
40 gpios = <&tlmm 69 GPIO_ACTIVE_LOW>;
41 linux,input-type = <EV_SW>;
42 linux,code = <SW_LID>;
48 compatible = "gpio-keys";
50 pinctrl-0 = <&gpio_keys_default>;
51 pinctrl-names = "default";
53 label = "GPIO Buttons";
57 gpios = <&tlmm 107 GPIO_ACTIVE_LOW>;
58 linux,code = <KEY_VOLUMEUP>;
63 compatible = "linux,extcon-usb-gpio";
64 id-gpios = <&tlmm 110 GPIO_ACTIVE_HIGH>;
65 pinctrl-0 = <&usb_id_default>;
66 pinctrl-names = "default";
74 compatible = "kionix,kx023-1025";
77 vdd-supply = <&pm8916_l17>;
78 vddio-supply = <&pm8916_l6>;
79 pinctrl-0 = <&accel_int_default>;
80 pinctrl-names = "default";
81 mount-matrix = "-1", "0", "0",
87 compatible = "avago,apds9930";
90 interrupt-parent = <&tlmm>;
91 interrupts = <113 IRQ_TYPE_EDGE_FALLING>;
93 vdd-supply = <&pm8916_l17>;
94 vddio-supply = <&pm8916_l6>;
96 led-max-microamp = <25000>;
97 amstaos,proximity-diodes = <0>;
99 pinctrl-0 = <&prox_irq_default>;
100 pinctrl-names = "default";
108 compatible = "cypress,tt21000";
111 interrupt-parent = <&tlmm>;
112 interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
114 reset-gpios = <&tlmm 12 GPIO_ACTIVE_LOW>;
117 * NOTE: vdd is not directly supplied by pm8916_l16, it seems to be a
118 * fixed regulator that is automatically enabled by pm8916_l16.
120 vdd-supply = <&pm8916_l16>;
121 vddio-supply = <&pm8916_l16>;
123 pinctrl-0 = <&touchscreen_default>;
124 pinctrl-names = "default";
133 regulator-min-microvolt = <2950000>;
134 regulator-max-microvolt = <2950000>;
138 linux,code = <KEY_VOLUMEDOWN>;
142 &pm8916_rpm_regulators {
144 regulator-min-microvolt = <1800000>;
145 regulator-max-microvolt = <1800000>;
149 regulator-min-microvolt = <2850000>;
150 regulator-max-microvolt = <2850000>;
163 pinctrl-0 = <&sdc2_default &sdc2_cd_default>;
164 pinctrl-1 = <&sdc2_sleep &sdc2_cd_default>;
165 pinctrl-names = "default", "sleep";
167 cd-gpios = <&tlmm 38 GPIO_ACTIVE_HIGH>;
173 extcon = <&usb_id>, <&usb_id>;
186 compatible = "qcom,wcn3620";
194 accel_int_default: accel-int-default-state {
197 drive-strength = <2>;
201 gpio_hall_sensor_default: gpio-hall-sensor-default-state {
204 drive-strength = <2>;
208 gpio_keys_default: gpio-keys-default-state {
211 drive-strength = <2>;
215 prox_irq_default: prox-irq-default-state {
218 drive-strength = <2>;
222 sdc2_cd_default: sdc2-cd-default-state {
225 drive-strength = <2>;
229 touchscreen_default: touchscreen-default-state {
230 pins = "gpio12", "gpio13";
232 drive-strength = <2>;
236 usb_id_default: usb-id-default-state {
239 drive-strength = <8>;