Commit 4b2545dd authored by Kunihiko Hayashi's avatar Kunihiko Hayashi Committed by Rob Herring

dt-bindings: nvmem: Extend patternProperties to optionally indicate bit position

Allow to extend expression of sub nodes to optionally indicate bit
position. This extension is needed to distinguish between different bit
positions in the same address.

For example, there are two nvmem nodes starting with bit 4 and bit 0
at the same address 0x54. In this case, it can be expressed as follows.

    trim@54,4 {
        reg = <0x54 1>;
        bits = <4 2>;
    };
    trim@54,0 {
        reg = <0x54 1>;
        bits = <0 4>;
    };
Signed-off-by: default avatarKunihiko Hayashi <hayashi.kunihiko@socionext.com>
Link: https://lore.kernel.org/r/1626661864-15473-2-git-send-email-hayashi.kunihiko@socionext.comSigned-off-by: default avatarRob Herring <robh@kernel.org>
parent d4fd4f01
...@@ -40,7 +40,7 @@ properties: ...@@ -40,7 +40,7 @@ properties:
maxItems: 1 maxItems: 1
patternProperties: patternProperties:
"^.*@[0-9a-f]+$": "@[0-9a-f]+(,[0-7])?$":
type: object type: object
properties: properties:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment