Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp318799imj; Thu, 7 Feb 2019 04:58:35 -0800 (PST) X-Google-Smtp-Source: AHgI3IaLYVcHUMrI6BTVWkEdYlS0QizzkIvYeWFUZGojnisQMFiD/Ut8avXiHA1zM7ylbYxvPS8u X-Received: by 2002:a17:902:7c8a:: with SMTP id y10mr15935691pll.71.1549544315499; Thu, 07 Feb 2019 04:58:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549544315; cv=none; d=google.com; s=arc-20160816; b=zx30t+7nVkflWHuiZBGoxfwQPMF5SxwbmttisO1Z+EI1jyEMDihZMtZvZE047nVAy9 pv73yI47kfA3s6HtQD3mOovX1eBhJx90ppP7zD8ltLNCj76UQuhm9gStJoGjU3EHA7Ij xFfkljp/Ogl/1LXcvugMMZRePW1uvonhM0VeikVr6MOeAU/r/FaBOU6IYdwjbfJRkoq5 75eKuOBsiy55WiyPAKoYkxG0YYaQG7BWotyC/9CUqBtpKKHz/7He3hMjN8TqqSWTYc1r 95jKIu2q+2aOo6Ns3lwsve5e0Qcl6gydxXRXHvjFlmw0UxMxBpLlV/q7Huznk0XCDLuL D8vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=weNMC1WOncVzrjA84l2O07eMcZ540Q8KJY50toWf3Z8=; b=uRzjxSSfQVPizuwWnLKNHGTJK/N+7YAfTO037KwWVcovqfp9aO8I0LpIG8j5xLhW5X cx3TRqMpNysp8mjvpiPATasTnbo74Gemq1YAuACYj2v/C6lE3H+CMtmdih7wMcr4bXYp vTSuMF6OiTaJjznU+uHJhEpvtn+fb2yDPuBaLZUSSqeERhLdzC5XKQXkHgC31ifkeoUP q0woGJ+PWZ80LLo/7/D87oDLv7voXPuN3UvO/wKEvKd/IF0TLu27woErKfwpj9AItbIi IWb9CKfS2P8wOSTgpvOvoPQS14VWXiEHResO+X72xHw4QqaBq3TFx+Tt1eNiU95/DxlU KuDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cUcYK4rC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r27si8763991pgl.494.2019.02.07.04.58.20; Thu, 07 Feb 2019 04:58:35 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cUcYK4rC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727407AbfBGM5T (ORCPT + 99 others); Thu, 7 Feb 2019 07:57:19 -0500 Received: from mail-pf1-f194.google.com ([209.85.210.194]:46034 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727391AbfBGM5R (ORCPT ); Thu, 7 Feb 2019 07:57:17 -0500 Received: by mail-pf1-f194.google.com with SMTP id j3so2595193pfi.12 for ; Thu, 07 Feb 2019 04:57:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=weNMC1WOncVzrjA84l2O07eMcZ540Q8KJY50toWf3Z8=; b=cUcYK4rCNJFDiEGFjIMegVOFyeAXH42gm+HBUQUYfnP0NK+CEDN/WuiyjKGFlJTxkb L448RL2WEo3FdpcmRgEqXZ4vVw/T/88S2+LBLuYEmZJEVXo6rauTfiqt/+0Ei7uMYnYH 354o8YG0vPqGFfzrSOWm/zxBarnbn0Umv+9o2PUkcBjxZtItSkE1EllvCHpy6GS5Cn83 kmstKiUmEWFM8oOMH+OZI8ks9y1icZLmD6v8S4RKQmUCwtzW0JnsdCJqGkqGoWuGToUP aEi1rpDiV4zDwu0K+9+LFjW/nK5LeMhnzijHsZbbzoVGir1aNdyPQg0SbJOr7H8aJC4j NeUg== 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:in-reply-to:references; bh=weNMC1WOncVzrjA84l2O07eMcZ540Q8KJY50toWf3Z8=; b=ogrxvVj7e2aMFEhj7GDklG7LeEhQQAfqjl36ISIEcznGsEa0RSUG3GixCdbyA/C1ar TfgeUqbrbwUQOIfsBfE5S0avz9wu6XBCmnmntMQJ9n8goUo8SHIp98i/OSbMhqRLFwoF w4shkSWpkBbvjeuTLz6Fbh3TJr3cUzB46QUCXl0PlqOI/S61N/bv4b0XRTu1On384ySh ssCst3/ReHNCiqZy9YjQkJFLUEM43uNG6WFI0iCn24d5fur+rW9sgC+hPRhJCHDJI4i2 nzTGmC5lHC3nihg6qIOIsfRU5Zt4u5Vf6p/WRGzghuKFkQAw59K4BPT7H4qPqkpLm9zc rdsA== X-Gm-Message-State: AHQUAuY9gkJEtX0JqPl8tTnJ9Z5xTProZjhraYM9tA8WmZPTzzu/vezu hRa/0uVUU52njYhdjbkQWuibrzxEES0= X-Received: by 2002:a62:4549:: with SMTP id s70mr15873687pfa.233.1549544236077; Thu, 07 Feb 2019 04:57:16 -0800 (PST) Received: from localhost ([2402:3a80:c80:4138:75dd:3900:1d90:762f]) by smtp.gmail.com with ESMTPSA id r6sm13488289pgk.91.2019.02.07.04.57.14 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 07 Feb 2019 04:57:15 -0800 (PST) From: Amit Kucheria To: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, edubezval@gmail.com, andy.gross@linaro.org, Daniel Lezcano , David Brown , Zhang Rui Cc: linux-pm@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v1 20/24] dt: thermal: tsens: Add bindings for qcs404 Date: Thu, 7 Feb 2019 16:19:38 +0530 Message-Id: <3f5a9282e815d2244b633a65e126494d23c16a7a.1549525708.git.amit.kucheria@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org qcs404 uses v1 of the TSENS IP block. Create a fallback DT property "qcom,tsens-v1" to gather common code Signed-off-by: Amit Kucheria --- .../devicetree/bindings/thermal/qcom-tsens.txt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Documentation/devicetree/bindings/thermal/qcom-tsens.txt b/Documentation/devicetree/bindings/thermal/qcom-tsens.txt index 1d9e8cf61018..673cc1831ee9 100644 --- a/Documentation/devicetree/bindings/thermal/qcom-tsens.txt +++ b/Documentation/devicetree/bindings/thermal/qcom-tsens.txt @@ -6,11 +6,14 @@ Required properties: - "qcom,msm8916-tsens" (MSM8916) - "qcom,msm8974-tsens" (MSM8974) - "qcom,msm8996-tsens" (MSM8996) + - "qcom,qcs404-tsens", "qcom,tsens-v1" (QCS404) - "qcom,msm8998-tsens", "qcom,tsens-v2" (MSM8998) - "qcom,sdm845-tsens", "qcom,tsens-v2" (SDM845) The generic "qcom,tsens-v2" property must be used as a fallback for any SoC with version 2 of the TSENS IP. MSM8996 is the only exception because the generic property did not exist when support was added. + Similarly, the generic "qcom,tsens-v1" property must be used as a fallback for + any SoC with version 1 of the TSENS IP. - reg: Address range of the thermal registers. New platforms containing v2.x.y of the TSENS IP must specify the SROT and TM @@ -39,3 +42,14 @@ tsens0: thermal-sensor@c263000 { #qcom,sensors = <13>; #thermal-sensor-cells = <1>; }; + +Example 3 (for any platform containing v1 of the TSENS IP): +tsens: thermal-sensor@4a9000 { + compatible = "qcom,qcs404-tsens", "qcom,tsens-v1"; + reg = <0x004a9000 0x1000>, /* TM */ + <0x004a8000 0x1000>; /* SROT */ + nvmem-cells = <&tsens_caldata>; + nvmem-cell-names = "calib"; + #qcom,sensors = <10>; + #thermal-sensor-cells = <1>; + }; -- 2.17.1