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

dt-bindings: clock: Convert marvell,armada-3700-periph-clock to DT schema

Convert the Marvell Armada 3700 peripheral clock binding to DT schema
format. The north bridge is also a "syscon", so add the compatible to
it.

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

authored by

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

+96 -71
-71
Documentation/devicetree/bindings/clock/armada3700-periph-clock.txt
··· 1 - * Peripheral Clock bindings for Marvell Armada 37xx SoCs 2 - 3 - Marvell Armada 37xx SoCs provide peripheral clocks which are 4 - used as clock source for the peripheral of the SoC. 5 - 6 - There are two different blocks associated to north bridge and south 7 - bridge. 8 - 9 - The peripheral clock consumer should specify the desired clock by 10 - having the clock ID in its "clocks" phandle cell. 11 - 12 - The following is a list of provided IDs for Armada 3700 North bridge clocks: 13 - ID Clock name Description 14 - ----------------------------------- 15 - 0 mmc MMC controller 16 - 1 sata_host Sata Host 17 - 2 sec_at Security AT 18 - 3 sac_dap Security DAP 19 - 4 tsecm Security Engine 20 - 5 setm_tmx Serial Embedded Trace Module 21 - 6 avs Adaptive Voltage Scaling 22 - 7 sqf SPI 23 - 8 pwm PWM 24 - 9 i2c_2 I2C 2 25 - 10 i2c_1 I2C 1 26 - 11 ddr_phy DDR PHY 27 - 12 ddr_fclk DDR F clock 28 - 13 trace Trace 29 - 14 counter Counter 30 - 15 eip97 EIP 97 31 - 16 cpu CPU 32 - 33 - The following is a list of provided IDs for Armada 3700 South bridge clocks: 34 - ID Clock name Description 35 - ----------------------------------- 36 - 0 gbe-50 50 MHz parent clock for Gigabit Ethernet 37 - 1 gbe-core parent clock for Gigabit Ethernet core 38 - 2 gbe-125 125 MHz parent clock for Gigabit Ethernet 39 - 3 gbe1-50 50 MHz clock for Gigabit Ethernet port 1 40 - 4 gbe0-50 50 MHz clock for Gigabit Ethernet port 0 41 - 5 gbe1-125 125 MHz clock for Gigabit Ethernet port 1 42 - 6 gbe0-125 125 MHz clock for Gigabit Ethernet port 0 43 - 7 gbe1-core Gigabit Ethernet core port 1 44 - 8 gbe0-core Gigabit Ethernet core port 0 45 - 9 gbe-bm Gigabit Ethernet Buffer Manager 46 - 10 sdio SDIO 47 - 11 usb32-sub2-sys USB 2 clock 48 - 12 usb32-ss-sys USB 3 clock 49 - 13 pcie PCIe controller 50 - 51 - Required properties: 52 - 53 - - compatible : shall be "marvell,armada-3700-periph-clock-nb" for the 54 - north bridge block, or 55 - "marvell,armada-3700-periph-clock-sb" for the south bridge block 56 - - reg : must be the register address of North/South Bridge Clock register 57 - - #clock-cells : from common clock binding; shall be set to 1 58 - 59 - - clocks : list of the parent clock phandle in the following order: 60 - TBG-A P, TBG-B P, TBG-A S, TBG-B S and finally the xtal clock. 61 - 62 - 63 - Example: 64 - 65 - nb_perih_clk: nb-periph-clk@13000{ 66 - compatible = "marvell,armada-3700-periph-clock-nb"; 67 - reg = <0x13000 0x1000>; 68 - clocks = <&tbg 0>, <&tbg 1>, <&tbg 2>, 69 - <&tbg 3>, <&xtalclk>; 70 - #clock-cells = <1>; 71 - };
+96
Documentation/devicetree/bindings/clock/marvell,armada-3700-periph-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,armada-3700-periph-clock.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Marvell Armada 37xx SoCs Peripheral Clocks 8 + 9 + maintainers: 10 + - Andrew Lunn <andrew@lunn.ch> 11 + - Gregory Clement <gregory.clement@bootlin.com> 12 + 13 + description: > 14 + Marvell Armada 37xx SoCs provide peripheral clocks which are used as clock 15 + source for the peripheral of the SoC. 16 + 17 + There are two different blocks associated to north bridge and south bridge. 18 + 19 + The following is a list of provided IDs for Armada 3700 North bridge clocks: 20 + 21 + ID Clock name Description 22 + ----------------------------------- 23 + 0 mmc MMC controller 24 + 1 sata_host Sata Host 25 + 2 sec_at Security AT 26 + 3 sac_dap Security DAP 27 + 4 tsecm Security Engine 28 + 5 setm_tmx Serial Embedded Trace Module 29 + 6 avs Adaptive Voltage Scaling 30 + 7 sqf SPI 31 + 8 pwm PWM 32 + 9 i2c_2 I2C 2 33 + 10 i2c_1 I2C 1 34 + 11 ddr_phy DDR PHY 35 + 12 ddr_fclk DDR F clock 36 + 13 trace Trace 37 + 14 counter Counter 38 + 15 eip97 EIP 97 39 + 16 cpu CPU 40 + 41 + The following is a list of provided IDs for Armada 3700 South bridge clocks: 42 + 43 + ID Clock name Description 44 + ----------------------------------- 45 + 0 gbe-50 50 MHz parent clock for Gigabit Ethernet 46 + 1 gbe-core parent clock for Gigabit Ethernet core 47 + 2 gbe-125 125 MHz parent clock for Gigabit Ethernet 48 + 3 gbe1-50 50 MHz clock for Gigabit Ethernet port 1 49 + 4 gbe0-50 50 MHz clock for Gigabit Ethernet port 0 50 + 5 gbe1-125 125 MHz clock for Gigabit Ethernet port 1 51 + 6 gbe0-125 125 MHz clock for Gigabit Ethernet port 0 52 + 7 gbe1-core Gigabit Ethernet core port 1 53 + 8 gbe0-core Gigabit Ethernet core port 0 54 + 9 gbe-bm Gigabit Ethernet Buffer Manager 55 + 10 sdio SDIO 56 + 11 usb32-sub2-sys USB 2 clock 57 + 12 usb32-ss-sys USB 3 clock 58 + 13 pcie PCIe controller 59 + 60 + properties: 61 + compatible: 62 + oneOf: 63 + - const: marvell,armada-3700-periph-clock-sb 64 + - items: 65 + - const: marvell,armada-3700-periph-clock-nb 66 + - const: syscon 67 + reg: 68 + maxItems: 1 69 + 70 + clocks: 71 + items: 72 + - description: TBG-A P clock and specifier 73 + - description: TBG-B P clock and specifier 74 + - description: TBG-A S clock and specifier 75 + - description: TBG-B S clock and specifier 76 + - description: Xtal clock and specifier 77 + 78 + '#clock-cells': 79 + const: 1 80 + 81 + required: 82 + - compatible 83 + - reg 84 + - clocks 85 + - '#clock-cells' 86 + 87 + additionalProperties: false 88 + 89 + examples: 90 + - | 91 + clock-controller@13000{ 92 + compatible = "marvell,armada-3700-periph-clock-sb"; 93 + reg = <0x13000 0x1000>; 94 + clocks = <&tbg 0>, <&tbg 1>, <&tbg 2>, <&tbg 3>, <&xtalclk>; 95 + #clock-cells = <1>; 96 + };