mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-11 15:04:49 -04:00
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 <git@apitzsch.eu> Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org> Link: https://lore.kernel.org/r/20240617-peregrine-v2-1-c8835d2da7af@apitzsch.eu Signed-off-by: Bjorn Andersson <andersson@kernel.org>
This commit is contained in:
committed by
Bjorn Andersson
parent
368a5aed13
commit
65ec35baeb
@@ -68,9 +68,60 @@ smem_region: smem@fa00000 {
|
||||
};
|
||||
};
|
||||
|
||||
&blsp1_i2c3 {
|
||||
&blsp1_i2c2 {
|
||||
clock-frequency = <100000>;
|
||||
status = "okay";
|
||||
|
||||
magnetometer@c {
|
||||
compatible = "asahi-kasei,ak8963";
|
||||
reg = <0xc>;
|
||||
interrupts-extended = <&tlmm 38 IRQ_TYPE_EDGE_FALLING>;
|
||||
reset-gpios = <&tlmm 62 GPIO_ACTIVE_LOW>;
|
||||
vdd-supply = <&pm8226_l19>;
|
||||
pinctrl-0 = <&mag_int_default &mag_reset_default>;
|
||||
pinctrl-names = "default";
|
||||
};
|
||||
|
||||
accelerometer@18 {
|
||||
compatible = "st,lis3dh-accel";
|
||||
reg = <0x18>;
|
||||
interrupts-extended = <&tlmm 1 IRQ_TYPE_EDGE_FALLING>;
|
||||
vdd-supply = <&pm8226_l19>;
|
||||
pinctrl-0 = <&accel_int_default>;
|
||||
pinctrl-names = "default";
|
||||
st,drdy-int-pin = <1>;
|
||||
};
|
||||
};
|
||||
|
||||
&blsp1_i2c3 {
|
||||
clock-frequency = <400000>;
|
||||
status = "okay";
|
||||
|
||||
regulator@3e {
|
||||
compatible = "ti,tps65132";
|
||||
reg = <0x3e>;
|
||||
pinctrl-0 = <®_lcd_default>;
|
||||
pinctrl-names = "default";
|
||||
|
||||
reg_lcd_pos: outp {
|
||||
regulator-name = "outp";
|
||||
regulator-min-microvolt = <4000000>;
|
||||
regulator-max-microvolt = <6000000>;
|
||||
regulator-active-discharge = <1>;
|
||||
regulator-boot-on;
|
||||
enable-gpios = <&tlmm 31 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
|
||||
reg_lcd_neg: outn {
|
||||
regulator-name = "outn";
|
||||
regulator-min-microvolt = <4000000>;
|
||||
regulator-max-microvolt = <6000000>;
|
||||
regulator-active-discharge = <1>;
|
||||
regulator-boot-on;
|
||||
enable-gpios = <&tlmm 33 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
};
|
||||
|
||||
sensor@48 {
|
||||
compatible = "ti,tmp108";
|
||||
reg = <0x48>;
|
||||
@@ -278,6 +329,40 @@ &smbb {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&tlmm {
|
||||
accel_int_default: accel-int-default-state {
|
||||
pins = "gpio1";
|
||||
function = "gpio";
|
||||
drive-strength = <2>;
|
||||
bias-disable;
|
||||
output-disable;
|
||||
};
|
||||
|
||||
mag_int_default: mag-int-default-state {
|
||||
pins = "gpio38";
|
||||
function = "gpio";
|
||||
drive-strength = <2>;
|
||||
bias-disable;
|
||||
output-disable;
|
||||
};
|
||||
|
||||
mag_reset_default: mag-reset-default-state {
|
||||
pins = "gpio62";
|
||||
function = "gpio";
|
||||
drive-strength = <2>;
|
||||
bias-disable;
|
||||
output-high;
|
||||
};
|
||||
|
||||
reg_lcd_default: reg-lcd-default-state {
|
||||
pins = "gpio31", "gpio33";
|
||||
function = "gpio";
|
||||
drive-strength = <2>;
|
||||
bias-disable;
|
||||
output-high;
|
||||
};
|
||||
};
|
||||
|
||||
&usb {
|
||||
extcon = <&smbb>;
|
||||
dr_mode = "peripheral";
|
||||
|
||||
Reference in New Issue
Block a user