From patchwork Mon Mar 27 08:06:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 668304 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 7AAB4C7619A for ; Mon, 27 Mar 2023 08:06:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232700AbjC0IGc (ORCPT ); Mon, 27 Mar 2023 04:06:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232590AbjC0IGb (ORCPT ); Mon, 27 Mar 2023 04:06:31 -0400 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7454849C2 for ; Mon, 27 Mar 2023 01:06:30 -0700 (PDT) Received: by mail-ed1-x533.google.com with SMTP id ek18so32250252edb.6 for ; Mon, 27 Mar 2023 01:06:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679904389; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=BiNqTeeVrWQOzoZkyp1Ne+Y+AeYFGXw/DSHUvZsNi9U=; b=utB9KGwJVl/qvFQcQXspBeh++ITcLsDKWbbjzrzuwn/GC0zRL2hy7sGeyOnBYi/5lW DrRsnGJZfcnLQkp8hQORJditRaSdg6E6/cEKxRRBJ3laWqglnzjZry2m+dH8hd+iRYDb NEP9Rf11RdBQQv4pwTToD6ETSScvKCYbyPg84X7Yo50Y4h5DEv83QbKpsBtlZQQIdsqs uolsxwmg7mneol3mTflcsX+3fSrBjMv1uNuCvn38IWeyDvru2b6X2i+PXwyzkET6meYY +x7Sa1qDCYUj7Q0wjwS5FcUJRWnDUQmOo9VkNlfIWQTWVGSkAzz5/2MZD1ivHo7jofO4 DVMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679904389; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=BiNqTeeVrWQOzoZkyp1Ne+Y+AeYFGXw/DSHUvZsNi9U=; b=uWDZzSEZjKQeJ8C7xcB4IdYM787xjLnvmgEuKQbkinly4wMtRcTXDtmhheIXCE1MaB bG24V6Ou90PsMHvqCMhDdewhauiowrNyjRJgaAzoFLbm0AY8TAbUGi+lFJY/JuUosofw jonFiLf7p0l8y0CISCYUyh9ukDR7tSEKgC7b5BFCKIlxUWI206cU/RA61men6fm9/uIi 9jDnz9H5BDIlW+qvLG24JjGMbZhS34WasuiNCnO1+WMWtmTIjTZ3AIu6EhWuBzy8Kht+ gZ00XBEb+y5LdZkJ8JRMMPRM31rTjbk7JgZ+P92nvmNfK62SmgAH3lkO9Adg7QaQfPZu CsmQ== X-Gm-Message-State: AAQBX9dktm8+YMAPrG4H5LyUza6cujiPecAN/QaJxOPJ8aW/x5bARSQi 0UyCwuWA2wq16HHqMbozIPAvkA== X-Google-Smtp-Source: AKy350aKdFA5s1jscL7nmuT5RTgLChtp8awsB8wJKDz650hj2LinA+5B0TsFuxXFzF60aarWBrE2SQ== X-Received: by 2002:a05:6402:1002:b0:501:c547:2135 with SMTP id c2-20020a056402100200b00501c5472135mr10258056edu.36.1679904389024; Mon, 27 Mar 2023 01:06:29 -0700 (PDT) Received: from krzk-bin.. ([2a02:810d:15c0:828:198e:c1a5:309b:d678]) by smtp.gmail.com with ESMTPSA id f3-20020a50d543000000b00501d51c23fbsm9764527edj.6.2023.03.27.01.06.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Mar 2023 01:06:28 -0700 (PDT) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: Krzysztof Kozlowski , Abel Vesa , Rob Herring Subject: [RESEND PATCH 1/2] regulator: dt-bindings: qcom, rpmh: Correct PM8550 family supplies Date: Mon, 27 Mar 2023 10:06:25 +0200 Message-Id: <20230327080626.24200-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org PM8550 is different than PM8550VE/VS, because the latter has much smaller amount of supplies (l1-3 and s1-6) and regulators. The PM8550 has on the other hand one pin for vdd-l1-l4-l10 supplies. Correct the if:then: clause with their supplies. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Abel Vesa Acked-by: Rob Herring --- .../bindings/regulator/qcom,rpmh-regulator.yaml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.yaml b/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.yaml index a765837dc069..74e3acf92d21 100644 --- a/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.yaml +++ b/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.yaml @@ -308,19 +308,29 @@ allOf: compatible: enum: - qcom,pm8550-rpmh-regulators - - qcom,pm8550ve-rpmh-regulators - - qcom,pm8550vs-rpmh-regulators then: properties: + vdd-l1-l4-l10-supply: true vdd-l2-l13-l14-supply: true vdd-l5-l16-supply: true vdd-l6-l7-supply: true vdd-l8-l9-supply: true patternProperties: - "^vdd-l([1-4]|1[0-7])-supply$": true + "^vdd-l(3|1[1-7])-supply$": true "^vdd-s[1-6]-supply$": true "^vdd-bob[1-2]-supply$": true + - if: + properties: + compatible: + enum: + - qcom,pm8550ve-rpmh-regulators + - qcom,pm8550vs-rpmh-regulators + then: + patternProperties: + "^vdd-l[1-3]-supply$": true + "^vdd-s[1-6]-supply$": true + - if: properties: compatible: