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