From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.218.51 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794917419; b=L5Vd34ebDBA0XnBTfGdJfyphqt3+1LSLq3uhdiRP64fxM0Hg5/2lTZPtIwbtnsGevZtU 7d4N5uftKdh1PXUury+3IcO2xpoeu3q3cSJpjlrd5MnEyNLhZ4UFct3NvhRIih0Lds9ZK DNf25RWXsJ4PzEpG3PWbsOSgDVv7gKwfeu9yQ2hmNfbDv97hO+RTr0IiS9LRwsCpF9J0y 0+agwmi42Oam/CZ80sMoBRPQc3dG9qXrc0sSJO6MMOQpkqUJq7ko8+plKEZw1daE5KdLQ 8Vw2C/T3Zug9Z2KTzjAN1Ce51edvpWa57xFfXpBMGA+5wtp4TzjqIasxg374Ys/kgjQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794917419; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Mime-Version:Content-Transfer-Encoding:Content-Type:Date:Message-Id: Cc:Subject:From:To:X-Mailer:References:In-Reply-To; bh=dfaypAa6ppfXfClsoWfeiFIIEjS/QTWnqdCEZYeNYh8=; b=jZmgAnvtJQMq1U8ssjmcf/RQfuJuLW29jUMXv5v9/Gdwu3AyzW6oYU+izOxeQjT7dyV+ OMDj2UKPFWAfgrYZYfFF8r4yajHlpyUxvyjyjRldXJkYvVSR6X8zupS1GtPn/koxA0ixV bRb0Iv0YNzZjyt/NKfRpd2SVzj9bDIvFSfQWp7s/8HJ47KIbpIxb3i8X7q7gHIizb5UC+ +gFbbrC3PUNt7HdvXtD64ZAnGdVmUpPzcTwcCtrk/YEnDBkNG9SxFRQoGar6JDd/GG9Bq sHW45ia+6MOLwnReIEB7Oa77r9l8alDWUDEzymr6saJ0zxsSaxuPQ0UhE78XEoERgsA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=fairphone.com; spf=pass smtp.mailfrom=fairphone.com; dkim=pass header.d=fairphone.com header.i=@fairphone.com header.a=rsa-sha256 header.s=fair header.b=r0YTNcD3; arc=none smtp.remote-ip=209.85.218.51 Received: from mail-ej1-f51.google.com (mail-ej1-f51.google.com [209.85.218.51]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 64078606A329 for ; Tue, 17 Nov 2026 12:10:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 64078606A329 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=fairphone.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fairphone.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=fairphone.com header.i=@fairphone.com header.a=rsa-sha256 header.s=fair header.b=r0YTNcD3 Received: by mail-ej1-f51.google.com with SMTP id a640c23a62f3a-c505186727fso271700066b.3 for ; Tue, 17 Nov 2026 04:10:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; t=1794917417; x=1795522217; darn=vger.kernel.org; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-type:content-transfer-encoding:mime-version:from:to:cc :subject:date:message-id:reply-to:content-type; bh=dfaypAa6ppfXfClsoWfeiFIIEjS/QTWnqdCEZYeNYh8=; b=r0YTNcD3IlklysrapoNfdmqdrM8LOOK9EMn7Nsy+6hzp4drGhZ5dviCBiP+Znk8coK +i2GYMy+6eh+IyQCb2yIih7T5pgtgxYvpxaHL7ZPDRtlwKiZTMWVQgZHaX/jI+SJaUAQ JbucQOvhMd99aeRNtPvV6jc3x7fq0LQQbHRsGXiQz8DDAV8FtMf3YLS2de6eDcqaYoRF 6elq9U85D5Q33IrDX735kH1qsA0vxVs0AnK9TlyQ5UeBbjhmalypF0nerwB6gH/NMHSe Tt0rNN/oyfGbjbN9pmH1gs2B3EAB3bWdm5J1rTbR8ccpjK/kY/v/XPIj3GCkPjqabgPq z1hw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1794917417; x=1795522217; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-type:content-transfer-encoding:mime-version:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=dfaypAa6ppfXfClsoWfeiFIIEjS/QTWnqdCEZYeNYh8=; b=jne9jiYyAUlpTPfUiGIrm4nyF0JEak2HCQhv4Qk0aGZku1BT3ZEcKyhNtHqiTbHIyc NVB+0p1Vl0hkmac/jAdHJ2ax+q4wf16tgkMuJV84BGy37C/JejdJBAAAmZrl3FidDg81 cKkwh/RGaVs0cTujqzb8MaWDfZymoBWB90GAtI/I/D2Qa4RjkrLl1Xo+y4KbRuvUIhrT y2git1t5xVsmaRJdUUyU5Yp3PINmd3i9mWbuDq/zln00+GWFD8bPHDDX7mcZJRs9nxTI NSGpDltv9iurYYRP8bZvm2yBzEqncG0fIXvMJcg0BGvA7MALhiiS/S5I8j0+hf/A7G69 BXcA== X-Forwarded-Encrypted: i=1; AL+hErGsmrxg8txCsvyBmLDLmkJi3w7gfkbLCws1f0IUIcV8zciLARtoVBvgYEsts7ZOfW8cmg5nVlg6Q5ow@vger.kernel.org X-Gm-Message-State: APuU4Z/1/CsNrknp/OtnvExsF2q0pjaDRI7/irooGNRlVd279Asm1zwH is7sHJOtNjTOTGhMeTnA3k+QUTHfUv1cQ3WG+jAP9VDezM+Reuvpji5Q15ySkzWAZxs= X-Gm-Gg: AYBFou2Ymc8vYR/upedBTDfvLsK8crMTPXce/fGjRG+kTK5U+LQ85PlfP/WFtoEp+wT eCz59t3xLuTxN+44RI/xfuEsWjyxLvhkLOzoeY4lEwWCg6SIT+DThovOGTvMUWPonldXbukKtGx 6PaNYlWcrAXVPvdOX3Z9KPHiCqSICdTLdq2krpsBRvfY/xpdf+Z7ULEWRJiVHMldJU7rm7/VBNo xHP9eOGRVppfGRYgspkb8Sym1Ff7Q7ypOM/E82UrjzPZZRvLtVG+ovxISCyQPJpB8KfCCpDL+aO rLq32lB5OueakLO1c+Rco+366zP/WQ4CrryC7d26DnMfU6a84y91NBIpSX3G8iBlZS59jReRlgW Iu47CaQ1OhU/v3fPOqD6jF0WOJzQZya5iUTjjGYFIqUwQnl77B53romfOgN6NVUwTeoJdXhkqg2 GVhwOQBh+NkmvxDRL/uQgx5QWi0Q1E3jzFJRoeSzyOj27nz2Aqb63x8EecRYxhZJhXq4Ek2XAsS 8d35o/iv0p6fMnxpe0F/lEtyim5mrX+FSM70I/9ELZVAXO1UqhbxiqbSi3RrgxNDFRJxwZTeMZm jqbdmkaiFCyaj3YlH30+bzC0ZDN17N4u+cWJh33PCYCFQ4NAIhoo6jRl6XteQ4WfP9raU9b8Ag= = X-Received: by 2002:a17:907:94c2:b0:c41:26b8:c49d with SMTP id a640c23a62f3a-c50963cccbdmr1064546666b.38.1794917416774; Tue, 17 Nov 2026 04:10:16 -0800 (PST) Received: from localhost (144-178-202-142.static.ef-service.nl. [144.178.202.142]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-c5095b685b0sm531579666b.60.2026.11.17.04.10.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 17 Nov 2026 04:10:16 -0800 (PST) X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Tue, 17 Nov 2026 13:10:15 +0100 Message-Id: Cc: , , , , Subject: Re: [PATCH v5 11/12] arm64: dts: qcom: sm6350-lena: Add PM6150L thermals From: "Luca Weiss" To: "erebion" , "Neil Armstrong" , "Jessica Zhang" , "Maarten Lankhorst" , "Maxime Ripard" , "Thomas Zimmermann" , "David Airlie" , "Simona Vetter" , "Bjorn Andersson" , "Konrad Dybcio" , "Rob Herring" , "Krzysztof Kozlowski" , "Conor Dooley" X-Mailer: aerc 0.22.0-0-gc2f86b7abde3-dirty References: <20261116-pdx213-upstream-3-v5-0-7318a19806eb@erebion.eu> <20261116-pdx213-upstream-3-v5-11-7318a19806eb@erebion.eu> In-Reply-To: <20261116-pdx213-upstream-3-v5-11-7318a19806eb@erebion.eu> On Mon Nov 16, 2026 at 11:50 PM CET, erebion wrote: > Configure the thermals for the PA_THERM1, MSM_THERM, PA_THERM0, > CAM_FLASH_THERM and QUIET_THERM thermistors connected to > PM6150L. > > Due to hardware constraints we can only register 4 zones with > pm6150l_adc_tm, the other 2 we can register via generic-adc-thermal. > > RFC_CAM_THERM is intentionally omitted for now and will have to be > added once it is clear how it should be added. > > The trip points can really only be considered as placeholders, more > configuration with cooling etc. can be added later. Reviewed-by: Luca Weiss > Signed-off-by: erebion > --- > .../dts/qcom/sm6350-sony-xperia-lena-pdx213.dts | 160 +++++++++++++++= ++++++ > 1 file changed, 160 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sm6350-sony-xperia-lena-pdx213.dts = b/arch/arm64/boot/dts/qcom/sm6350-sony-xperia-lena-pdx213.dts > index b86fe11fd5296..b19e76b3c1a75 100644 > --- a/arch/arm64/boot/dts/qcom/sm6350-sony-xperia-lena-pdx213.dts > +++ b/arch/arm64/boot/dts/qcom/sm6350-sony-xperia-lena-pdx213.dts > @@ -81,6 +81,13 @@ memory@fe901000 { > }; > }; > =20 > + msm_therm_sensor: thermal-sensor-msm { > + compatible =3D "generic-adc-thermal"; > + #thermal-sensor-cells =3D <0>; > + io-channels =3D <&pm6150l_adc ADC5_AMUX_THM2_100K_PU>; > + io-channel-names =3D "sensor-channel"; > + }; > + > thermal-zones { > chg-skin-thermal { > thermal-sensors =3D <&pm7250b_adc_tm 0>; > @@ -106,6 +113,74 @@ active-config0 { > }; > }; > =20 > + pa0-thermal { > + thermal-sensors =3D <&pm6150l_adc_tm 1>; > + > + trips { > + active-config0 { > + temperature =3D <125000>; > + hysteresis =3D <1000>; > + type =3D "passive"; > + }; > + }; > + }; > + > + pa1-thermal { > + thermal-sensors =3D <&pm6150l_adc_tm 0>; > + > + trips { > + active-config0 { > + temperature =3D <125000>; > + hysteresis =3D <1000>; > + type =3D "passive"; > + }; > + }; > + }; > + > + quiet-thermal { > + thermal-sensors =3D <&pm6150l_adc_tm 3>; > + > + trips { > + active-config0 { > + temperature =3D <125000>; > + hysteresis =3D <1000>; > + type =3D "passive"; > + }; > + }; > + }; > + > + rfc-flash-thermal { > + thermal-sensors =3D <&pm6150l_adc_tm 2>; > + > + trips { > + active-config0 { > + temperature =3D <125000>; > + hysteresis =3D <1000>; > + type =3D "passive"; > + }; > + }; > + }; > + > + sdm-skin-thermal { > + polling-delay-passive =3D <1000>; > + polling-delay =3D <5000>; > + thermal-sensors =3D <&msm_therm_sensor>; > + > + trips { > + trip0 { > + temperature =3D <45000>; > + hysteresis =3D <0>; > + type =3D "passive"; > + }; > + > + trip1 { > + temperature =3D <55000>; > + hysteresis =3D <0>; > + type =3D "critical"; > + }; > + }; > + }; > + > xo-thermal { > thermal-sensors =3D <&pmk8350_adc_tm 0>; > =20 > @@ -392,6 +467,83 @@ &mpss { > status =3D "okay"; > }; > =20 > +&pm6150l_adc { > + pinctrl-0 =3D <&pm6150l_adc_default>; > + pinctrl-names =3D "default"; > + > + channel@4d { > + reg =3D ; > + label =3D "pa_therm1"; > + qcom,hw-settle-time =3D <200>; > + qcom,pre-scaling =3D <1 1>; > + qcom,ratiometric; > + }; > + > + channel@4e { > + reg =3D ; > + label =3D "msm_therm"; > + qcom,hw-settle-time =3D <200>; > + qcom,pre-scaling =3D <1 1>; > + qcom,ratiometric; > + }; > + > + channel@4f { > + reg =3D ; > + label =3D "pa_therm0"; > + qcom,hw-settle-time =3D <200>; > + qcom,pre-scaling =3D <1 1>; > + qcom,ratiometric; > + }; > + > + channel@54 { > + reg =3D ; > + label =3D "rear_cam_flash_therm"; > + qcom,hw-settle-time =3D <200>; > + qcom,pre-scaling =3D <1 1>; > + qcom,ratiometric; > + }; > + > + channel@55 { > + reg =3D ; > + label =3D "quiet_therm"; > + qcom,hw-settle-time =3D <200>; > + qcom,pre-scaling =3D <1 1>; > + qcom,ratiometric; > + }; > +}; > + > +&pm6150l_adc_tm { > + status =3D "okay"; > + > + pa-therm1@0 { > + reg =3D <0>; > + io-channels =3D <&pm6150l_adc ADC5_AMUX_THM1_100K_PU>; > + qcom,hw-settle-time-us =3D <200>; > + qcom,ratiometric; > + }; > + > + pa-therm0@1 { > + reg =3D <1>; > + io-channels =3D <&pm6150l_adc ADC5_AMUX_THM3_100K_PU>; > + qcom,hw-settle-time-us =3D <200>; > + qcom,ratiometric; > + }; > + > + rear-cam-flash-therm@2 { > + reg =3D <2>; > + io-channels =3D <&pm6150l_adc ADC5_GPIO3_100K_PU>; > + qcom,hw-settle-time-us =3D <200>; > + qcom,ratiometric; > + }; > + > + quiet-therm@3 { > + reg =3D <3>; > + io-channels =3D <&pm6150l_adc ADC5_GPIO4_100K_PU>; > + qcom,hw-settle-time-us =3D <200>; > + qcom,ratiometric; > + }; > +}; > + > &pm6150l_flash { > status =3D "okay"; > =20 > @@ -405,6 +557,14 @@ led-0 { > }; > }; > =20 > +&pm6150l_gpios { > + pm6150l_adc_default: adc-default-state { > + pins =3D "gpio7", "gpio10"; > + function =3D PMIC_GPIO_FUNC_NORMAL; > + bias-high-impedance; > + }; > +}; > + > &pm6350_gpios { > vol_down_n: vol-down-n-state { > pins =3D "gpio2";