STMicroelectronics STM32 Hardware Spinlock

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)

Edit this page