xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/hwlock/sirf,hwspinlock.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunSIRF Hardware spinlock device Binding
2*4882a593Smuzhiyun-----------------------------------------------
3*4882a593Smuzhiyun
4*4882a593SmuzhiyunRequired properties :
5*4882a593Smuzhiyun- compatible : shall contain only one of the following:
6*4882a593Smuzhiyun	"sirf,hwspinlock"
7*4882a593Smuzhiyun
8*4882a593Smuzhiyun- reg : the register address of hwspinlock
9*4882a593Smuzhiyun
10*4882a593Smuzhiyun- #hwlock-cells : hwlock users only use the hwlock id to represent a specific
11*4882a593Smuzhiyun	hwlock, so the number of cells should be <1> here.
12*4882a593Smuzhiyun
13*4882a593SmuzhiyunPlease look at the generic hwlock binding for usage information for consumers,
14*4882a593Smuzhiyun"Documentation/devicetree/bindings/hwlock/hwlock.txt"
15*4882a593Smuzhiyun
16*4882a593SmuzhiyunExample of hwlock provider:
17*4882a593Smuzhiyun	hwlock {
18*4882a593Smuzhiyun		compatible = "sirf,hwspinlock";
19*4882a593Smuzhiyun		reg = <0x13240000 0x00010000>;
20*4882a593Smuzhiyun		#hwlock-cells = <1>;
21*4882a593Smuzhiyun	};
22*4882a593Smuzhiyun
23*4882a593SmuzhiyunExample of hwlock users:
24*4882a593Smuzhiyun	node {
25*4882a593Smuzhiyun		...
26*4882a593Smuzhiyun		hwlocks = <&hwlock 2>;
27*4882a593Smuzhiyun		...
28*4882a593Smuzhiyun	};
29