From patchwork Wed Feb 26 09:31:11 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 190218 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.9 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 80849C4BA0B for ; Wed, 26 Feb 2020 11:58:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 53CE224656 for ; Wed, 26 Feb 2020 11:58:20 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="YCRaNKiq" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726682AbgBZL6T (ORCPT ); Wed, 26 Feb 2020 06:58:19 -0500 Received: from mail-pj1-f45.google.com ([209.85.216.45]:38674 "EHLO mail-pj1-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726408AbgBZL6Q (ORCPT ); Wed, 26 Feb 2020 06:58:16 -0500 Received: by mail-pj1-f45.google.com with SMTP id j17so1184362pjz.3 for ; Wed, 26 Feb 2020 03:58:14 -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 :mime-version:content-transfer-encoding; bh=L0WGdBs/BRtkbt1VGWWlFtU3iVs0rs7BsxsJ0Z9JuEQ=; b=YCRaNKiqn8A6Ik8MNA4or/RUYmxDGYg7Azq43QnTOJb072o2gSUC84849DJoU7dHOm WfN5tLjxAyIX09+yR7aMwjmJPfKFFRYkysEP9rvaOAKIqEhnbhyaq1Z/vowEHjvHhaGC t4VtIAfon1DKKlndFkHRz4m+MBoI9oxe2bED6/awfDrQirFtVq2cy/poGHivHfOl+2Nj jYXyRc8CIAWZT8qRg8D7axN1a5+BZQQjz1gpfenmbd8S6vrSioPC11UFutbt2XMaG4Eh TYwAGwwQwOdcVjeXjJm/0Kp8E+uuZ6Niau/yZhrVhWSllyjvtz4+aI2sA85AenDAQUjQ /WkQ== 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=L0WGdBs/BRtkbt1VGWWlFtU3iVs0rs7BsxsJ0Z9JuEQ=; b=tEkMAFPJATHVjRJ3knDaSQSiGxvqqi+bWI/d7engwohWIA+yHOi9PEAS1WLjHUDaoe G7kcgO7LqKPZ77FZyj2d/iUB+rqYU4bJURq6ik2TElcliCvf3qAw1R7BAGjTMBKaEuf8 8bhaY/mcXU8C+l7plOLHGEHsdI8Eha6IYHADzFkpl1R4PgRU7hcCR0ewQdYMSTyhocp5 ZFzgceiV8PZQrKg7r5RZM+W4rrS+UvGdPzMof2BJjW3tmvsl0aSYZRnhlYL60pc/Gm36 4eiSIZ1NtBI5D7Gp8lATrppqbrV0aM9uQ2rEO6T8F3imRe1yu5rDHDFoUxLWWMBOFqH+ XPBA== X-Gm-Message-State: APjAAAUWNqHWzjG4JuxkMjW7m6kHAJcpXe7vaTDFhmtPI5Bq6HylTZdA FuznI7l07EsMcTEEYEf6UGfjfw== X-Google-Smtp-Source: APXvYqyx1/PM5idU+c0uhvRnjfHFpRh/gIAwi9fme8XqqGmGzyeCZiRiVeTdSTowiPjOjVGSFItaxQ== X-Received: by 2002:a17:90a:a406:: with SMTP id y6mr4996011pjp.115.1582718293538; Wed, 26 Feb 2020 03:58:13 -0800 (PST) Received: from localhost ([2401:4900:1b38:7f42:3530:df3:7e53:a029]) by smtp.gmail.com with ESMTPSA id s206sm2946912pfs.100.2020.02.26.03.58.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Feb 2020 03:58:12 -0800 (PST) From: Amit Kucheria To: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, vkoul@kernel.org, daniel.lezcano@linaro.org, bjorn.andersson@linaro.org, sivaa@codeaurora.org, Andy Gross , Zhang Rui Cc: Amit Kucheria , linux-pm@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v3 1/3] dt-bindings: thermal: tsens: Add entry for sc7180 tsens to binding Date: Wed, 26 Feb 2020 15:01:11 +0530 Message-Id: <8309e39737c480b0835454cbc6db345c5a27ecd4.1582705101.git.amit.kucheria@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The qcom-tsens binding requires a SoC-specific and a TSENS family-specific binding to be specified in the compatible string. Since qcom,sc7180-tsens is not listed in the YAML binding, we see the following warnings in 'make dtbs_check'. Fix them. builds/arch/arm64/boot/dts/qcom/sc7180-idp.dt.yaml: thermal-sensor@c263000: compatible: ['qcom,sc7180-tsens', 'qcom,tsens-v2'] is not valid under any of the given schemas (Possible causes of the failure): builds/arch/arm64/boot/dts/qcom/sc7180-idp.dt.yaml: thermal-sensor@c263000: compatible:0: 'qcom,sc7180-tsens' is not one of ['qcom,msm8916-tsens', 'qcom,msm8974-tsens'] builds/arch/arm64/boot/dts/qcom/sc7180-idp.dt.yaml: thermal-sensor@c263000: compatible:0: 'qcom,sc7180-tsens' is not one of ['qcom,msm8976-tsens', 'qcom,qcs404-tsens'] builds/arch/arm64/boot/dts/qcom/sc7180-idp.dt.yaml: thermal-sensor@c263000: compatible:0: 'qcom,sc7180-tsens' is not one of ['qcom,msm8996-tsens', 'qcom,msm8998-tsens', 'qcom,sdm845-tsens'] builds/arch/arm64/boot/dts/qcom/sc7180-idp.dt.yaml: thermal-sensor@c263000: compatible:1: 'qcom,tsens-v0_1' was expected builds/arch/arm64/boot/dts/qcom/sc7180-idp.dt.yaml: thermal-sensor@c263000: compatible:1: 'qcom,tsens-v1' was expected builds/arch/arm64/boot/dts/qcom/sc7180-idp.dt.yaml: thermal-sensor@c265000: compatible: ['qcom,sc7180-tsens', 'qcom,tsens-v2'] is not valid under any of the given schemas (Possible causes of the failure): builds/arch/arm64/boot/dts/qcom/sc7180-idp.dt.yaml: thermal-sensor@c265000: compatible:0: 'qcom,sc7180-tsens' is not one of ['qcom,msm8916-tsens', 'qcom,msm8974-tsens'] builds/arch/arm64/boot/dts/qcom/sc7180-idp.dt.yaml: thermal-sensor@c265000: compatible:0: 'qcom,sc7180-tsens' is not one of ['qcom,msm8976-tsens', 'qcom,qcs404-tsens'] builds/arch/arm64/boot/dts/qcom/sc7180-idp.dt.yaml: thermal-sensor@c265000: compatible:0: 'qcom,sc7180-tsens' is not one of ['qcom,msm8996-tsens', 'qcom,msm8998-tsens', 'qcom,sdm845-tsens'] builds/arch/arm64/boot/dts/qcom/sc7180-idp.dt.yaml: thermal-sensor@c265000: compatible:1: 'qcom,tsens-v0_1' was expected builds/arch/arm64/boot/dts/qcom/sc7180-idp.dt.yaml: thermal-sensor@c265000: compatible:1: 'qcom,tsens-v1' was expected Signed-off-by: Amit Kucheria Reviewed-by: Vinod Koul --- Documentation/devicetree/bindings/thermal/qcom-tsens.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml b/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml index eef13b9446a8..13e294328932 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,sdm845-tsens + - qcom,sc7180-tsens - const: qcom,tsens-v2 reg: From patchwork Wed Feb 26 09:31:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 190217 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.9 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 86E2CC4BA0B for ; Wed, 26 Feb 2020 11:58:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5A81D24684 for ; Wed, 26 Feb 2020 11:58:26 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="FtHw7wnt" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726891AbgBZL6Z (ORCPT ); Wed, 26 Feb 2020 06:58:25 -0500 Received: from mail-pf1-f173.google.com ([209.85.210.173]:35256 "EHLO mail-pf1-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726822AbgBZL6Z (ORCPT ); Wed, 26 Feb 2020 06:58:25 -0500 Received: by mail-pf1-f173.google.com with SMTP id i19so1361538pfa.2 for ; Wed, 26 Feb 2020 03:58:24 -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 :mime-version:content-transfer-encoding; bh=+p6H2ZNLGX3Lb58Cw5KgycQ+ehTxEdhQmQiKBPEVO+U=; b=FtHw7wntugTsPmJA8Hv3zkGUse9AWcGVV8zfyXX1B0JrMASYVUKJakSuXEn1KrB/Pt QIJPr2O0Db6sMohzyf4Gk4QUWD+CRjxabGbVkiPvunYbGWjEWNad+6L8k3MGD6rPIzeg crg5ft/qyvJbZXcpAL8TjXfOurxwlVVEEKwYbD/7h/MDXb14KLx2HFo4j06Y0BUKMg2u nbPImhLQkdKGl91GVn+9aTwGlss+u2DuzQeOi/3j+kw32pQmUaJv88hrUaQha80g1+H6 Ez7IWRDcccSudwp3zpclmLEeKUTmJf0mZrlGSCnykgJl6Lv7vcQNmZKd+Zwx19ATFELr WGFA== 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=+p6H2ZNLGX3Lb58Cw5KgycQ+ehTxEdhQmQiKBPEVO+U=; b=D0KCpT/xt6k5NK9jeK/aqjUuMN3spgZgLlaerxMi8awO67OXMaEmW/+jP+rrOHWSOy fbDJSuxUnKXG7o1h6PXH/PnK4YbbaohMCBfrYlT5XW5yi1U+oievF8/avpehj2lviiNX p8w+Sl10Cr2hxecwvuGtIh0cncdncMdAop0GpqU6W0C+g7rSsLWlP2MmWRr5lcrnuj7V xoxirugq34VRjzM1Bd7rNj3FTYmM7hu686wDNWb9ynfYS5RfuSJPxUj6ru/RAvHeGw/W 4bZhRrP8pqTU08qzkYZ7BvkLAcUCC98RBdXiBrR2XGN5XZvmfoY0JK2OLqRZoiiAcUMy HLMQ== X-Gm-Message-State: APjAAAVJGkChEbp/G9LmLAv8UOtC/9k/dAemh5dZj4zRdpW+meS3hkLt DKMT9UOrcQuBOnlqn9prAEMrLg== X-Google-Smtp-Source: APXvYqywc/mWcONmOZQDx7IkryRxv4cAGf6uuMuuBdzU/6cdnFQDr+fm+1zRmkgIXjTHYcL43CXdfA== X-Received: by 2002:a63:5423:: with SMTP id i35mr3544009pgb.179.1582718303501; Wed, 26 Feb 2020 03:58:23 -0800 (PST) Received: from localhost ([2401:4900:1b38:7f42:3530:df3:7e53:a029]) by smtp.gmail.com with ESMTPSA id c188sm2893557pfb.151.2020.02.26.03.58.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Feb 2020 03:58:22 -0800 (PST) From: Amit Kucheria To: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, vkoul@kernel.org, daniel.lezcano@linaro.org, bjorn.andersson@linaro.org, sivaa@codeaurora.org, Andy Gross , Zhang Rui Cc: devicetree@vger.kernel.org Subject: [PATCH v3 3/3] dt-bindings: thermal: tsens: Add qcom, tsens-v2 to msm8996.dtsi compatible Date: Wed, 26 Feb 2020 15:01:13 +0530 Message-Id: <4e337c4a4194bb15f9efec67821f38504de1704c.1582705101.git.amit.kucheria@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The qcom-tsens binding requires a SoC-specific and a TSENS family-specific binding to be specified in the compatible string. Since them family-specific binding is not listed in the .dtsi file, we see the following warnings in 'make dtbs_check'. Fix them. /home/amit/work/builds/build-aarch64/arch/arm64/boot/dts/qcom/msm8996-mtp.dt.yaml: thermal-sensor@4a9000: compatible: ['qcom,msm8996-tsens'] is not valid under any of the given schemas (Possible causes of the failure): /home/amit/work/builds/build-aarch64/arch/arm64/boot/dts/qcom/msm8996-mtp.dt.yaml: thermal-sensor@4a9000: compatible: ['qcom,msm8996-tsens'] is too short /home/amit/work/builds/build-aarch64/arch/arm64/boot/dts/qcom/msm8996-mtp.dt.yaml: thermal-sensor@4a9000: compatible:0: 'qcom,msm8996-tsens' is not one of ['qcom,msm8916-tsens', 'qcom,msm8974-tsens'] /home/amit/work/builds/build-aarch64/arch/arm64/boot/dts/qcom/msm8996-mtp.dt.yaml: thermal-sensor@4a9000: compatible:0: 'qcom,msm8996-tsens' is not one of ['qcom,msm8976-tsens', 'qcom,qcs404-tsens'] /home/amit/work/builds/build-aarch64/arch/arm64/boot/dts/qcom/msm8996-mtp.dt.yaml: thermal-sensor@4ad000: compatible: ['qcom,msm8996-tsens'] is not valid under any of the given schemas (Possible causes of the failure): /home/amit/work/builds/build-aarch64/arch/arm64/boot/dts/qcom/msm8996-mtp.dt.yaml: thermal-sensor@4ad000: compatible: ['qcom,msm8996-tsens'] is too short /home/amit/work/builds/build-aarch64/arch/arm64/boot/dts/qcom/msm8996-mtp.dt.yaml: thermal-sensor@4ad000: compatible:0: 'qcom,msm8996-tsens' is not one of ['qcom,msm8916-tsens', 'qcom,msm8974-tsens'] /home/amit/work/builds/build-aarch64/arch/arm64/boot/dts/qcom/msm8996-mtp.dt.yaml: thermal-sensor@4ad000: compatible:0: 'qcom,msm8996-tsens' is not one of ['qcom,msm8976-tsens', 'qcom,qcs404-tsens'] Signed-off-by: Amit Kucheria Reviewed-by: Vinod Koul --- arch/arm64/boot/dts/qcom/msm8996.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/boot/dts/qcom/msm8996.dtsi index 7ae082ea14ea..f157cd4f53b4 100644 --- a/arch/arm64/boot/dts/qcom/msm8996.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8996.dtsi @@ -446,7 +446,7 @@ }; tsens0: thermal-sensor@4a9000 { - compatible = "qcom,msm8996-tsens"; + compatible = "qcom,msm8996-tsens", "qcom,tsens-v2"; reg = <0x004a9000 0x1000>, /* TM */ <0x004a8000 0x1000>; /* SROT */ #qcom,sensors = <13>; @@ -457,7 +457,7 @@ }; tsens1: thermal-sensor@4ad000 { - compatible = "qcom,msm8996-tsens"; + compatible = "qcom,msm8996-tsens", "qcom,tsens-v2"; reg = <0x004ad000 0x1000>, /* TM */ <0x004ac000 0x1000>; /* SROT */ #qcom,sensors = <8>;