Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Martin Blumenstingl and committed by
Jerome Brunet
51b6fe7e e42617b8

+54
+50
Documentation/devicetree/bindings/clock/amlogic,meson8-ddr-clkc.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/clock/amlogic,meson8-ddr-clkc.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Amlogic DDR Clock Controller Device Tree Bindings 8 + 9 + maintainers: 10 + - Martin Blumenstingl <martin.blumenstingl@googlemail.com> 11 + 12 + properties: 13 + compatible: 14 + enum: 15 + - amlogic,meson8-ddr-clkc 16 + - amlogic,meson8b-ddr-clkc 17 + 18 + reg: 19 + maxItems: 1 20 + 21 + clocks: 22 + maxItems: 1 23 + 24 + clock-names: 25 + items: 26 + - const: xtal 27 + 28 + "#clock-cells": 29 + const: 1 30 + 31 + required: 32 + - compatible 33 + - reg 34 + - clocks 35 + - clock-names 36 + - "#clock-cells" 37 + 38 + additionalProperties: false 39 + 40 + examples: 41 + - | 42 + ddr_clkc: clock-controller@400 { 43 + compatible = "amlogic,meson8-ddr-clkc"; 44 + reg = <0x400 0x20>; 45 + clocks = <&xtal>; 46 + clock-names = "xtal"; 47 + #clock-cells = <1>; 48 + }; 49 + 50 + ...
+4
include/dt-bindings/clock/meson8-ddr-clkc.h
··· 1 + /* SPDX-License-Identifier: GPL-2.0 */ 2 + 3 + #define DDR_CLKID_DDR_PLL_DCO 0 4 + #define DDR_CLKID_DDR_PLL 1