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
20properties:
21  $nodename:
22    pattern: "^efuse@[0-9a-f]+$"
23
24  compatible:
25    oneOf:
26      - items:
27          - enum:
28              - mediatek,mt7622-efuse
29              - mediatek,mt7623-efuse
30              - mediatek,mt7986-efuse
31              - mediatek,mt8173-efuse
32              - mediatek,mt8183-efuse
33              - mediatek,mt8186-efuse
34              - mediatek,mt8188-efuse
35              - mediatek,mt8192-efuse
36              - mediatek,mt8195-efuse
37              - mediatek,mt8516-efuse
38          - const: mediatek,efuse
39      - const: mediatek,mt8173-efuse
40        deprecated: true
41
42  reg:
43    maxItems: 1
44
45required:
46  - compatible
47  - reg
48
49unevaluatedProperties: false
50
51examples:
52  - |
53    efuse@11c10000 {
54        compatible = "mediatek,mt8195-efuse", "mediatek,efuse";
55        reg = <0x11c10000 0x1000>;
56        #address-cells = <1>;
57        #size-cells = <1>;
58
59        u3_tx_imp_p0: usb3-tx-imp@184,1 {
60            reg = <0x184 0x1>;
61            bits = <0 5>;
62        };
63        u3_rx_imp_p0: usb3-rx-imp@184,2 {
64            reg = <0x184 0x2>;
65            bits = <5 5>;
66        };
67        u3_intr_p0: usb3-intr@185 {
68            reg = <0x185 0x1>;
69            bits = <2 6>;
70        };
71        comb_tx_imp_p1: usb3-tx-imp@186,1 {
72            reg = <0x186 0x1>;
73            bits = <0 5>;
74        };
75        comb_rx_imp_p1: usb3-rx-imp@186,2 {
76            reg = <0x186 0x2>;
77            bits = <5 5>;
78        };
79        comb_intr_p1: usb3-intr@187 {
80            reg = <0x187 0x1>;
81            bits = <2 6>;
82        };
83        u2_intr_p0: usb2-intr-p0@188,1 {
84            reg = <0x188 0x1>;
85            bits = <0 5>;
86        };
87        u2_intr_p1: usb2-intr-p1@188,2 {
88            reg = <0x188 0x2>;
89            bits = <5 5>;
90        };
91    };
92