Skip to content

Commit fea0b08

Browse files
committed
Merge branches 'clk-typo', 'clk-json-schema', 'clk-mtk-2712-eco' and 'clk-rockchip' into clk-next
- Convert a few clk bindings to JSON schema format - 3rd ECO fix for Mediatek MT2712 SoCs * clk-typo: clk: samsung: fix typo * clk-json-schema: dt-bindings: clock: Convert fixed-factor-clock to json-schema dt-bindings: clock: Convert fixed-clock binding to json-schema * clk-mtk-2712-eco: clk: mediatek: update clock driver of MT2712 dt-bindings: clock: add clock for MT2712 * clk-rockchip: clk: rockchip: add CLK_SET_RATE_PARENT for rk3066 lcdc dclks clk: rockchip: fix frac settings of GPLL clock for rk3328
5 parents bd5e2ea + 463a554 + f79bae1 + 51ff86d + a49ba41 commit fea0b08

File tree

9 files changed

+117
-63
lines changed

9 files changed

+117
-63
lines changed

Documentation/devicetree/bindings/clock/fixed-clock.txt

Lines changed: 0 additions & 23 deletions
This file was deleted.
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/clock/fixed-clock.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Binding for simple fixed-rate clock sources
8+
9+
maintainers:
10+
- Michael Turquette <mturquette@baylibre.com>
11+
- Stephen Boyd <sboyd@kernel.org>
12+
13+
properties:
14+
compatible:
15+
const: fixed-clock
16+
17+
"#clock-cells":
18+
const: 0
19+
20+
clock-frequency: true
21+
22+
clock-accuracy:
23+
description: accuracy of clock in ppb (parts per billion).
24+
$ref: /schemas/types.yaml#/definitions/uint32
25+
26+
clock-output-names:
27+
maxItems: 1
28+
29+
required:
30+
- compatible
31+
- "#clock-cells"
32+
- clock-frequency
33+
34+
additionalProperties: false
35+
36+
examples:
37+
- |
38+
clock {
39+
compatible = "fixed-clock";
40+
#clock-cells = <0>;
41+
clock-frequency = <1000000000>;
42+
clock-accuracy = <100>;
43+
};
44+
...

Documentation/devicetree/bindings/clock/fixed-factor-clock.txt

Lines changed: 0 additions & 28 deletions
This file was deleted.
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/clock/fixed-factor-clock.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Binding for simple fixed factor rate clock sources
8+
9+
maintainers:
10+
- Michael Turquette <mturquette@baylibre.com>
11+
- Stephen Boyd <sboyd@kernel.org>
12+
13+
properties:
14+
compatible:
15+
enum:
16+
- allwinner,sun4i-a10-pll3-2x-clk
17+
- fixed-factor-clock
18+
19+
"#clock-cells":
20+
const: 0
21+
22+
clocks:
23+
maxItems: 1
24+
25+
clock-div:
26+
description: Fixed divider
27+
allOf:
28+
- $ref: /schemas/types.yaml#/definitions/uint32
29+
- minimum: 1
30+
31+
clock-mult:
32+
description: Fixed multiplier
33+
$ref: /schemas/types.yaml#/definitions/uint32
34+
35+
clock-output-names:
36+
maxItems: 1
37+
38+
required:
39+
- compatible
40+
- clocks
41+
- "#clock-cells"
42+
- clock-div
43+
- clock-mult
44+
45+
additionalProperties: false
46+
47+
examples:
48+
- |
49+
clock {
50+
compatible = "fixed-factor-clock";
51+
clocks = <&parentclk>;
52+
#clock-cells = <0>;
53+
clock-div = <2>;
54+
clock-mult = <1>;
55+
};
56+
...

drivers/clk/mediatek/clk-mt2712.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,8 @@ static const struct mtk_fixed_factor top_divs[] = {
223223
4),
224224
FACTOR(CLK_TOP_APLL1_D3, "apll1_d3", "apll1_ck", 1,
225225
3),
226+
FACTOR(CLK_TOP_APLL2_D3, "apll2_d3", "apll2_ck", 1,
227+
3),
226228
};
227229

