lkml.org 
[lkml]   [2022]   [Sep]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 3/3] regulator: dt-bindings: qcom,rpmh: Indicate regulator-allow-set-load dependencies
    Date
    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 <johan@kernel.org>
    Signed-off-by: Andrew Halaney <ahalaney@redhat.com>
    ---
    .../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
    \
     
     \ /
      Last update: 2022-09-02 20:53    [W:4.246 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site