Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3807565ybt; Tue, 23 Jun 2020 11:10:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw31RN8VXTsKjFODfSwqXS+4DKFqm4HeB4mhVYBO/wZufIjCQWDJW0B6e7yiwF2ct+nVjwp X-Received: by 2002:a17:906:a0f:: with SMTP id w15mr22542079ejf.332.1592935827284; Tue, 23 Jun 2020 11:10:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592935827; cv=none; d=google.com; s=arc-20160816; b=YbUExdEUjye5Mc/sp6sAj/9+fj4Yl1F6k5ptwMkAP1xQGXKw0/oSPjohP8knZVKc3R os4SKiSglAoyWC1PczMzi2P/xAbNdcMNpGtKkYxTtZqfM+9EVxLv3WVDTsFiP1Cf6jJn Tg/UZIlMAbLFjOGJfL+ijejdetWrJMsjE58s7p37PXZ6isqN+0ZgaSRLVxb8Fql35n80 IB3OS7aHGG/VTryvVQmG4jf2nTcifMgCUm9CRgyKWi9PAohHoN/N1nU8sSAU9576CHob z9TxbwIPwvXtIYW98Am2VClc+BPZsWW67v34mDwnxUODwRKDEHlWRUDYAATRfN/Ces21 S9gA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=J8OcL2igjAskSXad9xrzVVWdlH7GJvm1mWz0l8/dfzA=; b=rWpDodo0lHPkBJLhLA+M1o6p5KThwlYJaQJOsY62BS1aAgQdvUeFWBXYc9tIKgC+3z C/aNXRIeNDYhVDw1yVYHB0eHIGJHYyilrgS2aZpDj23S3NvoZXxdw4kNdHaA0IAUpW4k zZANyH7wdpC+rXYpQwCXn8jvTz7Grj6klOJ3Zwn0EC7jybMJPxQKRGsuhhbxgxP3DrAI 5Q2P8x8aBcebpZgrxvjpGGpKSbcJgAMLI/AKd4Ncq7Try/DS/39B+V1kk0xWgVeEIddE qoatYybSeJDOzlxQ0OX8cTOr3qCeOZLXIAJTu0Ubtgne8YwRjUh5dosEC89a6h/o3O3D IUWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qlW0UT0I; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e1si11032236ejf.3.2020.06.23.11.10.03; Tue, 23 Jun 2020 11:10:27 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qlW0UT0I; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387436AbgFWSJR (ORCPT + 99 others); Tue, 23 Jun 2020 14:09:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60186 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733214AbgFWSIq (ORCPT ); Tue, 23 Jun 2020 14:08:46 -0400 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 97359C061573; Tue, 23 Jun 2020 11:08:45 -0700 (PDT) Received: by mail-wm1-x336.google.com with SMTP id l17so3824532wmj.0; Tue, 23 Jun 2020 11:08:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=J8OcL2igjAskSXad9xrzVVWdlH7GJvm1mWz0l8/dfzA=; b=qlW0UT0INRLFF+18UA4WegQJDYUTYkGa2on8OgajVSza/LdEv0MWiQLmjbiZXiychi MZ0XwkY/FFJkgJXCubN2Lcmn8lrhgmBmyErSPqFD7telVRgLXQFHBSRNwGi4oepLFl1F oZH9WgVeI0xsT78HliB0EhzAp3l6NzZDOnIFl+iSQzBkjuZMpxyZn1YRb7o31c1W+yHJ TO1FzUfCQyz5YSOQ5AQyvPpyyxbfP3qLwX96ZMOWezf88JTykzysuhRYxsiqtkK0bfOL Z+SuRnEwSSD1bPcJ1UzE3Oxbt8/Z3fhj7NAe9Lq7Q4LLXlfgnWFGfQ3aazEiMpRcpurX qq0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=J8OcL2igjAskSXad9xrzVVWdlH7GJvm1mWz0l8/dfzA=; b=hte+FF7NIXcplGxu1F3+0w6pdRq2AZCJ7yhdtnu1gt66++gZUo8MgND81pC3ZVqZnu C1B1zfW8KijG57WbkfoVsbL6oFSwni7UXPqU4d/PHQHd+c9Gyu5/OLWC96Jb7MgDIvmt drcSkZf0oMwT7yhxNejzo6p0W7HoJvooVGeV11en8XuKT0RpEJINmhIHe0m2gSPZ7V3D hBfi+eGiCBXr9xnAp1pkUoSSJ50vj5Na+/ztYMOjA21Ormj+GCmEPyIbjt2Gkh0czwYo tcF0uX+H/gv0jdj2d9xC0YsTQDQEHj1SZ+2p4rMAl/AMprufaT1d+DSTaxKYk+mPJEQT 2gdw== X-Gm-Message-State: AOAM532OMm2ar+fEE1x6urQcrxESdrvIk8xKJPu9URv69Sx2LvuZNkSb 71iLOUhXHGYUnMkS5wFwvR4= X-Received: by 2002:a1c:96ce:: with SMTP id y197mr26789007wmd.55.1592935724369; Tue, 23 Jun 2020 11:08:44 -0700 (PDT) Received: from localhost.localdomain (abag196.neoplus.adsl.tpnet.pl. [83.6.170.196]) by smtp.googlemail.com with ESMTPSA id c16sm4719529wml.45.2020.06.23.11.08.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jun 2020 11:08:44 -0700 (PDT) From: Konrad Dybcio To: skrzynka@konradybcio.pl Cc: Konrad Dybcio , Andy Gross , Bjorn Andersson , Rob Herring , Amit Kucheria , Zhang Rui , Daniel Lezcano , Rajendra Nayak , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org Subject: [PATCH 3/8] arm64: dts: qcom: sdm630: Add tsens node Date: Tue, 23 Jun 2020 20:08:27 +0200 Message-Id: <20200623180832.254163-4-konradybcio@gmail.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200623180832.254163-1-konradybcio@gmail.com> References: <20200623180832.254163-1-konradybcio@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Enable tsens on this SoC using tsens-v2 driver. 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 d7be931b42d2..d89d5acd6e2a 100644 --- a/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml +++ b/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml @@ -39,6 +39,7 @@ properties: - qcom,msm8996-tsens - qcom,msm8998-tsens - qcom,sc7180-tsens + - qcom,sdm630-tsens - qcom,sdm845-tsens - const: qcom,tsens-v2 diff --git a/arch/arm64/boot/dts/qcom/sdm630.dtsi b/arch/arm64/boot/dts/qcom/sdm630.dtsi index ea85f28032d2..92bf4ae6a590 100644 --- a/arch/arm64/boot/dts/qcom/sdm630.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm630.dtsi @@ -566,6 +566,17 @@ anoc2_smmu: iommu@16c0000 { ; }; + 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.27.0