0001 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: "http://devicetree.org/schemas/arm/stm32/st,stm32-syscon.yaml#"
0005 $schema: "http://devicetree.org/meta-schemas/core.yaml#"
0006
0007 title: STMicroelectronics STM32 Platforms System Controller bindings
0008
0009 maintainers:
0010 - Alexandre Torgue <alexandre.torgue@foss.st.com>
0011 - Christophe Roullier <christophe.roullier@foss.st.com>
0012
0013 properties:
0014 compatible:
0015 oneOf:
0016 - items:
0017 - enum:
0018 - st,stm32mp157-syscfg
0019 - st,stm32mp151-pwr-mcu
0020 - st,stm32-syscfg
0021 - st,stm32-power-config
0022 - st,stm32-tamp
0023 - const: syscon
0024 - items:
0025 - const: st,stm32-tamp
0026 - const: syscon
0027 - const: simple-mfd
0028
0029 reg:
0030 maxItems: 1
0031
0032 clocks:
0033 maxItems: 1
0034
0035 required:
0036 - compatible
0037 - reg
0038
0039 if:
0040 properties:
0041 compatible:
0042 contains:
0043 enum:
0044 - st,stm32mp157-syscfg
0045 then:
0046 required:
0047 - clocks
0048
0049 additionalProperties: false
0050
0051 examples:
0052 - |
0053 #include <dt-bindings/clock/stm32mp1-clks.h>
0054 syscfg: syscon@50020000 {
0055 compatible = "st,stm32mp157-syscfg", "syscon";
0056 reg = <0x50020000 0x400>;
0057 clocks = <&rcc SYSCFG>;
0058 };
0059
0060 ...