mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 02:50:49 +09:00
arm64: dts: qcom: msm8916-huawei-g7: Add sensors
The Huawei Ascend G7 has 3 sensors, all supported by existing kernel drivers: 1. Kionix KX023-1025 accelerometer (kxcjk-1023) 2. Asahi Kasei AK09911 magnetometer (ak8975) 3. Avago APDS9930 proximity/light sensor (tsl2772) Add them to the huawei-g7 device tree. Signed-off-by: Stephan Gerhold <stephan@gerhold.net> Link: https://lore.kernel.org/r/20210514104328.18756-3-stephan@gerhold.net Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
This commit is contained in:
committed by
Bjorn Andersson
parent
918f24ae45
commit
3305642dc4
@@ -85,6 +85,58 @@
|
||||
};
|
||||
};
|
||||
|
||||
&blsp_i2c2 {
|
||||
status = "okay";
|
||||
|
||||
magnetometer@c {
|
||||
compatible = "asahi-kasei,ak09911";
|
||||
reg = <0x0c>;
|
||||
|
||||
vdd-supply = <&pm8916_l17>;
|
||||
vid-supply = <&pm8916_l6>;
|
||||
|
||||
reset-gpios = <&msmgpio 36 GPIO_ACTIVE_LOW>;
|
||||
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&mag_reset_default>;
|
||||
};
|
||||
|
||||
accelerometer@1e {
|
||||
compatible = "kionix,kx023-1025";
|
||||
reg = <0x1e>;
|
||||
|
||||
interrupt-parent = <&msmgpio>;
|
||||
interrupts = <115 IRQ_TYPE_EDGE_RISING>;
|
||||
|
||||
vdd-supply = <&pm8916_l17>;
|
||||
vddio-supply = <&pm8916_l6>;
|
||||
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&accel_irq_default>;
|
||||
|
||||
mount-matrix = "-1", "0", "0",
|
||||
"0", "1", "0",
|
||||
"0", "0", "1";
|
||||
};
|
||||
|
||||
proximity@39 {
|
||||
compatible = "avago,apds9930";
|
||||
reg = <0x39>;
|
||||
|
||||
interrupt-parent = <&msmgpio>;
|
||||
interrupts = <113 IRQ_TYPE_EDGE_FALLING>;
|
||||
|
||||
vdd-supply = <&pm8916_l17>;
|
||||
vddio-supply = <&pm8916_l6>;
|
||||
|
||||
led-max-microamp = <100000>;
|
||||
amstaos,proximity-diodes = <1>;
|
||||
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&prox_irq_default>;
|
||||
};
|
||||
};
|
||||
|
||||
&blsp_i2c5 {
|
||||
status = "okay";
|
||||
|
||||
@@ -278,6 +330,14 @@
|
||||
};
|
||||
|
||||
&msmgpio {
|
||||
accel_irq_default: accel-irq-default {
|
||||
pins = "gpio115";
|
||||
function = "gpio";
|
||||
|
||||
drive-strength = <2>;
|
||||
bias-disable;
|
||||
};
|
||||
|
||||
gpio_keys_default: gpio-keys-default {
|
||||
pins = "gpio107";
|
||||
function = "gpio";
|
||||
@@ -294,6 +354,22 @@
|
||||
bias-disable;
|
||||
};
|
||||
|
||||
mag_reset_default: mag-reset-default {
|
||||
pins = "gpio36";
|
||||
function = "gpio";
|
||||
|
||||
drive-strength = <2>;
|
||||
bias-disable;
|
||||
};
|
||||
|
||||
prox_irq_default: prox-irq-default {
|
||||
pins = "gpio113";
|
||||
function = "gpio";
|
||||
|
||||
drive-strength = <2>;
|
||||
bias-disable;
|
||||
};
|
||||
|
||||
sdhc2_cd_default: sdhc2-cd-default {
|
||||
pins = "gpio56";
|
||||
function = "gpio";
|
||||
|
||||
Reference in New Issue
Block a user