Debian Codegraph @

scripts/dtc/include-prefixes/arm64/qcom/msm8916-motorola-harpia.dts

raw
1 // SPDX-License-Identifier: GPL-2.0-only
2
3 /dts-v1/;
4
5 #include "msm8916-motorola-common.dtsi"
6
7 / {
8 model = "Motorola Moto G4 Play";
9 compatible = "motorola,harpia", "qcom,msm8916";
10 chassis-type = "handset";
11 };
12
13 &blsp_i2c1 {
14 status = "okay";
15
16 battery@36 {
17 compatible = "maxim,max17050";
18 reg = <0x36>;
19
20 interrupts-extended = <&tlmm 62 IRQ_TYPE_EDGE_FALLING>;
21
22 pinctrl-0 = <&battery_alert_default>;
23 pinctrl-names = "default";
24
25 maxim,rsns-microohm = <10000>;
26 maxim,over-heat-temp = <600>;
27 maxim,cold-temp = <(-200)>;
28 maxim,dead-volt = <3200>;
29 maxim,over-volt = <4500>;
30 };
31
32 /* charger@6b */
33 };
34
35 &blsp_i2c4 {
36 status = "okay";
37
38 accelerometer@19 {
39 compatible = "bosch,bma253";
40 reg = <0x19>;
41
42 interrupts-extended = <&tlmm 115 IRQ_TYPE_EDGE_RISING>,
43 <&tlmm 119 IRQ_TYPE_EDGE_RISING>;
44
45 vdd-supply = <&pm8916_l17>;
46 vddio-supply = <&pm8916_l6>;
47
48 mount-matrix = "1", "0", "0",
49 "0", "-1", "0",
50 "0", "0", "1";
51
52 pinctrl-0 = <&accel_int_default>;
53 pinctrl-names = "default";
54 };
55
56 /* proximity@49 */
57 };
58
59 &pm8916_codec {
60 qcom,micbias-lvl = <2800>;
61 qcom,mbhc-vthreshold-low = <75 150 237 450 500>;
62 qcom,mbhc-vthreshold-high = <75 150 237 450 500>;
63 qcom,micbias1-ext-cap;
64 };
65
66 &pm8916_rpm_regulators {
67 pm8916_l17: l17 {
68 regulator-min-microvolt = <2850000>;
69 regulator-max-microvolt = <2850000>;
70 };
71 };
72
73 &sdhc_2 {
74 pinctrl-0 = <&sdc2_default &sdc2_cd_default>;
75 pinctrl-1 = <&sdc2_sleep &sdc2_cd_default>;
76 pinctrl-names = "default", "sleep";
77
78 cd-gpios = <&tlmm 118 GPIO_ACTIVE_LOW>;
79 };
80
81 &sound {
82 audio-routing =
83 "AMIC1", "MIC BIAS External1",
84 "AMIC2", "MIC BIAS Internal2",
85 "AMIC3", "MIC BIAS External1";
86
87 pinctrl-0 = <&cdc_pdm_default &headset_switch_supply_en
88 &headset_switch_in>;
89 pinctrl-1 = <&cdc_pdm_sleep &headset_switch_supply_en
90 &headset_switch_in>;
91 pinctrl-names = "default", "sleep";
92 };
93
94 &touchscreen {
95 interrupts-extended = <&tlmm 13 IRQ_TYPE_EDGE_FALLING>;
96
97 vdd-supply = <&pm8916_l16>;
98
99 pinctrl-0 = <&ts_int_default>;
100 pinctrl-names = "default";
101 };
102
103 &tlmm {
104 accel_int_default: accel-int-default-state {
105 pins = "gpio115", "gpio119";
106 function = "gpio";
107 drive-strength = <2>;
108 bias-disable;
109 };
110
111 battery_alert_default: battery-alert-default-state {
112 pins = "gpio62";
113 function = "gpio";
114 drive-strength = <2>;
115 bias-pull-up;
116 };
117
118 headset_switch_in: headset-switch-in-state {
119 pins = "gpio112";
120 function = "gpio";
121 drive-strength = <2>;
122 bias-disable;
123 output-low;
124 };
125
126 headset_switch_supply_en: headset-switch-supply-en-state {
127 pins = "gpio111";
128 function = "gpio";
129 drive-strength = <2>;
130 bias-disable;
131 output-high;
132 };
133
134 sdc2_cd_default: sdc2-cd-default-state {
135 pins = "gpio118";
136 function = "gpio";
137 drive-strength = <2>;
138 bias-disable;
139 };
140
141 ts_int_default: ts-int-default-state {
142 pins = "gpio13";
143 function = "gpio";
144 drive-strength = <2>;
145 bias-disable;
146 };
147 };