]> git.baikalelectronics.ru Git - kernel.git/commit
dt-bindings: nvmem: Extend patternProperties to optionally indicate bit position
authorKunihiko Hayashi <hayashi.kunihiko@socionext.com>
Mon, 19 Jul 2021 02:31:03 +0000 (11:31 +0900)
committerRob Herring <robh@kernel.org>
Thu, 29 Jul 2021 18:48:27 +0000 (12:48 -0600)
commit9663bd416905a35dd7994d2cb2a94e748696c619
tree78a3eeaf6780a284239d4abc9874f09517ddb3f8
parent9cec3b7c7471a47154f4f24482717e092370c7eb
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: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
Link: https://lore.kernel.org/r/1626661864-15473-2-git-send-email-hayashi.kunihiko@socionext.com
Signed-off-by: Rob Herring <robh@kernel.org>
Documentation/devicetree/bindings/nvmem/nvmem.yaml