Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp203255rwb; Fri, 2 Sep 2022 12:37:16 -0700 (PDT) X-Google-Smtp-Source: AA6agR4jvfmrN6D5gtjMm76bg/DBnAom5mhjSdb5vdsPsBRlfqR4FKAFbNl5P3xe4CP0Ec1UJCCY X-Received: by 2002:a17:907:75e8:b0:730:ccd3:2683 with SMTP id jz8-20020a17090775e800b00730ccd32683mr28377344ejc.329.1662147436453; Fri, 02 Sep 2022 12:37:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662147436; cv=none; d=google.com; s=arc-20160816; b=gCnEmH11BFObr87f+y9Dy3ytLYPKfC9BB1xW0DwGEn2OPcJovHS3EnrwjcIcnl1UnS US0gw7DxfeG1Abe+yRHC5owCbT57IoD20r+DsJmPrpCkItKLJe6JSUu7urzOXgY5YV+Z ycSd9LAYTa0P3Sot1WaBlrNbM3lIZO0Ql4W0/FevQ59oGLVvf9WbAyay0OMekuWXARxD TkpZFGveKOUtOcOOl1cacz3wKiia/FJjtNsYiJbvmI7aJyA+YB9K5J9qKkpVFkS+LL5t 9zDI28pOZiM2Mculjky+ukboUE8FeHWOH6dwCQr2mgF/oVHVYUc+ZNyhFXvStau461gn YyfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=uWCWlSmZFYEaKyKiurVFOsZ2PihsSoTnqTvGm6hbF8A=; b=NpYQEt6Pawxs79CET1AEyybl5Oz5wskF/Yy6ilKA8J0UlblUNi4tol90x9Tcqm08jO OKmZu3q/Zz8oFW62jFUzrRPVYSrMOqtU+AZNbRi2/8xX/40dqn+YDvwUPs/JOl1AtNLd R20KIssFOWXz9ZB5Jnwj5/1cfhrtNttZMhOmq2NBju52OuxP7Y8ixEosirxj4bYGEdUh y0E0U0hFhVMTauMEDZhNSkASNdXAV7vTjp1SMSEO7EVATFDeF160RFtYKPr0VYNvlv/o ZxMfmzsjHTpBvPtdfQ6zi0wEuBUSYL69e6VjtzTg1EikY1RY+LmIcxrUUcG2pH2OntOV lExA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=W1JqL72E; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h10-20020a05640250ca00b00446dc8f5e44si499981edb.243.2022.09.02.12.36.50; Fri, 02 Sep 2022 12:37:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=W1JqL72E; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230130AbiIBSwx (ORCPT + 99 others); Fri, 2 Sep 2022 14:52:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230117AbiIBSwv (ORCPT ); Fri, 2 Sep 2022 14:52:51 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 76D03DD75A for ; Fri, 2 Sep 2022 11:52:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1662144769; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=uWCWlSmZFYEaKyKiurVFOsZ2PihsSoTnqTvGm6hbF8A=; b=W1JqL72ExMrz/Q86CWcpzTrSb4CsCZ31pqVZoEAHbdhhSp+8b5yiBAGW5wW9XalH7dnJCJ UuPTlkbqbq3y7ZZKxnLGbyxAadVA95qTnbyvYpRk2IpTgviW65h1wdKwF7zkx2zoy1r7hR uw65nJvC5i3tmq7u78dYWTiKtfh399w= Received: from mail-qv1-f69.google.com (mail-qv1-f69.google.com [209.85.219.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-98-tKlGMwyvPmiKmHpr7R9YiQ-1; Fri, 02 Sep 2022 14:52:40 -0400 X-MC-Unique: tKlGMwyvPmiKmHpr7R9YiQ-1 Received: by mail-qv1-f69.google.com with SMTP id cz3-20020a056214088300b00498f11a6d8aso1815083qvb.11 for ; Fri, 02 Sep 2022 11:52:38 -0700 (PDT) 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 :subject:date; bh=uWCWlSmZFYEaKyKiurVFOsZ2PihsSoTnqTvGm6hbF8A=; b=a3tmW5XjJW8STeP5ginhDY3CPlTgbTKtHApx+TLdLpmkiyOdM6U7mcrthF6xSixAIl HcGi6CPjkqmxHLd+wGdr7V3syFVyXmJm8RVFS90Yh4KHBNhvyKju5v3Kr9ZZPCIyExuI R1+VVNJvL6eQu2hynLGd/ufkygJ1nC8G0gEhV0BRWkJkhqB+FQyMuEqcUIFw4n8ueZts dkmIdBii1kSiAMjSy+rpeuygB56HoGgFGIITX6mUDxwS5jY57jDV3M6e5WxbAoLQfUV5 cb80NwKWW5JO1cetYG9g3fmjItRAEXjDKyFnIhxlj4JKp/hm0QZ7sEx139J+8HjLa34K W8FA== X-Gm-Message-State: ACgBeo2qPX/nmktyooejiTTAjPFAEvYZOSLC5Cu5AWS0lnuK0zAv8Vlt qDx39YYq7llhK2QbIG4x1N4OgnL7LEAuqGJN9sthk37Os38GuIqNrmRnWeCZFd7mUrT+VCukoCu HfW9+wIldYGHpdSaHXYKto9ep X-Received: by 2002:a05:6214:5299:b0:47e:89e9:e27b with SMTP id kj25-20020a056214529900b0047e89e9e27bmr30305779qvb.52.1662144756904; Fri, 02 Sep 2022 11:52:36 -0700 (PDT) X-Received: by 2002:a05:6214:5299:b0:47e:89e9:e27b with SMTP id kj25-20020a056214529900b0047e89e9e27bmr30305759qvb.52.1662144756618; Fri, 02 Sep 2022 11:52:36 -0700 (PDT) Received: from halaneylaptop.redhat.com ([2600:1700:1ff0:d0e0::48]) by smtp.gmail.com with ESMTPSA id j4-20020ac874c4000000b0031ef0081d77sm1403168qtr.79.2022.09.02.11.52.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Sep 2022 11:52:36 -0700 (PDT) From: Andrew Halaney To: agross@kernel.org, andersson@kernel.org, konrad.dybcio@somainline.org, lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, dianders@chromium.org, johan@kernel.org, Andrew Halaney Subject: [PATCH 3/3] regulator: dt-bindings: qcom,rpmh: Indicate regulator-allow-set-load dependencies Date: Fri, 2 Sep 2022 13:51:48 -0500 Message-Id: <20220902185148.635292-4-ahalaney@redhat.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220902185148.635292-1-ahalaney@redhat.com> References: <20220902185148.635292-1-ahalaney@redhat.com> MIME-Version: 1.0 Content-type: text/plain Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org For RPMH regulators it doesn't make sense to indicate regulator-allow-set-load without saying what modes you can switch to, so be sure to indicate a dependency on regulator-allowed-modes. With this in place devicetree validation can catch issues like this: /mnt/extrassd/git/linux-next/arch/arm64/boot/dts/qcom/sm8350-hdk.dtb: pm8350-rpmh-regulators: ldo5: 'regulator-allowed-modes' is a dependency of 'regulator-allow-set-load' From schema: /mnt/extrassd/git/linux-next/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.yaml Suggested-by: Johan Hovold Signed-off-by: Andrew Halaney --- .../devicetree/bindings/regulator/qcom,rpmh-regulator.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.yaml b/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.yaml index 86265b513de3..1cfd9cfd9ba6 100644 --- a/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.yaml +++ b/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.yaml @@ -99,12 +99,16 @@ properties: type: object $ref: "regulator.yaml#" description: BOB regulator node. + dependencies: + regulator-allow-set-load: ["regulator-allowed-modes"] patternProperties: "^(smps|ldo|lvs)[0-9]+$": type: object $ref: "regulator.yaml#" description: smps/ldo regulator nodes(s). + dependencies: + regulator-allow-set-load: ["regulator-allowed-modes"] ".*-supply$": description: Input supply phandle(s) for this node -- 2.37.2