Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/hwlock/st,stm32-hwspinlock.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: STMicroelectronics STM32 Hardware Spinlock bindings
0008 
0009 maintainers:
0010   - Fabien Dessenne <fabien.dessenne@foss.st.com>
0011 
0012 properties:
0013   "#hwlock-cells":
0014     const: 1
0015 
0016   compatible:
0017     const: st,stm32-hwspinlock
0018 
0019   reg:
0020     maxItems: 1
0021 
0022   clocks:
0023     maxItems: 1
0024 
0025   clock-names:
0026     items:
0027       - const: hsem
0028 
0029 required:
0030   - "#hwlock-cells"
0031   - compatible
0032   - reg
0033   - clocks
0034   - clock-names
0035 
0036 additionalProperties: false
0037 
0038 examples:
0039   - |
0040     #include <dt-bindings/clock/stm32mp1-clks.h>
0041     hwspinlock@4c000000 {
0042         compatible = "st,stm32-hwspinlock";
0043         #hwlock-cells = <1>;
0044         reg = <0x4c000000 0x400>;
0045         clocks = <&rcc HSEM>;
0046         clock-names = "hsem";
0047     };
0048 
0049 ...