xref: /linux/Documentation/devicetree/bindings/arm/stm32/st,stm32-syscon.yaml (revision b501d4dc83aa3940189b68045cadc8b3eac73988)
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,stm32mp157-syscfg
19              - st,stm32mp151-pwr-mcu
20              - st,stm32-syscfg
21              - st,stm32-power-config
22              - st,stm32-tamp
23          - const: syscon
24      - items:
25          - const: st,stm32-tamp
26          - const: syscon
27          - const: simple-mfd
28
29  reg:
30    maxItems: 1
31
32  clocks:
33    maxItems: 1
34
35required:
36  - compatible
37  - reg
38
39if:
40  properties:
41    compatible:
42      contains:
43        enum:
44          - st,stm32mp157-syscfg
45then:
46  required:
47    - clocks
48
49additionalProperties: false
50
51examples:
52  - |
53    #include <dt-bindings/clock/stm32mp1-clks.h>
54    syscfg: syscon@50020000 {
55        compatible = "st,stm32mp157-syscfg", "syscon";
56        reg = <0x50020000 0x400>;
57        clocks = <&rcc SYSCFG>;
58    };
59
60...
61