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
8
9maintainers:
10  - Alexandre Torgue <alexandre.torgue@foss.st.com>
11  - Christophe Roullier <christophe.roullier@foss.st.com>
12
13properties:
14  compatible:
15    oneOf:
16      - items:
17          - enum:
18              - st,stm32-power-config
19              - st,stm32-syscfg
20              - st,stm32-tamp
21              - st,stm32f4-gcan
22              - st,stm32mp151-pwr-mcu
23              - st,stm32mp157-syscfg
24              - st,stm32mp21-syscfg
25              - st,stm32mp23-syscfg
26              - st,stm32mp25-syscfg
27          - const: syscon
28      - items:
29          - const: st,stm32-tamp
30          - const: syscon
31          - const: simple-mfd
32
33  reg:
34    maxItems: 1
35
36  clocks:
37    maxItems: 1
38
39required:
40  - compatible
41  - reg
42
43if:
44  properties:
45    compatible:
46      contains:
47        enum:
48          - st,stm32mp157-syscfg
49          - st,stm32f4-gcan
50then:
51  required:
52    - clocks
53
54additionalProperties: false
55
56examples:
57  - |
58    #include <dt-bindings/clock/stm32mp1-clks.h>
59    syscfg: syscon@50020000 {
60        compatible = "st,stm32mp157-syscfg", "syscon";
61        reg = <0x50020000 0x400>;
62        clocks = <&rcc SYSCFG>;
63    };
64
65...
66