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

Documentation: bindings: move the Berlin clock documentation

The Berlin clock documentation was part of the Marvell Berlin SoC
documentation because the Berlin clock configuration was inside the
chip controller. With the recent rework of the chip and system
controller handling (now all sub-devices of the soc and system
controller nodes are registred with simple-mfd, and each device has its
own sub-node), the documentation of the Berlin clock driver can be moved
to the generic clock documentation directory.

Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com>
Acked-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>

authored by

Antoine Tenart and committed by
Sebastian Hesselbarth
c1f86f2f 66fa300e

+35 -23
+4 -23
Documentation/devicetree/bindings/arm/marvell,berlin.txt
··· 87 87 "simple-mfd", "syscon" 88 88 - reg: address and length of the system control register set 89 89 90 - * Clock provider binding 91 - 92 - As clock related registers are spread among the chip control registers, the 93 - chip control node also provides the clocks. Marvell Berlin2 (BG2, BG2CD, BG2Q) 94 - SoCs share the same IP for PLLs and clocks, with some minor differences in 95 - features and register layout. 96 - 97 - Required properties: 98 - - #clock-cells: shall be set to 1 99 - - clocks: clock specifiers referencing the core clock input clocks 100 - - clock-names: array of strings describing the input clock specifiers above. 101 - Allowed clock-names for the reference clocks are 102 - "refclk" for the SoCs osciallator input on all SoCs, 103 - and SoC-specific input clocks for 104 - BG2/BG2CD: "video_ext0" for the external video clock input 105 - 106 - Clocks provided by core clocks shall be referenced by a clock specifier 107 - indexing one of the provided clocks. Refer to dt-bindings/clock/berlin<soc>.h 108 - for the corresponding index mapping. 109 - 110 90 Example: 111 91 112 92 chip: chip-control@ea0000 { 113 93 compatible = "marvell,berlin2-chip-ctrl", "simple-mfd", "syscon"; 114 - #clock-cells = <1>; 115 94 reg = <0xea0000 0x400>; 116 - clocks = <&refclk>, <&externaldev 0>; 117 - clock-names = "refclk", "video_ext0"; 95 + 96 + /* sub-device nodes */ 118 97 }; 119 98 120 99 sysctrl: system-controller@d000 { 121 100 compatible = "marvell,berlin2-system-ctrl", "simple-mfd", "syscon"; 122 101 reg = <0xd000 0x100>; 102 + 103 + /* sub-device nodes */ 123 104 };
+31
Documentation/devicetree/bindings/clock/marvell,berlin.txt
··· 1 + Device Tree Clock bindings for Marvell Berlin 2 + 3 + This binding uses the common clock binding[1]. 4 + 5 + [1] Documentation/devicetree/bindings/clock/clock-bindings.txt 6 + 7 + Clock related registers are spread among the chip control registers. Berlin 8 + clock node should be a sub-node of the chip controller node. Marvell Berlin2 9 + (BG2, BG2CD, BG2Q) SoCs share the same IP for PLLs and clocks, with some 10 + minor differences in features and register layout. 11 + 12 + Required properties: 13 + - compatible: must be "marvell,berlin2-clk" or "marvell,berlin2q-clk" 14 + - #clock-cells: must be 1 15 + - clocks: must be the input parent clock phandle 16 + - clock-names: name of the input parent clock 17 + Allowed clock-names for the reference clocks are 18 + "refclk" for the SoCs oscillator input on all SoCs, 19 + and SoC-specific input clocks for 20 + BG2/BG2CD: "video_ext0" for the external video clock input 21 + 22 + 23 + Example: 24 + 25 + chip_clk: clock { 26 + compatible = "marvell,berlin2q-clk"; 27 + 28 + #clock-cells = <1>; 29 + clocks = <&refclk>; 30 + clock-names = "refclk"; 31 + };