mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/2] dt-bindings: nvmem: add binding doc for i.MX OCOTP/ELE
@ 2023-05-05  9:17 Peng Fan (OSS)
  2023-05-05  9:17 ` [PATCH 2/2] nvmem: imx: support i.MX93 OCOTP Peng Fan (OSS)
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Peng Fan (OSS) @ 2023-05-05  9:17 UTC (permalink / raw)
  To: srinivas.kandagatla, robh+dt, krzysztof.kozlowski+dt
  Cc: shawnguo, s.hauer, kernel, festevam, linux-imx, devicetree,
	linux-arm-kernel, linux-kernel, Peng Fan

From: Peng Fan <peng.fan@nxp.com>

There are two parts of i.MX93 OCOTP, with 1st part Fuse shadow block(fsb),
2nd part managed by ELE firmware. This binding doc supports both.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
 .../bindings/nvmem/imx-ocotp-ele.yaml         | 65 +++++++++++++++++++
 1 file changed, 65 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/nvmem/imx-ocotp-ele.yaml

diff --git a/Documentation/devicetree/bindings/nvmem/imx-ocotp-ele.yaml b/Documentation/devicetree/bindings/nvmem/imx-ocotp-ele.yaml
new file mode 100644
index 000000000000..024594a2bcb4
--- /dev/null
+++ b/Documentation/devicetree/bindings/nvmem/imx-ocotp-ele.yaml
@@ -0,0 +1,65 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/nvmem/imx-ocotp-ele.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: NXP i.MX9 On-Chip OTP Controller (OCOTP)
+
+maintainers:
+  - Peng Fan <peng.fan@nxp.com>
+
+allOf:
+  - $ref: nvmem.yaml#
+
+properties:
+  compatible:
+    oneOf:
+      - items:
+          - const: fsl,imx93-ocotp-fsb
+          - const: syscon
+      - items:
+          - const: fsl,imx93-ocotp-ele
+
+  reg:
+    maxItems: 1
+
+  "#address-cells":
+    const: 1
+
+  "#size-cells":
+    const: 1
+
+  clocks:
+    maxItems: 1
+
+required:
+  - compatible
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/clock/imx6sx-clock.h>
+
+    ocotp: efuse@21bc000 {
+        #address-cells = <1>;
+        #size-cells = <1>;
+        compatible = "fsl,imx6sx-ocotp", "syscon";
+        reg = <0x021bc000 0x4000>;
+        clocks = <&clks IMX6SX_CLK_OCOTP>;
+
+        cpu_speed_grade: speed-grade@10 {
+            reg = <0x10 4>;
+        };
+
+        tempmon_calib: calib@38 {
+            reg = <0x38 4>;
+        };
+
+        tempmon_temp_grade: temp-grade@20 {
+            reg = <0x20 4>;
+        };
+    };
+
+...
-- 
2.37.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-05-06  6:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-05  9:17 [PATCH 1/2] dt-bindings: nvmem: add binding doc for i.MX OCOTP/ELE Peng Fan (OSS)
2023-05-05  9:17 ` [PATCH 2/2] nvmem: imx: support i.MX93 OCOTP Peng Fan (OSS)
2023-05-05 10:24 ` [PATCH 1/2] dt-bindings: nvmem: add binding doc for i.MX OCOTP/ELE Marco Felsch
2023-05-05 12:01 ` Krzysztof Kozlowski
2023-05-05 12:09   ` Krzysztof Kozlowski
2023-05-06  2:58     ` Peng Fan
2023-05-06  6:34       ` Krzysztof Kozlowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®