Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp802790rdg; Fri, 13 Oct 2023 01:12:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEKdfcrg0X9kYS/RvAc20HRY5HNpEa5okso+5GTWX/KcejEqe1iGJZvfEodyJtEmGTEOfKp X-Received: by 2002:a05:6808:489:b0:3af:d94e:1634 with SMTP id z9-20020a056808048900b003afd94e1634mr17912047oid.15.1697184747412; Fri, 13 Oct 2023 01:12:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697184747; cv=none; d=google.com; s=arc-20160816; b=BLfbaDX0DQmzmw3Za/llH3CxrMFzE6IA0Njj35YrIhDrXm1cXB6GmtdcIrDDfLEfMR AuAjQnUvYIvFZfMZh5f22QI/jdsXqnDs3Kmymo/ZTSfDchPMoaAOIgZxAiQmc/xZkaLM V222dhlsDObkkTjB1K0nPAgcuMhN7/hi8sYwFrO/u/Sok64jvFYvguwm+dLCzAtipxXk PNuSTfVKBzJsIUwwRiYePI5KmZ2ReVTFOwf50cglwJ2wBGcqPwLMLQedkTB9JlkeYeCS VjgogOwbNIEUA4A0aAP7x90HPJIuNTHcMrXjMSr71Aclrk4yxOBJPukLdfN6mukuM4KN Ascw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=w8aB/9PUkAq81szG0QmtzVGYTtfjdGzgK8T49SbW5WY=; fh=TaIMO6VqurOlFtSkuOdlPBpqoEGRWJJ8lInFKm6Jv5A=; b=exEl1w/uBF9T1Lt1ARkCZctKHBJ2Gx6uh3NjVNDqoCYM4e5m3M3hqew8NIgxQbaZOF 6Udl39XMeBDEgdaSCiyfvfdwDovmpf9+rmXEykv2MEVmRFT2l8+R0+t7rL4rvwdRIlAD 4Kg9pi9GCvIRnmhXiO9FlU17zE4IxCNGP4DvAEQiq5iTzveFGcdhyTCIIglOphFcmbZJ 6crbxRblLkh+PYvZG9Yhn/BwPBaZegrxfP7IrHYtV4ZdrqR0HbSTf8lLdsmF64PWt4wO ppIVwaJ++Z9oj0wq70m2gSveEMX1+UE85ahAlf9ZZXrS2K7uOYeWEpCTWp6Lqr9hLzKg Y00g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b=zf4LyoIU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fairphone.com Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id x9-20020a63f709000000b00565e39e7b80si4014789pgh.678.2023.10.13.01.12.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 01:12:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b=zf4LyoIU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fairphone.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id BC05580743F8; Fri, 13 Oct 2023 01:11:00 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230027AbjJMIK2 (ORCPT + 99 others); Fri, 13 Oct 2023 04:10:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47616 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230039AbjJMIKU (ORCPT ); Fri, 13 Oct 2023 04:10:20 -0400 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14455EE for ; Fri, 13 Oct 2023 01:10:17 -0700 (PDT) Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-53d9f001b35so3112987a12.2 for ; Fri, 13 Oct 2023 01:10:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; t=1697184616; x=1697789416; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=w8aB/9PUkAq81szG0QmtzVGYTtfjdGzgK8T49SbW5WY=; b=zf4LyoIUg5u/gOGjrLKKyHMA9J0wkQ7osfPmUC5ChFZbCOGG6nUGbqKFQZ6t5wlFl3 PWJf79Vt36p6TF6r/GDeEf6UfX0AiUvWrliR3z3UYnIZHAGTvGawYy/eeq643yvDmNPy qAXUnOMNDSD8F/hh1RbhZC9t3xAzXdjB2EQ2Nt1ZkPO7/PJ51figrTvXXrnmWf4ByW85 7Sa40hRz57fJSPHlCMOc4Is0Kgj9VrD/AFVmQkScYgZfdIBVtboLnuvGTzzsDAKD2EZn DlstwVfWe0adM0G8lDucjpYivJJOVce0d+8fIN0fdtosm5EhGt2P1FB7rhem9qPEe09c URmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697184616; x=1697789416; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=w8aB/9PUkAq81szG0QmtzVGYTtfjdGzgK8T49SbW5WY=; b=lvk19PDwNToOPFpouny0p9eQQ2Lt26B8PPcljfBNQe2X4pF7h0R7bibfG92TUokygD 1xLM+xrwPGr0pVwarylRoqyoTa2CHpb0WoCFqcYP2Wdb+etpEVtB0L5llvriX11Lemka YxShTHvXek2kCI15S+dgciQIObFIMUP4B14RFUWYKK5ekJhPy9t9PGD1GOtDURUn1yXR wkrx43Ozm5eJVv6RhagrSf9/oZE7tyFCxlgMr6djp8bF+xB+oA+TonKJ9uUK8TDtzMoW y1UuTItOsykw3RvOf0A2Oa0jluNQkq6HDgqH4k9NA4C4a+7mEGXOEC+/i31Fl3nfU0mb VaLg== X-Gm-Message-State: AOJu0YzfnBxc+2OqpTrG1NjFHlEEBlZRmeB7nKiU3S37sAsrrdJUwr3G 7UTU0snBSQt8w3o96rCcZuYEYw== X-Received: by 2002:a17:906:2929:b0:9b8:df8e:cbde with SMTP id v9-20020a170906292900b009b8df8ecbdemr20789300ejd.51.1697184616056; Fri, 13 Oct 2023 01:10:16 -0700 (PDT) Received: from otso.luca.vpn.lucaweiss.eu (144-178-202-138.static.ef-service.nl. [144.178.202.138]) by smtp.gmail.com with ESMTPSA id q14-20020a170906360e00b009a5f1d1564dsm11910761ejb.126.2023.10.13.01.10.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 01:10:15 -0700 (PDT) From: Luca Weiss Date: Fri, 13 Oct 2023 10:09:55 +0200 Subject: [PATCH 3/4] arm64: dts: qcom: qcm6490-fairphone-fp5: Add PMK7325 thermals MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20231013-fp5-thermals-v1-3-f14df01922e6@fairphone.com> References: <20231013-fp5-thermals-v1-0-f14df01922e6@fairphone.com> In-Reply-To: <20231013-fp5-thermals-v1-0-f14df01922e6@fairphone.com> To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, Luca Weiss X-Mailer: b4 0.12.3 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Fri, 13 Oct 2023 01:11:01 -0700 (PDT) Configure the thermals for the XO_THERM line connected to PMK7325 (named in software PMK8350). Signed-off-by: Luca Weiss --- arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts | 38 ++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts b/arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts index 7fe19b556e6a..2c01f799a6b2 100644 --- a/arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts +++ b/arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts @@ -9,6 +9,7 @@ #define PM7250B_SID 8 #define PM7250B_SID1 9 +#include #include #include #include @@ -163,6 +164,20 @@ active-config0 { }; }; }; + + xo-thermal { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&pmk8350_adc_tm 0>; + + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; }; }; @@ -514,10 +529,33 @@ led-0 { }; }; +&pmk8350_adc_tm { + status = "okay"; + + xo-therm@0 { + reg = <0>; + io-channels = <&pmk8350_vadc PMK8350_ADC7_AMUX_THM1_100K_PU>; + qcom,ratiometric; + qcom,hw-settle-time-us = <200>; + }; +}; + &pmk8350_rtc { status = "okay"; }; +&pmk8350_vadc { + status = "okay"; + + channel@44 { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,pre-scaling = <1 1>; + label = "pmk8350_xo_therm"; + }; +}; + &pon_pwrkey { status = "okay"; }; -- 2.42.0