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/allwinner,sun6i-a31-hwspinlock.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: SUN6I hardware spinlock driver for Allwinner sun6i compatible SoCs
0008 
0009 maintainers:
0010   - Wilken Gottwalt <wilken.gottwalt@posteo.net>
0011 
0012 description:
0013   The hardware unit provides semaphores between the ARM cores and the embedded
0014   companion core on the SoC.
0015 
0016 properties:
0017   compatible:
0018     const: allwinner,sun6i-a31-hwspinlock
0019 
0020   reg:
0021     maxItems: 1
0022 
0023   clocks:
0024     maxItems: 1
0025 
0026   resets:
0027     maxItems: 1
0028 
0029 required:
0030   - compatible
0031   - reg
0032   - clocks
0033   - resets
0034 
0035 additionalProperties: false
0036 
0037 examples:
0038   - |
0039     #include <dt-bindings/clock/sun8i-a23-a33-ccu.h>
0040     #include <dt-bindings/reset/sun8i-a23-a33-ccu.h>
0041 
0042     hwlock@1c18000 {
0043         compatible = "allwinner,sun6i-a31-hwspinlock";
0044         reg = <0x01c18000 0x1000>;
0045         clocks = <&ccu CLK_BUS_SPINLOCK>;
0046         resets = <&ccu RST_BUS_SPINLOCK>;
0047     };
0048 ...