xref: /linux/Documentation/devicetree/bindings/arm/stm32/st,stm32-syscon.yaml (revision 48dea9a700c8728cc31a1dd44588b97578de86ee)
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: "http://devicetree.org/schemas/arm/stm32/st,stm32-syscon.yaml#"
5$schema: "http://devicetree.org/meta-schemas/core.yaml#"
6
7title: STMicroelectronics STM32 Platforms System Controller bindings
8
9maintainers:
10  - Alexandre Torgue <alexandre.torgue@st.com>
11  - Christophe Roullier <christophe.roullier@st.com>
12
13properties:
14  compatible:
15    oneOf:
16      - items:
17          - enum:
18              - st,stm32mp157-syscfg
19              - st,stm32mp151-pwr-mcu
20              - st,stm32-syscfg
21              - st,stm32-power-config
22          - const: syscon
23
24  reg:
25    maxItems: 1
26
27  clocks:
28    maxItems: 1
29
30required:
31  - compatible
32  - reg
33
34if:
35  properties:
36    compatible:
37      contains:
38        enum:
39          - st,stm32mp157-syscfg
40then:
41  required:
42    - clocks
43
44additionalProperties: false
45
46examples:
47  - |
48    #include <dt-bindings/clock/stm32mp1-clks.h>
49    syscfg: syscon@50020000 {
50        compatible = "st,stm32mp157-syscfg", "syscon";
51        reg = <0x50020000 0x400>;
52        clocks = <&rcc SYSCFG>;
53    };
54
55...
56