-
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 remote-tracking branch 'linaro/clk-next' into clk-next
- Loading branch information
Showing
135 changed files
with
28,392 additions
and
4,584 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
Device tree Clock bindings for Renesas EMMA Mobile EV2 | ||
|
||
This binding uses the common clock binding. | ||
|
||
* SMU | ||
System Management Unit described in user's manual R19UH0037EJ1000_SMU. | ||
This is not a clock provider, but clocks under SMU depend on it. | ||
|
||
Required properties: | ||
- compatible: Should be "renesas,emev2-smu" | ||
- reg: Address and Size of SMU registers | ||
|
||
* SMU_CLKDIV | ||
Function block with an input mux and a divider, which corresponds to | ||
"Serial clock generator" in fig."Clock System Overview" of the manual, | ||
and "xxx frequency division setting register" (XXXCLKDIV) registers. | ||
This makes internal (neither input nor output) clock that is provided | ||
to input of xxxGCLK block. | ||
|
||
Required properties: | ||
- compatible: Should be "renesas,emev2-smu-clkdiv" | ||
- reg: Byte offset from SMU base and Bit position in the register | ||
- clocks: Parent clocks. Input clocks as described in clock-bindings.txt | ||
- #clock-cells: Should be <0> | ||
|
||
* SMU_GCLK | ||
Clock gating node shown as "Clock stop processing block" in the | ||
fig."Clock System Overview" of the manual. | ||
Registers are "xxx clock gate control register" (XXXGCLKCTRL). | ||
|
||
Required properties: | ||
- compatible: Should be "renesas,emev2-smu-gclk" | ||
- reg: Byte offset from SMU base and Bit position in the register | ||
- clocks: Input clock as described in clock-bindings.txt | ||
- #clock-cells: Should be <0> | ||
|
||
Example of provider: | ||
|
||
usia_u0_sclkdiv: usia_u0_sclkdiv { | ||
compatible = "renesas,emev2-smu-clkdiv"; | ||
reg = <0x610 0>; | ||
clocks = <&pll3_fo>, <&pll4_fo>, <&pll1_fo>, <&osc1_fo>; | ||
#clock-cells = <0>; | ||
}; | ||
|
||
usia_u0_sclk: usia_u0_sclk { | ||
compatible = "renesas,emev2-smu-gclk"; | ||
reg = <0x4a0 1>; | ||
clocks = <&usia_u0_sclkdiv>; | ||
#clock-cells = <0>; | ||
}; | ||
|
||
Example of consumer: | ||
|
||
uart@e1020000 { | ||
compatible = "renesas,em-uart"; | ||
reg = <0xe1020000 0x38>; | ||
interrupts = <0 8 0>; | ||
clocks = <&usia_u0_sclk>; | ||
clock-names = "sclk"; | ||
}; | ||
|
||
Example of clock-tree description: | ||
|
||
This describes a clock path in the clock tree | ||
c32ki -> pll3_fo -> usia_u0_sclkdiv -> usia_u0_sclk | ||
|
||
smu@e0110000 { | ||
compatible = "renesas,emev2-smu"; | ||
reg = <0xe0110000 0x10000>; | ||
#address-cells = <2>; | ||
#size-cells = <0>; | ||
|
||
c32ki: c32ki { | ||
compatible = "fixed-clock"; | ||
clock-frequency = <32768>; | ||
#clock-cells = <0>; | ||
}; | ||
pll3_fo: pll3_fo { | ||
compatible = "fixed-factor-clock"; | ||
clocks = <&c32ki>; | ||
clock-div = <1>; | ||
clock-mult = <7000>; | ||
#clock-cells = <0>; | ||
}; | ||
usia_u0_sclkdiv: usia_u0_sclkdiv { | ||
compatible = "renesas,emev2-smu-clkdiv"; | ||
reg = <0x610 0>; | ||
clocks = <&pll3_fo>; | ||
#clock-cells = <0>; | ||
}; | ||
usia_u0_sclk: usia_u0_sclk { | ||
compatible = "renesas,emev2-smu-gclk"; | ||
reg = <0x4a0 1>; | ||
clocks = <&usia_u0_sclkdiv>; | ||
#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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
* Hisilicon Hi3620 Clock Controller | ||
|
||
The Hi3620 clock controller generates and supplies clock to various | ||
controllers within the Hi3620 SoC. | ||
|
||
Required Properties: | ||
|
||
- compatible: should be one of the following. | ||
- "hisilicon,hi3620-clock" - controller compatible with Hi3620 SoC. | ||
|
||
- reg: physical base address of the controller and length of memory mapped | ||
region. | ||
|
||
- #clock-cells: should be 1. | ||
|
||
Each clock is assigned an identifier and client nodes use this identifier | ||
to specify the clock which they consume. | ||
|
||
All these identifier could be found in <dt-bindings/clock/hi3620-clock.h>. |
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
38 changes: 38 additions & 0 deletions
38
Documentation/devicetree/bindings/clock/maxim,max77686.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,38 @@ | ||
Binding for Maxim MAX77686 32k clock generator block | ||
|
||
This is a part of device tree bindings of MAX77686 multi-function device. | ||
More information can be found in bindings/mfd/max77686.txt file. | ||
|
||
The MAX77686 contains three 32.768khz clock outputs that can be controlled | ||
(gated/ungated) over I2C. | ||
|
||
Following properties should be presend in main device node of the MFD chip. | ||
|
||
Required properties: | ||
- #clock-cells: simple one-cell clock specifier format is used, where the | ||
only cell is used as an index of the clock inside the provider. Following | ||
indices are allowed: | ||
- 0: 32khz_ap clock, | ||
- 1: 32khz_cp clock, | ||
- 2: 32khz_pmic clock. | ||
|
||
Example: Node of the MFD chip | ||
|
||
max77686: max77686@09 { | ||
compatible = "maxim,max77686"; | ||
interrupt-parent = <&wakeup_eint>; | ||
interrupts = <26 0>; | ||
reg = <0x09>; | ||
#clock-cells = <1>; | ||
|
||
/* ... */ | ||
}; | ||
|
||
Example: Clock consumer node | ||
|
||
foo@0 { | ||
compatible = "bar,foo"; | ||
/* ... */ | ||
clock-names = "my-clock"; | ||
clocks = <&max77686 2>; | ||
}; |
59 changes: 59 additions & 0 deletions
59
Documentation/devicetree/bindings/clock/nvidia,tegra124-car.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,59 @@ | ||
NVIDIA Tegra124 Clock And Reset Controller | ||
|
||
This binding uses the common clock binding: | ||
Documentation/devicetree/bindings/clock/clock-bindings.txt | ||
|
||
The CAR (Clock And Reset) Controller on Tegra is the HW module responsible | ||
for muxing and gating Tegra's clocks, and setting their rates. | ||
|
||
Required properties : | ||
- compatible : Should be "nvidia,tegra124-car" | ||
- reg : Should contain CAR registers location and length | ||
- clocks : Should contain phandle and clock specifiers for two clocks: | ||
the 32 KHz "32k_in", and the board-specific oscillator "osc". | ||
- #clock-cells : Should be 1. | ||
In clock consumers, this cell represents the clock ID exposed by the | ||
CAR. The assignments may be found in header file | ||
<dt-bindings/clock/tegra124-car.h>. | ||
|
||
Example SoC include file: | ||
|
||
/ { | ||
tegra_car: clock { | ||
compatible = "nvidia,tegra124-car"; | ||
reg = <0x60006000 0x1000>; | ||
#clock-cells = <1>; | ||
}; | ||
|
||
usb@c5004000 { | ||
clocks = <&tegra_car TEGRA124_CLK_USB2>; | ||
}; | ||
}; | ||
|
||
Example board file: | ||
|
||
/ { | ||
clocks { | ||
compatible = "simple-bus"; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
osc: clock@0 { | ||
compatible = "fixed-clock"; | ||
reg = <0>; | ||
#clock-cells = <0>; | ||
clock-frequency = <112400000>; | ||
}; | ||
|
||
clk_32k: clock@1 { | ||
compatible = "fixed-clock"; | ||
reg = <1>; | ||
#clock-cells = <0>; | ||
clock-frequency = <32768>; | ||
}; | ||
}; | ||
|
||
&tegra_car { | ||
clocks = <&clk_32k> <&osc>; | ||
}; | ||
}; |
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,21 @@ | ||
Qualcomm Global Clock & Reset Controller Binding | ||
------------------------------------------------ | ||
|
||
Required properties : | ||
- compatible : shall contain only one of the following: | ||
|
||
"qcom,gcc-msm8660" | ||
"qcom,gcc-msm8960" | ||
"qcom,gcc-msm8974" | ||
|
||
- reg : shall contain base register location and length | ||
- #clock-cells : shall contain 1 | ||
- #reset-cells : shall contain 1 | ||
|
||
Example: | ||
clock-controller@900000 { | ||
compatible = "qcom,gcc-msm8960"; | ||
reg = <0x900000 0x4000>; | ||
#clock-cells = <1>; | ||
#reset-cells = <1>; | ||
}; |
Oops, something went wrong.