Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 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 | }; |