From patchwork Thu Mar 16 14:12:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 70807 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp510022wrt; Thu, 16 Mar 2023 07:19:36 -0700 (PDT) X-Google-Smtp-Source: AK7set9sI2KkQV0+f9aFWkHtCuP2uDwcT+6pWIz5nC7AqStbX8Qud3Nd49ZDwOFRVE0nH6xb/wYW X-Received: by 2002:a05:6a20:6993:b0:cc:de56:957a with SMTP id t19-20020a056a20699300b000ccde56957amr4524266pzk.13.1678976376449; Thu, 16 Mar 2023 07:19:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678976376; cv=none; d=google.com; s=arc-20160816; b=n9/yiaItEfSA7+CVlkHy+Ex4Pre9gtf5owlMl4vKRzherUMkt/MeRcynBmqJMEqQXV F89ZR+D9qSeLT+EOsVny+mhtN70gJc5yLuH+3FZ1F6Gtb72tIy4rT4PQMCuvcYPvMoHU Rfkhld5PyiDpxKzxvJeP5+cJb1PYu4IQudbgwX+tXvSf1lLDMOo6fcIksDftzMgzh7/I AQysZYIuwp3pRIO33gHKnmIsYC6JwfMjFZGEScCVCe4XFNGvDhrjBI73/s9ITR/xowzO dWMpgrsogX7y1pAg1iQXJ3lCwCwK27y2mbnZ9gTbq/s5Iq64p6f2gJ8cggM93C2Tl/3y B6Yw== 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=fr1OHq/Y0F9EXyjJfE+Cc02kHVOPdqYGSbtmI+oAs6M=; b=bwUf3C7mwJwmByKj2hRy8XE0tzK1SlbeZcSeNMe59veg47aJ/rNS6yedklt+YP7arw bgXTlYhI+F0h4ewo36AT2Cd/BK+SqFodPfZ1tLNA7RkJALtbkZTkuMHrhGavh2HWmmmb yp0cLSuO6lFLMxG3YDbbwoY3RWqcFbbXLK0Jx15WjIJ7ZlP8LqwSU51uqUaDfrdt3y4G piC85b5x+x/PsOiDXLR6wQNOnx6cTpuuoKDmKkoLaZlt2zgFTYknV6MhL7riWZWmRNis zlcjbSnHYACfMfucNjkqbGcLSW2e8JRfTpvTMeAiegAR1SeQWLCM7zpodz+4JsxqCUTk hneA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rmAjPw9d; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l62-20020a639141000000b0050c03dc7259si271766pge.844.2023.03.16.07.19.23; Thu, 16 Mar 2023 07:19:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rmAjPw9d; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231228AbjCPONw (ORCPT + 99 others); Thu, 16 Mar 2023 10:13:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231206AbjCPON3 (ORCPT ); Thu, 16 Mar 2023 10:13:29 -0400 Received: from mail-lj1-x22c.google.com (mail-lj1-x22c.google.com [IPv6:2a00:1450:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1FD00D5A7F for ; Thu, 16 Mar 2023 07:13:16 -0700 (PDT) Received: by mail-lj1-x22c.google.com with SMTP id by8so629406ljb.12 for ; Thu, 16 Mar 2023 07:13:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678975996; 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=fr1OHq/Y0F9EXyjJfE+Cc02kHVOPdqYGSbtmI+oAs6M=; b=rmAjPw9dYkNrX6arOkoSKNjd5H/0Ya+0BKCtPDecJv+RvkwIt/aC2JgtA/lfbcAaDR CeeNm4im8ce9HAll9Jpuoe2g+Sz829sLuL4UVRaWCm5f5K7b1gDt7dst1B8hO1OPOb8O N+rbYTqWe2XSzumOr7Qy+1RdxtRVs8pGkgIYptiuxV40BANKEUkxEYA0mQTCzgbD0M+q UrysLafzXHocnmPyl9QWAS4BXc1qtIFbUg/RUT0knG/YLgV5OnZvvDuKen3tTFtkXqSI ukcqPXFnaw4H908jmFXEHpm0QzXgkh+OuH8Nu3V3eZMh2IKWcKuioaNYUlkL6QT31KDi 5Nyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678975996; 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=fr1OHq/Y0F9EXyjJfE+Cc02kHVOPdqYGSbtmI+oAs6M=; b=UYZrod7shmxSxLGdz6b3zzwzejTFiMYLKmcH7BozRxn56ZsN0xQEg3JI5t5XP8qwhz G/ZoPvuITVjkoy69lxS7tY4ibdst4aHICyZ5PAuAExArUGtvj/MROd2TY8pA4Po2l+W0 V08gWdsGd8FocpremsbHh5wYz8Sagat7o1unkgwsy7n9eppi40wjYVQhh+kdyhfRuyGR P1nMvek+NspN1uS4K7CvsdYBA8P3SrD+eEn3bD8YePU7pyAP/PB4j/oC4y7mVX+Ne522 RbaQLiNK30HAb2J1LFBtNPb1HYQro/T5crdaiEeFZsHzNqXaNAShv4+9qrMo9JTVxV3j VnUg== X-Gm-Message-State: AO0yUKVJwzAqpUUX8pLmlzE+WZc8PAQUAt1YdLTQAtfC3hshTHjZt71J nQguN+sXkkQDuabiQMuqaKdTFw== X-Received: by 2002:a2e:b88f:0:b0:293:4ba3:17be with SMTP id r15-20020a2eb88f000000b002934ba317bemr2862778ljp.11.1678975996476; Thu, 16 Mar 2023 07:13:16 -0700 (PDT) Received: from [192.168.1.101] (abyj16.neoplus.adsl.tpnet.pl. [83.9.29.16]) by smtp.gmail.com with ESMTPSA id a9-20020a2eb549000000b00295735991edsm1261639ljn.38.2023.03.16.07.13.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Mar 2023 07:13:16 -0700 (PDT) From: Konrad Dybcio Date: Thu, 16 Mar 2023 15:12:59 +0100 Subject: [PATCH v2 10/14] arm64: dts: qcom: sm6375: Add TSENS MIME-Version: 1.0 Message-Id: <20230303-topic-sm6375_features0_dts-v2-10-708b8191f7eb@linaro.org> References: <20230303-topic-sm6375_features0_dts-v2-0-708b8191f7eb@linaro.org> In-Reply-To: <20230303-topic-sm6375_features0_dts-v2-0-708b8191f7eb@linaro.org> To: Amit Kucheria , Thara Gopinath , Andy Gross , Bjorn Andersson , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Rob Herring , Krzysztof Kozlowski , Georgi Djakov , Sibi Sankar Cc: linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Marijn Suijten , Konrad Dybcio X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1678975978; l=1456; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=ykqp5bp58crzGqyySJ//g66g5IA2DYwCTKLczf3b59w=; b=8GcRkKVlQgGRI2QfzqrSgsroa+vRBMeCjg6PCLbWsbDsW4cFAfUFp2dVuA4NWxY3NQicPPNPtaLD Xtx0wfYTDEjXwBShR65VrLUHrSCJdKQ35FzYtpNowdt4JYAduk4p X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-Spam-Status: No, score=-0.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_HTTP,RCVD_IN_SORBS_SOCKS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760534333159368470?= X-GMAIL-MSGID: =?utf-8?q?1760534333159368470?= Add nodes for the two TSENS v2.8.0 controllers present on the SoC. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm6375.dtsi | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm6375.dtsi b/arch/arm64/boot/dts/qcom/sm6375.dtsi index 59d7ed25aa36..a88ed6467e68 100644 --- a/arch/arm64/boot/dts/qcom/sm6375.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6375.dtsi @@ -764,6 +764,28 @@ spmi_bus: spmi@1c40000 { #interrupt-cells = <4>; }; + tsens0: thermal-sensor@4411000 { + compatible = "qcom,sm6375-tsens", "qcom,tsens-v2"; + reg = <0 0x04411000 0 0x140>, /* TM */ + <0 0x04410000 0 0x20>; /* SROT */ + interrupts = , + ; + interrupt-names = "uplow", "critical"; + #thermal-sensor-cells = <1>; + #qcom,sensors = <15>; + }; + + tsens1: thermal-sensor@4413000 { + compatible = "qcom,sm6375-tsens", "qcom,tsens-v2"; + reg = <0 0x04413000 0 0x140>, /* TM */ + <0 0x04412000 0 0x20>; /* SROT */ + interrupts = , + ; + interrupt-names = "uplow", "critical"; + #thermal-sensor-cells = <1>; + #qcom,sensors = <11>; + }; + rpm_msg_ram: sram@45f0000 { compatible = "qcom,rpm-msg-ram"; reg = <0 0x045f0000 0 0x7000>;