Commit 9b58f88a authored by Ciprian Costea's avatar Ciprian Costea Committed by Greg Kroah-Hartman
Browse files

dt-bindings: nvmem: Add the nxp,s32g-ocotp yaml file



Add bindings to expose the On Chip One-Time Programmable Controller
(OCOTP) for the NXP s32g chipset.  There are three versions of this
chip but they're compatible so we can fall back to the nxp,s32g2-ocotp
compatible.

Signed-off-by: default avatarCiprian Costea <ciprianmarian.costea@nxp.com>
Signed-off-by: default avatarDan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: default avatarRob Herring (Arm) <robh@kernel.org>
Signed-off-by: default avatarSrinivas Kandagatla <srini@kernel.org>
Link: https://lore.kernel.org/r/20250912131415.303407-2-srini@kernel.org


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 698de37f
Loading
Loading
Loading
Loading
+45 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/nvmem/nxp,s32g-ocotp-nvmem.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: NXP S32G OCOTP NVMEM driver

maintainers:
  - Ciprian Costea <ciprianmarian.costea@nxp.com>

description:
  The drivers provides an interface to access One Time
  Programmable memory pages, such as TMU fuse values.

properties:
  compatible:
    oneOf:
      - enum:
          - nxp,s32g2-ocotp
      - items:
          - enum:
              - nxp,s32g3-ocotp
              - nxp,s32r45-ocotp
          - const: nxp,s32g2-ocotp
  reg:
    maxItems: 1

required:
  - compatible
  - reg

unevaluatedProperties: false

allOf:
  - $ref: nvmem.yaml#

examples:
  - |
    nvmem@400a4000 {
      compatible = "nxp,s32g2-ocotp";
      reg = <0x400a4000 0x400>;
      #address-cells = <1>;
      #size-cells = <1>;
    };