Hwlock bindings
Single-page view · as markdown
SUN6I hardware spinlock driver for Allwinner sun6i compatible SoCs
Peios Kernel / Hardware and drivers / Device-tree binding reference / Hwlock bindings
Schema identifier ($id): "http://devicetree.org/schemas/hwlock/allwinner,sun6i-a31-hwspinlock.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Wilken Gottwalt <wilken.gottwalt@posteo.net>"
The hardware unit provides semaphores between the ARM cores and the embedded companion core on the SoC.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "allwinner,sun6i-a31-hwspinlock"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
resets — required here #
Maximum number of items (maxItems): 1
#hwlock-cells — required here #
Exact value (const): 1
Required in this object (required): "compatible", "reg", "clocks", "resets", "#hwlock-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/sun8i-a23-a33-ccu.h>
#include <dt-bindings/reset/sun8i-a23-a33-ccu.h>
hwlock@1c18000 {
compatible = "allwinner,sun6i-a31-hwspinlock";
reg = <0x01c18000 0x1000>;
clocks = <&ccu CLK_BUS_SPINLOCK>;
resets = <&ccu RST_BUS_SPINLOCK>;
#hwlock-cells = <1>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Qualcomm Hardware Mutex Block
Peios Kernel / Hardware and drivers / Device-tree binding reference / Hwlock bindings
Schema identifier ($id): "http://devicetree.org/schemas/hwlock/qcom-hwspinlock.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Bjorn Andersson <bjorn.andersson@linaro.org>"
The hardware block provides mutexes utilized between different processors on the SoC as part of the communication protocol used by these processors.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"qcom,apq8084-tcsr-mutex","qcom,ipq6018-tcsr-mutex","qcom,msm8226-tcsr-mutex","qcom,msm8994-tcsr-mutex"Item 2
Exact value (
const):"qcom,tcsr-mutex"
Rule 3
Array item rules (
items)Item 1
Item 2
Exact value (
const):"qcom,tcsr-mutex"Item 3
Exact value (
const):"syscon"
reg — required here #
Maximum number of items (maxItems): 1
#hwlock-cells — required here #
Exact value (const): 1
Required in this object (required): "compatible", "reg", "#hwlock-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
hwlock@1f40000 {
compatible = "qcom,tcsr-mutex";
reg = <0x01f40000 0x40000>;
#hwlock-cells = <1>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Spreadtrum hardware spinlock
Peios Kernel / Hardware and drivers / Device-tree binding reference / Hwlock bindings
Schema identifier ($id): "http://devicetree.org/schemas/hwlock/sprd,hwspinlock-r3p0.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Orson Zhai <orsonzhai@gmail.com>", "Baolin Wang <baolin.wang7@gmail.com>", "Chunyan Zhang <zhang.lyra@gmail.com>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "sprd,hwspinlock-r3p0"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
clock-names — required here #
Exact value (const): "enable"
#hwlock-cells — required here #
Exact value (const): 1
Required in this object (required): "compatible", "reg", "clocks", "clock-names", "#hwlock-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/sprd,sc9860-clk.h>
hwlock@40500000 {
compatible = "sprd,hwspinlock-r3p0";
reg = <0x40500000 0x1000>;
clocks = <&aon_gate CLK_SPLK_EB>;
clock-names = "enable";
#hwlock-cells = <1>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
STMicroelectronics STM32 Hardware Spinlock
Peios Kernel / Hardware and drivers / Device-tree binding reference / Hwlock bindings
Schema identifier ($id): "http://devicetree.org/schemas/hwlock/st,stm32-hwspinlock.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Fabien Dessenne <fabien.dessenne@foss.st.com>"
Properties and child nodes (properties) #
#hwlock-cells — required here #
Exact value (const): 1
compatible — required here #
Exact value (const): "st,stm32-hwspinlock"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"hsem"
Required in this object (required): "#hwlock-cells", "compatible", "reg", "clocks", "clock-names"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/stm32mp1-clks.h>
hwspinlock@4c000000 {
compatible = "st,stm32-hwspinlock";
#hwlock-cells = <1>;
reg = <0x4c000000 0x400>;
clocks = <&rcc HSEM>;
clock-names = "hsem";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
TI HwSpinlock for OMAP and K3 based SoCs
Peios Kernel / Hardware and drivers / Device-tree binding reference / Hwlock bindings
Schema identifier ($id): "http://devicetree.org/schemas/hwlock/ti,omap-hwspinlock.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Suman Anna <s-anna@ti.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ti,omap4-hwspinlock", "ti,am64-hwspinlock", "ti,am654-hwspinlock"
reg — required here #
Maximum number of items (maxItems): 1
#hwlock-cells — required here #
Exact value (const): 1
The OMAP hwspinlock users will use a 0-indexed relative hwlock number as the argument specifier value for requesting a specific hwspinlock within a hwspinlock bank.
Please look at the generic hwlock binding for usage information for consumers, "Documentation/devicetree/bindings/hwlock/hwlock.txt"
Required in this object (required): "compatible", "reg", "#hwlock-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
spinlock@4a0f6000 {
compatible = "ti,omap4-hwspinlock";
reg = <0x4a0f6000 0x1000>;
#hwlock-cells = <1>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 15: for OMAP44xx, OMAP54xx, AM33xx, AM43xx, DRA7xx SoCs
Line 16: for K3 AM64x SoCs
Line 17: for K3 AM65x, J721E and J7200 SoCs