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