xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/nvmem/sc27xx-efuse.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun= Spreadtrum SC27XX PMIC eFuse device tree bindings =
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunRequired properties:
4*4882a593Smuzhiyun- compatible: Should be one of the following.
5*4882a593Smuzhiyun	"sprd,sc2720-efuse"
6*4882a593Smuzhiyun	"sprd,sc2721-efuse"
7*4882a593Smuzhiyun	"sprd,sc2723-efuse"
8*4882a593Smuzhiyun	"sprd,sc2730-efuse"
9*4882a593Smuzhiyun	"sprd,sc2731-efuse"
10*4882a593Smuzhiyun- reg: Specify the address offset of efuse controller.
11*4882a593Smuzhiyun- hwlocks: Reference to a phandle of a hwlock provider node.
12*4882a593Smuzhiyun
13*4882a593Smuzhiyun= Data cells =
14*4882a593SmuzhiyunAre child nodes of eFuse, bindings of which as described in
15*4882a593Smuzhiyunbindings/nvmem/nvmem.txt
16*4882a593Smuzhiyun
17*4882a593SmuzhiyunExample:
18*4882a593Smuzhiyun
19*4882a593Smuzhiyun	sc2731_pmic: pmic@0 {
20*4882a593Smuzhiyun		compatible = "sprd,sc2731";
21*4882a593Smuzhiyun		reg = <0>;
22*4882a593Smuzhiyun		spi-max-frequency = <26000000>;
23*4882a593Smuzhiyun		interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
24*4882a593Smuzhiyun		interrupt-controller;
25*4882a593Smuzhiyun		#interrupt-cells = <2>;
26*4882a593Smuzhiyun		#address-cells = <1>;
27*4882a593Smuzhiyun		#size-cells = <0>;
28*4882a593Smuzhiyun
29*4882a593Smuzhiyun		efuse@380 {
30*4882a593Smuzhiyun			compatible = "sprd,sc2731-efuse";
31*4882a593Smuzhiyun			reg = <0x380>;
32*4882a593Smuzhiyun			#address-cells = <1>;
33*4882a593Smuzhiyun			#size-cells = <1>;
34*4882a593Smuzhiyun			hwlocks = <&hwlock 12>;
35*4882a593Smuzhiyun
36*4882a593Smuzhiyun			/* Data cells */
37*4882a593Smuzhiyun			thermal_calib: calib@10 {
38*4882a593Smuzhiyun				reg = <0x10 0x2>;
39*4882a593Smuzhiyun			};
40*4882a593Smuzhiyun		};
41*4882a593Smuzhiyun	};
42*4882a593Smuzhiyun
43*4882a593Smuzhiyun= Data consumers =
44*4882a593SmuzhiyunAre device nodes which consume nvmem data cells.
45*4882a593Smuzhiyun
46*4882a593SmuzhiyunExample:
47*4882a593Smuzhiyun
48*4882a593Smuzhiyun	thermal {
49*4882a593Smuzhiyun		...
50*4882a593Smuzhiyun		nvmem-cells = <&thermal_calib>;
51*4882a593Smuzhiyun		nvmem-cell-names = "calibration";
52*4882a593Smuzhiyun	};
53