forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'clk-for-linus' of git://git.kernel.org/pub/scm/linux/kerne…
…l/git/clk/linux Pull clk updates from Stephen Boyd: "This time around we have four lines of diff in the core framework, removing a function that isn't used anymore. Otherwise the main new thing for the common clk framework is that it is selectable in the Kconfig language now. Hopefully this will let clk drivers and clk consumers be testable on more than the architectures that support the clk framework. The goal is to introduce some Kunit tests for the framework. Outside of the core framework we have the usual set of various driver updates and non-critical fixes. The dirstat shows that the new Baikal-T1 driver is the largest addition this time around in terms of lines of code. After that the x86 (Intel), Qualcomm, and Mediatek drivers introduce many lines to support new or upcoming SoCs. After that the dirstat shows the usual suspects working on their SoC support by fixing minor bugs, correcting data and converting some of their DT bindings to YAML. Core: - Allow the COMMON_CLK config to be selectable New Drivers: - Clk driver for Baikal-T1 SoCs - Mediatek MT6765 clock support - Support for Intel Agilex clks - Add support for X1830 and X1000 Ingenic SoC clk controllers - Add support for the new Renesas RZ/G1H (R8A7742) SoC - Add support for Qualcomm's MSM8939 Generic Clock Controller Updates: - Support IDT VersaClock 5P49V5925 - Bunch of updates for HSDK clock generation unit (CGU) driver - Start making audio and GPU clks work on Marvell MMP2/MMP3 SoCs - Add some GPU, NPU, and UFS clks to Qualcomm SM8150 driver - Enable supply regulators for GPU gdscs on Qualcomm SoCs - Add support for Si5342, Si5344 and Si5345 chips - Support custom flags in Xilinx zynq firmware - Various small fixes to the Xilinx clk driver - A single minor rounding fix for the legacy Allwinner clock support - A few patches from Abel Vesa as preparation of adding audiomix clock support on i.MX - A couple of cleanups from Anson Huang for i.MX clk-sscg-pll and clk-pllv3 drivers - Drop dependency on ARM64 for i.MX8M clock driver, to support aarch32 mode on aarch64 hardware - A series from Peng Fan to improve i.MX8M clock drivers, using composite clock for core and bus clk slice - Set a better parent clock for flexcan on i.MX6UL to support CiA102 defined bit rates - A couple changes for EMC frequency scaling on Tegra210 - Support for CPU frequency scaling on Tegra20/Tegra30 - New clk gate for CSI test pattern generator on Tegra210 - Regression fixes for Samsung exynos542x and exynos5433 SoCs - Use of fallthrough; attribute for Samsung s3c24xx - Updates and fixup HDMI and video clocks on Meson8b - Fixup reset polarity on Meson8b - Fix GPU glitch free mux switch on Meson gx and g12 - A minor fix for the currently unused suspend/resume handling on Renesas RZ/A1 and RZ/A2 - Two more conversions of Renesas DT bindings to json-schema - Add support for the USB 2.0 clock selector on Renesas R-Car M3-W+" * tag 'clk-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux: (155 commits) clk: mediatek: Remove ifr{0,1}_cfg_regs structures clk: baikal-t1: remove redundant assignment to variable 'divider' clk: baikal-t1: fix spelling mistake "Uncompatible" -> "Incompatible" dt-bindings: clock: Add a missing include to MMP Audio Clock binding dt: Add bindings for IDT VersaClock 5P49V5925 clk: vc5: Add support for IDT VersaClock 5P49V6965 clk: Add Baikal-T1 CCU Dividers driver clk: Add Baikal-T1 CCU PLLs driver dt-bindings: clk: Add Baikal-T1 CCU Dividers binding dt-bindings: clk: Add Baikal-T1 CCU PLLs binding clk: mediatek: assign the initial value to clk_init_data of mtk_mux clk: mediatek: Add MT6765 clock support clk: mediatek: add mt6765 clock IDs dt-bindings: clock: mediatek: document clk bindings vcodecsys for Mediatek MT6765 SoC dt-bindings: clock: mediatek: document clk bindings mipi0a for Mediatek MT6765 SoC dt-bindings: clock: mediatek: document clk bindings for Mediatek MT6765 SoC CLK: HSDK: CGU: add support for 148.5MHz clock CLK: HSDK: CGU: support PLL bypassing CLK: HSDK: CGU: check if PLL is bypassed first clk: clk-si5341: Add support for the Si5345 series ...
- Loading branch information
Showing
203 changed files
with
15,228 additions
and
1,245 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
Documentation/devicetree/bindings/arm/mediatek/mediatek,mipi0a.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
Mediatek mipi0a (mipi_rx_ana_csi0a) controller | ||
============================ | ||
|
||
The Mediatek mipi0a controller provides various clocks | ||
to the system. | ||
|
||
Required Properties: | ||
|
||
- compatible: Should be one of: | ||
- "mediatek,mt6765-mipi0a", "syscon" | ||
- #clock-cells: Must be 1 | ||
|
||
The mipi0a controller uses the common clk binding from | ||
Documentation/devicetree/bindings/clock/clock-bindings.txt | ||
The available clocks are defined in dt-bindings/clock/mt*-clk.h. | ||
|
||
The mipi0a controller also uses the common power domain from | ||
Documentation/devicetree/bindings/soc/mediatek/scpsys.txt | ||
The available power doamins are defined in dt-bindings/power/mt*-power.h. | ||
|
||
Example: | ||
|
||
mipi0a: clock-controller@11c10000 { | ||
compatible = "mediatek,mt6765-mipi0a", "syscon"; | ||
reg = <0 0x11c10000 0 0x1000>; | ||
power-domains = <&scpsys MT6765_POWER_DOMAIN_CAM>; | ||
#clock-cells = <1>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
Documentation/devicetree/bindings/arm/mediatek/mediatek,vcodecsys.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
Mediatek vcodecsys controller | ||
============================ | ||
|
||
The Mediatek vcodecsys controller provides various clocks to the system. | ||
|
||
Required Properties: | ||
|
||
- compatible: Should be one of: | ||
- "mediatek,mt6765-vcodecsys", "syscon" | ||
- #clock-cells: Must be 1 | ||
|
||
The vcodecsys controller uses the common clk binding from | ||
Documentation/devicetree/bindings/clock/clock-bindings.txt | ||
The available clocks are defined in dt-bindings/clock/mt*-clk.h. | ||
|
||
The vcodecsys controller also uses the common power domain from | ||
Documentation/devicetree/bindings/soc/mediatek/scpsys.txt | ||
The available power doamins are defined in dt-bindings/power/mt*-power.h. | ||
|
||
Example: | ||
|
||
venc_gcon: clock-controller@17000000 { | ||
compatible = "mediatek,mt6765-vcodecsys", "syscon"; | ||
reg = <0 0x17000000 0 0x10000>; | ||
power-domains = <&scpsys MT6765_POWER_DOMAIN_VCODEC>; | ||
#clock-cells = <1>; | ||
}; |
188 changes: 188 additions & 0 deletions
188
Documentation/devicetree/bindings/clock/baikal,bt1-ccu-div.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,188 @@ | ||
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) | ||
# Copyright (C) 2020 BAIKAL ELECTRONICS, JSC | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/clock/baikal,bt1-ccu-div.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: Baikal-T1 Clock Control Unit Dividers | ||
|
||
maintainers: | ||
- Serge Semin <fancer.lancer@gmail.com> | ||
|
||
description: | | ||
Clocks Control Unit is the core of Baikal-T1 SoC System Controller | ||
responsible for the chip subsystems clocking and resetting. The CCU is | ||
connected with an external fixed rate oscillator, which signal is transformed | ||
into clocks of various frequencies and then propagated to either individual | ||
IP-blocks or to groups of blocks (clock domains). The transformation is done | ||
by means of an embedded into CCU PLLs and gateable/non-gateable dividers. The | ||
later ones are described in this binding. Each clock domain can be also | ||
individually reset by using the domain clocks divider configuration | ||
registers. Baikal-T1 CCU is logically divided into the next components: | ||
1) External oscillator (normally XTAL's 25 MHz crystal oscillator, but | ||
in general can provide any frequency supported by the CCU PLLs). | ||
2) PLLs clocks generators (PLLs). | ||
3) AXI-bus clock dividers (AXI) - described in this binding file. | ||
4) System devices reference clock dividers (SYS) - described in this binding | ||
file. | ||
which are connected with each other as shown on the next figure: | ||
+---------------+ | ||
| Baikal-T1 CCU | | ||
| +----+------|- MIPS P5600 cores | ||
| +-|PLLs|------|- DDR controller | ||
| | +----+ | | ||
+----+ | | | | | | ||
|XTAL|--|-+ | | +---+-| | ||
+----+ | | | +-|AXI|-|- AXI-bus | ||
| | | +---+-| | ||
| | | | | ||
| | +----+---+-|- APB-bus | ||
| +-------|SYS|-|- Low-speed Devices | ||
| +---+-|- High-speed Devices | ||
+---------------+ | ||
Each sub-block is represented as a separate DT node and has an individual | ||
driver to be bound with. | ||
In order to create signals of wide range frequencies the external oscillator | ||
output is primarily connected to a set of CCU PLLs. Some of PLLs CLKOUT are | ||
then passed over CCU dividers to create signals required for the target clock | ||
domain (like AXI-bus or System Device consumers). The dividers have the | ||
following structure: | ||
+--------------+ | ||
CLKIN --|->+----+ 1|\ | | ||
SETCLK--|--|/DIV|->| | | | ||
CLKDIV--|--| | | |-|->CLKLOUT | ||
LOCK----|--+----+ | | | | ||
| |/ | | ||
| | | | ||
EN------|-----------+ | | ||
RST-----|--------------|->RSTOUT | ||
+--------------+ | ||
where CLKIN is the reference clock coming either from CCU PLLs or from an | ||
external clock oscillator, SETCLK - a command to update the output clock in | ||
accordance with a set divider, CLKDIV - clocks divider, LOCK - a signal of | ||
the output clock stabilization, EN - enable/disable the divider block, | ||
RST/RSTOUT - reset clocks domain signal. Depending on the consumer IP-core | ||
peculiarities the dividers may lack of some functionality depicted on the | ||
figure above (like EN, CLKDIV/LOCK/SETCLK). In this case the corresponding | ||
clock provider just doesn't expose either switching functions, or the rate | ||
configuration, or both of them. | ||
The clock dividers, which output clock is then consumed by the SoC individual | ||
devices, are united into a single clocks provider called System Devices CCU. | ||
Similarly the dividers with output clocks utilized as AXI-bus reference clocks | ||
are called AXI-bus CCU. Both of them use the common clock bindings with no | ||
custom properties. The list of exported clocks and reset signals can be found | ||
in the files: 'include/dt-bindings/clock/bt1-ccu.h' and | ||
'include/dt-bindings/reset/bt1-ccu.h'. Since System Devices and AXI-bus CCU | ||
are a part of the Baikal-T1 SoC System Controller their DT nodes are supposed | ||
to be a children of later one. | ||
if: | ||
properties: | ||
compatible: | ||
contains: | ||
const: baikal,bt1-ccu-axi | ||
|
||
then: | ||
properties: | ||
clocks: | ||
items: | ||
- description: CCU SATA PLL output clock | ||
- description: CCU PCIe PLL output clock | ||
- description: CCU Ethernet PLL output clock | ||
|
||
clock-names: | ||
items: | ||
- const: sata_clk | ||
- const: pcie_clk | ||
- const: eth_clk | ||
|
||
else: | ||
properties: | ||
clocks: | ||
items: | ||
- description: External reference clock | ||
- description: CCU SATA PLL output clock | ||
- description: CCU PCIe PLL output clock | ||
- description: CCU Ethernet PLL output clock | ||
|
||
clock-names: | ||
items: | ||
- const: ref_clk | ||
- const: sata_clk | ||
- const: pcie_clk | ||
- const: eth_clk | ||
|
||
properties: | ||
compatible: | ||
enum: | ||
- baikal,bt1-ccu-axi | ||
- baikal,bt1-ccu-sys | ||
|
||
reg: | ||
maxItems: 1 | ||
|
||
"#clock-cells": | ||
const: 1 | ||
|
||
"#reset-cells": | ||
const: 1 | ||
|
||
unevaluatedProperties: false | ||
|
||
required: | ||
- compatible | ||
- "#clock-cells" | ||
- clocks | ||
- clock-names | ||
|
||
examples: | ||
# AXI-bus Clock Control Unit node: | ||
- | | ||
#include <dt-bindings/clock/bt1-ccu.h> | ||
clock-controller@1f04d030 { | ||
compatible = "baikal,bt1-ccu-axi"; | ||
reg = <0x1f04d030 0x030>; | ||
#clock-cells = <1>; | ||
#reset-cells = <1>; | ||
clocks = <&ccu_pll CCU_SATA_PLL>, | ||
<&ccu_pll CCU_PCIE_PLL>, | ||
<&ccu_pll CCU_ETH_PLL>; | ||
clock-names = "sata_clk", "pcie_clk", "eth_clk"; | ||
}; | ||
# System Devices Clock Control Unit node: | ||
- | | ||
#include <dt-bindings/clock/bt1-ccu.h> | ||
clock-controller@1f04d060 { | ||
compatible = "baikal,bt1-ccu-sys"; | ||
reg = <0x1f04d060 0x0a0>; | ||
#clock-cells = <1>; | ||
#reset-cells = <1>; | ||
clocks = <&clk25m>, | ||
<&ccu_pll CCU_SATA_PLL>, | ||
<&ccu_pll CCU_PCIE_PLL>, | ||
<&ccu_pll CCU_ETH_PLL>; | ||
clock-names = "ref_clk", "sata_clk", "pcie_clk", | ||
"eth_clk"; | ||
}; | ||
# Required Clock Control Unit PLL node: | ||
- | | ||
ccu_pll: clock-controller@1f04d000 { | ||
compatible = "baikal,bt1-ccu-pll"; | ||
reg = <0x1f04d000 0x028>; | ||
#clock-cells = <1>; | ||
clocks = <&clk25m>; | ||
clock-names = "ref_clk"; | ||
}; | ||
... |
Oops, something went wrong.