Skip to content

Commit 5b19519

Browse files
VCASTMalexandrebelloni
authored andcommitted
dt-bindings: rtc: stm32: describe pinmux nodes
STM32 RTC is capable to handle 3 specific pins of the soc (out1, out2, out2_rmp) and to outputs 2 signals (LSCO, alarm-a). This feature is configured thanks to pinmux nodes and pinctrl framework. This feature is available with compatible st,stm32mp1-rtc and st,stm32mp25-rtc only. Signed-off-by: Valentin Caron <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Reviewed-by: Linus Walleij <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexandre Belloni <[email protected]>
1 parent 8400291 commit 5b19519

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

Documentation/devicetree/bindings/rtc/st,stm32-rtc.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,28 @@ properties:
5353
override default rtc_ck parent clock phandle of the new parent clock of rtc_ck
5454
maxItems: 1
5555

56+
patternProperties:
57+
"^rtc-[a-z]+-[0-9]+$":
58+
type: object
59+
$ref: /schemas/pinctrl/pinmux-node.yaml
60+
description: |
61+
Configuration of STM32 RTC pins description. STM32 RTC is able to output
62+
some signals on specific pins:
63+
- LSCO (Low Speed Clock Output) that allow to output LSE clock on a pin.
64+
- Alarm out that allow to send a pulse on a pin when alarm A of the RTC
65+
expires.
66+
additionalProperties: false
67+
properties:
68+
function:
69+
enum:
70+
- lsco
71+
- alarm-a
72+
pins:
73+
enum:
74+
- out1
75+
- out2
76+
- out2_rmp
77+
5678
allOf:
5779
- if:
5880
properties:
@@ -68,6 +90,9 @@ allOf:
6890

6991
clock-names: false
7092

93+
patternProperties:
94+
"^rtc-[a-z]+-[0-9]+$": false
95+
7196
required:
7297
- st,syscfg
7398

@@ -83,6 +108,9 @@ allOf:
83108
minItems: 2
84109
maxItems: 2
85110

111+
patternProperties:
112+
"^rtc-[a-z]+-[0-9]+$": false
113+
86114
required:
87115
- clock-names
88116
- st,syscfg

0 commit comments

Comments
 (0)