Lines Matching +full:msm8916 +full:- +full:venus
1 // SPDX-License-Identifier: GPL-2.0-only
6 /dts-v1/;
8 #include "msm8916-pm8916.dtsi"
9 #include <dt-bindings/gpio/gpio.h>
10 #include <dt-bindings/input/input.h>
11 #include <dt-bindings/interrupt-controller/irq.h>
12 #include <dt-bindings/leds/common.h>
13 #include <dt-bindings/sound/apq8016-lpass.h>
16 * Note: The original firmware from Huawei can only boot 32-bit kernels.
17 * To boot this device tree using arm64 it is necessary to flash 64-bit TZ/HYP
19 * See https://wiki.postmarketos.org/wiki/Huawei_Ascend_G7_(huawei-g7)
25 compatible = "huawei,g7", "qcom,msm8916";
26 chassis-type = "handset";
35 stdout-path = "serial0";
38 gpio-keys {
39 compatible = "gpio-keys";
41 pinctrl-names = "default";
42 pinctrl-0 = <&gpio_keys_default>;
46 button-volume-up {
54 compatible = "gpio-leds";
56 pinctrl-names = "default";
57 pinctrl-0 = <&gpio_leds_default>;
59 led-0 {
62 default-state = "off";
66 led-1 {
69 default-state = "off";
73 led-2 {
76 default-state = "off";
81 usb_id: usb-id {
82 compatible = "linux,extcon-usb-gpio";
83 id-gpios = <&tlmm 117 GPIO_ACTIVE_HIGH>;
84 pinctrl-names = "default";
85 pinctrl-0 = <&usb_id_default>;
93 compatible = "asahi-kasei,ak09911";
96 vdd-supply = <&pm8916_l17>;
97 vid-supply = <&pm8916_l6>;
99 reset-gpios = <&tlmm 36 GPIO_ACTIVE_LOW>;
101 pinctrl-names = "default";
102 pinctrl-0 = <&mag_reset_default>;
106 compatible = "kionix,kx023-1025";
109 interrupt-parent = <&tlmm>;
112 vdd-supply = <&pm8916_l17>;
113 vddio-supply = <&pm8916_l6>;
115 pinctrl-names = "default";
116 pinctrl-0 = <&accel_irq_default>;
118 mount-matrix = "-1", "0", "0",
127 interrupt-parent = <&tlmm>;
130 vdd-supply = <&pm8916_l17>;
131 vddio-supply = <&pm8916_l6>;
133 led-max-microamp = <100000>;
134 amstaos,proximity-diodes = <1>;
136 pinctrl-names = "default";
137 pinctrl-0 = <&prox_irq_default>;
144 pinctrl-names = "default";
145 pinctrl-0 = <®_lcd_en_default>;
148 regulator-name = "outp";
149 regulator-min-microvolt = <5400000>;
150 regulator-max-microvolt = <5400000>;
151 enable-gpios = <&tlmm 97 GPIO_ACTIVE_HIGH>;
152 regulator-active-discharge = <1>;
156 regulator-name = "outn";
157 regulator-min-microvolt = <5400000>;
158 regulator-max-microvolt = <5400000>;
159 enable-gpios = <&tlmm 32 GPIO_ACTIVE_HIGH>;
160 regulator-active-discharge = <1>;
169 compatible = "syna,rmi4-i2c";
171 #address-cells = <1>;
172 #size-cells = <0>;
174 interrupt-parent = <&tlmm>;
177 vdd-supply = <&pm8916_l17>;
178 vio-supply = <&pm8916_l16>;
180 pinctrl-names = "default";
181 pinctrl-0 = <&ts_irq_default>;
183 syna,startup-delay-ms = <100>;
185 rmi4-f01@1 {
187 syna,nosleep-mode = <1>; /* Allow sleeping */
190 rmi4-f11@11 {
192 syna,sensor-type = <1>; /* Touchscreen */
201 compatible = "nxp,pn547", "nxp,nxp-nci-i2c";
204 interrupt-parent = <&tlmm>;
207 enable-gpios = <&tlmm 20 GPIO_ACTIVE_HIGH>;
208 firmware-gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
210 pinctrl-names = "default";
211 pinctrl-0 = <&nfc_default>;
229 qcom,micbias-lvl = <2800>;
230 qcom,mbhc-vthreshold-low = <75 150 237 450 500>;
231 qcom,mbhc-vthreshold-high = <75 150 237 450 500>;
232 qcom,hphl-jack-type-normally-open;
236 regulator-min-microvolt = <2950000>;
237 regulator-max-microvolt = <2950000>;
247 regulator-min-microvolt = <1800000>;
248 regulator-max-microvolt = <1800000>;
252 regulator-min-microvolt = <2850000>;
253 regulator-max-microvolt = <2850000>;
268 pinctrl-names = "default", "sleep";
269 pinctrl-0 = <&sdc2_default &sdc2_cd_default>;
270 pinctrl-1 = <&sdc2_sleep &sdc2_cd_default>;
273 * The Huawei device tree sets cd-gpios = <&tlmm 38 GPIO_ACTIVE_HIGH>.
283 * SD card slot and forgot to re-route to gpio38.
285 cd-gpios = <&tlmm 56 GPIO_ACTIVE_LOW>;
291 model = "msm8916";
292 audio-routing =
297 pinctrl-names = "default", "sleep";
298 pinctrl-0 = <&cdc_pdm_default>;
299 pinctrl-1 = <&cdc_pdm_sleep>;
301 primary-dai-link {
302 link-name = "WCD";
304 sound-dai = <&lpass MI2S_PRIMARY>;
307 sound-dai = <&lpass_codec 0>, <&pm8916_codec 0>;
311 tertiary-dai-link {
312 link-name = "WCD-Capture";
314 sound-dai = <&lpass MI2S_TERTIARY>;
317 sound-dai = <&lpass_codec 1>, <&pm8916_codec 1>;
331 &venus {
352 accel_irq_default: accel-irq-default-state {
356 drive-strength = <2>;
357 bias-disable;
360 gpio_keys_default: gpio-keys-default-state {
364 drive-strength = <2>;
365 bias-pull-up;
368 gpio_leds_default: gpio-leds-default-state {
372 drive-strength = <2>;
373 bias-disable;
376 nfc_default: nfc-default-state {
380 drive-strength = <2>;
381 bias-disable;
384 mag_reset_default: mag-reset-default-state {
388 drive-strength = <2>;
389 bias-disable;
392 prox_irq_default: prox-irq-default-state {
396 drive-strength = <2>;
397 bias-disable;
400 reg_lcd_en_default: reg-lcd-en-default-state {
404 drive-strength = <2>;
405 bias-disable;
408 sdc2_cd_default: sdc2-cd-default-state {
412 drive-strength = <2>;
413 bias-disable;
416 ts_irq_default: ts-irq-default-state {
420 drive-strength = <2>;
421 bias-disable;
424 usb_id_default: usb-id-default-state {
428 drive-strength = <8>;
429 bias-pull-up;