Skip to content

Commit ff06001

Browse files
committed
Merge branches 'clk-stm32f4', 'clk-tegra', 'clk-at91', 'clk-sifive-fu540' and 'clk-spdx' into clk-next
- Support for STM32F769 - Rework AT91 sckc DT bindings - Fix slow RC oscillator issue on sama5d3 - AT91 sam9x60 PMC support - SiFive FU540 PRCI and PLL support * clk-stm32f4: clk: stm32mp1: Add ddrperfm clock clk: stm32: Introduce clocks of STM32F769 board * clk-tegra: clk: tegra: divider: Mark Memory Controller clock as read-only clk: tegra: emc: Replace BUG() with WARN_ONCE() clk: tegra: emc: Fix EMC max-rate clamping clk: tegra: emc: Support multiple RAM codes clk: tegra: emc: Don't enable EMC clock manually clk: tegra124: Remove lock-enable bit from PLLM clk: tegra: Fix PLLM programming on Tegra124+ when PMC overrides divider clk: tegra: Don't enable already enabled PLLs * clk-at91: clk: at91: Mark struct clk_range as const clk: at91: add sam9x60 pmc driver dt-bindings: clk: at91: add bindings for SAM9X60 pmc clk: at91: add sam9x60 PLL driver clk: at91: master: Add sam9x60 support clk: at91: usb: Add sam9x60 support clk: at91: allow configuring generated PCR layout clk: at91: allow configuring peripheral PCR layout clk: at91: sckc: handle different RC startup time clk: at91: modernize sckc binding dt-bindings: clock: at91: new sckc bindings * clk-sifive-fu540: clk: sifive: add a driver for the SiFive FU540 PRCI IP block clk: analogbits: add Wide-Range PLL library dt-bindings: clk: add documentation for the SiFive PRCI driver * clk-spdx: clk: sunxi-ng: Use the correct style for SPDX License Identifier clk: sprd: Use the correct style for SPDX License Identifier clk: renesas: Use the correct style for SPDX License Identifier clk: qcom: Use the correct style for SPDX License Identifier clk: davinci: Use the correct style for SPDX License Identifier clk: actions: Use the correct style for SPDX License Identifier
6 parents 5816b74 + b06df56 + e71f4d3 + 7b4c162 + 30b8e27 + d65530c commit ff06001

59 files changed

Lines changed: 2424 additions & 259 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Documentation/devicetree/bindings/clock/at91-clock.txt‎

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,35 +8,30 @@ Slow Clock controller:
88

99
Required properties:
1010
- compatible : shall be one of the following:
11-
"atmel,at91sam9x5-sckc" or
11+
"atmel,at91sam9x5-sckc",
12+
"atmel,sama5d3-sckc" or
1213
"atmel,sama5d4-sckc":
1314
at91 SCKC (Slow Clock Controller)
14-
This node contains the slow clock definitions.
15-
16-
"atmel,at91sam9x5-clk-slow-osc":
17-
at91 slow oscillator
18-
19-
"atmel,at91sam9x5-clk-slow-rc-osc":
20-
at91 internal slow RC oscillator
21-
- reg : defines the IO memory reserved for the SCKC.
22-
- #size-cells : shall be 0 (reg is used to encode clk id).
23-
- #address-cells : shall be 1 (reg is used to encode clk id).
15+
- #clock-cells : shall be 0.
16+
- clocks : shall be the input parent clock phandle for the clock.
2417

18+
Optional properties:
19+
- atmel,osc-bypass : boolean property. Set this when a clock signal is directly
20+
provided on XIN.
2521

2622
For example:
27-
sckc: sckc@fffffe50 {
28-
compatible = "atmel,sama5d3-pmc";
29-
reg = <0xfffffe50 0x4>
30-
#size-cells = <0>;
31-
#address-cells = <1>;
32-
33-
/* put at91 slow clocks here */
23+
sckc@fffffe50 {
24+
compatible = "atmel,at91sam9x5-sckc";
25+
reg = <0xfffffe50 0x4>;
26+
clocks = <&slow_xtal>;
27+
#clock-cells = <0>;
3428
};
3529

3630
Power Management Controller (PMC):
3731

3832
Required properties:
39-
- compatible : shall be "atmel,<chip>-pmc", "syscon":
33+
- compatible : shall be "atmel,<chip>-pmc", "syscon" or
34+
"microchip,sam9x60-pmc"
4035
<chip> can be: at91rm9200, at91sam9260, at91sam9261,
4136
at91sam9263, at91sam9g45, at91sam9n12, at91sam9rl, at91sam9g15,
4237
at91sam9g25, at91sam9g35, at91sam9x25, at91sam9x35, at91sam9x5,
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
SiFive FU540 PRCI bindings
2+
3+
On the FU540 family of SoCs, most system-wide clock and reset integration
4+
is via the PRCI IP block.
5+
6+
Required properties:
7+
- compatible: Should be "sifive,<chip>-prci". Only one value is
8+
supported: "sifive,fu540-c000-prci"
9+
- reg: Should describe the PRCI's register target physical address region
10+
- clocks: Should point to the hfclk device tree node and the rtcclk
11+
device tree node. The RTC clock here is not a time-of-day clock,
12+
but is instead a high-stability clock source for system timers
13+
and cycle counters.
14+
- #clock-cells: Should be <1>
15+
16+
The clock consumer should specify the desired clock via the clock ID
17+
macros defined in include/dt-bindings/clock/sifive-fu540-prci.h.
18+
These macros begin with PRCI_CLK_.
19+
20+
The hfclk and rtcclk nodes are required, and represent physical
21+
crystals or resonators located on the PCB. These nodes should be present
22+
underneath /, rather than /soc.
23+
24+
Examples:
25+
26+
/* under /, in PCB-specific DT data */
27+
hfclk: hfclk {
28+
#clock-cells = <0>;
29+
compatible = "fixed-clock";
30+
clock-frequency = <33333333>;
31+
clock-output-names = "hfclk";
32+
};
33+
rtcclk: rtcclk {
34+
#clock-cells = <0>;
35+
compatible = "fixed-clock";
36+
clock-frequency = <1000000>;
37+
clock-output-names = "rtcclk";
38+
};
39+
40+
/* under /soc, in SoC-specific DT data */
41+
prci: clock-controller@10000000 {
42+
compatible = "sifive,fu540-c000-prci";
43+
reg = <0x0 0x10000000 0x0 0x1000>;
44+
clocks = <&hfclk>, <&rtcclk>;
45+
#clock-cells = <1>;
46+
};

‎Documentation/devicetree/bindings/clock/st,stm32-rcc.txt‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ Required properties:
1111
"st,stm32f42xx-rcc"
1212
"st,stm32f469-rcc"
1313
"st,stm32f746-rcc"
14+
"st,stm32f769-rcc"
15+
1416
- reg: should be register base and length as documented in the
1517
datasheet
1618
- #reset-cells: 1, see below
@@ -102,6 +104,10 @@ The secondary index is bound with the following magic numbers:
102104
28 CLK_I2C3
103105
29 CLK_I2C4
104106
30 CLK_LPTIMER (LPTimer1 clock)
107+
31 CLK_PLL_SRC
108+
32 CLK_DFSDM1
109+
33 CLK_ADFSDM1
110+
34 CLK_F769_DSI
105111
)
106112

