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

DT: hwspinlock: Add binding documentation for Spreadtrum hwspinlock

This patch adds the binding documentation for Spreadtrum hardware spinlock
device.

Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Baolin Wang <baolin.wang@spreadtrum.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>

authored by

Baolin Wang and committed by
Bjorn Andersson
93f66edd d8c8bbbb

+23
+23
Documentation/devicetree/bindings/hwlock/sprd-hwspinlock.txt
··· 1 + SPRD Hardware Spinlock Device Binding 2 + ------------------------------------- 3 + 4 + Required properties : 5 + - compatible : should be "sprd,hwspinlock-r3p0". 6 + - reg : the register address of hwspinlock. 7 + - #hwlock-cells : hwlock users only use the hwlock id to represent a specific 8 + hwlock, so the number of cells should be <1> here. 9 + - clock-names : Must contain "enable". 10 + - clocks : Must contain a phandle entry for the clock in clock-names, see the 11 + common clock bindings. 12 + 13 + Please look at the generic hwlock binding for usage information for consumers, 14 + "Documentation/devicetree/bindings/hwlock/hwlock.txt" 15 + 16 + Example of hwlock provider: 17 + hwspinlock@40500000 { 18 + compatible = "sprd,hwspinlock-r3p0"; 19 + reg = <0 0x40500000 0 0x1000>; 20 + #hwlock-cells = <1>; 21 + clock-names = "enable"; 22 + clocks = <&clk_aon_apb_gates0 22>; 23 + };