mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-08-31 22:23:05 +00:00

J5 and J5X have ST LIS2HH12 accelerometer. Add support for it. Signed-off-by: Markuss Broks <markuss.broks@gmail.com> Co-developed-by: Stephan Gerhold <stephan@gerhold.net> Signed-off-by: Stephan Gerhold <stephan@gerhold.net> Co-developed-by: Lin, Meng-Bo <linmengbo0689@protonmail.com> Signed-off-by: Lin, Meng-Bo <linmengbo0689@protonmail.com> Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org> Link: https://lore.kernel.org/r/20230904123123.2593-1-linmengbo0689@protonmail.com Signed-off-by: Bjorn Andersson <andersson@kernel.org>
61 lines
1.1 KiB
Plaintext
61 lines
1.1 KiB
Plaintext
// SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
/dts-v1/;
|
|
|
|
#include "msm8916-samsung-j5-common.dtsi"
|
|
|
|
/ {
|
|
model = "Samsung Galaxy J5 (2016)";
|
|
compatible = "samsung,j5x", "qcom,msm8916";
|
|
chassis-type = "handset";
|
|
|
|
reg_vdd_tsp_a: regulator-vdd-tsp-a {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vdd_tsp_a";
|
|
regulator-min-microvolt = <3000000>;
|
|
regulator-max-microvolt = <3000000>;
|
|
|
|
gpio = <&tlmm 108 GPIO_ACTIVE_HIGH>;
|
|
enable-active-high;
|
|
|
|
pinctrl-0 = <&tsp_ldo_en_default>;
|
|
pinctrl-names = "default";
|
|
};
|
|
};
|
|
|
|
&accelerometer {
|
|
interrupts-extended = <&tlmm 49 IRQ_TYPE_LEVEL_HIGH>;
|
|
|
|
vdd-supply = <&pm8916_l6>;
|
|
vddio-supply = <&pm8916_l6>;
|
|
|
|
mount-matrix = "0", "-1", "0",
|
|
"1", "0", "0",
|
|
"0", "0", "-1";
|
|
};
|
|
|
|
&muic {
|
|
interrupts = <121 IRQ_TYPE_EDGE_FALLING>;
|
|
};
|
|
|
|
&touchscreen {
|
|
vdd-supply = <®_vdd_tsp_a>;
|
|
};
|
|
|
|
&tlmm {
|
|
tsp_ldo_en_default: tsp-ldo-en-default-state {
|
|
pins = "gpio108";
|
|
function = "gpio";
|
|
drive-strength = <2>;
|
|
bias-disable;
|
|
};
|
|
};
|
|
|
|
&accel_int_default {
|
|
pins = "gpio49";
|
|
};
|
|
|
|
&muic_int_default {
|
|
pins = "gpio121";
|
|
};
|