-
Notifications
You must be signed in to change notification settings - Fork 0
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 framework updates from Stephen Boyd: "The core clk framework changes are small again. They're mostly minor fixes that weren't causing enough problems (or any problems when we're just clarifying things) to warrant sending outside the merge window. The majority of changes are in drivers for various SoCs. Full details are in the logs, but here's the summary. Core: - Better support for DeviceTree overlays with the addition of the CLK_OF_DECLARE_DRIVER macro. Now we won't probe a clk driver for a device node that matched during of_clk_init(), unless the driver uses CLK_OF_DECLARE_DRIVER instead of CLK_OF_DECLARE. This allows overlays to work cleanly for drivers that must probe before the device model is ready, and also after it's ready when an overlay is loaded. - Clarification in the code around how clk_hw pointers are returned from of clk providers - Proper migration of prepare/enable counts to parents when the clk tree is constructed New Drivers: - Socionext's UniPhier SoCs - Loongson1C - ZTE ZX296718 - Qualcomm MDM9615 - Amlogic GXBB AO clocks and resets - Broadcom BCM53573 ILP - Maxim MAX77620 Updates: - Four Allwinner SoCs are migrated to the new style clk driver (A31, A31s, A23 and A33) - Exynos 5xxx audio and DRAM clks - Loongson1B AC97, DMA and NAND clks - Rockchip DDR clks and rk3399 driver tweaks - Renesas R-Car M3-W (r8a7796) SoC SDHI interface and Watchdog timer clks - Renasas R-Car H3 and M3-W CMT clks and RAVB+Thermal clks for M3-W - Amlogic GXBB MMC gate clks - at91 sama5d4 sckc - Removal of STiH415 and STiH416 clk support as the SoC is being removed - Rework of STiH4xx clk support for new style bindings - Continuation of driver migration to clk_hw based registration APIs - xgene PMD support - bcm2835 critical clk markings - ARM versatile ICST" * tag 'clk-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux: (199 commits) CLK: Add Loongson1C clock support clk: Loongson1: Make use of GENMASK clk: Loongson1: Update clocks of Loongson1B clk: Loongson1: Refactor Loongson1 clock clk: change the type of clk_hw_onecell_data.num to unsigned int clk: zx296718: register driver earlier with core_initcall clk: mvebu: dynamically allocate resources in Armada CP110 system controller clk: mvebu: fix setting unwanted flags in CP110 gate clock clk: nxp: clk-lpc32xx: Unmap region obtained by of_iomap clk: mediatek: clk-mt8173: Unmap region obtained by of_iomap clk: sunxi-ng: Fix reset offset for the A23 and A33 clk: at91: sckc: optimize boot time clk: at91: Add sama5d4 sckc support clk: at91: move slow clock controller clocks to sckc.c clk: imx6: initialize GPU clocks clk: imx6: fix i.MX6DL clock tree to reflect reality clk: imx53: Add clocks configuration clk: uniphier: add clock data for UniPhier SoCs clk: uniphier: add core support code for UniPhier clock driver clk: bcm: Add driver for BCM53573 ILP clock ...
- Loading branch information
Showing
235 changed files
with
15,747 additions
and
4,213 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
22 changes: 22 additions & 0 deletions
22
Documentation/devicetree/bindings/arm/mediatek/mediatek,bdpsys.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,22 @@ | ||
Mediatek bdpsys controller | ||
============================ | ||
|
||
The Mediatek bdpsys controller provides various clocks to the system. | ||
|
||
Required Properties: | ||
|
||
- compatible: Should be: | ||
- "mediatek,mt2701-bdpsys", "syscon" | ||
- #clock-cells: Must be 1 | ||
|
||
The bdpsys 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. | ||
|
||
Example: | ||
|
||
bdpsys: clock-controller@1c000000 { | ||
compatible = "mediatek,mt2701-bdpsys", "syscon"; | ||
reg = <0 0x1c000000 0 0x1000>; | ||
#clock-cells = <1>; | ||
}; |
22 changes: 22 additions & 0 deletions
22
Documentation/devicetree/bindings/arm/mediatek/mediatek,ethsys.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,22 @@ | ||
Mediatek ethsys controller | ||
============================ | ||
|
||
The Mediatek ethsys controller provides various clocks to the system. | ||
|
||
Required Properties: | ||
|
||
- compatible: Should be: | ||
- "mediatek,mt2701-ethsys", "syscon" | ||
- #clock-cells: Must be 1 | ||
|
||
The ethsys 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. | ||
|
||
Example: | ||
|
||
ethsys: clock-controller@1b000000 { | ||
compatible = "mediatek,mt2701-ethsys", "syscon"; | ||
reg = <0 0x1b000000 0 0x1000>; | ||
#clock-cells = <1>; | ||
}; |
24 changes: 24 additions & 0 deletions
24
Documentation/devicetree/bindings/arm/mediatek/mediatek,hifsys.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,24 @@ | ||
Mediatek hifsys controller | ||
============================ | ||
|
||
The Mediatek hifsys controller provides various clocks and reset | ||
outputs to the system. | ||
|
||
Required Properties: | ||
|
||
- compatible: Should be: | ||
- "mediatek,mt2701-hifsys", "syscon" | ||
- #clock-cells: Must be 1 | ||
|
||
The hifsys 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. | ||
|
||
Example: | ||
|
||
hifsys: clock-controller@1a000000 { | ||
compatible = "mediatek,mt2701-hifsys", "syscon"; | ||
reg = <0 0x1a000000 0 0x1000>; | ||
#clock-cells = <1>; | ||
#reset-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
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
45 changes: 45 additions & 0 deletions
45
Documentation/devicetree/bindings/clock/amlogic,gxbb-aoclkc.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,45 @@ | ||
* Amlogic GXBB AO Clock and Reset Unit | ||
|
||
The Amlogic GXBB AO clock controller generates and supplies clock to various | ||
controllers within the Always-On part of the SoC. | ||
|
||
Required Properties: | ||
|
||
- compatible: should be "amlogic,gxbb-aoclkc" | ||
- reg: physical base address of the clock controller and length of memory | ||
mapped region. | ||
|
||
- #clock-cells: should be 1. | ||
|
||
Each clock is assigned an identifier and client nodes can use this identifier | ||
to specify the clock which they consume. All available clocks are defined as | ||
preprocessor macros in the dt-bindings/clock/gxbb-aoclkc.h header and can be | ||
used in device tree sources. | ||
|
||
- #reset-cells: should be 1. | ||
|
||
Each reset is assigned an identifier and client nodes can use this identifier | ||
to specify the reset which they consume. All available resets are defined as | ||
preprocessor macros in the dt-bindings/reset/gxbb-aoclkc.h header and can be | ||
used in device tree sources. | ||
|
||
Example: AO Clock controller node: | ||
|
||
clkc_AO: clock-controller@040 { | ||
compatible = "amlogic,gxbb-aoclkc"; | ||
reg = <0x0 0x040 0x0 0x4>; | ||
#clock-cells = <1>; | ||
#reset-cells = <1>; | ||
}; | ||
|
||
Example: UART controller node that consumes the clock and reset generated | ||
by the clock controller: | ||
|
||
uart_AO: serial@4c0 { | ||
compatible = "amlogic,meson-uart"; | ||
reg = <0x4c0 0x14>; | ||
interrupts = <0 90 1>; | ||
clocks = <&clkc_AO CLKID_AO_UART1>; | ||
resets = <&clkc_AO RESET_AO_UART1>; | ||
status = "disabled"; | ||
}; |
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
70 changes: 70 additions & 0 deletions
70
Documentation/devicetree/bindings/clock/armada3700-periph-clock.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,70 @@ | ||
* Peripheral Clock bindings for Marvell Armada 37xx SoCs | ||
|
||
Marvell Armada 37xx SoCs provide peripheral clocks which are | ||
used as clock source for the peripheral of the SoC. | ||
|
||
There are two different blocks associated to north bridge and south | ||
bridge. | ||
|
||
The peripheral clock consumer should specify the desired clock by | ||
having the clock ID in its "clocks" phandle cell. | ||
|
||
The following is a list of provided IDs for Armada 370 North bridge clocks: | ||
ID Clock name Description | ||
----------------------------------- | ||
0 mmc MMC controller | ||
1 sata_host Sata Host | ||
2 sec_at Security AT | ||
3 sac_dap Security DAP | ||
4 tsecm Security Engine | ||
5 setm_tmx Serial Embedded Trace Module | ||
6 avs Adaptive Voltage Scaling | ||
7 sqf SPI | ||
8 pwm PWM | ||
9 i2c_2 I2C 2 | ||
10 i2c_1 I2C 1 | ||
11 ddr_phy DDR PHY | ||
12 ddr_fclk DDR F clock | ||
13 trace Trace | ||
14 counter Counter | ||
15 eip97 EIP 97 | ||
16 cpu CPU | ||
|
||
The following is a list of provided IDs for Armada 370 South bridge clocks: | ||
ID Clock name Description | ||
----------------------------------- | ||
0 gbe-50 50 MHz parent clock for Gigabit Ethernet | ||
1 gbe-core parent clock for Gigabit Ethernet core | ||
2 gbe-125 125 MHz parent clock for Gigabit Ethernet | ||
3 gbe1-50 50 MHz clock for Gigabit Ethernet port 1 | ||
4 gbe0-50 50 MHz clock for Gigabit Ethernet port 0 | ||
5 gbe1-125 125 MHz clock for Gigabit Ethernet port 1 | ||
6 gbe0-125 125 MHz clock for Gigabit Ethernet port 0 | ||
7 gbe1-core Gigabit Ethernet core port 1 | ||
8 gbe0-core Gigabit Ethernet core port 0 | ||
9 gbe-bm Gigabit Ethernet Buffer Manager | ||
10 sdio SDIO | ||
11 usb32-sub2-sys USB 2 clock | ||
12 usb32-ss-sys USB 3 clock | ||
|
||
Required properties: | ||
|
||
- compatible : shall be "marvell,armada-3700-periph-clock-nb" for the | ||
north bridge block, or | ||
"marvell,armada-3700-periph-clock-sb" for the south bridge block | ||
- reg : must be the register address of North/South Bridge Clock register | ||
- #clock-cells : from common clock binding; shall be set to 1 | ||
|
||
- clocks : list of the parent clock phandle in the following order: | ||
TBG-A P, TBG-B P, TBG-A S, TBG-B S and finally the xtal clock. | ||
|
||
|
||
Example: | ||
|
||
nb_perih_clk: nb-periph-clk@13000{ | ||
compatible = "marvell,armada-3700-periph-clock-nb"; | ||
reg = <0x13000 0x1000>; | ||
clocks = <&tbg 0>, <&tbg 1>, <&tbg 2>, | ||
<&tbg 3>, <&xtalclk>; | ||
#clock-cells = <1>; | ||
}; |
27 changes: 27 additions & 0 deletions
27
Documentation/devicetree/bindings/clock/armada3700-tbg-clock.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 @@ | ||
* Time Base Generator Clock bindings for Marvell Armada 37xx SoCs | ||
|
||
Marvell Armada 37xx SoCs provde Time Base Generator clocks which are | ||
used as parent clocks for the peripheral clocks. | ||
|
||
The TBG clock consumer should specify the desired clock by having the | ||
clock ID in its "clocks" phandle cell. | ||
|
||
The following is a list of provided IDs and clock names on Armada 3700: | ||
0 = TBG A P | ||
1 = TBG B P | ||
2 = TBG A S | ||
3 = TBG B S | ||
|
||
Required properties: | ||
- compatible : shall be "marvell,armada-3700-tbg-clock" | ||
- reg : must be the register address of North Bridge PLL register | ||
- #clock-cells : from common clock binding; shall be set to 1 | ||
|
||
Example: | ||
|
||
tbg: tbg@13200 { | ||
compatible = "marvell,armada-3700-tbg-clock"; | ||
reg = <0x13200 0x1000>; | ||
clocks = <&xtalclk>; | ||
#clock-cells = <1>; | ||
}; |
28 changes: 28 additions & 0 deletions
28
Documentation/devicetree/bindings/clock/armada3700-xtal-clock.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 @@ | ||
* Xtal Clock bindings for Marvell Armada 37xx SoCs | ||
|
||
Marvell Armada 37xx SoCs allow to determine the xtal clock frequencies by | ||
reading the gpio latch register. | ||
|
||
This node must be a subnode of the node exposing the register address | ||
of the GPIO block where the gpio latch is located. | ||
|
||
Required properties: | ||
- compatible : shall be one of the following: | ||
"marvell,armada-3700-xtal-clock" | ||
- #clock-cells : from common clock binding; shall be set to 0 | ||
|
||
Optional properties: | ||
- clock-output-names : from common clock binding; allows overwrite default clock | ||
output names ("xtal") | ||
|
||
Example: | ||
gpio1: gpio@13800 { | ||
compatible = "marvell,armada-3700-gpio", "syscon", "simple-mfd"; | ||
reg = <0x13800 0x1000>; | ||
|
||
xtalclk: xtal-clk { | ||
compatible = "marvell,armada-3700-xtal-clock"; | ||
clock-output-names = "xtal"; | ||
#clock-cells = <0>; | ||
}; | ||
}; |
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
Oops, something went wrong.