Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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: Ciprian Costea <ciprianmarian.costea@nxp.com>
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Signed-off-by: Srinivas Kandagatla <srini@kernel.org>
Link: https://lore.kernel.org/r/20250912131415.303407-2-srini@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Ciprian Costea and committed by
Greg Kroah-Hartman
9b58f88a 698de37f

+45
+45
Documentation/devicetree/bindings/nvmem/nxp,s32g-ocotp-nvmem.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/nvmem/nxp,s32g-ocotp-nvmem.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: NXP S32G OCOTP NVMEM driver 8 + 9 + maintainers: 10 + - Ciprian Costea <ciprianmarian.costea@nxp.com> 11 + 12 + description: 13 + The drivers provides an interface to access One Time 14 + Programmable memory pages, such as TMU fuse values. 15 + 16 + properties: 17 + compatible: 18 + oneOf: 19 + - enum: 20 + - nxp,s32g2-ocotp 21 + - items: 22 + - enum: 23 + - nxp,s32g3-ocotp 24 + - nxp,s32r45-ocotp 25 + - const: nxp,s32g2-ocotp 26 + reg: 27 + maxItems: 1 28 + 29 + required: 30 + - compatible 31 + - reg 32 + 33 + unevaluatedProperties: false 34 + 35 + allOf: 36 + - $ref: nvmem.yaml# 37 + 38 + examples: 39 + - | 40 + nvmem@400a4000 { 41 + compatible = "nxp,s32g2-ocotp"; 42 + reg = <0x400a4000 0x400>; 43 + #address-cells = <1>; 44 + #size-cells = <1>; 45 + };