xref: /linux/Documentation/devicetree/bindings/nvmem/mediatek,efuse.yaml (revision e499d4b7d8c08784e4e49d9e32ebade2cf4596dc)
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,mt7622-efuse
30              - mediatek,mt7623-efuse
31              - mediatek,mt7981-efuse
32              - mediatek,mt7986-efuse
33              - mediatek,mt8173-efuse
34              - mediatek,mt8183-efuse
35              - mediatek,mt8186-efuse
36              - mediatek,mt8188-efuse
37              - mediatek,mt8192-efuse
38              - mediatek,mt8195-efuse
39              - mediatek,mt8516-efuse
40          - const: mediatek,efuse
41      - const: mediatek,mt8173-efuse
42        deprecated: true
43
44  reg:
45    maxItems: 1
46
47required:
48  - compatible
49  - reg
50
51unevaluatedProperties: false
52
53examples:
54  - |
55    efuse@11c10000 {
56        compatible = "mediatek,mt8195-efuse", "mediatek,efuse";
57        reg = <0x11c10000 0x1000>;
58        #address-cells = <1>;
59        #size-cells = <1>;
60
61        u3_tx_imp_p0: usb3-tx-imp@184,1 {
62            reg = <0x184 0x1>;
63            bits = <0 5>;
64        };
65        u3_rx_imp_p0: usb3-rx-imp@184,2 {
66            reg = <0x184 0x2>;
67            bits = <5 5>;
68        };
69        u3_intr_p0: usb3-intr@185 {
70            reg = <0x185 0x1>;
71            bits = <2 6>;
72        };
73        comb_tx_imp_p1: usb3-tx-imp@186,1 {
74            reg = <0x186 0x1>;
75            bits = <0 5>;
76        };
77        comb_rx_imp_p1: usb3-rx-imp@186,2 {
78            reg = <0x186 0x2>;
79            bits = <5 5>;
80        };
81        comb_intr_p1: usb3-intr@187 {
82            reg = <0x187 0x1>;
83            bits = <2 6>;
84        };
85        u2_intr_p0: usb2-intr-p0@188,1 {
86            reg = <0x188 0x1>;
87            bits = <0 5>;
88        };
89        u2_intr_p1: usb2-intr-p1@188,2 {
90            reg = <0x188 0x2>;
91            bits = <5 5>;
92        };
93    };
94