xref: /linux/Documentation/devicetree/bindings/nvmem/mediatek,efuse.yaml (revision 43cd4b634ef90c4e2ff75eaeb361786fa04c8874)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/nvmem/mediatek,efuse.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: MediaTek efuse
8
9description: |
10  MediaTek's efuse is used for storing calibration data, it can be accessed
11  on ARM devices usiong I/O mapped memory.
12
13maintainers:
14  - Andrew-CT Chen <andrew-ct.chen@mediatek.com>
15  - Lala Lin <lala.lin@mediatek.com>
16
17allOf:
18  - $ref: nvmem.yaml#
19  - $ref: nvmem-deprecated-cells.yaml#
20
21properties:
22  $nodename:
23    pattern: "^efuse@[0-9a-f]+$"
24
25  compatible:
26    oneOf:
27      - items:
28          - enum:
29              - mediatek,mt8188-efuse
30              - mediatek,mt8189-efuse
31          - const: mediatek,mt8186-efuse
32      - const: mediatek,mt8186-efuse
33
34      - items:
35          - enum:
36              - mediatek,mt8186-efuse
37              - mediatek,mt8188-efuse
38          - const: mediatek,efuse
39        deprecated: true
40        description: Some compatibles also imply a decoding scheme for the
41          "gpu-speedbin" cell, and thus are not backward compatible to the
42          generic "mediatek,efuse" compatible.
43
44      - items:
45          - enum:
46              - mediatek,mt7622-efuse
47              - mediatek,mt7623-efuse
48              - mediatek,mt7981-efuse
49              - mediatek,mt7986-efuse
50              - mediatek,mt7988-efuse
51              - mediatek,mt8173-efuse
52              - mediatek,mt8183-efuse
53              - mediatek,mt8189-efuse
54              - mediatek,mt8192-efuse
55              - mediatek,mt8195-efuse
56              - mediatek,mt8516-efuse
57          - const: mediatek,efuse
58      - const: mediatek,mt8173-efuse
59        deprecated: true
60
61  reg:
62    maxItems: 1
63
64required:
65  - compatible
66  - reg
67
68unevaluatedProperties: false
69
70examples:
71  - |
72    efuse@11c10000 {
73        compatible = "mediatek,mt8195-efuse", "mediatek,efuse";
74        reg = <0x11c10000 0x1000>;
75        #address-cells = <1>;
76        #size-cells = <1>;
77
78        u3_tx_imp_p0: usb3-tx-imp@184,1 {
79            reg = <0x184 0x1>;
80            bits = <0 5>;
81        };
82        u3_rx_imp_p0: usb3-rx-imp@184,2 {
83            reg = <0x184 0x2>;
84            bits = <5 5>;
85        };
86        u3_intr_p0: usb3-intr@185 {
87            reg = <0x185 0x1>;
88            bits = <2 6>;
89        };
90        comb_tx_imp_p1: usb3-tx-imp@186,1 {
91            reg = <0x186 0x1>;
92            bits = <0 5>;
93        };
94        comb_rx_imp_p1: usb3-rx-imp@186,2 {
95            reg = <0x186 0x2>;
96            bits = <5 5>;
97        };
98        comb_intr_p1: usb3-intr@187 {
99            reg = <0x187 0x1>;
100            bits = <2 6>;
101        };
102        u2_intr_p0: usb2-intr-p0@188,1 {
103            reg = <0x188 0x1>;
104            bits = <0 5>;
105        };
106        u2_intr_p1: usb2-intr-p1@188,2 {
107            reg = <0x188 0x2>;
108            bits = <5 5>;
109        };
110    };
111