Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
1# SPDX-License-Identifier: (GPL-2.0-only or BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/hwlock/ti,omap-hwspinlock.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: TI HwSpinlock for OMAP and K3 based SoCs
8
9maintainers:
10 - Suman Anna <s-anna@ti.com>
11
12properties:
13 compatible:
14 enum:
15 - ti,omap4-hwspinlock # for OMAP44xx, OMAP54xx, AM33xx, AM43xx, DRA7xx SoCs
16 - ti,am64-hwspinlock # for K3 AM64x SoCs
17 - ti,am654-hwspinlock # for K3 AM65x, J721E and J7200 SoCs
18
19 reg:
20 maxItems: 1
21
22 "#hwlock-cells":
23 const: 1
24 description: |
25 The OMAP hwspinlock users will use a 0-indexed relative hwlock number as
26 the argument specifier value for requesting a specific hwspinlock within
27 a hwspinlock bank.
28
29 Please look at the generic hwlock binding for usage information for
30 consumers, "Documentation/devicetree/bindings/hwlock/hwlock.txt"
31
32required:
33 - compatible
34 - reg
35 - "#hwlock-cells"
36
37additionalProperties: false
38
39examples:
40
41 - |
42 /* OMAP4 SoCs */
43 hwspinlock: spinlock@4a0f6000 {
44 compatible = "ti,omap4-hwspinlock";
45 reg = <0x4a0f6000 0x1000>;
46 #hwlock-cells = <1>;
47 };
48
49 - |
50 / {
51 /* K3 AM65x SoCs */
52 model = "Texas Instruments K3 AM654 SoC";
53 compatible = "ti,am654-evm", "ti,am654";
54 #address-cells = <2>;
55 #size-cells = <2>;
56
57 bus@100000 {
58 compatible = "simple-bus";
59 #address-cells = <2>;
60 #size-cells = <2>;
61 ranges = <0x00 0x00100000 0x00 0x00100000 0x00 0x00020000>, /* ctrl mmr */
62 <0x00 0x30800000 0x00 0x30800000 0x00 0x0bc00000>; /* Main NavSS */
63
64 bus@30800000 {
65 compatible = "simple-mfd";
66 #address-cells = <2>;
67 #size-cells = <2>;
68 ranges = <0x00 0x30800000 0x00 0x30800000 0x00 0x0bc00000>;
69
70 spinlock@30e00000 {
71 compatible = "ti,am654-hwspinlock";
72 reg = <0x00 0x30e00000 0x00 0x1000>;
73 #hwlock-cells = <1>;
74 };
75 };
76 };
77 };