GNU Linux-libre 5.19-rc6-gnu
[releases.git] / Documentation / devicetree / bindings / nvmem / mtk-efuse.txt
1 = Mediatek MTK-EFUSE device tree bindings =
2
3 This binding is intended to represent MTK-EFUSE which is found in most Mediatek SOCs.
4
5 Required properties:
6 - compatible: should be
7               "mediatek,mt7622-efuse", "mediatek,efuse": for MT7622
8               "mediatek,mt7623-efuse", "mediatek,efuse": for MT7623
9               "mediatek,mt8173-efuse" or "mediatek,efuse": for MT8173
10               "mediatek,mt8192-efuse", "mediatek,efuse": for MT8192
11               "mediatek,mt8195-efuse", "mediatek,efuse": for MT8195
12               "mediatek,mt8516-efuse", "mediatek,efuse": for MT8516
13 - reg: Should contain registers location and length
14 - bits: contain the bits range by offset and size
15
16 = Data cells =
17 Are child nodes of MTK-EFUSE, bindings of which as described in
18 bindings/nvmem/nvmem.txt
19
20 Example:
21
22         efuse: efuse@10206000 {
23                 compatible = "mediatek,mt8173-efuse";
24                 reg        = <0 0x10206000 0 0x1000>;
25                 #address-cells = <1>;
26                 #size-cells = <1>;
27
28                 /* Data cells */
29                 thermal_calibration: calib@528 {
30                         reg = <0x528 0xc>;
31                 };
32         };
33
34 = Data consumers =
35 Are device nodes which consume nvmem data cells.
36
37 For example:
38
39         thermal {
40                 ...
41                 nvmem-cells = <&thermal_calibration>;
42                 nvmem-cell-names = "calibration";
43         };