Message ID | 20240617-peregrine-v2-2-c8835d2da7af@apitzsch.eu (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
Series | ARM: dts: qcom: msm8926-motorola-peregrine: Update device tree of Motorola Moto G 4G (2013) | expand |
On 6/17/24 23:22, André Apitzsch via B4 Relay wrote: > From: André Apitzsch <git@apitzsch.eu> > > 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> Konrad
diff --git a/arch/arm/boot/dts/qcom/qcom-msm8926-motorola-peregrine.dts b/arch/arm/boot/dts/qcom/qcom-msm8926-motorola-peregrine.dts index 50ae3cfc95bb..cff9415baa46 100644 --- a/arch/arm/boot/dts/qcom/qcom-msm8926-motorola-peregrine.dts +++ b/arch/arm/boot/dts/qcom/qcom-msm8926-motorola-peregrine.dts @@ -125,6 +125,10 @@ reg_lcd_neg: outn { 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>; }; }; @@ -361,6 +365,14 @@ reg_lcd_default: reg-lcd-default-state { bias-disable; output-high; }; + + temp_alert_default: temp-alert-default-state { + pins = "gpio13"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + output-disable; + }; }; &usb {