aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/dt-bindings/clock
diff options
context:
space:
mode:
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>2019-11-17 15:07:30 +0100
committerJerome Brunet <jbrunet@baylibre.com>2019-12-11 14:06:27 +0100
commit51b6fe7e66eee0fe353ff8157c64d16b971fac39 (patch)
tree555078f90f85439c12bceb081503b840ce4dd1ae /include/dt-bindings/clock
parentLinux 5.5-rc1 (diff)
downloadwireguard-linux-51b6fe7e66eee0fe353ff8157c64d16b971fac39.tar.xz
wireguard-linux-51b6fe7e66eee0fe353ff8157c64d16b971fac39.zip
dt-bindings: clock: add the Amlogic Meson8 DDR clock controller binding
Amlogic Meson8, Meson8b and Meson8m2 SoCs have a DDR clock controller in the MMCBUS registers. There is no public documentation on this, but the GPL u-boot sources from the Amlogic BSP show that: - it uses the same XTAL input as the main clock controller - it contains a PLL which seems to be implemented just like the other PLLs in this SoC - there is a power-of-two PLL post-divider Add the documentation and header file for this DDR clock controller. Reviewed-by: Rob Herring <robh@kernel.org> Acked-by: Stephen Boyd <sboyd@kernel.org> Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Diffstat (limited to 'include/dt-bindings/clock')
-rw-r--r--include/dt-bindings/clock/meson8-ddr-clkc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/dt-bindings/clock/meson8-ddr-clkc.h b/include/dt-bindings/clock/meson8-ddr-clkc.h
new file mode 100644
index 000000000000..a8e0fa2987ab
--- /dev/null
+++ b/include/dt-bindings/clock/meson8-ddr-clkc.h
@@ -0,0 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+
+#define DDR_CLKID_DDR_PLL_DCO 0
+#define DDR_CLKID_DDR_PLL 1