228230
static const char * const axi_parents[] = {
@@ -594,15 +596,17 @@ static const char * const a1sys_hp_parents[] = {
594596
"apll1_ck",
595597
"apll1_d2",
596598
"apll1_d4",
597-
"apll1_d8"
599+
"apll1_d8",
600+
"apll1_d3"
598601
};
599602

600603
static const char * const a2sys_hp_parents[] = {
601604
"clk26m",
602605
"apll2_ck",
603606
"apll2_d2",
604607
"apll2_d4",
605-
"apll2_d8"
608+
"apll2_d8",
609+
"apll2_d3"
606610
};
607611

608612
static const char * const asm_l_parents[] = {

drivers/clk/rockchip/clk-rk3188.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -586,12 +586,12 @@ static struct rockchip_clk_branch rk3066a_clk_branches[] __initdata = {
586586
COMPOSITE(0, "dclk_lcdc0_src", mux_pll_src_cpll_gpll_p, 0,
587587
RK2928_CLKSEL_CON(27), 0, 1, MFLAGS, 8, 8, DFLAGS,
588588
RK2928_CLKGATE_CON(3), 1, GFLAGS),
589-
MUX(DCLK_LCDC0, "dclk_lcdc0", mux_rk3066_lcdc0_p, 0,
589+
MUX(DCLK_LCDC0, "dclk_lcdc0", mux_rk3066_lcdc0_p, CLK_SET_RATE_PARENT,
590590
RK2928_CLKSEL_CON(27), 4, 1, MFLAGS),
591591
COMPOSITE(0, "dclk_lcdc1_src", mux_pll_src_cpll_gpll_p, 0,
592592
RK2928_CLKSEL_CON(28), 0, 1, MFLAGS, 8, 8, DFLAGS,
593593
RK2928_CLKGATE_CON(3), 2, GFLAGS),
594-
MUX(DCLK_LCDC1, "dclk_lcdc1", mux_rk3066_lcdc1_p, 0,
594+
MUX(DCLK_LCDC1, "dclk_lcdc1", mux_rk3066_lcdc1_p, CLK_SET_RATE_PARENT,
595595
RK2928_CLKSEL_CON(28), 4, 1, MFLAGS),
596596

597597
COMPOSITE_NOMUX(0, "cif1_pre", "cif_src", 0,

drivers/clk/rockchip/clk-rk3328.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,17 +78,17 @@ static struct rockchip_pll_rate_table rk3328_pll_rates[] = {
7878

7979
static struct rockchip_pll_rate_table rk3328_pll_frac_rates[] = {
8080
/* _mhz, _refdiv, _fbdiv, _postdiv1, _postdiv2, _dsmpd, _frac */
81-
RK3036_PLL_RATE(1016064000, 3, 127, 1, 1, 0, 134217),
81+
RK3036_PLL_RATE(1016064000, 3, 127, 1, 1, 0, 134218),
8282
/* vco = 1016064000 */
83-
RK3036_PLL_RATE(983040000, 24, 983, 1, 1, 0, 671088),
83+
RK3036_PLL_RATE(983040000, 24, 983, 1, 1, 0, 671089),
8484
/* vco = 983040000 */
85-
RK3036_PLL_RATE(491520000, 24, 983, 2, 1, 0, 671088),
85+
RK3036_PLL_RATE(491520000, 24, 983, 2, 1, 0, 671089),
8686
/* vco = 983040000 */
87-
RK3036_PLL_RATE(61440000, 6, 215, 7, 2, 0, 671088),
87+
RK3036_PLL_RATE(61440000, 6, 215, 7, 2, 0, 671089),
8888
/* vco = 860156000 */
89-
RK3036_PLL_RATE(56448000, 12, 451, 4, 4, 0, 9797894),
89+
RK3036_PLL_RATE(56448000, 12, 451, 4, 4, 0, 9797895),
9090
/* vco = 903168000 */
91-
RK3036_PLL_RATE(40960000, 12, 409, 4, 5, 0, 10066329),
91+
RK3036_PLL_RATE(40960000, 12, 409, 4, 5, 0, 10066330),
9292
/* vco = 819200000 */
9393
{ /* sentinel */ },
9494
};

drivers/clk/samsung/clk.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ struct samsung_clk_provider {
2626
void __iomem *reg_base;
2727
struct device *dev;
2828
spinlock_t lock;
29-
/* clk_data must be the last entry due to variable lenght 'hws' array */
29+
/* clk_data must be the last entry due to variable length 'hws' array */
3030
struct clk_hw_onecell_data clk_data;
3131
};
3232

include/dt-bindings/clock/mt2712-clk.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,8 @@
228228
#define CLK_TOP_NFI2X_EN 189
229229
#define CLK_TOP_NFIECC_EN 190
230230
#define CLK_TOP_NFI1X_CK_EN 191
231-
#define CLK_TOP_NR_CLK 192
231+
#define CLK_TOP_APLL2_D3 192
232+
#define CLK_TOP_NR_CLK 193
232233

233234
/* INFRACFG */
234235

0 commit comments

Comments
 (0)