From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.218.50 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794917418; b=Eg1s/AhSK0ZaUPd/YUi+7KJE8tiJfRegDKmoCgjPkGSYtm4pbkvhlwjhO4S0/4XgKCC7 KgIUW3n+lxt0+1mw0MmSQN5Fg2cWhgmEUcOeFR7GscO/K+ijuL2rLbOwtYkz81jbdsRhF Qn5NXxmAykh8n1U0vRmTImaNm2LWc/G+op7CGzH4j55EF0fCFHp6XkyeHhmPNQeHaO7Va WftpIt6qdE0ZWZm/VL2DNWHTDnEoGaaXdUu8TDZrMQ40IF3sO9aiv1YG4i4cTeAYaOywB POcAaLbq9RgUXglU8xY9NowY9jYCFAv2dbSzvn51pnsnNI0vTA+c2IWMuvxb0fZmrIQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794917418; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: 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=I0Ma3GtwGu2bifryNXjGPjkPc+F4+h7DX/jOAnFdDAQW69sDDhe5zM0nwNcM/uhjI4Ja TLGWsHW6T+hL4BOOcYYDsV707mc4QarmUksrF/qClZ6oXTGmB5M+5eB6bVlAbL9klKgKG RLp2pU9BDDUIwaoeHl9OwLFMvA8CtWrZtyAX9HckcM3tq1vhMPXRh3G97v2yuq57e8EVM 47rqtDA7KUo02SN5Aagj/QeUfHwY/P8sWS2xkqsDbX1/LBMiFujpt79Iki43FCpbeirQR vskMDvsEJcjJ/JmwP3H8w2FK69uwSxD0h1FgLgJW58x4YJboknlQxmTwpWhtyNFOBiA== 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.50 Received: from mail-ej1-f50.google.com (mail-ej1-f50.google.com [209.85.218.50]) (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 6C7D1606A32C for ; Tue, 17 Nov 2026 12:10:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 6C7D1606A32C 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-f50.google.com with SMTP id a640c23a62f3a-c4cb6834eaaso296372466b.2 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=F3Xii2wptelgvRkJq5FNwYHTu09eQouqw/KuBVH9bnbhpy61VYkle1hIx1xu3qShON oW0tR9Kr5vXZ0l9nUSi9EHjk9YgCBdbcZVfEfWduqv/RfMzqdDPhlXEMTmpSU4A6hOM8 cf2X5nK4Sfj29P30GWcalhsXRKNlGEgCijPLz8QsEqTQdTCQtoah8QqA1oKIz98ctdvA AvLnLR2o7+brI+RAMRUetPcevbg5MCWaTf4XVAt3ZWqa6KlwEjESN7tzQWSJadH3QxU+ ZNPfpOquxddY6soAY3uEqPnOeocsv5jWX0ZkOg/yO2l1ondTdGIiHBP0u4C/IUVhhCLB jnzA== X-Gm-Message-State: APuU4Z/VaORCj+JN06QfO4MKMc4iqr9aC9NDSqQD8whaaHIj+xC+UCS3 SoJQ6VTAXR1SmNbvnNrzqKjNAMHGRz7JPEGMYiVK+q/TKqNQuJLSOWPf/hzREbeLIOs= X-Gm-Gg: AYBFou2BDYDSkOWOCB63/+PJ1MpSGILaUHTaj51peIuBuNGVmgaYP+NZc0FL5z0r2lA mzPrAn/kwsSksSUGG8n7k5tjkORLHO5AXybIAp/3powzIluz3xeveNyhQoLDMpmwleIATBM7xfD s22I4auupWGnHViVX2W+rEq9CRg8bCZVU8EUYOWVBoxSiwHWwvXge7n+37InyzwlmlqmIVEIHjc n5n4yRMeyWfmr150y/26UgWYA5fCLjE9vTB9phDxLrOFi/Fg5cKI/Ij1CLkJFhdtZGx/54KmtTs luUkq9rvdwMwOmMtOlz0Gw+QRPT+06Xd0/ZlMKN64c0UcT27y30lYOwU2xPzJCdjcHcldCod8pE eLHuLydXB+7LbwMi1KjvFAbNUNBTlr92x6mPvDqROT1xqjzpiSTWvhUwxigjuJL/6DCua1KLXmh yUmcsCfTajjdvdtzMzHWTmPX83XxYv7Z7XgUDqlJONcX2X9IqM49Nt9r5D68DcI+RsbPDT9QH59 USPtMSCt/yoD4COJpfj/ko/SeYQ+qTZ5MsdmTtuvEkQFR2FRJxzswV8fOpd+JT9z6Yi0Ml5wZ0d vmiH/QxLiRzCMg98VIFW3UBXzmDf4IEJ3FKtmqViwxdk2o8ElfPno5zxirlW84MsoKzn+jXqPg= = 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: linux-kernel@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";