From patchwork Tue Nov 27 16:29:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 10700805 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4361E13BB for ; Tue, 27 Nov 2018 16:29:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 32C7D2B124 for ; Tue, 27 Nov 2018 16:29:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 243592C00A; Tue, 27 Nov 2018 16:29:34 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CACAA2B124 for ; Tue, 27 Nov 2018 16:29:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731089AbeK1D15 (ORCPT ); Tue, 27 Nov 2018 22:27:57 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:46856 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730937AbeK1D14 (ORCPT ); Tue, 27 Nov 2018 22:27:56 -0500 Received: by mail-wr1-f68.google.com with SMTP id l9so23330883wrt.13 for ; Tue, 27 Nov 2018 08:29:29 -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=s5zhkfCpfsrybfxA0ie5n6DnKn1jNcno8a7LLALW7fc=; b=W0aDCfqbcIPSRmcdsX12/LQ8Ufi7EHRGwNuS1GPizZ2EDJWTFmGyi8CLLkm2O6AgGE Bfd+uNsi373GPo7hZzoLEMBkn+Bxc2qZJupojzI+4wkqHuJ3UluyeUptT7sde5h3IQQm OG3lRm9v2lv36OEZ/zilPzUrU5hsC3kEkZMFM= 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=s5zhkfCpfsrybfxA0ie5n6DnKn1jNcno8a7LLALW7fc=; b=SaKzYTco4UTydoeVPcFICWw1kD1+Z+fcjjbHbjalDFq2qcodThzPviHxmZTpa9zg51 KTPz54jGBZ/LbGbEUipes6nVjL8o06rKobc3gKqlNEVj3oGkY0R9ssJ8C7O9+9HHoLG9 67LUU1Ie/Fv4n582+AKwOiobqQuIWw0kLx73Jqy485s2bAp3NpFdHke3tLqM1Uoqrwbr XKuWSGiRRhwNcySyXPQYKuCgv2dyrJOhk3+I5f6j2z9Z/pJbvVR3oGkR9ufAmOSEtvEh 5FcYRB4eAVXwde4wOd8I04KCTq7NeH5n02S6FNeXWAtM04454stISw2XxhCeAK/Y5skJ 7kzA== X-Gm-Message-State: AA+aEWat9fpFP0NcCclLg3RpKuPNozpS9hleSvRX/1B2mppFSqsMjkTX Nrq9OTUbpN8Aw0Ot+5toEYKxCg== X-Google-Smtp-Source: AFSGD/Ucl2mm18KEjRadHs4Hwt55+aXLBs5oOSf5T8G/iDRnlaD33gOPYUU6zQLAan4rSy94r4ExFg== X-Received: by 2002:adf:9422:: with SMTP id 31mr16736576wrq.106.1543336168929; Tue, 27 Nov 2018 08:29:28 -0800 (PST) Received: from localhost ([49.248.92.105]) by smtp.gmail.com with ESMTPSA id s139sm6736196wmd.3.2018.11.27.08.29.24 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 27 Nov 2018 08:29:28 -0800 (PST) From: Amit Kucheria To: linux-kernel@vger.kernel.org Cc: linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, edubezval@gmail.com, andy.gross@linaro.org, vkoul@kernel.org, khasim.mohammed@linaro.org, Zhang Rui , Daniel Lezcano , Rob Herring , Mark Rutland Subject: [PATCH v3 1/4] dt: thermal: tsens: Add bindings for qcs404 Date: Tue, 27 Nov 2018 21:59:04 +0530 Message-Id: X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Reviewed-by: Vinod Koul Tested-by: Vinod Koul --- Documentation/devicetree/bindings/thermal/qcom-tsens.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/thermal/qcom-tsens.txt b/Documentation/devicetree/bindings/thermal/qcom-tsens.txt index 1d9e8cf61018..799de3062352 100644 --- a/Documentation/devicetree/bindings/thermal/qcom-tsens.txt +++ b/Documentation/devicetree/bindings/thermal/qcom-tsens.txt @@ -8,9 +8,12 @@ Required properties: - "qcom,msm8996-tsens" (MSM8996) - "qcom,msm8998-tsens", "qcom,tsens-v2" (MSM8998) - "qcom,sdm845-tsens", "qcom,tsens-v2" (SDM845) + - "qcom,qcs404-tsens", "qcom,tsens-v1" (QCS404) 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