Skip to content

Commit 65ec35b

Browse files
André Apitzschandersson
authored andcommitted
ARM: dts: qcom: msm8926-motorola-peregrine: Add accelerometer, magnetometer, regulator
Add the accelerometer, magnetometer and regulator that are present on the Motorola Moto G 4G (2013) device. Signed-off-by: André Apitzsch <[email protected]> Reviewed-by: Konrad Dybcio <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bjorn Andersson <[email protected]>
1 parent 368a5ae commit 65ec35b

File tree

1 file changed

+85
-0
lines changed

1 file changed

+85
-0
lines changed

arch/arm/boot/dts/qcom/qcom-msm8926-motorola-peregrine.dts

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,60 @@
6868
};
6969
};
7070

71+
&blsp1_i2c2 {
72+
clock-frequency = <100000>;
73+
status = "okay";
74+
75+
magnetometer@c {
76+
compatible = "asahi-kasei,ak8963";
77+
reg = <0xc>;
78+
interrupts-extended = <&tlmm 38 IRQ_TYPE_EDGE_FALLING>;
79+
reset-gpios = <&tlmm 62 GPIO_ACTIVE_LOW>;
80+
vdd-supply = <&pm8226_l19>;
81+
pinctrl-0 = <&mag_int_default &mag_reset_default>;
82+
pinctrl-names = "default";
83+
};
84+
85+
accelerometer@18 {
86+
compatible = "st,lis3dh-accel";
87+
reg = <0x18>;
88+
interrupts-extended = <&tlmm 1 IRQ_TYPE_EDGE_FALLING>;
89+
vdd-supply = <&pm8226_l19>;
90+
pinctrl-0 = <&accel_int_default>;
91+
pinctrl-names = "default";
92+
st,drdy-int-pin = <1>;
93+
};
94+
};
95+
7196
&blsp1_i2c3 {
97+
clock-frequency = <400000>;
7298
status = "okay";
7399

100+
regulator@3e {
101+
compatible = "ti,tps65132";
102+
reg = <0x3e>;
103+
pinctrl-0 = <&reg_lcd_default>;
104+
pinctrl-names = "default";
105+
106+
reg_lcd_pos: outp {
107+
regulator-name = "outp";
108+
regulator-min-microvolt = <4000000>;
109+
regulator-max-microvolt = <6000000>;
110+
regulator-active-discharge = <1>;
111+
regulator-boot-on;
112+
enable-gpios = <&tlmm 31 GPIO_ACTIVE_HIGH>;
113+
};
114+
115+
reg_lcd_neg: outn {
116+
regulator-name = "outn";
117+
regulator-min-microvolt = <4000000>;
118+
regulator-max-microvolt = <6000000>;
119+
regulator-active-discharge = <1>;
120+
regulator-boot-on;
121+
enable-gpios = <&tlmm 33 GPIO_ACTIVE_HIGH>;
122+
};
123+
};
124+
74125
sensor@48 {
75126
compatible = "ti,tmp108";
76127
reg = <0x48>;
@@ -278,6 +329,40 @@
278329
status = "okay";
279330
};
280331

332+
&tlmm {
333+
accel_int_default: accel-int-default-state {
334+
pins = "gpio1";
335+
function = "gpio";
336+
drive-strength = <2>;
337+
bias-disable;
338+
output-disable;
339+
};
340+
341+
mag_int_default: mag-int-default-state {
342+
pins = "gpio38";
343+
function = "gpio";
344+
drive-strength = <2>;
345+
bias-disable;
346+
output-disable;
347+
};
348+
349+
mag_reset_default: mag-reset-default-state {
350+
pins = "gpio62";
351+
function = "gpio";
352+
drive-strength = <2>;
353+
bias-disable;
354+
output-high;
355+
};
356+
357+
reg_lcd_default: reg-lcd-default-state {
358+
pins = "gpio31", "gpio33";
359+
function = "gpio";
360+
drive-strength = <2>;
361+
bias-disable;
362+
output-high;
363+
};
364+
};
365+
281366
&usb {
282367
extcon = <&smbb>;
283368
dr_mode = "peripheral";

0 commit comments

Comments
 (0)