summaryrefslogtreecommitdiff
path: root/include/dt-bindings
diff options
context:
space:
mode:
authorSamuel Holland <samuel@sholland.org>2022-02-02 20:17:32 -0600
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2022-02-15 23:14:59 +0100
commit8487614a8a8a70d44957a11693dbefd8350f402c (patch)
tree8f988ca72621c67ace94fa0640a627a431a1b154 /include/dt-bindings
parentf720002d8468f46c3cce8ab2b9f93aeedac4b602 (diff)
downloadlinux-next-8487614a8a8a70d44957a11693dbefd8350f402c.tar.gz
dt-bindings: rtc: sun6i: Add H616, R329, and D1 support
These new RTC variants all have a single alarm, like the R40 variant. For the new SoCs, start requiring a complete list of input clocks. The H616 has three required clocks. The R329 also has three required clocks (but one is different), plus an optional crystal oscillator input. The D1 RTC is identical to the one in the R329. And since these new SoCs will have a well-defined output clock order as well, they do not need the clock-output-names property. Signed-off-by: Samuel Holland <samuel@sholland.org> Reviewed-by: Rob Herring <robh@kernel.org> Reviewed-by: Maxime Ripard <maxime@cerno.tech> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Link: https://lore.kernel.org/r/20220203021736.13434-3-samuel@sholland.org
Diffstat (limited to 'include/dt-bindings')
-rw-r--r--include/dt-bindings/clock/sun6i-rtc.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/dt-bindings/clock/sun6i-rtc.h b/include/dt-bindings/clock/sun6i-rtc.h
new file mode 100644
index 000000000000..c845493e4d37
--- /dev/null
+++ b/include/dt-bindings/clock/sun6i-rtc.h
@@ -0,0 +1,10 @@
+/* SPDX-License-Identifier: (GPL-2.0+ or MIT) */
+
+#ifndef _DT_BINDINGS_CLK_SUN6I_RTC_H_
+#define _DT_BINDINGS_CLK_SUN6I_RTC_H_
+
+#define CLK_OSC32K 0
+#define CLK_OSC32K_FANOUT 1
+#define CLK_IOSC 2
+
+#endif /* _DT_BINDINGS_CLK_SUN6I_RTC_H_ */