xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/nvmem/mtk-efuse.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun= Mediatek MTK-EFUSE device tree bindings =
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunThis binding is intended to represent MTK-EFUSE which is found in most Mediatek SOCs.
4*4882a593Smuzhiyun
5*4882a593SmuzhiyunRequired properties:
6*4882a593Smuzhiyun- compatible: should be
7*4882a593Smuzhiyun	      "mediatek,mt7622-efuse", "mediatek,efuse": for MT7622
8*4882a593Smuzhiyun	      "mediatek,mt7623-efuse", "mediatek,efuse": for MT7623
9*4882a593Smuzhiyun	      "mediatek,mt8173-efuse" or "mediatek,efuse": for MT8173
10*4882a593Smuzhiyun- reg: Should contain registers location and length
11*4882a593Smuzhiyun
12*4882a593Smuzhiyun= Data cells =
13*4882a593SmuzhiyunAre child nodes of MTK-EFUSE, bindings of which as described in
14*4882a593Smuzhiyunbindings/nvmem/nvmem.txt
15*4882a593Smuzhiyun
16*4882a593SmuzhiyunExample:
17*4882a593Smuzhiyun
18*4882a593Smuzhiyun	efuse: efuse@10206000 {
19*4882a593Smuzhiyun		compatible = "mediatek,mt8173-efuse";
20*4882a593Smuzhiyun		reg	   = <0 0x10206000 0 0x1000>;
21*4882a593Smuzhiyun		#address-cells = <1>;
22*4882a593Smuzhiyun		#size-cells = <1>;
23*4882a593Smuzhiyun
24*4882a593Smuzhiyun		/* Data cells */
25*4882a593Smuzhiyun		thermal_calibration: calib@528 {
26*4882a593Smuzhiyun			reg = <0x528 0xc>;
27*4882a593Smuzhiyun		};
28*4882a593Smuzhiyun	};
29*4882a593Smuzhiyun
30*4882a593Smuzhiyun= Data consumers =
31*4882a593SmuzhiyunAre device nodes which consume nvmem data cells.
32*4882a593Smuzhiyun
33*4882a593SmuzhiyunFor example:
34*4882a593Smuzhiyun
35*4882a593Smuzhiyun	thermal {
36*4882a593Smuzhiyun		...
37*4882a593Smuzhiyun		nvmem-cells = <&thermal_calibration>;
38*4882a593Smuzhiyun		nvmem-cell-names = "calibration";
39*4882a593Smuzhiyun	};
40