-
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 'meson-clk-4.19-1' of https://github.com/BayLibre/clk-meson …
…into clk-meson Pull first round of updates for meson clocks from Jerome Brunet: - Remove legacy register access (finish moving to syscon) - Clean up configuration flags - Add axg PCIe clocks - Add GEN CLK on gxbb, gxl and axg - Remove clk_audio_divider driver - Add axg audio clock controller * tag 'meson-clk-4.19-1' of https://github.com/BayLibre/clk-meson: clk: meson: add gen_clk clk: meson: gxbb: remove HHI_GEN_CLK_CTNL duplicate definition clk: meson-axg: add clocks required by pcie driver clk: meson: remove unused clk-audio-divider driver clk: meson: stop rate propagation for audio clocks clk: meson: axg: add the audio clock controller driver clk: meson: add axg audio sclk divider driver clk: meson: add triple phase clock driver clk: meson: add clk-phase clock driver clk: meson: clean-up meson clock configuration clk: meson: remove obsolete register access clk: meson: expose GEN_CLK clkid clk: meson-axg: add pcie and mipi clock bindings dt-bindings: clock: add meson axg audio clock controller bindings clk: meson: audio-divider is one based clk: add duty cycle support clk: meson-gxbb: set fclk_div2 as CLK_IS_CRITICAL
- Loading branch information
Showing
22 changed files
with
2,141 additions
and
211 deletions.
There are no files selected for viewing
56 changes: 56 additions & 0 deletions
56
Documentation/devicetree/bindings/clock/amlogic,axg-audio-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,56 @@ | ||
* Amlogic AXG Audio Clock Controllers | ||
|
||
The Amlogic AXG audio clock controller generates and supplies clock to the | ||
other elements of the audio subsystem, such as fifos, i2s, spdif and pdm | ||
devices. | ||
|
||
Required Properties: | ||
|
||
- compatible : should be "amlogic,axg-audio-clkc" for the A113X and A113D | ||
- reg : physical base address of the clock controller and length of | ||
memory mapped region. | ||
- clocks : a list of phandle + clock-specifier pairs for the clocks listed | ||
in clock-names. | ||
- clock-names : must contain the following: | ||
* "pclk" - Main peripheral bus clock | ||
may contain the following: | ||
* "mst_in[0-7]" - 8 input plls to generate clock signals | ||
* "slv_sclk[0-9]" - 10 slave bit clocks provided by external | ||
components. | ||
* "slv_lrclk[0-9]" - 10 slave sample clocks provided by external | ||
components. | ||
- resets : phandle of the internal reset line | ||
- #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/axg-audio-clkc.h header and can be | ||
used in device tree sources. | ||
|
||
Example: | ||
|
||
clkc_audio: clock-controller@0 { | ||
compatible = "amlogic,axg-audio-clkc"; | ||
reg = <0x0 0x0 0x0 0xb4>; | ||
#clock-cells = <1>; | ||
|
||
clocks = <&clkc CLKID_AUDIO>, | ||
<&clkc CLKID_MPLL0>, | ||
<&clkc CLKID_MPLL1>, | ||
<&clkc CLKID_MPLL2>, | ||
<&clkc CLKID_MPLL3>, | ||
<&clkc CLKID_HIFI_PLL>, | ||
<&clkc CLKID_FCLK_DIV3>, | ||
<&clkc CLKID_FCLK_DIV4>, | ||
<&clkc CLKID_GP0_PLL>; | ||
clock-names = "pclk", | ||
"mst_in0", | ||
"mst_in1", | ||
"mst_in2", | ||
"mst_in3", | ||
"mst_in4", | ||
"mst_in5", | ||
"mst_in6", | ||
"mst_in7"; | ||
resets = <&reset RESET_AUDIO>; | ||
}; |
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 |
---|---|---|
@@ -1,46 +1,56 @@ | ||
config COMMON_CLK_AMLOGIC | ||
bool | ||
depends on OF | ||
depends on ARCH_MESON || COMPILE_TEST | ||
select COMMON_CLK_REGMAP_MESON | ||
|
||
config COMMON_CLK_AMLOGIC_AUDIO | ||
bool | ||
depends on ARCH_MESON || COMPILE_TEST | ||
select COMMON_CLK_AMLOGIC | ||
|
||
config COMMON_CLK_MESON_AO | ||
bool | ||
depends on OF | ||
depends on ARCH_MESON || COMPILE_TEST | ||
select COMMON_CLK_REGMAP_MESON | ||
select RESET_CONTROLLER | ||
|
||
config COMMON_CLK_REGMAP_MESON | ||
bool | ||
select REGMAP | ||
|
||
config COMMON_CLK_MESON8B | ||
bool | ||
depends on COMMON_CLK_AMLOGIC | ||
select COMMON_CLK_AMLOGIC | ||
select RESET_CONTROLLER | ||
select COMMON_CLK_REGMAP_MESON | ||
help | ||
Support for the clock controller on AmLogic S802 (Meson8), | ||
S805 (Meson8b) and S812 (Meson8m2) devices. Say Y if you | ||
want peripherals and CPU frequency scaling to work. | ||
|
||
config COMMON_CLK_GXBB | ||
bool | ||
depends on COMMON_CLK_AMLOGIC | ||
select RESET_CONTROLLER | ||
select COMMON_CLK_AMLOGIC | ||
select COMMON_CLK_MESON_AO | ||
select COMMON_CLK_REGMAP_MESON | ||
select MFD_SYSCON | ||
help | ||
Support for the clock controller on AmLogic S905 devices, aka gxbb. | ||
Say Y if you want peripherals and CPU frequency scaling to work. | ||
|
||
config COMMON_CLK_AXG | ||
bool | ||
depends on COMMON_CLK_AMLOGIC | ||
select RESET_CONTROLLER | ||
select COMMON_CLK_AMLOGIC | ||
select COMMON_CLK_MESON_AO | ||
select COMMON_CLK_REGMAP_MESON | ||
select MFD_SYSCON | ||
help | ||
Support for the clock controller on AmLogic A113D devices, aka axg. | ||
Say Y if you want peripherals and CPU frequency scaling to work. | ||
|
||
config COMMON_CLK_AXG_AUDIO | ||
tristate "Meson AXG Audio Clock Controller Driver" | ||
depends on COMMON_CLK_AXG | ||
select COMMON_CLK_AMLOGIC_AUDIO | ||
select MFD_SYSCON | ||
help | ||
Support for the audio clock controller on AmLogic A113D devices, | ||
aka axg, Say Y if you want audio subsystem to work. |
Oops, something went wrong.