-
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-4.2' of git://git.kernel.org/pub/scm/linux/k…
…ernel/git/clk/linux Pull clock framework updates from Michael Turquette: "The changes to the common clock framework for 4.2 are dominated by new drivers and updates to existing ones, as usual. There are some fixes to the framework itself and several cleanups for sparse warnings, etc" * tag 'clk-for-linus-4.2' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux: (135 commits) clk: stm32: Add clock driver for STM32F4[23]xxx devices dt-bindings: Document the STM32F4 clock bindings cpufreq: exynos: remove Exynos4210 specific cpufreq driver support ARM: Exynos: switch to using generic cpufreq driver for Exynos4210 clk: samsung: exynos4: add cpu clock configuration data and instantiate cpu clock clk: samsung: add infrastructure to register cpu clocks clk: add CLK_RECALC_NEW_RATES clock flag for Exynos cpu clock support doc: dt: add documentation for lpc1850-ccu clk driver clk: add lpc18xx ccu clk driver doc: dt: add documentation for lpc1850-cgu clk driver clk: add lpc18xx cgu clk driver clk: keystone: add support for post divider register for main pll clk: mvebu: flag the crypto clk as CLK_IGNORE_UNUSED clk: cygnus: remove Cygnus dummy clock binding clk: cygnus: add clock support for Broadcom Cygnus clk: Change bcm clocks build dependency clk: iproc: add initial common clock support clk: iproc: define Broadcom iProc clock binding MAINTAINERS: update email for Michael Turquette clk: meson: add some error handling in meson_clk_register_cpu() ...
- Loading branch information
Showing
182 changed files
with
14,617 additions
and
1,765 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
23 changes: 23 additions & 0 deletions
23
Documentation/devicetree/bindings/arm/mediatek/mediatek,apmixedsys.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,23 @@ | ||
Mediatek apmixedsys controller | ||
============================== | ||
|
||
The Mediatek apmixedsys controller provides the PLLs to the system. | ||
|
||
Required Properties: | ||
|
||
- compatible: Should be: | ||
- "mediatek,mt8135-apmixedsys" | ||
- "mediatek,mt8173-apmixedsys" | ||
- #clock-cells: Must be 1 | ||
|
||
The apmixedsys 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: | ||
|
||
apmixedsys: clock-controller@10209000 { | ||
compatible = "mediatek,mt8173-apmixedsys"; | ||
reg = <0 0x10209000 0 0x1000>; | ||
#clock-cells = <1>; | ||
}; |
30 changes: 30 additions & 0 deletions
30
Documentation/devicetree/bindings/arm/mediatek/mediatek,infracfg.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,30 @@ | ||
Mediatek infracfg controller | ||
============================ | ||
|
||
The Mediatek infracfg controller provides various clocks and reset | ||
outputs to the system. | ||
|
||
Required Properties: | ||
|
||
- compatible: Should be: | ||
- "mediatek,mt8135-infracfg", "syscon" | ||
- "mediatek,mt8173-infracfg", "syscon" | ||
- #clock-cells: Must be 1 | ||
- #reset-cells: Must be 1 | ||
|
||
The infracfg 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. | ||
Also it uses the common reset controller binding from | ||
Documentation/devicetree/bindings/reset/reset.txt. | ||
The available reset outputs are defined in | ||
dt-bindings/reset-controller/mt*-resets.h | ||
|
||
Example: | ||
|
||
infracfg: power-controller@10001000 { | ||
compatible = "mediatek,mt8173-infracfg", "syscon"; | ||
reg = <0 0x10001000 0 0x1000>; | ||
#clock-cells = <1>; | ||
#reset-cells = <1>; | ||
}; |
30 changes: 30 additions & 0 deletions
30
Documentation/devicetree/bindings/arm/mediatek/mediatek,pericfg.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,30 @@ | ||
Mediatek pericfg controller | ||
=========================== | ||
|
||
The Mediatek pericfg controller provides various clocks and reset | ||
outputs to the system. | ||
|
||
Required Properties: | ||
|
||
- compatible: Should be: | ||
- "mediatek,mt8135-pericfg", "syscon" | ||
- "mediatek,mt8173-pericfg", "syscon" | ||
- #clock-cells: Must be 1 | ||
- #reset-cells: Must be 1 | ||
|
||
The pericfg 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. | ||
Also it uses the common reset controller binding from | ||
Documentation/devicetree/bindings/reset/reset.txt. | ||
The available reset outputs are defined in | ||
dt-bindings/reset-controller/mt*-resets.h | ||
|
||
Example: | ||
|
||
pericfg: power-controller@10003000 { | ||
compatible = "mediatek,mt8173-pericfg", "syscon"; | ||
reg = <0 0x10003000 0 0x1000>; | ||
#clock-cells = <1>; | ||
#reset-cells = <1>; | ||
}; |
23 changes: 23 additions & 0 deletions
23
Documentation/devicetree/bindings/arm/mediatek/mediatek,topckgen.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,23 @@ | ||
Mediatek topckgen controller | ||
============================ | ||
|
||
The Mediatek topckgen controller provides various clocks to the system. | ||
|
||
Required Properties: | ||
|
||
- compatible: Should be: | ||
- "mediatek,mt8135-topckgen" | ||
- "mediatek,mt8173-topckgen" | ||
- #clock-cells: Must be 1 | ||
|
||
The topckgen 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: | ||
|
||
topckgen: power-controller@10000000 { | ||
compatible = "mediatek,mt8173-topckgen"; | ||
reg = <0 0x10000000 0 0x1000>; | ||
#clock-cells = <1>; | ||
}; |
40 changes: 40 additions & 0 deletions
40
Documentation/devicetree/bindings/clock/amlogic,meson8b-clkc.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,40 @@ | ||
* Amlogic Meson8b Clock and Reset Unit | ||
|
||
The Amlogic Meson8b clock controller generates and supplies clock to various | ||
controllers within the SoC. | ||
|
||
Required Properties: | ||
|
||
- compatible: should be "amlogic,meson8b-clkc" | ||
- reg: it must be composed by two tuples: | ||
0) physical base address of the xtal register and length of memory | ||
mapped region. | ||
1) 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/meson8b-clkc.h header and can be | ||
used in device tree sources. | ||
|
||
Example: Clock controller node: | ||
|
||
clkc: clock-controller@c1104000 { | ||
#clock-cells = <1>; | ||
compatible = "amlogic,meson8b-clkc"; | ||
reg = <0xc1108000 0x4>, <0xc1104000 0x460>; | ||
}; | ||
|
||
|
||
Example: UART controller node that consumes the clock generated by the clock | ||
controller: | ||
|
||
uart_AO: serial@c81004c0 { | ||
compatible = "amlogic,meson-uart"; | ||
reg = <0xc81004c0 0x14>; | ||
interrupts = <0 90 1>; | ||
clocks = <&clkc CLKID_CLK81>; | ||
status = "disabled"; | ||
}; |
34 changes: 0 additions & 34 deletions
34
Documentation/devicetree/bindings/clock/bcm-cygnus-clock.txt
This file was deleted.
Oops, something went wrong.
132 changes: 132 additions & 0 deletions
132
Documentation/devicetree/bindings/clock/brcm,iproc-clocks.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,132 @@ | ||
Broadcom iProc Family Clocks | ||
|
||
This binding uses the common clock binding: | ||
Documentation/devicetree/bindings/clock/clock-bindings.txt | ||
|
||
The iProc clock controller manages clocks that are common to the iProc family. | ||
An SoC from the iProc family may have several PPLs, e.g., ARMPLL, GENPLL, | ||
LCPLL0, MIPIPLL, and etc., all derived from an onboard crystal. Each PLL | ||
comprises of several leaf clocks | ||
|
||
Required properties for a PLL and its leaf clocks: | ||
|
||
- compatible: | ||
Should have a value of the form "brcm,<soc>-<pll>". For example, GENPLL on | ||
Cygnus has a compatible string of "brcm,cygnus-genpll" | ||
|
||
- #clock-cells: | ||
Have a value of <1> since there are more than 1 leaf clock of a given PLL | ||
|
||
- reg: | ||
Define the base and range of the I/O address space that contain the iProc | ||
clock control registers required for the PLL | ||
|
||
- clocks: | ||
The input parent clock phandle for the PLL. For most iProc PLLs, this is an | ||
onboard crystal with a fixed rate | ||
|
||
- clock-output-names: | ||
An ordered list of strings defining the names of the clocks | ||
|
||
Example: | ||
|
||
osc: oscillator { | ||
#clock-cells = <0>; | ||
compatible = "fixed-clock"; | ||
clock-frequency = <25000000>; | ||
}; | ||
|
||
genpll: genpll { | ||
#clock-cells = <1>; | ||
compatible = "brcm,cygnus-genpll"; | ||
reg = <0x0301d000 0x2c>, <0x0301c020 0x4>; | ||
clocks = <&osc>; | ||
clock-output-names = "genpll", "axi21", "250mhz", "ihost_sys", | ||
"enet_sw", "audio_125", "can"; | ||
}; | ||
|
||
Required properties for ASIU clocks: | ||
|
||
ASIU clocks are a special case. These clocks are derived directly from the | ||
reference clock of the onboard crystal | ||
|
||
- compatible: | ||
Should have a value of the form "brcm,<soc>-asiu-clk". For example, ASIU | ||
clocks for Cygnus have a compatible string of "brcm,cygnus-asiu-clk" | ||
|
||
- #clock-cells: | ||
Have a value of <1> since there are more than 1 ASIU clocks | ||
|
||
- reg: | ||
Define the base and range of the I/O address space that contain the iProc | ||
clock control registers required for ASIU clocks | ||
|
||
- clocks: | ||
The input parent clock phandle for the ASIU clock, i.e., the onboard | ||
crystal | ||
|
||
- clock-output-names: | ||
An ordered list of strings defining the names of the ASIU clocks | ||
|
||
Example: | ||
|
||
osc: oscillator { | ||
#clock-cells = <0>; | ||
compatible = "fixed-clock"; | ||
clock-frequency = <25000000>; | ||
}; | ||
|
||
asiu_clks: asiu_clks { | ||
#clock-cells = <1>; | ||
compatible = "brcm,cygnus-asiu-clk"; | ||
reg = <0x0301d048 0xc>, <0x180aa024 0x4>; | ||
clocks = <&osc>; | ||
clock-output-names = "keypad", "adc/touch", "pwm"; | ||
}; | ||
|
||
Cygnus | ||
------ | ||
PLL and leaf clock compatible strings for Cygnus are: | ||
"brcm,cygnus-armpll" | ||
"brcm,cygnus-genpll" | ||
"brcm,cygnus-lcpll0" | ||
"brcm,cygnus-mipipll" | ||
"brcm,cygnus-asiu-clk" | ||
|
||
The following table defines the set of PLL/clock index and ID for Cygnus. | ||
These clock IDs are defined in: | ||
"include/dt-bindings/clock/bcm-cygnus.h" | ||
|
||
Clock Source (Parent) Index ID | ||
--- ----- ----- --------- | ||
crystal N/A N/A N/A | ||
|
||
armpll crystal N/A N/A | ||
|
||
keypad crystal (ASIU) 0 BCM_CYGNUS_ASIU_KEYPAD_CLK | ||
adc/tsc crystal (ASIU) 1 BCM_CYGNUS_ASIU_ADC_CLK | ||
pwm crystal (ASIU) 2 BCM_CYGNUS_ASIU_PWM_CLK | ||
|
||
genpll crystal 0 BCM_CYGNUS_GENPLL | ||
axi21 genpll 1 BCM_CYGNUS_GENPLL_AXI21_CLK | ||
250mhz genpll 2 BCM_CYGNUS_GENPLL_250MHZ_CLK | ||
ihost_sys genpll 3 BCM_CYGNUS_GENPLL_IHOST_SYS_CLK | ||
enet_sw genpll 4 BCM_CYGNUS_GENPLL_ENET_SW_CLK | ||
audio_125 genpll 5 BCM_CYGNUS_GENPLL_AUDIO_125_CLK | ||
can genpll 6 BCM_CYGNUS_GENPLL_CAN_CLK | ||
|
||
lcpll0 crystal 0 BCM_CYGNUS_LCPLL0 | ||
pcie_phy lcpll0 1 BCM_CYGNUS_LCPLL0_PCIE_PHY_REF_CLK | ||
ddr_phy lcpll0 2 BCM_CYGNUS_LCPLL0_DDR_PHY_CLK | ||
sdio lcpll0 3 BCM_CYGNUS_LCPLL0_SDIO_CLK | ||
usb_phy lcpll0 4 BCM_CYGNUS_LCPLL0_USB_PHY_REF_CLK | ||
smart_card lcpll0 5 BCM_CYGNUS_LCPLL0_SMART_CARD_CLK | ||
ch5_unused lcpll0 6 BCM_CYGNUS_LCPLL0_CH5_UNUSED | ||
|
||
mipipll crystal 0 BCM_CYGNUS_MIPIPLL | ||
ch0_unused mipipll 1 BCM_CYGNUS_MIPIPLL_CH0_UNUSED | ||
ch1_lcd mipipll 2 BCM_CYGNUS_MIPIPLL_CH1_LCD | ||
ch2_v3d mipipll 3 BCM_CYGNUS_MIPIPLL_CH2_V3D | ||
ch3_unused mipipll 4 BCM_CYGNUS_MIPIPLL_CH3_UNUSED | ||
ch4_unused mipipll 5 BCM_CYGNUS_MIPIPLL_CH4_UNUSED | ||
ch5_unused mipipll 6 BCM_CYGNUS_MIPIPLL_CH5_UNUSED |
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.