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

DT: hwspinlock: add the CSR atlas7 hwspinlock bindings document

The Hardware Spinlock device on atlas7 provides hardware assistance
for synchronization between the multiple processors in the system
(dual Cortex-A7, CAN bus Cortex-M3 and audio DSP).
This patch adds the DT bindings information for this hwspinlock
module.

Reviewed-by: Suman Anna <s-anna@ti.com>
Reviewed-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
Signed-off-by: Wei Chen <wei.chen@csr.com>
Signed-off-by: Barry Song <Baohua.Song@csr.com>
Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>

authored by

Wei Chen and committed by
Ohad Ben-Cohen
b97cadee cc16d664

+28
+28
Documentation/devicetree/bindings/hwlock/sirf,hwspinlock.txt
··· 1 + SIRF Hardware spinlock device Binding 2 + ----------------------------------------------- 3 + 4 + Required properties : 5 + - compatible : shall contain only one of the following: 6 + "sirf,hwspinlock" 7 + 8 + - reg : the register address of hwspinlock 9 + 10 + - #hwlock-cells : hwlock users only use the hwlock id to represent a specific 11 + hwlock, so the number of cells should be <1> here. 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 + hwlock { 18 + compatible = "sirf,hwspinlock"; 19 + reg = <0x13240000 0x00010000>; 20 + #hwlock-cells = <1>; 21 + }; 22 + 23 + Example of hwlock users: 24 + node { 25 + ... 26 + hwlocks = <&hwlock 2>; 27 + ... 28 + };