]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ARM: dts: qcom: msm8926-motorola-peregrine: Update temperature sensor
authorAndré Apitzsch <git@apitzsch.eu>
Mon, 17 Jun 2024 21:22:28 +0000 (23:22 +0200)
committerBjorn Andersson <andersson@kernel.org>
Wed, 26 Jun 2024 03:39:52 +0000 (22:39 -0500)
Add alert interrupt for the temperature sensor of Motorola Moto G 4G
(2013), although not used by the driver yet.

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-2-c8835d2da7af@apitzsch.eu
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm/boot/dts/qcom/qcom-msm8926-motorola-peregrine.dts

index 50ae3cfc95bb1b2d164067386e38f40c8ef1c01a..cff9415baa461f2c4a16c4c834efdb442423c103 100644 (file)
        sensor@48 {
                compatible = "ti,tmp108";
                reg = <0x48>;
+               interrupts-extended = <&tlmm 13 IRQ_TYPE_LEVEL_LOW>;
+               pinctrl-0 = <&temp_alert_default>;
+               pinctrl-names = "default";
+               #thermal-sensor-cells = <0>;
        };
 };
 
                bias-disable;
                output-high;
        };
+
+       temp_alert_default: temp-alert-default-state {
+               pins = "gpio13";
+               function = "gpio";
+               drive-strength = <2>;
+               bias-disable;
+               output-disable;
+       };
 };
 
 &usb {