107113
Example:

‎MAINTAINERS‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -960,6 +960,12 @@ F: drivers/iio/adc/ltc2497*
960960
X: drivers/iio/*/adjd*
961961
F: drivers/staging/iio/*/ad*
962962

963+
ANALOGBITS PLL LIBRARIES
964+
M: Paul Walmsley <paul.walmsley@sifive.com>
965+
S: Supported
966+
F: drivers/clk/analogbits/*
967+
F: include/linux/clk/analogbits*
968+
963969
ANDES ARCHITECTURE
964970
M: Greentime Hu <green.hu@gmail.com>
965971
M: Vincent Chen <deanbo422@gmail.com>

‎drivers/clk/Kconfig‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# SPDX-License-Identifier: GPL-2.0
12

23
config CLKDEV_LOOKUP
34
bool
@@ -304,6 +305,7 @@ config COMMON_CLK_FIXED_MMIO
304305
Support for Memory Mapped IO Fixed clocks
305306

306307
source "drivers/clk/actions/Kconfig"
308+
source "drivers/clk/analogbits/Kconfig"
307309
source "drivers/clk/bcm/Kconfig"
308310
source "drivers/clk/hisilicon/Kconfig"
309311
source "drivers/clk/imgtec/Kconfig"
@@ -316,6 +318,7 @@ source "drivers/clk/mvebu/Kconfig"
316318
source "drivers/clk/qcom/Kconfig"
317319
source "drivers/clk/renesas/Kconfig"
318320
source "drivers/clk/samsung/Kconfig"
321+
source "drivers/clk/sifive/Kconfig"
319322
source "drivers/clk/sprd/Kconfig"
320323
source "drivers/clk/sunxi/Kconfig"
321324
source "drivers/clk/sunxi-ng/Kconfig"

‎drivers/clk/Makefile‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ obj-$(CONFIG_COMMON_CLK_XGENE) += clk-xgene.o
6666

6767
# please keep this section sorted lexicographically by directory path name
6868
obj-y += actions/
69+
obj-y += analogbits/
6970
obj-$(CONFIG_COMMON_CLK_AT91) += at91/
7071
obj-$(CONFIG_ARCH_ARTPEC) += axis/
7172
obj-$(CONFIG_ARC_PLAT_AXS10X) += axs10x/
@@ -95,6 +96,7 @@ obj-$(CONFIG_COMMON_CLK_QCOM) += qcom/
9596
obj-y += renesas/
9697
obj-$(CONFIG_ARCH_ROCKCHIP) += rockchip/
9798
obj-$(CONFIG_COMMON_CLK_SAMSUNG) += samsung/
99+
obj-$(CONFIG_CLK_SIFIVE) += sifive/
98100
obj-$(CONFIG_ARCH_SIRF) += sirf/
99101
obj-$(CONFIG_ARCH_SOCFPGA) += socfpga/
100102
obj-$(CONFIG_PLAT_SPEAR) += spear/

‎drivers/clk/actions/owl-common.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-License-Identifier: GPL-2.0+
1+
/* SPDX-License-Identifier: GPL-2.0+ */
22
//
33
// OWL common clock driver
44
//

‎drivers/clk/actions/owl-composite.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-License-Identifier: GPL-2.0+
1+
/* SPDX-License-Identifier: GPL-2.0+ */
22
//
33
// OWL composite clock driver
44
//

‎drivers/clk/actions/owl-divider.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-License-Identifier: GPL-2.0+
1+
/* SPDX-License-Identifier: GPL-2.0+ */
22
//
33
// OWL divider clock driver
44
//

‎drivers/clk/actions/owl-factor.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-License-Identifier: GPL-2.0+
1+
/* SPDX-License-Identifier: GPL-2.0+ */
22
//
33
// OWL factor clock driver
44
//

0 commit comments

Comments
 (0)