Merge tag 'efi_updates_for_v5.11' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux-2.6-microblaze.git] / Documentation / devicetree / bindings / arm / stm32 / st,stm32-syscon.yaml
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
7 title: STMicroelectronics STM32 Platforms System Controller bindings
8
9 maintainers:
10   - Alexandre Torgue <alexandre.torgue@st.com>
11   - Christophe Roullier <christophe.roullier@st.com>
12
13 properties:
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
35 required:
36   - compatible
37   - reg
38
39 if:
40   properties:
41     compatible:
42       contains:
43         enum:
44           - st,stm32mp157-syscfg
45 then:
46   required:
47     - clocks
48
49 additionalProperties: false
50
51 examples:
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 ...