* [PATCH 0/8] nvmem: patches (set 1) for 6.17
@ 2025-07-12 18:18 srini
2025-07-12 18:18 ` [PATCH 1/8] nvmem: apple: drop default ARCH_APPLE in Kconfig srini
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: srini @ 2025-07-12 18:18 UTC (permalink / raw)
To: gregkh; +Cc: linux-kernel, Srinivas Kandagatla
From: Srinivas Kandagatla <srini@kernel.org>
Here are few nvmem patches for 6.17, Could you please queue
these for 6.17.
Patches include:
- adding bindings conversion to yaml for lpc1857 and vf610
providers.
- fix some typos in MODULE_AUTHOR.
- make nvmem_bus_type constant
- add bindings for A523 SID controller.
- Update fixed-layout to support optional bit position
Thanks,
Srini
Alok Tiwari (1):
nvmem: core: Fix typos in comments and MODULE_AUTHOR strings
Chen-Yu Tsai (1):
dt-bindings: nvmem: mediatek: efuse: split MT8186/MT8188 from base
version
Frank Li (2):
dt-bindings: nvmem: convert lpc1857-eeprom.txt to yaml format
dt-bindings: nvmem: convert vf610-ocotp.txt to yaml format
Greg Kroah-Hartman (1):
nvmem: make nvmem_bus_type constant
Mikhail Kalashnikov (1):
dt-bindings: nvmem: SID: Add binding for A523 SID controller
Sven Peter (2):
nvmem: apple: drop default ARCH_APPLE in Kconfig
dt-bindings: nvmem: fixed-layout: Allow optional bit positions
.../nvmem/allwinner,sun4i-a10-sid.yaml | 1 +
.../bindings/nvmem/fsl,vf610-ocotp.yaml | 47 ++++++++++++++
.../bindings/nvmem/layouts/fixed-layout.yaml | 2 +-
.../bindings/nvmem/lpc1857-eeprom.txt | 28 ---------
.../bindings/nvmem/mediatek,efuse.yaml | 17 +++++-
.../bindings/nvmem/nxp,lpc1857-eeprom.yaml | 61 +++++++++++++++++++
.../devicetree/bindings/nvmem/vf610-ocotp.txt | 19 ------
drivers/nvmem/Kconfig | 1 -
drivers/nvmem/core.c | 12 ++--
9 files changed, 131 insertions(+), 57 deletions(-)
create mode 100644 Documentation/devicetree/bindings/nvmem/fsl,vf610-ocotp.yaml
delete mode 100644 Documentation/devicetree/bindings/nvmem/lpc1857-eeprom.txt
create mode 100644 Documentation/devicetree/bindings/nvmem/nxp,lpc1857-eeprom.yaml
delete mode 100644 Documentation/devicetree/bindings/nvmem/vf610-ocotp.txt
--
2.43.0
^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH 1/8] nvmem: apple: drop default ARCH_APPLE in Kconfig
2025-07-12 18:18 [PATCH 0/8] nvmem: patches (set 1) for 6.17 srini
@ 2025-07-12 18:18 ` srini
2025-07-12 18:18 ` [PATCH 2/8] dt-bindings: nvmem: fixed-layout: Allow optional bit positions srini
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: srini @ 2025-07-12 18:18 UTC (permalink / raw)
To: gregkh; +Cc: linux-kernel, Sven Peter, Janne Grunau, Srinivas Kandagatla
From: Sven Peter <sven@kernel.org>
When the first driver for Apple Silicon was upstreamed we accidentally
included `default ARCH_APPLE` in its Kconfig which then spread to almost
every subsequent driver. As soon as ARCH_APPLE is set to y this will
pull in many drivers as built-ins which is not what we want.
Thus, drop `default ARCH_APPLE` from Kconfig.
Signed-off-by: Sven Peter <sven@kernel.org>
Reviewed-by: Janne Grunau <j@jannau.net>
Signed-off-by: Srinivas Kandagatla <srini@kernel.org>
---
drivers/nvmem/Kconfig | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/nvmem/Kconfig b/drivers/nvmem/Kconfig
index d370b2ad11e7..edd811444ce5 100644
--- a/drivers/nvmem/Kconfig
+++ b/drivers/nvmem/Kconfig
@@ -31,7 +31,6 @@ source "drivers/nvmem/layouts/Kconfig"
config NVMEM_APPLE_EFUSES
tristate "Apple eFuse support"
depends on ARCH_APPLE || COMPILE_TEST
- default ARCH_APPLE
help
Say y here to enable support for reading eFuses on Apple SoCs
such as the M1. These are e.g. used to store factory programmed
--
2.43.0
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH 2/8] dt-bindings: nvmem: fixed-layout: Allow optional bit positions
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
2025-07-12 18:18 ` [PATCH 3/8] nvmem: core: Fix typos in comments and MODULE_AUTHOR strings srini
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: srini @ 2025-07-12 18:18 UTC (permalink / raw)
To: gregkh; +Cc: linux-kernel, Sven Peter, Rob Herring, Srinivas Kandagatla
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
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH 3/8] nvmem: core: Fix typos in comments and MODULE_AUTHOR strings
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 ` [PATCH 2/8] dt-bindings: nvmem: fixed-layout: Allow optional bit positions srini
@ 2025-07-12 18:18 ` srini
2025-07-12 18:19 ` [PATCH 4/8] dt-bindings: nvmem: convert lpc1857-eeprom.txt to yaml format srini
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: srini @ 2025-07-12 18:18 UTC (permalink / raw)
To: gregkh; +Cc: linux-kernel, Alok Tiwari, Srinivas Kandagatla
From: Alok Tiwari <alok.a.tiwari@oracle.com>
This patch fixes minor typo issues for nvmem-core.c:
Corrects "form" to "from" in multiple function descriptions.
Fixes missing closing angle brackets in MODULE_AUTHOR entries.
These changes improve readability and formatting consistency.
Signed-off-by: Alok Tiwari <alok.a.tiwari@oracle.com>
Signed-off-by: Srinivas Kandagatla <srini@kernel.org>
---
drivers/nvmem/core.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/nvmem/core.c b/drivers/nvmem/core.c
index fd2a9698d1c9..880572ba515a 100644
--- a/drivers/nvmem/core.c
+++ b/drivers/nvmem/core.c
@@ -1263,7 +1263,7 @@ void nvmem_device_put(struct nvmem_device *nvmem)
EXPORT_SYMBOL_GPL(nvmem_device_put);
/**
- * devm_nvmem_device_get() - Get nvmem device of device form a given id
+ * devm_nvmem_device_get() - Get nvmem device of device from a given id
*
* @dev: Device that requests the nvmem device.
* @id: name id for the requested nvmem device.
@@ -1491,7 +1491,7 @@ EXPORT_SYMBOL_GPL(of_nvmem_cell_get);
#endif
/**
- * nvmem_cell_get() - Get nvmem cell of device form a given cell name
+ * nvmem_cell_get() - Get nvmem cell of device from a given cell name
*
* @dev: Device that requests the nvmem cell.
* @id: nvmem cell name to get (this corresponds with the name from the
@@ -1526,7 +1526,7 @@ static void devm_nvmem_cell_release(struct device *dev, void *res)
}
/**
- * devm_nvmem_cell_get() - Get nvmem cell of device form a given id
+ * devm_nvmem_cell_get() - Get nvmem cell of device from a given id
*
* @dev: Device that requests the nvmem cell.
* @id: nvmem cell name id to get.
@@ -2194,6 +2194,6 @@ static void __exit nvmem_exit(void)
subsys_initcall(nvmem_init);
module_exit(nvmem_exit);
-MODULE_AUTHOR("Srinivas Kandagatla <srinivas.kandagatla@linaro.org");
-MODULE_AUTHOR("Maxime Ripard <maxime.ripard@free-electrons.com");
+MODULE_AUTHOR("Srinivas Kandagatla <srinivas.kandagatla@linaro.org>");
+MODULE_AUTHOR("Maxime Ripard <maxime.ripard@free-electrons.com>");
MODULE_DESCRIPTION("nvmem Driver Core");
--
2.43.0
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH 4/8] dt-bindings: nvmem: convert lpc1857-eeprom.txt to yaml format
2025-07-12 18:18 [PATCH 0/8] nvmem: patches (set 1) for 6.17 srini
` (2 preceding siblings ...)
2025-07-12 18:18 ` [PATCH 3/8] nvmem: core: Fix typos in comments and MODULE_AUTHOR strings srini
@ 2025-07-12 18:19 ` srini
2025-07-12 18:19 ` [PATCH 5/8] nvmem: make nvmem_bus_type constant srini
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: srini @ 2025-07-12 18:19 UTC (permalink / raw)
To: gregkh; +Cc: linux-kernel, Frank Li, Krzysztof Kozlowski, Srinivas Kandagatla
From: Frank Li <Frank.Li@nxp.com>
Convert lpc1857-eeprom.txt to yaml format.
Signed-off-by: Frank Li <Frank.Li@nxp.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Srinivas Kandagatla <srini@kernel.org>
---
.../bindings/nvmem/lpc1857-eeprom.txt | 28 ---------
.../bindings/nvmem/nxp,lpc1857-eeprom.yaml | 61 +++++++++++++++++++
2 files changed, 61 insertions(+), 28 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/nvmem/lpc1857-eeprom.txt
create mode 100644 Documentation/devicetree/bindings/nvmem/nxp,lpc1857-eeprom.yaml
diff --git a/Documentation/devicetree/bindings/nvmem/lpc1857-eeprom.txt b/Documentation/devicetree/bindings/nvmem/lpc1857-eeprom.txt
deleted file mode 100644
index 809df68f6e14..000000000000
--- a/Documentation/devicetree/bindings/nvmem/lpc1857-eeprom.txt
+++ /dev/null
@@ -1,28 +0,0 @@
-* NXP LPC18xx EEPROM memory NVMEM driver
-
-Required properties:
- - compatible: Should be "nxp,lpc1857-eeprom"
- - reg: Must contain an entry with the physical base address and length
- for each entry in reg-names.
- - reg-names: Must include the following entries.
- - reg: EEPROM registers.
- - mem: EEPROM address space.
- - clocks: Must contain an entry for each entry in clock-names.
- - clock-names: Must include the following entries.
- - eeprom: EEPROM operating clock.
- - resets: Should contain a reference to the reset controller asserting
- the EEPROM in reset.
- - interrupts: Should contain EEPROM interrupt.
-
-Example:
-
- eeprom: eeprom@4000e000 {
- compatible = "nxp,lpc1857-eeprom";
- reg = <0x4000e000 0x1000>,
- <0x20040000 0x4000>;
- reg-names = "reg", "mem";
- clocks = <&ccu1 CLK_CPU_EEPROM>;
- clock-names = "eeprom";
- resets = <&rgu 27>;
- interrupts = <4>;
- };
diff --git a/Documentation/devicetree/bindings/nvmem/nxp,lpc1857-eeprom.yaml b/Documentation/devicetree/bindings/nvmem/nxp,lpc1857-eeprom.yaml
new file mode 100644
index 000000000000..24c71252846f
--- /dev/null
+++ b/Documentation/devicetree/bindings/nvmem/nxp,lpc1857-eeprom.yaml
@@ -0,0 +1,61 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/nvmem/nxp,lpc1857-eeprom.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: NXP LPC18xx EEPROM memory
+
+maintainers:
+ - Frank Li <Frank.Li@nxp.com>
+
+properties:
+ compatible:
+ const: nxp,lpc1857-eeprom
+
+ reg:
+ maxItems: 2
+
+ reg-names:
+ items:
+ - const: reg
+ - const: mem
+
+ clocks:
+ maxItems: 1
+
+ clock-names:
+ items:
+ - const: eeprom
+
+ interrupts:
+ maxItems: 1
+
+ resets:
+ maxItems: 1
+
+required:
+ - compatible
+ - reg
+ - reg-names
+ - clocks
+ - clock-names
+ - interrupts
+ - resets
+
+additionalProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/clock/lpc18xx-ccu.h>
+
+ eeprom@4000e000 {
+ compatible = "nxp,lpc1857-eeprom";
+ reg = <0x4000e000 0x1000>,
+ <0x20040000 0x4000>;
+ reg-names = "reg", "mem";
+ clocks = <&ccu1 CLK_CPU_EEPROM>;
+ clock-names = "eeprom";
+ resets = <&rgu 27>;
+ interrupts = <4>;
+ };
--
2.43.0
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH 5/8] nvmem: make nvmem_bus_type constant
2025-07-12 18:18 [PATCH 0/8] nvmem: patches (set 1) for 6.17 srini
` (3 preceding siblings ...)
2025-07-12 18:19 ` [PATCH 4/8] dt-bindings: nvmem: convert lpc1857-eeprom.txt to yaml format srini
@ 2025-07-12 18:19 ` srini
2025-07-12 18:19 ` [PATCH 6/8] dt-bindings: nvmem: SID: Add binding for A523 SID controller srini
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: srini @ 2025-07-12 18:19 UTC (permalink / raw)
To: gregkh; +Cc: linux-kernel, Srinivas Kandagatla
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Now that the driver core can properly handle constant struct bus_type,
move the nvmem_bus_type variable to be a constant structure as well,
placing it into read-only memory which can not be modified at runtime.
Cc: Srinivas Kandagatla <srini@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Srinivas Kandagatla <srini@kernel.org>
---
drivers/nvmem/core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/nvmem/core.c b/drivers/nvmem/core.c
index 880572ba515a..817f55f3a19e 100644
--- a/drivers/nvmem/core.c
+++ b/drivers/nvmem/core.c
@@ -544,7 +544,7 @@ static const struct device_type nvmem_provider_type = {
.release = nvmem_release,
};
-static struct bus_type nvmem_bus_type = {
+static const struct bus_type nvmem_bus_type = {
.name = "nvmem",
};
--
2.43.0
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH 6/8] dt-bindings: nvmem: SID: Add binding for A523 SID controller
2025-07-12 18:18 [PATCH 0/8] nvmem: patches (set 1) for 6.17 srini
` (4 preceding siblings ...)
2025-07-12 18:19 ` [PATCH 5/8] nvmem: make nvmem_bus_type constant srini
@ 2025-07-12 18:19 ` 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
7 siblings, 0 replies; 9+ messages in thread
From: srini @ 2025-07-12 18:19 UTC (permalink / raw)
To: gregkh; +Cc: linux-kernel, Mikhail Kalashnikov, Rob Herring,
Srinivas Kandagatla
From: Mikhail Kalashnikov <iuncuim@gmail.com>
The SID controller should be compatible with A64 and others SoC with 0x200
offset.
Signed-off-by: Mikhail Kalashnikov <iuncuim@gmail.com>
Acked-by: Rob Herring (Arm) <robh@kernel.org>
Signed-off-by: Srinivas Kandagatla <srini@kernel.org>
---
.../devicetree/bindings/nvmem/allwinner,sun4i-a10-sid.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/nvmem/allwinner,sun4i-a10-sid.yaml b/Documentation/devicetree/bindings/nvmem/allwinner,sun4i-a10-sid.yaml
index 4424c3c5e75c..f67470b8a2ed 100644
--- a/Documentation/devicetree/bindings/nvmem/allwinner,sun4i-a10-sid.yaml
+++ b/Documentation/devicetree/bindings/nvmem/allwinner,sun4i-a10-sid.yaml
@@ -27,6 +27,7 @@ properties:
- enum:
- allwinner,sun50i-a100-sid
- allwinner,sun50i-h616-sid
+ - allwinner,sun55i-a523-sid
- const: allwinner,sun50i-a64-sid
- const: allwinner,sun50i-h5-sid
- const: allwinner,sun50i-h6-sid
--
2.43.0
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH 7/8] dt-bindings: nvmem: mediatek: efuse: split MT8186/MT8188 from base version
2025-07-12 18:18 [PATCH 0/8] nvmem: patches (set 1) for 6.17 srini
` (5 preceding siblings ...)
2025-07-12 18:19 ` [PATCH 6/8] dt-bindings: nvmem: SID: Add binding for A523 SID controller srini
@ 2025-07-12 18:19 ` srini
2025-07-12 18:19 ` [PATCH 8/8] dt-bindings: nvmem: convert vf610-ocotp.txt to yaml format srini
7 siblings, 0 replies; 9+ messages in thread
From: srini @ 2025-07-12 18:19 UTC (permalink / raw)
To: gregkh
Cc: linux-kernel, Chen-Yu Tsai, Johnson Wang, Conor Dooley,
AngeloGioacchino Del Regno, Srinivas Kandagatla
From: Chen-Yu Tsai <wenst@chromium.org>
On MT8186 and MT8188 one of the NVMEM cells contains the GPU speed bin
value. In combination with the GPU OPP bindings, on these two platforms
there is an implied scheme of converting the cell value to what the GPU
OPP "opp-supported-hw" property matches. This does not apply to the base
mediatek,efuse hardware, nor does it apply to any of the other platforms
that do not have the GPU speed bin cell. The platform maintainer argues
that this makes the compatibles incompatible with the base
"mediatek,efuse" compatible, as shown in the link given.
Deprecate the MT8186/MT8188 + "mediatek,efuse" combination, and add
new entries with MT8186 being the base model and MT8188 falling back
to MT8186.
Link: https://lore.kernel.org/all/11028242-afe4-474a-9d76-cd1bd9208987@collabora.com/
Fixes: ff1df1886f43 ("dt-bindings: nvmem: mediatek: efuse: Add support for MT8188")
Cc: Johnson Wang <johnson.wang@mediatek.com>
Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Srinivas Kandagatla <srini@kernel.org>
---
.../bindings/nvmem/mediatek,efuse.yaml | 17 +++++++++++++++--
1 file changed, 15 insertions(+), 2 deletions(-)
diff --git a/Documentation/devicetree/bindings/nvmem/mediatek,efuse.yaml b/Documentation/devicetree/bindings/nvmem/mediatek,efuse.yaml
index 32b8c1eb4e80..4dc0d42df3e6 100644
--- a/Documentation/devicetree/bindings/nvmem/mediatek,efuse.yaml
+++ b/Documentation/devicetree/bindings/nvmem/mediatek,efuse.yaml
@@ -24,6 +24,21 @@ properties:
compatible:
oneOf:
+ - items:
+ - const: mediatek,mt8188-efuse
+ - const: mediatek,mt8186-efuse
+ - const: mediatek,mt8186-efuse
+
+ - items:
+ - enum:
+ - mediatek,mt8186-efuse
+ - mediatek,mt8188-efuse
+ - const: mediatek,efuse
+ deprecated: true
+ description: Some compatibles also imply a decoding scheme for the
+ "gpu-speedbin" cell, and thus are not backward compatible to the
+ generic "mediatek,efuse" compatible.
+
- items:
- enum:
- mediatek,mt7622-efuse
@@ -33,8 +48,6 @@ properties:
- mediatek,mt7988-efuse
- mediatek,mt8173-efuse
- mediatek,mt8183-efuse
- - mediatek,mt8186-efuse
- - mediatek,mt8188-efuse
- mediatek,mt8192-efuse
- mediatek,mt8195-efuse
- mediatek,mt8516-efuse
--
2.43.0
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH 8/8] dt-bindings: nvmem: convert vf610-ocotp.txt to yaml format
2025-07-12 18:18 [PATCH 0/8] nvmem: patches (set 1) for 6.17 srini
` (6 preceding siblings ...)
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 ` srini
7 siblings, 0 replies; 9+ messages in thread
From: srini @ 2025-07-12 18:19 UTC (permalink / raw)
To: gregkh; +Cc: linux-kernel, Frank Li, Krzysztof Kozlowski, Srinivas Kandagatla
From: Frank Li <Frank.Li@nxp.com>
Convert vf610-ocotp.txt to yaml format.
Additional changes:
- Remove label in examples.
- Add include file in examples.
- Move reg just after compatible in examples.
- Add ref: nvmem.yaml and nvmem-deprecated-cells.yaml
- Remove #address-cells and #size-cells from required list to match existed
dts file.
Signed-off-by: Frank Li <Frank.Li@nxp.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Srinivas Kandagatla <srini@kernel.org>
---
.../bindings/nvmem/fsl,vf610-ocotp.yaml | 47 +++++++++++++++++++
.../devicetree/bindings/nvmem/vf610-ocotp.txt | 19 --------
2 files changed, 47 insertions(+), 19 deletions(-)
create mode 100644 Documentation/devicetree/bindings/nvmem/fsl,vf610-ocotp.yaml
delete mode 100644 Documentation/devicetree/bindings/nvmem/vf610-ocotp.txt
diff --git a/Documentation/devicetree/bindings/nvmem/fsl,vf610-ocotp.yaml b/Documentation/devicetree/bindings/nvmem/fsl,vf610-ocotp.yaml
new file mode 100644
index 000000000000..5aef86a752a6
--- /dev/null
+++ b/Documentation/devicetree/bindings/nvmem/fsl,vf610-ocotp.yaml
@@ -0,0 +1,47 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/nvmem/fsl,vf610-ocotp.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: On-Chip OTP Memory for Freescale Vybrid
+
+maintainers:
+ - Frank Li <Frank.Li@nxp.com>
+
+allOf:
+ - $ref: nvmem.yaml#
+ - $ref: nvmem-deprecated-cells.yaml
+
+properties:
+ compatible:
+ items:
+ - enum:
+ - fsl,vf610-ocotp
+ - const: syscon
+
+ reg:
+ maxItems: 1
+
+ clocks:
+ items:
+ - description: ipg clock we associate with the OCOTP peripheral
+
+required:
+ - compatible
+ - reg
+ - clocks
+
+unevaluatedProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/clock/vf610-clock.h>
+
+ ocotp@400a5000 {
+ compatible = "fsl,vf610-ocotp", "syscon";
+ reg = <0x400a5000 0xcf0>;
+ #address-cells = <1>;
+ #size-cells = <1>;
+ clocks = <&clks VF610_CLK_OCOTP>;
+ };
diff --git a/Documentation/devicetree/bindings/nvmem/vf610-ocotp.txt b/Documentation/devicetree/bindings/nvmem/vf610-ocotp.txt
deleted file mode 100644
index 72ba628f6d0b..000000000000
--- a/Documentation/devicetree/bindings/nvmem/vf610-ocotp.txt
+++ /dev/null
@@ -1,19 +0,0 @@
-On-Chip OTP Memory for Freescale Vybrid
-
-Required Properties:
- compatible:
- - "fsl,vf610-ocotp", "syscon" for VF5xx/VF6xx
- #address-cells : Should be 1
- #size-cells : Should be 1
- reg : Address and length of OTP controller and fuse map registers
- clocks : ipg clock we associate with the OCOTP peripheral
-
-Example for Vybrid VF5xx/VF6xx:
-
- ocotp: ocotp@400a5000 {
- compatible = "fsl,vf610-ocotp", "syscon";
- #address-cells = <1>;
- #size-cells = <1>;
- reg = <0x400a5000 0xCF0>;
- clocks = <&clks VF610_CLK_OCOTP>;
- };
--
2.43.0
^ permalink raw reply related [flat|nested] 9+ messages in thread
end of thread, other threads:[~2025-07-12 18:19 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` [PATCH 2/8] dt-bindings: nvmem: fixed-layout: Allow optional bit positions srini
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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).