d1: add new target
[openwrt/staging/mans0n.git] / target / linux / d1 / patches-6.1 / 0019-dt-bindings-nvmem-Allow-bit-offsets-greater-than-a-b.patch
1 From d03341ef7acb64803ade6b173d24f49ffa6149a3 Mon Sep 17 00:00:00 2001
2 From: Samuel Holland <samuel@sholland.org>
3 Date: Tue, 2 Aug 2022 00:29:32 -0500
4 Subject: [PATCH 019/117] dt-bindings: nvmem: Allow bit offsets greater than a
5 byte
6
7 Some NVMEM devices contain cells which do not start at a multiple of the
8 device's stride. However, the "reg" property of a cell must be aligned
9 to its provider device's stride.
10
11 These cells can be represented in the DT using the "bits" property if
12 that property allows offsets up to the full stride. 63 is chosen
13 assuming that NVMEM devices will not have strides larger than 8 bytes.
14
15 Signed-off-by: Samuel Holland <samuel@sholland.org>
16 ---
17 Documentation/devicetree/bindings/nvmem/nvmem.yaml | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
19
20 --- a/Documentation/devicetree/bindings/nvmem/nvmem.yaml
21 +++ b/Documentation/devicetree/bindings/nvmem/nvmem.yaml
22 @@ -53,7 +53,7 @@ patternProperties:
23 $ref: /schemas/types.yaml#/definitions/uint32-array
24 items:
25 - minimum: 0
26 - maximum: 7
27 + maximum: 63
28 description:
29 Offset in bit within the address range specified by reg.
30 - minimum: 1