From patchwork Sun Mar 5 17:35:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 659034 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 322CEC61DA4 for ; Sun, 5 Mar 2023 17:35:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229554AbjCERfn (ORCPT ); Sun, 5 Mar 2023 12:35:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229494AbjCERfm (ORCPT ); Sun, 5 Mar 2023 12:35:42 -0500 Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31D0F1423D for ; Sun, 5 Mar 2023 09:35:40 -0800 (PST) Received: by mail-ed1-x530.google.com with SMTP id f13so29587181edz.6 for ; Sun, 05 Mar 2023 09:35:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678037738; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=zpJCYAT2evmQzO7iae4GDf1KIRspOlm4j2n0RWLvTq0=; b=oipBV0OMGWmhn6XgW/XqT9WkCCas2XH8tKnmLkkUOMnvJ4wFWZBAu0XS/ZCOVF44gS 1zCB9YDrFktxhYsE0UHRCuRjkFDJ08CBjSJ5c85/xMknL2tw3sf3ej85H3MMUpVaxJf0 AFx0ORWzDqtjT2CWZUcGfANU8PovIDds+iDiSmMUswQM1Kqgm8ARUZlb0kRhztl0fGWs o8aghC9YZYXDqikMiWcQpqNVXxQO8oLhUn4ISnGgloMieGLFe2WCEBqnetfOogcuUy2G suu4WFi766VuC/fMl/S+3NzDuAUY3Bb0jImdgJUHDFE0iovXvm2LrOV+MN98zXX4wjki A+Jw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678037738; 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=zpJCYAT2evmQzO7iae4GDf1KIRspOlm4j2n0RWLvTq0=; b=l/09VDwZtK1TSg4xmprmk1DXUlVFcFyP14FXXSZxlIAMK73mQUdL3zg7Cq5/FvQmlb eHs1s2DVTOI9H4JiMrb4g2M6hltiNzprFNWKdbazjCGcdJHrU7n/v+9KxS1XZ7XIyHzV CjBg1+O90OAganrn0Qaeoyi+RHzlpF7G+rq5OSouJgiRpLgydMIwWYTZZgtn3ptFnrXZ yVvtaW2vQriaKPuq7NBqcagN+H2mQppFd9p/YGkHDMKNlnQZk52UkOFeImnk03tjln9N itI+qgapPFK3zMY9eZHp6Y8huv8Q2MbYadgJpfTJ+PZ+oQHYgGc4+eZsuAqTH9WFp+tw Zl8w== X-Gm-Message-State: AO0yUKUkyvbAnph/JAV8UIgnkESlR1je0rNM4b+jiM7eTsUmmFO/8GM1 MJ19SxzfKYHPSlDm8BLqX/dmfw== X-Google-Smtp-Source: AK7set9NhERx/+zJ3EPO0pMZw89fz78igojTq5yrOKr9p8fzRprvOcFNYV+SRnHJypUo8nLyS2evqw== X-Received: by 2002:a17:906:76c9:b0:8f5:2e0e:6dd4 with SMTP id q9-20020a17090676c900b008f52e0e6dd4mr7386176ejn.15.1678037738731; Sun, 05 Mar 2023 09:35:38 -0800 (PST) Received: from krzk-bin.. ([2a02:810d:15c0:828:7000:1361:7f1f:60b0]) by smtp.gmail.com with ESMTPSA id g26-20020a17090613da00b008d044ede804sm3385756ejc.163.2023.03.05.09.35.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Mar 2023 09:35:38 -0800 (PST) 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 , Danila Tikhonov Subject: [PATCH] regulator: dt-bindings: qcom,rpmh: combine PM6150L and PM8150L if-then Date: Sun, 5 Mar 2023 18:35:35 +0100 Message-Id: <20230305173535.18046-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The supplies for PM6150L and PM8150L are the same, so they can be part of one if-then block, for smaller code. Signed-off-by: Krzysztof Kozlowski --- Cc: Danila Tikhonov --- .../regulator/qcom,rpmh-regulator.yaml | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.yaml b/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.yaml index fb9621b4b4cd..775ed2a1745e 100644 --- a/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.yaml +++ b/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.yaml @@ -144,6 +144,7 @@ allOf: compatible: enum: - qcom,pm6150l-rpmh-regulators + - qcom,pm8150l-rpmh-regulators then: properties: vdd-bob-supply: @@ -244,23 +245,6 @@ allOf: patternProperties: "^vdd-s([1-9]|10)-supply$": true - - if: - properties: - compatible: - enum: - - qcom,pm8150l-rpmh-regulators - then: - properties: - vdd-bob-supply: - description: BOB regulator parent supply phandle. - vdd-l1-l8-supply: true - vdd-l2-l3-supply: true - vdd-l4-l5-l6-supply: true - vdd-l7-l11-supply: true - vdd-l9-l10-supply: true - patternProperties: - "^vdd-s[1-8]-supply$": true - - if: properties: compatible: