From: srini@kernel.org
To: gregkh@linuxfoundation.org
Cc: linux-kernel@vger.kernel.org, Sven Peter <sven@kernel.org>,
Rob Herring <robh@kernel.org>,
Srinivas Kandagatla <srini@kernel.org>
Subject: [PATCH 2/8] dt-bindings: nvmem: fixed-layout: Allow optional bit positions
Date: Sat, 12 Jul 2025 19:18:58 +0100 [thread overview]
Message-ID: <20250712181905.6738-3-srini@kernel.org> (raw)
In-Reply-To: <20250712181905.6738-1-srini@kernel.org>
From: Sven Peter <sven@kernel.org>
NVMEM nodes can optionally include the bits property to specify the bit
position of the cell within a byte.
Extend patternProperties to allow adding the bit offset to the node
address to be able to distinguish nodes with the same address but
different bit positions, e.g.
trim@54,4 {
reg = <0x54 1>;
bits = <4 2>;
};
trim@54,0 {
reg = <0x54 1>;
bits = <0 4>;
};
Before the conversion to NVMEM layouts in commit bd912c991d2e
("dt-bindings: nvmem: layouts: add fixed-layout") this extension was
originally added with commit 4b2545dd19ed ("dt-bindings: nvmem: Extend
patternProperties to optionally indicate bit position") to the now
deprecated layout.
Signed-off-by: Sven Peter <sven@kernel.org>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Signed-off-by: Srinivas Kandagatla <srini@kernel.org>
---
.../devicetree/bindings/nvmem/layouts/fixed-layout.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/nvmem/layouts/fixed-layout.yaml b/Documentation/devicetree/bindings/nvmem/layouts/fixed-layout.yaml
index 9bd34bd5af30..b01567f99284 100644
--- a/Documentation/devicetree/bindings/nvmem/layouts/fixed-layout.yaml
+++ b/Documentation/devicetree/bindings/nvmem/layouts/fixed-layout.yaml
@@ -27,7 +27,7 @@ properties:
const: 1
patternProperties:
- "@[a-f0-9]+$":
+ "@[a-f0-9]+(,[0-7])?$":
type: object
$ref: fixed-cell.yaml
unevaluatedProperties: false
--
2.43.0
next prev parent reply other threads:[~2025-07-12 18:19 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-12 18:18 [PATCH 0/8] nvmem: patches (set 1) for 6.17 srini
2025-07-12 18:18 ` [PATCH 1/8] nvmem: apple: drop default ARCH_APPLE in Kconfig srini
2025-07-12 18:18 ` srini [this message]
2025-07-12 18:18 ` [PATCH 3/8] nvmem: core: Fix typos in comments and MODULE_AUTHOR strings srini
2025-07-12 18:19 ` [PATCH 4/8] dt-bindings: nvmem: convert lpc1857-eeprom.txt to yaml format srini
2025-07-12 18:19 ` [PATCH 5/8] nvmem: make nvmem_bus_type constant srini
2025-07-12 18:19 ` [PATCH 6/8] dt-bindings: nvmem: SID: Add binding for A523 SID controller srini
2025-07-12 18:19 ` [PATCH 7/8] dt-bindings: nvmem: mediatek: efuse: split MT8186/MT8188 from base version srini
2025-07-12 18:19 ` [PATCH 8/8] dt-bindings: nvmem: convert vf610-ocotp.txt to yaml format srini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250712181905.6738-3-srini@kernel.org \
--to=srini@kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robh@kernel.org \
--cc=sven@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.