Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp5618624pxv; Wed, 28 Jul 2021 15:27:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwDika5CSVgZuVzlPBQT8qN5mp+kXPpNeuozLtmTBPXSicAa2eUiJ336RhJewh7qzDLvZ2k X-Received: by 2002:a05:6e02:60c:: with SMTP id t12mr1433127ils.121.1627511266407; Wed, 28 Jul 2021 15:27:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627511266; cv=none; d=google.com; s=arc-20160816; b=dTr9F/vjdnbDTTfp6TJe4Zu954tgHHVl5Y0YPWLegF3ch7V6PT0fmHzRfekaNbvxdq hWA+18KXCO8frcctS6KxjzqnGJu0ToXsy2r7EF98w3jUGhHh5KWx5WyVZW1HV2zjI2d4 /D3ZFoJt2bI6uM9bF74tX9gTsnrqwvvGkRa+NQusFsICy8obZR3yGF73O7cWHYlc4q0I iHcEvkX8xd0uazXx/UGfmXBM5f/bzkOCzwhhmClm7KP4JyC35A1qcpJO8vC6lpBBFetm M9tN2gnwAUz50oCkF1TMgS+huC7PnN+Q93/3spWIfUjhdt8vR2R7PGaHOpE9S1un7RaM i5tQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=mUOuEyq53ujbLUwC5187KOEI6D3PPK8XIfoMdCTAIFg=; b=wP7mNxxGx9CEF9neI4zWXoNsaAHHa0vj05P2LLKncYSi2gQM0uT0/jFPADQVKH9lYw bQja1TWng+MZPKPCgoChRMe202SqZ4sJy0uGSJP26gPF+IqUhudwT71w244LBdi/TPSC y2q+L+DN8AX2ioPF/YtD3hSlhsK4zZt3S1J2+TOhHHWWcQdnWv2CrRaFEiM8GKY5p9dW P20DE5KApWNQrk8kUy1xMoe8+jdxXaRHQf6uCiNUc+/cFpS3ks5XVByMDZrTS9Bn+TAe 2ZFW1vu4oBCWGcJZedtAzNa6P1/yB/J2czTYh9rQmCP03JOww7evWcw4EC17udIo6caj Wnog== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b4si1254973jat.6.2021.07.28.15.27.34; Wed, 28 Jul 2021 15:27:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232956AbhG1W0X (ORCPT + 99 others); Wed, 28 Jul 2021 18:26:23 -0400 Received: from relay04.th.seeweb.it ([5.144.164.165]:36079 "EHLO relay04.th.seeweb.it" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232439AbhG1W0J (ORCPT ); Wed, 28 Jul 2021 18:26:09 -0400 Received: from localhost.localdomain (83.6.168.174.neoplus.adsl.tpnet.pl [83.6.168.174]) by m-r1.th.seeweb.it (Postfix) with ESMTPA id 2315C1FD04; Thu, 29 Jul 2021 00:26:05 +0200 (CEST) From: Konrad Dybcio To: ~postmarketos/upstreaming@lists.sr.ht Cc: martin.botka@somainline.org, angelogioacchino.delregno@somainline.org, marijn.suijten@somainline.org, jamipkettunen@somainline.org, Konrad Dybcio , Andy Gross , Bjorn Andersson , Amit Kucheria , Thara Gopinath , Zhang Rui , Daniel Lezcano , Rob Herring , linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 14/39] arm64: dts: qcom: sdm630: Add TSENS node Date: Thu, 29 Jul 2021 00:25:17 +0200 Message-Id: <20210728222542.54269-15-konrad.dybcio@somainline.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210728222542.54269-1-konrad.dybcio@somainline.org> References: <20210728222542.54269-1-konrad.dybcio@somainline.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This will enable temperature reporting for various SoC components. Signed-off-by: AngeloGioacchino Del Regno Signed-off-by: Konrad Dybcio --- .../devicetree/bindings/thermal/qcom-tsens.yaml | 1 + arch/arm64/boot/dts/qcom/sdm630.dtsi | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml b/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml index 4a2eaf28e3fd..d3b9e9b600a2 100644 --- a/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml +++ b/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml @@ -48,6 +48,7 @@ properties: - qcom,sc7180-tsens - qcom,sc7280-tsens - qcom,sc8180x-tsens + - qcom,sdm630-tsens - qcom,sdm845-tsens - qcom,sm8150-tsens - qcom,sm8250-tsens diff --git a/arch/arm64/boot/dts/qcom/sdm630.dtsi b/arch/arm64/boot/dts/qcom/sdm630.dtsi index 1e54828817d5..7e9c80e35fba 100644 --- a/arch/arm64/boot/dts/qcom/sdm630.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm630.dtsi @@ -627,6 +627,17 @@ mnoc: interconnect@1745000 { <&mmcc AHB_CLK_SRC>; }; + tsens: thermal-sensor@10ae000 { + compatible = "qcom,sdm630-tsens", "qcom,tsens-v2"; + reg = <0x010ae000 0x1000>, /* TM */ + <0x010ad000 0x1000>; /* SROT */ + #qcom,sensors = <12>; + interrupts = , + ; + interrupt-names = "uplow", "critical"; + #thermal-sensor-cells = <1>; + }; + tcsr_mutex_regs: syscon@1f40000 { compatible = "syscon"; reg = <0x01f40000 0x20000>; -- 2.32.0