From patchwork Sun Aug 28 08:43:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 600902 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7715EECAAD2 for ; Sun, 28 Aug 2022 08:44:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234059AbiH1Io4 (ORCPT ); Sun, 28 Aug 2022 04:44:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51768 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233778AbiH1Io0 (ORCPT ); Sun, 28 Aug 2022 04:44:26 -0400 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E55C82F038 for ; Sun, 28 Aug 2022 01:44:03 -0700 (PDT) Received: by mail-lf1-x12a.google.com with SMTP id d23so7340544lfl.13 for ; Sun, 28 Aug 2022 01:44:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=75ciJJEb0fjQQAUZH+zRMedVcWRRAgKZoJmNIvnx7Ts=; b=mNpdriymM/xZ3/9ht8WqMck8iiOidkaMGTIesyWAq/ZRL7SwUvb6gzV+63k8OZyY+M Q+FiXtYQHfGfAXECwObeYBRZpZ21u9PJI9UYEK4FwYCGOqMq990dtNYbWbkNwBaMStl7 DI3kqBAc1Gb1gE/1F0kZFfIv3UKBxHmgA7KOA2kOmiMteORvV+/2Uv3o5qTOaZRZ0vXv r0ecyGNVqOE5IycipcrQLjYY1therN4v+a84IYi6zqAqVO2RcVcckVEyHDSl2wE8/2y3 cAcHvextSpHLQ3yBLbMwqGYT4QvvF/mW0gNnXeBgpxMDxrWudC0VE6hS0LlH9qtMXhBK R1kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=75ciJJEb0fjQQAUZH+zRMedVcWRRAgKZoJmNIvnx7Ts=; b=SoBTwGsi2b6yhMJCSQ3nXvD72Sa8dxyrGNc5ah9vD54kbwTiCBA7ZK2mlVtHZdEgN7 0TX4sFmwowTVSeEupEfLMJO7XuvFKoSVzmrrNB0c4W7HDfjhkTbBYV7tpr9SCEdGfhay tV9MRcSd6Lv0xIi4ja45GXNunzZlgxGBomt7ahGiYEWCiSItLslGGIRswP+PbbSOeWyM 2hocmTnD7dvsYXMbXXmY97t4hhj/kD0lq8WnFzof0iCRVfaoQ8N5/qkLctw0/gJ0GH04 ++trV4l1oVktA/OkCIbihzfR8s6r8xXP9TA0XL63t2ouaG0pRIhi61X3pwFMs4vtdz1z iNrg== X-Gm-Message-State: ACgBeo175+dBJyR5maeG5Ra3COhu/lBub7I6bHrXmusSXF7vryJ69mDW wFcSzpvVktP6Mr0ero80nGIfmQ== X-Google-Smtp-Source: AA6agR6n0d1QebXhA3AzIiNNgXJnLXpvhckfJa56xot7iJnpPWbZAh6mB7caWu2ENnjnNRs7tAWgjQ== X-Received: by 2002:a05:6512:23a5:b0:492:f76b:dfea with SMTP id c37-20020a05651223a500b00492f76bdfeamr4704421lfv.5.1661676241413; Sun, 28 Aug 2022 01:44:01 -0700 (PDT) Received: from krzk-bin.starman.ee (82.131.98.15.cable.starman.ee. [82.131.98.15]) by smtp.gmail.com with ESMTPSA id c6-20020ac25f66000000b0048afe02c925sm890114lfc.219.2022.08.28.01.44.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Aug 2022 01:44:00 -0700 (PDT) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Lee Jones , Rob Herring , Krzysztof Kozlowski , Stephen Boyd , Vinod Koul , David Heidelberg , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Bryan O'Donoghue , Krzysztof Kozlowski Subject: [PATCH 14/14] dt-bindings: mfd: qcom,spmi-pmic: fix TM ADC node schema on PM8998 Date: Sun, 28 Aug 2022 11:43:41 +0300 Message-Id: <20220828084341.112146-15-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220828084341.112146-1-krzysztof.kozlowski@linaro.org> References: <20220828084341.112146-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org There are two bindings for Qualcomm SPMI PMIC Thermal Monitoring ADC: one for ADC HC and one for ADC TM5 and TM7. PM8998 uses the former one, so fix matching of child schema: qcom/msm8998-asus-novago-tp370ql.dtb: pmic@0: adc-tm@3400:compatible:0: 'qcom,spmi-adc-tm-hc' is not one of ['qcom,spmi-adc-tm5', 'qcom,spmi-adc-tm5-gen2', 'qcom,adc-tm7'] Fixes: 3f5117be9584 ("dt-bindings: mfd: convert to yaml Qualcomm SPMI PMIC") Signed-off-by: Krzysztof Kozlowski Acked-by: Rob Herring --- .../bindings/mfd/qcom,spmi-pmic.yaml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml b/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml index e062de7510ca..2946d08dd42f 100644 --- a/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml +++ b/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml @@ -107,7 +107,7 @@ patternProperties: "^adc-tm@[0-9a-f]+$": type: object - $ref: /schemas/thermal/qcom-spmi-adc-tm5.yaml# + # ref depends on compatible, see allOf below "^audio-codec@[0-9a-f]+$": type: object @@ -150,6 +150,22 @@ required: - compatible - reg +allOf: + - if: + properties: + compatible: + contains: + enum: + - qcom,pm8998 + then: + patternProperties: + "^adc-tm@[0-9a-f]+$": + $ref: /schemas/thermal/qcom-spmi-adc-tm-hc.yaml# + else: + patternProperties: + "^adc-tm@[0-9a-f]+$": + $ref: /schemas/thermal/qcom-spmi-adc-tm5.yaml# + additionalProperties: false examples: