Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1047007imm; Wed, 4 Jul 2018 10:28:03 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfcBgdkQWC0x4Bd5jppfYGqg6m2wUjzwjrND0dOJw0s5KvdyU+uiSqQj5KAQJ4ds6N3oxPQ X-Received: by 2002:a17:902:1023:: with SMTP id b32-v6mr2991507pla.145.1530725283633; Wed, 04 Jul 2018 10:28:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530725283; cv=none; d=google.com; s=arc-20160816; b=bt/fX+3s4FGD5nxVChs/gi81KseSO6o2oI/2Fqa/1GuFBxFa57dFwoPbgLTcUf6JQO CHbOqNMELhY3V0/jnKyJTFxPV5Md/54ayyw03GJRAk4+NbGL2ajveagpmHPhMzVIQsXl mZgJk544jt50L35ViTDlgbzFgdBC/wn0zXJp2EUk+o0k1nZkSgviYWKQV/ppY73y6vjD jSGOIUQbtVacRvIsqw+gshcTRuMi+6GKdTIVF0nXQr1eHUwXZ0ratSE6A9Ix8QuJT+0v aILLqe0M4rHUAci8kgGjvL7NE/qMNjQ/3DhtebK5UCSdTGG4qANl97tHg5Jp+XOb8MtX YNqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature:dkim-signature :arc-authentication-results; bh=pJvdtml0ozgf2W4NRn1dD3GM0OzcZz/gFbRC2rb9k80=; b=Pb/cKSJvsds/BisdrqWJbPQ0CYv0RvrAgvDzVLkiwZx0J9/lg/YQGf6Te935IU2gcu HGYtodif6/+IHJeU9GtJ/yFugXJUq+hp7nUdaCUgSe40DDYJSaFkKjoSswBTQkBjmERW 1dN6ne+jYZj8HIoct/F7vF7rIE+Nba4iGvJITAr50ugHIus3YZ5VQcT6YEKQLpkBeu6J h+lRZ5rvGbG9wzgYEYsO5lPNmsTEI5lct3ShmvxAepADVspzECoyg60yMc5HBByY1NGu T4F9GvW4YCh8S7j/JmXzSY1Fd+YZMgYDvjb5GUbIm5fjNZriPmB5CTQvLxpCMYOTrC/8 HDTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@verdurent-com.20150623.gappssmtp.com header.s=20150623 header.b=jfJxgBIi; dkim=fail header.i=@linaro.org header.s=google header.b=R3KAd9DP; 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=fail (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 e20-v6si4440169pfm.177.2018.07.04.10.27.49; Wed, 04 Jul 2018 10:28:03 -0700 (PDT) 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=fail header.i=@verdurent-com.20150623.gappssmtp.com header.s=20150623 header.b=jfJxgBIi; dkim=fail header.i=@linaro.org header.s=google header.b=R3KAd9DP; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753029AbeGDR0a (ORCPT + 99 others); Wed, 4 Jul 2018 13:26:30 -0400 Received: from mail-oi0-f66.google.com ([209.85.218.66]:41474 "EHLO mail-oi0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752567AbeGDR02 (ORCPT ); Wed, 4 Jul 2018 13:26:28 -0400 Received: by mail-oi0-f66.google.com with SMTP id k12-v6so11983950oiw.8 for ; Wed, 04 Jul 2018 10:26:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=verdurent-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=pJvdtml0ozgf2W4NRn1dD3GM0OzcZz/gFbRC2rb9k80=; b=jfJxgBIitkLhsXycBb/RRygvXFVEvmfGeyB0l4Xp3AsPXY8JR4L1tYAWK4hfpLo1JW /oAvHCfjyG+EPomahwzvZsuLVWSJXUEvctjP9Kvh2H/GhSYpdmHmaDadirVpAEuh95/4 Ttvz0VPogMwRevDZ4yW5zjGh6YrYBDw63eK8lwj32RFdHo9z1fSVX+pCJvv9IIgntZ3K Pr1vxr8iC6t3j/SqSDSntYAUjWQ99bVeZLY3vXGqwcpeAeQsn2SpfCYy0oD0n0qRRipi wxYrfr2Vi319kW7QCLaUtEe+VIQ+hMEyYcYg211D1szeYS8vajnBfbZf7/Qyd/ZmQZy4 ELLg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=pJvdtml0ozgf2W4NRn1dD3GM0OzcZz/gFbRC2rb9k80=; b=R3KAd9DPwmu9JZE+8yv4FUemV51MedVcktyxbNzYfRkcnqBh7Dk1dU4A3AtfNd2oSG GcFeva72XedL/pDJ2g6+ox71fXn8KnDQArNdJVSAikvdTXoDRmw2oZiZ2c4yLjjpLXNq eZ+SbXI920C1KLoLPG4o9CmJ2SkKVJhLs/Xjg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=pJvdtml0ozgf2W4NRn1dD3GM0OzcZz/gFbRC2rb9k80=; b=o4sczKyfQJyiNapRLGfhxRayjCFQggWr5A38qDTIGi/wLWWIEOyUvuYsx1nLCpM6cg C96kyF1eC52Ky1dHzMwHppLhIHKsTfB86qICqDID/dXS4y0FXV8OLKl/2pnbr9zWMjGl Aq8odQiYwDBOfeChZo0iPild3k3HZZnqe7ECu42jZxO0585m+cytASWazkL0klEr0gDV 6Aol+SkopwMlJyOVhdMSHTGLQ2kx6C8YaxPZB/ETm8/d0v6pC2MXYRkUOvL6hNVl0CUK +8jBBXUm7kSi78MHaHo1DmeV7ZqzIwOv5n5eKSo8UNcqtiTdToJpEMlgtcB4uvzw+RY6 FzuQ== X-Gm-Message-State: APt69E2a7n8n6y8cfgOQs2SCi6pfMTO//m1ppDRciy6Mnf7Pl7f8NhVp 1D1O+5wHhjV178qU0zel+JAyq06ZhC8vsPJEClR8Gg== X-Received: by 2002:aca:abd2:: with SMTP id u201-v6mr2982546oie.171.1530725187474; Wed, 04 Jul 2018 10:26:27 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a4a:3745:0:0:0:0:0 with HTTP; Wed, 4 Jul 2018 10:26:26 -0700 (PDT) In-Reply-To: <20180703162619.GA17238@rob-hp-laptop> References: <43e3ae530334efab3fa0151430879f03731e9daa.1530533998.git.amit.kucheria@linaro.org> <20180703162619.GA17238@rob-hp-laptop> From: Amit Kucheria Date: Wed, 4 Jul 2018 22:56:26 +0530 X-Google-Sender-Auth: KV4o-bLX7gG5w0Rrx5mIXodbJIc Message-ID: Subject: Re: [PATCH v4 4/6] thermal: tsens: Add support for SDM845 To: Rob Herring Cc: LKML , Rajendra Nayak , linux-arm-msm , Bjorn Andersson , Eduardo Valentin , smohanad@codeaurora.org, Vivek Gautam , Andy Gross , Zhang Rui , Mark Rutland , Kees Cook , Linux PM list , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 3, 2018 at 9:56 PM, Rob Herring wrote: > On Mon, Jul 02, 2018 at 06:14:07PM +0530, Amit Kucheria wrote: >> SDM845 uses v2.4.0 of the TSENS IP block but the get_temp() function >> appears to be identical across v2.x.y in code seen so far. We use the >> generic get_temp() function. >> >> Signed-off-by: Amit Kucheria >> --- >> Documentation/devicetree/bindings/thermal/qcom-tsens.txt | 2 ++ >> drivers/thermal/qcom/tsens-v2.c | 6 +++++- >> drivers/thermal/qcom/tsens.c | 6 ++++++ >> drivers/thermal/qcom/tsens.h | 5 ++++- >> 4 files changed, 17 insertions(+), 2 deletions(-) >> >> diff --git a/Documentation/devicetree/bindings/thermal/qcom-tsens.txt b/Documentation/devicetree/bindings/thermal/qcom-tsens.txt >> index 06195e8..075182e 100644 >> --- a/Documentation/devicetree/bindings/thermal/qcom-tsens.txt >> +++ b/Documentation/devicetree/bindings/thermal/qcom-tsens.txt >> @@ -5,6 +5,8 @@ Required properties: >> - "qcom,msm8916-tsens" : For 8916 Family of SoCs >> - "qcom,msm8974-tsens" : For 8974 Family of SoCs >> - "qcom,msm8996-tsens" : For 8996 Family of SoCs >> + - "qcom,tsens-v2.4.0" : For SDM845 Family of SoCs >> + - "qcom,tsens-v2" : Generic fallback binding for any Soc using 2.x.y version of the tsens IP > > You need to show what are valid combinations of compatibles. Does v2 > apply to 8996? One valid combination per line. I've restructured qcom-tsens.txt to look like this: -----%<------- * QCOM SoC Temperature Sensor (TSENS) Required properties: - compatible: must be one of the following: - "qcom,msm8916-tsens" (MSM8916) - "qcom,msm8974-tsens" (MSM8974) - "qcom,msm8996-tsens" (MSM8996) - "qcom,tsens-", "qcom,tsens-v2" (TSENS IP version and a generic v2 property as fallback except for MSM8996) Examples with ip_version are: - "qcom,tsens-v2.4.0", "qcom,tsens-v2" (SDM845) - "qcom,tsens-v2.2.1", "qcom,tsens-v2" (MSM8998) -----%<------- 8996 would end up being something like this if needed, though we're stuck with "qcom,msm8996-tsens": "qcom,msm8996-tsens", "qcom,tsens-v2.1.0", "qcom,tsens-v2" (MSM8996) If this looks good, I'll respin the patches. Regards, Amit