Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1615073ybh; Mon, 20 Jul 2020 02:56:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJySAgWFJ2dB87kQsJIdOVFbZdcaVoM/Ar0ojyYkjXK2DX9YCUWsk33RsmrlNfNO9U64rQeK X-Received: by 2002:a05:6402:b79:: with SMTP id cb25mr20115123edb.154.1595238981942; Mon, 20 Jul 2020 02:56:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595238981; cv=none; d=google.com; s=arc-20160816; b=BTN7tHcXwhkgnu7CvMFTyLncmdxYBg/o6pfBob/dX8mXIdmo8uR1hs3YiDulB/t/Xe OWj2xEB4/Qe+Aq4ZngpSJWmfOlpDi7L04xuuSEbxLyVdksFZF6/Vm+FwAKCc+LT1R9sk ngKFsjxwCRZiNUvBR1DAjjzT0rQO9lQ8rSE48nBuGZdL+/Vk+HXe1uKJAA9wSJUVR7T+ aqPDzFgMNHlmhRM2bWjz7WOh0M92bIKvkAuguJVm2E/0qPWdr2xG1nL9WQ09/hB0eeIM +PFMPn/tEgZdaTxXG8GrpEnOrdKTmbu1pTZ/nzVKDOe7ZRDcKtIprd/6MsS34flczuva /IEQ== 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 :in-reply-to:references:mime-version:dkim-signature; bh=czrhyEhEcs9KJspCOYLvyQfPnpci+2QYLOQ/WNW3lw4=; b=w2SIVCZBQbfFqPyPxboWJVfkB4peKHO5+w56uGlsfEN5ug5V8kJCgPXqkyARbcw3/s fBClpgjRN5gwO4NMCl/5SEiTWsYLqwQ2HblYkErg9rnNyE/pa6P0fyJ2BrjNzwUc6bgt luHmukKYpIIojhwJfQKCr0qdXKkU1TuDyppcy4TLEaz+rby8mKstatqP6bum5AqN0xix dnc+wYLV3Bx6h7lS8bNS4ccxz4oTLukTTfvpwWAYfRTtvtEI1Ovm33LoxLhL9gL53inc wET8mCKFYktq+wKZaZ3NgDKRZNT8cPrdcsCsjVk788yMFIrq3i+bou5+Wp4QeFuraE/c mjRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="CnrhO/P3"; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bd16si9935812edb.20.2020.07.20.02.55.58; Mon, 20 Jul 2020 02:56:21 -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=@linaro.org header.s=google header.b="CnrhO/P3"; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728367AbgGTJzh (ORCPT + 99 others); Mon, 20 Jul 2020 05:55:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42140 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728358AbgGTJzh (ORCPT ); Mon, 20 Jul 2020 05:55:37 -0400 Received: from mail-lj1-x242.google.com (mail-lj1-x242.google.com [IPv6:2a00:1450:4864:20::242]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 541E2C0619D6 for ; Mon, 20 Jul 2020 02:55:36 -0700 (PDT) Received: by mail-lj1-x242.google.com with SMTP id x9so19543267ljc.5 for ; Mon, 20 Jul 2020 02:55:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=czrhyEhEcs9KJspCOYLvyQfPnpci+2QYLOQ/WNW3lw4=; b=CnrhO/P3aw1bN3pJS1WTslSh7lPanYvbf976SXyyViWivKY8mGeZOxGF6spscG4a1b AzC35iSDUUSEX5QqQXDG0Dn9kVHODA7YLORPopS104iIUwrhm4qUSIeXG34qK/gSv1j1 6nDDcVHVm4Qevmn2gjv1NgsCxUBrPucPvzmBT+ANXqJJg8uR2YqBLZcOe31YPS+VIc52 g7bQNukOcKW6Y0Y3rbkmut/mg4YqJ80wmNtrVwNIL7xnw54V/5Xs/047iMhY9xpL/IN4 lgKMaFfPIwGh+Xvmo+bSS0jYrci3XSXT2JLA0dGTW24OD7cj94VHQeMoK0Ecq6E+cJSN HVsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=czrhyEhEcs9KJspCOYLvyQfPnpci+2QYLOQ/WNW3lw4=; b=gnhvg/0EuZxGiOxxXSyYuyjGF38/utTQXkq7atkcv6mdkAulDDP2sI+g/HZF5xy4Rv 0YQerXsB6yfspQj5GH9EM29sKJo6wFTFqy8ap92V9dSQL1PIzk7xRL4rGtjzsuHHv2VV UGIwmAbAPsgpxxsXeJjFr8Ctyn0E69+ifPQ8YzQyrjWYQO4KSW0ggIUJ9P51FYUuuUGf h2qSIee7BCUniL1j8uT/7HFdrOEjccbdKM5I1P3Ccu3tmJRkS1Qh1670S23YxW7il/Oz FNBq7VuWZ2uCnC92ivzv+5I+GjgjAgP8YGIJvQ/Nf3A9/6SdET+9kyCYorAUK0H7jIde oQfA== X-Gm-Message-State: AOAM531WOfV7aw8TyUURVDvTmVqeo/xH/GzZp7xZat485Y6FJnv7R4Vg gyPrbnLnJmCDdhVJAm7nUSqkWc+oAS9HGQErJLLXyQ== X-Received: by 2002:a2e:8855:: with SMTP id z21mr10483601ljj.325.1595238934491; Mon, 20 Jul 2020 02:55:34 -0700 (PDT) MIME-Version: 1.0 References: <20200716022817.30439-1-ansuelsmth@gmail.com> <20200716022817.30439-5-ansuelsmth@gmail.com> In-Reply-To: <20200716022817.30439-5-ansuelsmth@gmail.com> From: Amit Kucheria Date: Mon, 20 Jul 2020 15:25:23 +0530 Message-ID: Subject: Re: [PATCH v4 4/7] dt-bindings: thermal: tsens: document ipq8064 bindings To: Ansuel Smith Cc: Rob Herring , Andy Gross , Bjorn Andersson , Zhang Rui , Daniel Lezcano , Michael Turquette , Stephen Boyd , linux-arm-msm , Linux PM list , DTML , Linux Kernel Mailing List , linux-clk 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 Thu, Jul 16, 2020 at 7:58 AM Ansuel Smith wrote: > > Document the use of bindings used for ipq8064 SoCs tsens. > ipq8064 use the same gcc regs and is set as a child of the qcom gcc. > > Signed-off-by: Ansuel Smith > --- > .../bindings/thermal/qcom-tsens.yaml | 50 ++++++++++++++++--- > 1 file changed, 43 insertions(+), 7 deletions(-) > > diff --git a/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml b/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml > index d7be931b42d2..9d480e3943a2 100644 > --- a/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml > +++ b/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml > @@ -19,6 +19,11 @@ description: | > properties: > compatible: > oneOf: > + - description: msm9860 TSENS based Another variant of the number here: I've seen 8960, 8064 (correct) and 8060, 9860 (wrong) so far. Just use 8960 throughout this series and then add a new patch at the end of the series for a compatible for ipq8064. > + items: > + - enum: > + - qcom,ipq8064-tsens > + > - description: v0.1 of TSENS > items: > - enum: > @@ -85,12 +90,18 @@ properties: > Number of cells required to uniquely identify the thermal sensors. Since > we have multiple sensors this is set to 1 > > +required: > + - compatible > + - interrupts > + - "#thermal-sensor-cells" > + > allOf: > - if: > properties: > compatible: > contains: > enum: > + - qcom,ipq8064-tsens > - qcom,msm8916-tsens > - qcom,msm8974-tsens > - qcom,msm8976-tsens > @@ -111,17 +122,42 @@ allOf: > interrupt-names: > minItems: 2 > > -required: > - - compatible > - - reg > - - "#qcom,sensors" > - - interrupts > - - interrupt-names > - - "#thermal-sensor-cells" > + - if: > + properties: > + compatible: > + contains: > + enum: > + - qcom,tsens-v0_1 > + - qcom,tsens-v1 > + - qcom,tsens-v2 > + > + then: > + required: > + - reg > + - interrupt-names > + - "#qcom,sensors" > > additionalProperties: false > > examples: > + - | > + #include > + // Example msm9860 based SoC (ipq8064): > + gcc: clock-controller { > + > + /* ... */ > + > + tsens: thermal-sensor { > + compatible = "qcom,ipq8064-tsens"; > + > + nvmem-cells = <&tsens_calib>, <&tsens_calsel>; > + nvmem-cell-names = "calib", "calib_sel"; > + interrupts = ; > + > + #thermal-sensor-cells = <1>; > + }; > + }; > + > - | > #include > // Example 1 (legacy: for pre v1 IP): > -- > 2.27.0 >