aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandre Torgue <alexandre.torgue@foss.st.com>2022-04-22 17:09:46 +0200
committerAlexandre Torgue <alexandre.torgue@foss.st.com>2022-05-04 11:00:49 +0200
commit35de4b4b82bcfaa5a33fd02e74a453fc67b3b1ec (patch)
tree9584c2bd8d9d634ef863ad61606055cbb2cab10b
parentdt-bindings: rcc: Add optional external ethernet RX clock properties (diff)
downloadlinux-dev-35de4b4b82bcfaa5a33fd02e74a453fc67b3b1ec.tar.xz
linux-dev-35de4b4b82bcfaa5a33fd02e74a453fc67b3b1ec.zip
dt-bindings: clock: stm32mp1: describes clocks if "st,stm32mp1-rcc-secure"
In case of "st,stm32mp1-rcc-secure" (stm32mp1 clock driver with RCC security support hardened), "clocks" and "clock-names" describe oscillators and are required. Signed-off-by: Alexandre Torgue <alexandre.torgue@foss.st.com> Reviewed-by: Rob Herring <robh@kernel.org>
-rw-r--r--Documentation/devicetree/bindings/clock/st,stm32mp1-rcc.yaml42
1 files changed, 34 insertions, 8 deletions
diff --git a/Documentation/devicetree/bindings/clock/st,stm32mp1-rcc.yaml b/Documentation/devicetree/bindings/clock/st,stm32mp1-rcc.yaml
index 7a251264582d..bb0e0b92e907 100644
--- a/Documentation/devicetree/bindings/clock/st,stm32mp1-rcc.yaml
+++ b/Documentation/devicetree/bindings/clock/st,stm32mp1-rcc.yaml
@@ -58,14 +58,8 @@ properties:
- st,stm32mp1-rcc-secure
- st,stm32mp1-rcc
- const: syscon
-
- clocks:
- description:
- Specifies the external RX clock for ethernet MAC.
- maxItems: 1
-
- clock-names:
- const: ETH_RX_CLK/ETH_REF_CLK
+ clocks: true
+ clock-names: true
reg:
maxItems: 1
@@ -76,6 +70,38 @@ required:
- compatible
- reg
+if:
+ properties:
+ compatible:
+ contains:
+ enum:
+ - st,stm32mp1-rcc-secure
+then:
+ properties:
+ clocks:
+ description: Specifies oscillators.
+ maxItems: 5
+
+ clock-names:
+ items:
+ - const: hse
+ - const: hsi
+ - const: csi
+ - const: lse
+ - const: lsi
+ required:
+ - clocks
+ - clock-names
+else:
+ properties:
+ clocks:
+ description:
+ Specifies the external RX clock for ethernet MAC.
+ maxItems: 1
+
+ clock-names:
+ const: ETH_RX_CLK/ETH_REF_CLK
+
additionalProperties: false
examples: