Commit 1ca28dc9 authored by Johan Hovold's avatar Johan Hovold Committed by Greg Kroah-Hartman
Browse files

dt-bindings: nvmem: qcom,spmi-sdam: fix example 'reg' property



The SPMI PMIC register region width is fixed and should not be encoded
in the devicetree.

Amend the example with a parent pmic node with the expected
'#address-cells' and '#size-cells' and fix up the 'reg' property.

Fixes: 9664a6b5 ("dt-bindings: nvmem: add binding for QTI SPMI SDAM")
Signed-off-by: default avatarJohan Hovold <johan+linaro@kernel.org>
Reviewed-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: default avatarSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20230404172148.82422-3-srinivas.kandagatla@linaro.org


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b19a4266
Loading
Loading
Loading
Loading
+18 −13
Original line number Diff line number Diff line
@@ -42,11 +42,15 @@ unevaluatedProperties: false

examples:
  - |
    pmic {
        #address-cells = <1>;
        #size-cells = <0>;

        sdam_1: nvram@b000 {
            compatible = "qcom,spmi-sdam";
            reg = <0xb000>;
            #address-cells = <1>;
            #size-cells = <1>;
          compatible = "qcom,spmi-sdam";
          reg = <0xb000 0x100>;
            ranges = <0 0xb000 0x100>;

            /* Data cells */
@@ -55,4 +59,5 @@ examples:
                bits = <6 2>;
            };
        };
    };
...