Skip to content

Commit

Permalink
DT: hwspinlock: add the CSR atlas7 hwspinlock bindings document
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wei Chen authored and Ohad Ben-Cohen committed Jun 12, 2015
1 parent cc16d66 commit b97cade
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions Documentation/devicetree/bindings/hwlock/sirf,hwspinlock.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
SIRF Hardware spinlock device Binding
-----------------------------------------------

Required properties :
- compatible : shall contain only one of the following:
"sirf,hwspinlock"

- reg : the register address of hwspinlock

- #hwlock-cells : hwlock users only use the hwlock id to represent a specific
hwlock, so the number of cells should be <1> here.

Please look at the generic hwlock binding for usage information for consumers,
"Documentation/devicetree/bindings/hwlock/hwlock.txt"

Example of hwlock provider:
hwlock {
compatible = "sirf,hwspinlock";
reg = <0x13240000 0x00010000>;
#hwlock-cells = <1>;
};

Example of hwlock users:
node {
...
hwlocks = <&hwlock 2>;
...
};

0 comments on commit b97cade

Please sign in to comment.