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

dt-bindings: clock: Convert marvell,mvebu-core-clock to DT schema

Convert the Marvell SoC core clock binding to DT schema format. It's a
straight forward conversion.

Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Link: https://lore.kernel.org/r/20250521210844.62613-1-robh@kernel.org
Signed-off-by: Stephen Boyd <sboyd@kernel.org>

authored by

Rob Herring (Arm) and committed by
Stephen Boyd
7cbc8535 75cc4827

+94 -87
+94
Documentation/devicetree/bindings/clock/marvell,mvebu-core-clock.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/marvell,mvebu-core-clock.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Marvell MVEBU SoC core clock 8 + 9 + maintainers: 10 + - Andrew Lunn <andrew@lunn.ch> 11 + - Gregory Clement <gregory.clement@bootlin.com> 12 + 13 + description: > 14 + Marvell MVEBU SoCs usually allow to determine core clock frequencies by 15 + reading the Sample-At-Reset (SAR) register. The core clock consumer should 16 + specify the desired clock by having the clock ID in its "clocks" phandle cell. 17 + 18 + The following is a list of provided IDs and clock names on Armada 370/XP: 19 + 0 = tclk (Internal Bus clock) 20 + 1 = cpuclk (CPU clock) 21 + 2 = nbclk (L2 Cache clock) 22 + 3 = hclk (DRAM control clock) 23 + 4 = dramclk (DDR clock) 24 + 25 + The following is a list of provided IDs and clock names on Armada 375: 26 + 0 = tclk (Internal Bus clock) 27 + 1 = cpuclk (CPU clock) 28 + 2 = l2clk (L2 Cache clock) 29 + 3 = ddrclk (DDR clock) 30 + 31 + The following is a list of provided IDs and clock names on Armada 380/385: 32 + 0 = tclk (Internal Bus clock) 33 + 1 = cpuclk (CPU clock) 34 + 2 = l2clk (L2 Cache clock) 35 + 3 = ddrclk (DDR clock) 36 + 37 + The following is a list of provided IDs and clock names on Armada 39x: 38 + 0 = tclk (Internal Bus clock) 39 + 1 = cpuclk (CPU clock) 40 + 2 = nbclk (Coherent Fabric clock) 41 + 3 = hclk (SDRAM Controller Internal Clock) 42 + 4 = dclk (SDRAM Interface Clock) 43 + 5 = refclk (Reference Clock) 44 + 45 + The following is a list of provided IDs and clock names on 98dx3236: 46 + 0 = tclk (Internal Bus clock) 47 + 1 = cpuclk (CPU clock) 48 + 2 = ddrclk (DDR clock) 49 + 3 = mpll (MPLL Clock) 50 + 51 + The following is a list of provided IDs and clock names on Kirkwood and Dove: 52 + 0 = tclk (Internal Bus clock) 53 + 1 = cpuclk (CPU0 clock) 54 + 2 = l2clk (L2 Cache clock derived from CPU0 clock) 55 + 3 = ddrclk (DDR controller clock derived from CPU0 clock) 56 + 57 + The following is a list of provided IDs and clock names on Orion5x: 58 + 0 = tclk (Internal Bus clock) 59 + 1 = cpuclk (CPU0 clock) 60 + 2 = ddrclk (DDR controller clock derived from CPU0 clock) 61 + 62 + properties: 63 + compatible: 64 + enum: 65 + - marvell,armada-370-core-clock 66 + - marvell,armada-375-core-clock 67 + - marvell,armada-380-core-clock 68 + - marvell,armada-390-core-clock 69 + - marvell,armada-xp-core-clock 70 + - marvell,dove-core-clock 71 + - marvell,kirkwood-core-clock 72 + - marvell,mv88f5181-core-clock 73 + - marvell,mv88f5182-core-clock 74 + - marvell,mv88f5281-core-clock 75 + - marvell,mv88f6180-core-clock 76 + - marvell,mv88f6183-core-clock 77 + - marvell,mv98dx1135-core-clock 78 + - marvell,mv98dx3236-core-clock 79 + 80 + reg: 81 + maxItems: 1 82 + 83 + '#clock-cells': 84 + const: 1 85 + 86 + clock-output-names: 87 + description: Overwrite default clock output names. 88 + 89 + required: 90 + - compatible 91 + - reg 92 + - '#clock-cells' 93 + 94 + additionalProperties: false
-87
Documentation/devicetree/bindings/clock/mvebu-core-clock.txt
··· 1 - * Core Clock bindings for Marvell MVEBU SoCs 2 - 3 - Marvell MVEBU SoCs usually allow to determine core clock frequencies by 4 - reading the Sample-At-Reset (SAR) register. The core clock consumer should 5 - specify the desired clock by having the clock ID in its "clocks" phandle cell. 6 - 7 - The following is a list of provided IDs and clock names on Armada 370/XP: 8 - 0 = tclk (Internal Bus clock) 9 - 1 = cpuclk (CPU clock) 10 - 2 = nbclk (L2 Cache clock) 11 - 3 = hclk (DRAM control clock) 12 - 4 = dramclk (DDR clock) 13 - 14 - The following is a list of provided IDs and clock names on Armada 375: 15 - 0 = tclk (Internal Bus clock) 16 - 1 = cpuclk (CPU clock) 17 - 2 = l2clk (L2 Cache clock) 18 - 3 = ddrclk (DDR clock) 19 - 20 - The following is a list of provided IDs and clock names on Armada 380/385: 21 - 0 = tclk (Internal Bus clock) 22 - 1 = cpuclk (CPU clock) 23 - 2 = l2clk (L2 Cache clock) 24 - 3 = ddrclk (DDR clock) 25 - 26 - The following is a list of provided IDs and clock names on Armada 39x: 27 - 0 = tclk (Internal Bus clock) 28 - 1 = cpuclk (CPU clock) 29 - 2 = nbclk (Coherent Fabric clock) 30 - 3 = hclk (SDRAM Controller Internal Clock) 31 - 4 = dclk (SDRAM Interface Clock) 32 - 5 = refclk (Reference Clock) 33 - 34 - The following is a list of provided IDs and clock names on 98dx3236: 35 - 0 = tclk (Internal Bus clock) 36 - 1 = cpuclk (CPU clock) 37 - 2 = ddrclk (DDR clock) 38 - 3 = mpll (MPLL Clock) 39 - 40 - The following is a list of provided IDs and clock names on Kirkwood and Dove: 41 - 0 = tclk (Internal Bus clock) 42 - 1 = cpuclk (CPU0 clock) 43 - 2 = l2clk (L2 Cache clock derived from CPU0 clock) 44 - 3 = ddrclk (DDR controller clock derived from CPU0 clock) 45 - 46 - The following is a list of provided IDs and clock names on Orion5x: 47 - 0 = tclk (Internal Bus clock) 48 - 1 = cpuclk (CPU0 clock) 49 - 2 = ddrclk (DDR controller clock derived from CPU0 clock) 50 - 51 - Required properties: 52 - - compatible : shall be one of the following: 53 - "marvell,armada-370-core-clock" - For Armada 370 SoC core clocks 54 - "marvell,armada-375-core-clock" - For Armada 375 SoC core clocks 55 - "marvell,armada-380-core-clock" - For Armada 380/385 SoC core clocks 56 - "marvell,armada-390-core-clock" - For Armada 39x SoC core clocks 57 - "marvell,armada-xp-core-clock" - For Armada XP SoC core clocks 58 - "marvell,mv98dx3236-core-clock" - For 98dx3236 family SoC core clocks 59 - "marvell,dove-core-clock" - for Dove SoC core clocks 60 - "marvell,kirkwood-core-clock" - for Kirkwood SoC (except mv88f6180) 61 - "marvell,mv88f6180-core-clock" - for Kirkwood MV88f6180 SoC 62 - "marvell,mv98dx1135-core-clock" - for Kirkwood 98dx1135 SoC 63 - "marvell,mv88f5181-core-clock" - for Orion MV88F5181 SoC 64 - "marvell,mv88f5182-core-clock" - for Orion MV88F5182 SoC 65 - "marvell,mv88f5281-core-clock" - for Orion MV88F5281 SoC 66 - "marvell,mv88f6183-core-clock" - for Orion MV88F6183 SoC 67 - - reg : shall be the register address of the Sample-At-Reset (SAR) register 68 - - #clock-cells : from common clock binding; shall be set to 1 69 - 70 - Optional properties: 71 - - clock-output-names : from common clock binding; allows overwrite default clock 72 - output names ("tclk", "cpuclk", "l2clk", "ddrclk") 73 - 74 - Example: 75 - 76 - core_clk: core-clocks@d0214 { 77 - compatible = "marvell,dove-core-clock"; 78 - reg = <0xd0214 0x4>; 79 - #clock-cells = <1>; 80 - }; 81 - 82 - spi0: spi@10600 { 83 - compatible = "marvell,orion-spi"; 84 - /* ... */ 85 - /* get tclk from core clock provider */ 86 - clocks = <&core_clk 0>; 87 - };