Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: nvmem: Add Spreadtrum SC27XX efuse controller documentation

This patch adds the binding documentation for Spreadtrum SC27XX series
PMICs efuse controller device.

Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Baolin Wang and committed by
Greg Kroah-Hartman
3eb93e08 5d6bd30c

+52
+52
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 + };