-
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 branch 'perf/urgent' into perf/core, to pick up fixes and refre…
…sh the branch Signed-off-by: Ingo Molnar <mingo@kernel.org>
- Loading branch information
Showing
617 changed files
with
11,626 additions
and
7,454 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
Device Tree Clock bindings for ATL (Audio Tracking Logic) of DRA7 SoC. | ||
|
||
The ATL IP is used to generate clock to be used to synchronize baseband and | ||
audio codec. A single ATL IP provides four ATL clock instances sharing the same | ||
functional clock but can be configured to provide different clocks. | ||
ATL can maintain a clock averages to some desired frequency based on the bws/aws | ||
signals - can compensate the drift between the two ws signal. | ||
|
||
In order to provide the support for ATL and it's output clocks (which can be used | ||
internally within the SoC or external components) two sets of bindings is needed: | ||
|
||
Clock tree binding: | ||
This binding uses the common clock binding[1]. | ||
To be able to integrate the ATL clocks with DT clock tree. | ||
Provides ccf level representation of the ATL clocks to be used by drivers. | ||
Since the clock instances are part of a single IP this binding is used as a node | ||
for the DT clock tree, the IP driver is needed to handle the actual configuration | ||
of the IP. | ||
|
||
[1] Documentation/devicetree/bindings/clock/clock-bindings.txt | ||
|
||
Required properties: | ||
- compatible : shall be "ti,dra7-atl-clock" | ||
- #clock-cells : from common clock binding; shall be set to 0. | ||
- clocks : link phandles to functional clock of ATL | ||
|
||
Binding for the IP driver: | ||
This binding is used to configure the IP driver which is going to handle the | ||
configuration of the IP for the ATL clock instances. | ||
|
||
Required properties: | ||
- compatible : shall be "ti,dra7-atl" | ||
- reg : base address for the ATL IP | ||
- ti,provided-clocks : List of phandles to the clocks associated with the ATL | ||
- clocks : link phandles to functional clock of ATL | ||
- clock-names : Shall be set to "fck" | ||
- ti,hwmods : Shall be set to "atl" | ||
|
||
Optional properties: | ||
Configuration of ATL instances: | ||
- atl{0/1/2/3} { | ||
- bws : Baseband word select signal selection | ||
- aws : Audio word select signal selection | ||
}; | ||
|
||
For valid word select signals, see the dt-bindings/clk/ti-dra7-atl.h include | ||
file. | ||
|
||
Examples: | ||
/* clock bindings for atl provided clocks */ | ||
atl_clkin0_ck: atl_clkin0_ck { | ||
#clock-cells = <0>; | ||
compatible = "ti,dra7-atl-clock"; | ||
clocks = <&atl_gfclk_mux>; | ||
}; | ||
|
||
atl_clkin1_ck: atl_clkin1_ck { | ||
#clock-cells = <0>; | ||
compatible = "ti,dra7-atl-clock"; | ||
clocks = <&atl_gfclk_mux>; | ||
}; | ||
|
||
atl_clkin2_ck: atl_clkin2_ck { | ||
#clock-cells = <0>; | ||
compatible = "ti,dra7-atl-clock"; | ||
clocks = <&atl_gfclk_mux>; | ||
}; | ||
|
||
atl_clkin3_ck: atl_clkin3_ck { | ||
#clock-cells = <0>; | ||
compatible = "ti,dra7-atl-clock"; | ||
clocks = <&atl_gfclk_mux>; | ||
}; | ||
|
||
/* binding for the IP */ | ||
atl: atl@4843c000 { | ||
compatible = "ti,dra7-atl"; | ||
reg = <0x4843c000 0x3ff>; | ||
ti,hwmods = "atl"; | ||
ti,provided-clocks = <&atl_clkin0_ck>, <&atl_clkin1_ck>, | ||
<&atl_clkin2_ck>, <&atl_clkin3_ck>; | ||
clocks = <&atl_gfclk_mux>; | ||
clock-names = "fck"; | ||
status = "disabled"; | ||
}; | ||
|
||
#include <dt-bindings/clk/ti-dra7-atl.h> | ||
|
||
&atl { | ||
status = "okay"; | ||
|
||
atl2 { | ||
bws = <DRA7_ATL_WS_MCASP2_FSX>; | ||
aws = <DRA7_ATL_WS_MCASP3_FSX>; | ||
}; | ||
}; |
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,42 @@ | ||
* Rockchip RK3xxx I2C controller | ||
|
||
This driver interfaces with the native I2C controller present in Rockchip | ||
RK3xxx SoCs. | ||
|
||
Required properties : | ||
|
||
- reg : Offset and length of the register set for the device | ||
- compatible : should be "rockchip,rk3066-i2c", "rockchip,rk3188-i2c" or | ||
"rockchip,rk3288-i2c". | ||
- interrupts : interrupt number | ||
- clocks : parent clock | ||
|
||
Required on RK3066, RK3188 : | ||
|
||
- rockchip,grf : the phandle of the syscon node for the general register | ||
file (GRF) | ||
- on those SoCs an alias with the correct I2C bus ID (bit offset in the GRF) | ||
is also required. | ||
|
||
Optional properties : | ||
|
||
- clock-frequency : SCL frequency to use (in Hz). If omitted, 100kHz is used. | ||
|
||
Example: | ||
|
||
aliases { | ||
i2c0 = &i2c0; | ||
} | ||
|
||
i2c0: i2c@2002d000 { | ||
compatible = "rockchip,rk3188-i2c"; | ||
reg = <0x2002d000 0x1000>; | ||
interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
rockchip,grf = <&grf>; | ||
|
||
clock-names = "i2c"; | ||
clocks = <&cru PCLK_I2C0>; | ||
}; |
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,41 @@ | ||
|
||
* Allwinner P2WI (Push/Pull 2 Wire Interface) controller | ||
|
||
Required properties : | ||
|
||
- reg : Offset and length of the register set for the device. | ||
- compatible : Should one of the following: | ||
- "allwinner,sun6i-a31-p2wi" | ||
- interrupts : The interrupt line connected to the P2WI peripheral. | ||
- clocks : The gate clk connected to the P2WI peripheral. | ||
- resets : The reset line connected to the P2WI peripheral. | ||
|
||
Optional properties : | ||
|
||
- clock-frequency : Desired P2WI bus clock frequency in Hz. If not set the | ||
default frequency is 100kHz | ||
|
||
A P2WI may contain one child node encoding a P2WI slave device. | ||
|
||
Slave device properties: | ||
Required properties: | ||
- reg : the I2C slave address used during the initialization | ||
process to switch from I2C to P2WI mode | ||
|
||
Example: | ||
|
||
p2wi@01f03400 { | ||
compatible = "allwinner,sun6i-a31-p2wi"; | ||
reg = <0x01f03400 0x400>; | ||
interrupts = <0 39 4>; | ||
clocks = <&apb0_gates 3>; | ||
clock-frequency = <6000000>; | ||
resets = <&apb0_rst 3>; | ||
|
||
axp221: pmic@68 { | ||
compatible = "x-powers,axp221"; | ||
reg = <0x68>; | ||
|
||
/* ... */ | ||
}; | ||
}; |
Oops, something went wrong.