-
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 branches 'clk-starfive', 'clk-fractional' and 'clk-devmof' into…
… clk-next - Shrink size of clk_fractional_divider a little - Convert various clk drivers to devm_of_clk_add_hw_provider() * clk-starfive: clk: starfive: Delete the redundant dev_set_drvdata() in JH7110 clock drivers clk: starfive: Avoid casting iomem pointers MAINTAINERS: generalise StarFive clk/reset entries reset: starfive: Add StarFive JH7110 reset driver clk: starfive: Add StarFive JH7110 always-on clock driver clk: starfive: Add StarFive JH7110 system clock driver reset: starfive: jh71x0: Use 32bit I/O on 32bit registers reset: starfive: Rename "jh7100" to "jh71x0" for the common code reset: starfive: Extract the common JH71X0 reset code reset: starfive: Factor out common JH71X0 reset code reset: Create subdirectory for StarFive drivers reset: starfive: Replace SOC_STARFIVE with ARCH_STARFIVE clk: starfive: Rename "jh7100" to "jh71x0" for the common code clk: starfive: Rename clk-starfive-jh7100.h to clk-starfive-jh71x0.h clk: starfive: Factor out common JH7100 and JH7110 code clk: starfive: Replace SOC_STARFIVE with ARCH_STARFIVE dt-bindings: clock: Add StarFive JH7110 always-on clock and reset generator dt-bindings: clock: Add StarFive JH7110 system clock and reset generator * clk-fractional: clk: Remove mmask and nmask fields in struct clk_fractional_divider clk: rockchip: Remove values for mmask and nmask in struct clk_fractional_divider clk: imx: Remove values for mmask and nmask in struct clk_fractional_divider clk: Compute masks for fractional_divider clk when needed. * clk-devmof: clk: uniphier: Use managed `of_clk_add_hw_provider()` clk: si5351: Use managed `of_clk_add_hw_provider()` clk: si570: Use managed `of_clk_add_hw_provider()` clk: si514: Use managed `of_clk_add_hw_provider()` clk: lmk04832: Use managed `of_clk_add_hw_provider()` clk: hsdk-pll: Use managed `of_clk_add_hw_provider()` clk: cdce706: Use managed `of_clk_add_hw_provider()` clk: axs10x: Use managed `of_clk_add_hw_provider()` clk: axm5516: Use managed `of_clk_add_hw_provider()` clk: axi-clkgen: Use managed `of_clk_add_hw_provider()`
- Loading branch information
Showing
40 changed files
with
2,353 additions
and
955 deletions.
There are no files selected for viewing
107 changes: 107 additions & 0 deletions
107
Documentation/devicetree/bindings/clock/starfive,jh7110-aoncrg.yaml
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,107 @@ | ||
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/clock/starfive,jh7110-aoncrg.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: StarFive JH7110 Always-On Clock and Reset Generator | ||
|
||
maintainers: | ||
- Emil Renner Berthing <kernel@esmil.dk> | ||
|
||
properties: | ||
compatible: | ||
const: starfive,jh7110-aoncrg | ||
|
||
reg: | ||
maxItems: 1 | ||
|
||
clocks: | ||
oneOf: | ||
- items: | ||
- description: Main Oscillator (24 MHz) | ||
- description: GMAC0 RMII reference or GMAC0 RGMII RX | ||
- description: STG AXI/AHB | ||
- description: APB Bus | ||
- description: GMAC0 GTX | ||
|
||
- items: | ||
- description: Main Oscillator (24 MHz) | ||
- description: GMAC0 RMII reference or GMAC0 RGMII RX | ||
- description: STG AXI/AHB or GMAC0 RGMII RX | ||
- description: APB Bus or STG AXI/AHB | ||
- description: GMAC0 GTX or APB Bus | ||
- description: RTC Oscillator (32.768 kHz) or GMAC0 GTX | ||
|
||
- items: | ||
- description: Main Oscillator (24 MHz) | ||
- description: GMAC0 RMII reference | ||
- description: GMAC0 RGMII RX | ||
- description: STG AXI/AHB | ||
- description: APB Bus | ||
- description: GMAC0 GTX | ||
- description: RTC Oscillator (32.768 kHz) | ||
|
||
clock-names: | ||
oneOf: | ||
- minItems: 5 | ||
items: | ||
- const: osc | ||
- enum: | ||
- gmac0_rmii_refin | ||
- gmac0_rgmii_rxin | ||
- const: stg_axiahb | ||
- const: apb_bus | ||
- const: gmac0_gtxclk | ||
- const: rtc_osc | ||
|
||
- minItems: 6 | ||
items: | ||
- const: osc | ||
- const: gmac0_rmii_refin | ||
- const: gmac0_rgmii_rxin | ||
- const: stg_axiahb | ||
- const: apb_bus | ||
- const: gmac0_gtxclk | ||
- const: rtc_osc | ||
|
||
'#clock-cells': | ||
const: 1 | ||
description: | ||
See <dt-bindings/clock/starfive,jh7110-crg.h> for valid indices. | ||
|
||
'#reset-cells': | ||
const: 1 | ||
description: | ||
See <dt-bindings/reset/starfive,jh7110-crg.h> for valid indices. | ||
|
||
required: | ||
- compatible | ||
- reg | ||
- clocks | ||
- clock-names | ||
- '#clock-cells' | ||
- '#reset-cells' | ||
|
||
additionalProperties: false | ||
|
||
examples: | ||
- | | ||
#include <dt-bindings/clock/starfive,jh7110-crg.h> | ||
clock-controller@17000000 { | ||
compatible = "starfive,jh7110-aoncrg"; | ||
reg = <0x17000000 0x10000>; | ||
clocks = <&osc>, <&gmac0_rmii_refin>, | ||
<&gmac0_rgmii_rxin>, | ||
<&syscrg JH7110_SYSCLK_STG_AXIAHB>, | ||
<&syscrg JH7110_SYSCLK_APB_BUS>, | ||
<&syscrg JH7110_SYSCLK_GMAC0_GTXCLK>, | ||
<&rtc_osc>; | ||
clock-names = "osc", "gmac0_rmii_refin", | ||
"gmac0_rgmii_rxin", "stg_axiahb", | ||
"apb_bus", "gmac0_gtxclk", | ||
"rtc_osc"; | ||
#clock-cells = <1>; | ||
#reset-cells = <1>; | ||
}; |
104 changes: 104 additions & 0 deletions
104
Documentation/devicetree/bindings/clock/starfive,jh7110-syscrg.yaml
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,104 @@ | ||
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/clock/starfive,jh7110-syscrg.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: StarFive JH7110 System Clock and Reset Generator | ||
|
||
maintainers: | ||
- Emil Renner Berthing <kernel@esmil.dk> | ||
|
||
properties: | ||
compatible: | ||
const: starfive,jh7110-syscrg | ||
|
||
reg: | ||
maxItems: 1 | ||
|
||
clocks: | ||
oneOf: | ||
- items: | ||
- description: Main Oscillator (24 MHz) | ||
- description: GMAC1 RMII reference or GMAC1 RGMII RX | ||
- description: External I2S TX bit clock | ||
- description: External I2S TX left/right channel clock | ||
- description: External I2S RX bit clock | ||
- description: External I2S RX left/right channel clock | ||
- description: External TDM clock | ||
- description: External audio master clock | ||
|
||
- items: | ||
- description: Main Oscillator (24 MHz) | ||
- description: GMAC1 RMII reference | ||
- description: GMAC1 RGMII RX | ||
- description: External I2S TX bit clock | ||
- description: External I2S TX left/right channel clock | ||
- description: External I2S RX bit clock | ||
- description: External I2S RX left/right channel clock | ||
- description: External TDM clock | ||
- description: External audio master clock | ||
|
||
clock-names: | ||
oneOf: | ||
- items: | ||
- const: osc | ||
- enum: | ||
- gmac1_rmii_refin | ||
- gmac1_rgmii_rxin | ||
- const: i2stx_bclk_ext | ||
- const: i2stx_lrck_ext | ||
- const: i2srx_bclk_ext | ||
- const: i2srx_lrck_ext | ||
- const: tdm_ext | ||
- const: mclk_ext | ||
|
||
- items: | ||
- const: osc | ||
- const: gmac1_rmii_refin | ||
- const: gmac1_rgmii_rxin | ||
- const: i2stx_bclk_ext | ||
- const: i2stx_lrck_ext | ||
- const: i2srx_bclk_ext | ||
- const: i2srx_lrck_ext | ||
- const: tdm_ext | ||
- const: mclk_ext | ||
|
||
'#clock-cells': | ||
const: 1 | ||
description: | ||
See <dt-bindings/clock/starfive,jh7110-crg.h> for valid indices. | ||
|
||
'#reset-cells': | ||
const: 1 | ||
description: | ||
See <dt-bindings/reset/starfive,jh7110-crg.h> for valid indices. | ||
|
||
required: | ||
- compatible | ||
- reg | ||
- clocks | ||
- clock-names | ||
- '#clock-cells' | ||
- '#reset-cells' | ||
|
||
additionalProperties: false | ||
|
||
examples: | ||
- | | ||
clock-controller@13020000 { | ||
compatible = "starfive,jh7110-syscrg"; | ||
reg = <0x13020000 0x10000>; | ||
clocks = <&osc>, <&gmac1_rmii_refin>, | ||
<&gmac1_rgmii_rxin>, | ||
<&i2stx_bclk_ext>, <&i2stx_lrck_ext>, | ||
<&i2srx_bclk_ext>, <&i2srx_lrck_ext>, | ||
<&tdm_ext>, <&mclk_ext>; | ||
clock-names = "osc", "gmac1_rmii_refin", | ||
"gmac1_rgmii_rxin", | ||
"i2stx_bclk_ext", "i2stx_lrck_ext", | ||
"i2srx_bclk_ext", "i2srx_lrck_ext", | ||
"tdm_ext", "mclk_ext"; | ||
#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
Oops, something went wrong.