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

dt-bindings: fuse: Move renesas,rcar-{efuse,otp} to nvmem

The R-Car E-FUSE blocks can be modelled better using the nvmem
framework.

Replace the R-Car V3U example by an R-Car S4-8 ES1.2 example, to show
the definition of nvmem cells. While at it, drop unneeded labels from
the examples, and fix indentation.

Add an entry to the MAINTAINERS file.

Reported-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20241030140315.40562-2-srinivas.kandagatla@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Geert Uytterhoeven and committed by
Greg Kroah-Hartman
2aea0d17 eb33da0d

+35 -16
+23 -10
Documentation/devicetree/bindings/fuse/renesas,rcar-efuse.yaml Documentation/devicetree/bindings/nvmem/renesas,rcar-efuse.yaml
··· 1 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 2 %YAML 1.2 3 3 --- 4 - $id: http://devicetree.org/schemas/fuse/renesas,rcar-efuse.yaml# 4 + $id: http://devicetree.org/schemas/nvmem/renesas,rcar-efuse.yaml# 5 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 6 6 7 7 title: R-Car E-FUSE connected to PFC ··· 12 12 description: 13 13 The E-FUSE is a type of non-volatile memory, which is accessible through the 14 14 Pin Function Controller (PFC) on some R-Car Gen4 SoCs. 15 + 16 + allOf: 17 + - $ref: nvmem.yaml# 15 18 16 19 properties: 17 20 compatible: ··· 42 39 - power-domains 43 40 - resets 44 41 45 - additionalProperties: false 42 + unevaluatedProperties: false 46 43 47 44 examples: 48 45 - | 49 - #include <dt-bindings/clock/r8a779a0-cpg-mssr.h> 50 - #include <dt-bindings/power/r8a779a0-sysc.h> 46 + #include <dt-bindings/clock/r8a779f0-cpg-mssr.h> 47 + #include <dt-bindings/power/r8a779f0-sysc.h> 51 48 52 - fuse: fuse@e6078800 { 53 - compatible = "renesas,r8a779a0-efuse"; 54 - reg = <0xe6078800 0x100>; 55 - clocks = <&cpg CPG_MOD 916>; 56 - power-domains = <&sysc R8A779A0_PD_ALWAYS_ON>; 57 - resets = <&cpg 916>; 49 + fuse@e6078800 { 50 + compatible = "renesas,r8a779f0-efuse"; 51 + reg = <0xe6078800 0x200>; 52 + clocks = <&cpg CPG_MOD 915>; 53 + power-domains = <&sysc R8A779F0_PD_ALWAYS_ON>; 54 + resets = <&cpg 915>; 55 + 56 + nvmem-layout { 57 + compatible = "fixed-layout"; 58 + #address-cells = <1>; 59 + #size-cells = <1>; 60 + 61 + calib@144 { 62 + reg = <0x144 0x08>; 63 + }; 64 + }; 58 65 };
+11 -6
Documentation/devicetree/bindings/fuse/renesas,rcar-otp.yaml Documentation/devicetree/bindings/nvmem/renesas,rcar-otp.yaml
··· 1 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 2 %YAML 1.2 3 3 --- 4 - $id: http://devicetree.org/schemas/fuse/renesas,rcar-otp.yaml# 4 + $id: http://devicetree.org/schemas/nvmem/renesas,rcar-otp.yaml# 5 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 6 6 7 7 title: R-Car E-FUSE connected to OTP_MEM ··· 13 13 The E-FUSE is a type of non-volatile memory, which is accessible through the 14 14 One-Time Programmable Memory (OTP_MEM) module on some R-Car Gen4 SoCs. 15 15 16 + allOf: 17 + - $ref: nvmem.yaml# 18 + 16 19 properties: 17 20 compatible: 18 21 enum: ··· 25 22 reg: 26 23 items: 27 24 - description: OTP_MEM_0 28 - - description: OTP_MEM_1 25 + - description: OTP_MEM_1. 26 + The addresses of cells defined under the optional nvmem-layout 27 + subnode are relative to this register bank. 29 28 30 29 required: 31 30 - compatible 32 31 - reg 33 32 34 - additionalProperties: false 33 + unevaluatedProperties: false 35 34 36 35 examples: 37 36 - | 38 - otp: otp@e61be000 { 39 - compatible = "renesas,r8a779g0-otp"; 40 - reg = <0xe61be000 0x1000>, <0xe61bf000 0x1000>; 37 + otp@e61be000 { 38 + compatible = "renesas,r8a779g0-otp"; 39 + reg = <0xe61be000 0x1000>, <0xe61bf000 0x1000>; 41 40 };
+1
MAINTAINERS
··· 2922 2922 C: irc://irc.libera.chat/renesas-soc 2923 2923 T: git git://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-devel.git next 2924 2924 F: Documentation/devicetree/bindings/hwinfo/renesas,prr.yaml 2925 + F: Documentation/devicetree/bindings/nvmem/renesas,* 2925 2926 F: Documentation/devicetree/bindings/soc/renesas/ 2926 2927 F: arch/arm/boot/dts/renesas/ 2927 2928 F: arch/arm/configs/shmobile_defconfig