dt-bindings: nvmem: Add nxp,qoriq-efuse
Subsystems (2)
PATCH v3 1/2 dt-bindings: nvmem: Add nxp,qoriq-efuse
Add a schema for the NVMEM eFuse (SFP) layout on the NXP QorIQ SOC.
--- .../bindings/nvmem/nxp,qoriq-efuse.yaml | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 Documentation/devicetree/bindings/nvmem/nxp,qoriq-efuse.yaml
Documentation/devicetree/bindings/nvmem/nxp,qoriq-efuse.yaml new file +40 -0
@@ -0,0 +1,40 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/nvmem/nxp,qoriq-efuse.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NXP QorIQ eFuse support + +maintainers: + - Richard Alpe <[email protected]> + +description: | + Read support for the eFuses (SFP) on NXP QorIQ series SoC's. + +allOf: + - $ref: "nvmem.yaml#" + +properties: + compatible: + oneOf: + - description: Trust architecture 2.0 + items: + - const: fsl,t1023-sfp + + reg: + maxItems: 1 + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + efuse@e8000 { + compatible = "fsl,t1023-sfp"; + reg = <0xe8000 0x1000>; + }; +...
Signature · 1 line
2.34.1
PATCH v3 2/2 nvmem: add new NXP QorIQ eFuse driver
Add SFP (Security Fuse Processor) read support for NXP (Freescale) QorIQ series SOC's.
This patch adds support for the T1023 SOC using the SFP offset from the existing T1023 device tree. In theory this should also work for T1024, T1014 and T1013 which uses the same SFP base offset.
--- drivers/nvmem/Kconfig | 12 ++++++ drivers/nvmem/Makefile | 2 + drivers/nvmem/qoriq-efuse.c | 78 +++++++++++++++++++++++++++++++++++++ 3 files changed, 92 insertions(+) create mode 100644 drivers/nvmem/qoriq-efuse.c
drivers/nvmem/Kconfig +12 -0
@@ -377,4 +377,16 @@ config NVMEM_ZYNQMP If sure, say yes. If unsure, say no. +config NVMEM_QORIQ_EFUSE + tristate "NXP QorIQ eFuse support" + depends on PPC_85xx || COMPILE_TEST + depends on HAS_IOMEM + help + This driver provides read support for the eFuses (SFP) on NXP QorIQ + series SoC's. This includes secure boot settings, the globally unique + NXP ID 'FUIDR' and the OEM unique ID 'OUIDR'. + + This driver can also be built as a module. If so, the module + will be called nvmem_qoriq_efuse. + endif
drivers/nvmem/Makefile +2 -0
@@ -74,3 +74,5 @@ obj-$(CONFIG_NVMEM_VF610_OCOTP) += nvmem-vf610-ocotp.o nvmem-vf610-ocotp-y := vf610-ocotp.o obj-$(CONFIG_NVMEM_ZYNQMP) += nvmem_zynqmp_nvmem.o nvmem_zynqmp_nvmem-y := zynqmp_nvmem.o +obj-$(CONFIG_NVMEM_QORIQ_EFUSE) += nvmem-qoriq-efuse.o +nvmem-qoriq-efuse-y := qoriq-efuse.o
drivers/nvmem/qoriq-efuse.c new file +78 -0
78 lines not on this page · raw message
Signature · 1 line
2.34.1
Quoted 7 lines · Richard Alpe
Add a schema for the NVMEM eFuse (SFP) layout on the NXP QorIQ SOC.
Signed-off-by Richard Alpe <[email protected]>--- .../bindings/nvmem/nxp,qoriq-efuse.yaml | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 Documentation/devicetree/bindings/nvmem/nxp,qoriq-efuse.yaml
Filename matching compatible.
Quoted 9 lines
Documentation/devicetree/bindings/nvmem/nxp,qoriq-efuse.yaml new file +2
-0@@ -0,0 +1,40 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2
Documentation/devicetree/bindings/nvmem/nxp,qoriq-efuse.yaml line 12
Quoted 10 lines
Documentation/devicetree/bindings/nvmem/nxp,qoriq-efuse.yaml new file +10
-0+--- +$id: http://devicetree.org/schemas/nvmem/nxp,qoriq-efuse.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NXP QorIQ eFuse support + +maintainers: + - Richard Alpe <[email protected]> + +description: |
Do not need '|'.
Documentation/devicetree/bindings/nvmem/nxp,qoriq-efuse.yaml line 16
Quoted 4 lines
Documentation/devicetree/bindings/nvmem/nxp,qoriq-efuse.yaml new file +4
-0+ Read support for the eFuses (SFP) on NXP QorIQ series SoC's. + +allOf: + - $ref: "nvmem.yaml#"
Drop quotes.
Documentation/devicetree/bindings/nvmem/nxp,qoriq-efuse.yaml line 20
Quoted 4 lines
Documentation/devicetree/bindings/nvmem/nxp,qoriq-efuse.yaml new file +4
-0+ +properties: + compatible: + oneOf:
Drop oneOf, no need for it. You can put description as comment.
Documentation/devicetree/bindings/nvmem/nxp,qoriq-efuse.yaml line 22
Quoted 2 lines
Documentation/devicetree/bindings/nvmem/nxp,qoriq-efuse.yaml new file +2
-0+ - description: Trust architecture 2.0 + items:
One items, so no need for "items:"
Quoted 8 lines
Documentation/devicetree/bindings/nvmem/nxp,qoriq-efuse.yaml new file +8
-0+ - const: fsl,t1023-sfp + + reg: + maxItems: 1 + +required: + - compatible + - reg
Documentation/devicetree/bindings/nvmem/nxp,qoriq-efuse.yaml line 40
Quoted 10 lines
Documentation/devicetree/bindings/nvmem/nxp,qoriq-efuse.yaml new file +10
-0+ +unevaluatedProperties: false + +examples: + - | + efuse@e8000 { + compatible = "fsl,t1023-sfp"; + reg = <0xe8000 0x1000>; + }; +...
Best regards,
Krzysztof