xref: /freebsd/sys/contrib/device-tree/Bindings/nvmem/renesas,rcar-efuse.yaml (revision 5f62a964e9f8abc6a05d8338273fadd154f0a206)
1*5f62a964SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*5f62a964SEmmanuel Vadot%YAML 1.2
3*5f62a964SEmmanuel Vadot---
4*5f62a964SEmmanuel Vadot$id: http://devicetree.org/schemas/nvmem/renesas,rcar-efuse.yaml#
5*5f62a964SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*5f62a964SEmmanuel Vadot
7*5f62a964SEmmanuel Vadottitle: R-Car E-FUSE connected to PFC
8*5f62a964SEmmanuel Vadot
9*5f62a964SEmmanuel Vadotmaintainers:
10*5f62a964SEmmanuel Vadot  - Geert Uytterhoeven <geert+renesas@glider.be>
11*5f62a964SEmmanuel Vadot
12*5f62a964SEmmanuel Vadotdescription:
13*5f62a964SEmmanuel Vadot  The E-FUSE is a type of non-volatile memory, which is accessible through the
14*5f62a964SEmmanuel Vadot  Pin Function Controller (PFC) on some R-Car Gen4 SoCs.
15*5f62a964SEmmanuel Vadot
16*5f62a964SEmmanuel VadotallOf:
17*5f62a964SEmmanuel Vadot  - $ref: nvmem.yaml#
18*5f62a964SEmmanuel Vadot
19*5f62a964SEmmanuel Vadotproperties:
20*5f62a964SEmmanuel Vadot  compatible:
21*5f62a964SEmmanuel Vadot    enum:
22*5f62a964SEmmanuel Vadot      - renesas,r8a779a0-efuse # R-Car V3U
23*5f62a964SEmmanuel Vadot      - renesas,r8a779f0-efuse # R-Car S4-8
24*5f62a964SEmmanuel Vadot
25*5f62a964SEmmanuel Vadot  reg:
26*5f62a964SEmmanuel Vadot    maxItems: 1
27*5f62a964SEmmanuel Vadot    description: PFC System Group Fuse Control and Monitor register block
28*5f62a964SEmmanuel Vadot
29*5f62a964SEmmanuel Vadot  clocks:
30*5f62a964SEmmanuel Vadot    maxItems: 1
31*5f62a964SEmmanuel Vadot
32*5f62a964SEmmanuel Vadot  power-domains:
33*5f62a964SEmmanuel Vadot    maxItems: 1
34*5f62a964SEmmanuel Vadot
35*5f62a964SEmmanuel Vadot  resets:
36*5f62a964SEmmanuel Vadot    maxItems: 1
37*5f62a964SEmmanuel Vadot
38*5f62a964SEmmanuel Vadotrequired:
39*5f62a964SEmmanuel Vadot  - compatible
40*5f62a964SEmmanuel Vadot  - reg
41*5f62a964SEmmanuel Vadot  - clocks
42*5f62a964SEmmanuel Vadot  - power-domains
43*5f62a964SEmmanuel Vadot  - resets
44*5f62a964SEmmanuel Vadot
45*5f62a964SEmmanuel VadotunevaluatedProperties: false
46*5f62a964SEmmanuel Vadot
47*5f62a964SEmmanuel Vadotexamples:
48*5f62a964SEmmanuel Vadot  - |
49*5f62a964SEmmanuel Vadot    #include <dt-bindings/clock/r8a779f0-cpg-mssr.h>
50*5f62a964SEmmanuel Vadot    #include <dt-bindings/power/r8a779f0-sysc.h>
51*5f62a964SEmmanuel Vadot
52*5f62a964SEmmanuel Vadot    fuse@e6078800 {
53*5f62a964SEmmanuel Vadot        compatible = "renesas,r8a779f0-efuse";
54*5f62a964SEmmanuel Vadot        reg = <0xe6078800 0x200>;
55*5f62a964SEmmanuel Vadot        clocks = <&cpg CPG_MOD 915>;
56*5f62a964SEmmanuel Vadot        power-domains = <&sysc R8A779F0_PD_ALWAYS_ON>;
57*5f62a964SEmmanuel Vadot        resets = <&cpg 915>;
58*5f62a964SEmmanuel Vadot
59*5f62a964SEmmanuel Vadot        nvmem-layout {
60*5f62a964SEmmanuel Vadot            compatible = "fixed-layout";
61*5f62a964SEmmanuel Vadot            #address-cells = <1>;
62*5f62a964SEmmanuel Vadot            #size-cells = <1>;
63*5f62a964SEmmanuel Vadot
64*5f62a964SEmmanuel Vadot            calib@144 {
65*5f62a964SEmmanuel Vadot                reg = <0x144 0x08>;
66*5f62a964SEmmanuel Vadot            };
67*5f62a964SEmmanuel Vadot        };
68*5f62a964SEmmanuel Vadot    };
69