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