Skip to content

Commit 4a35e6f

Browse files
committed
Merge branches 'clk-counted', 'clk-imx', 'clk-amlogic', 'clk-binding' and 'clk-rockchip' into clk-next
* clk-counted: clk: bcm: rpi: Assign ->num before accessing ->hws clk: bcm: dvp: Assign ->num before accessing ->hws * clk-imx: clk: imx: imx8mp: Convert to platform remove callback returning void clk: imx: imx8mp: Switch to RUNTIME_PM_OPS() clk: imx: add i.MX95 BLK CTL clk driver dt-bindings: clock: support i.MX95 Display Master CSR module dt-bindings: clock: support i.MX95 BLK CTL module dt-bindings: clock: add i.MX95 clock header clk: imx: imx8mp: Add pm_runtime support for power saving * clk-amlogic: clk: meson: s4: fix module autoloading clk: meson: fix module license to GPL only clk: meson: g12a: make VCLK2 and ENCL clock path configurable by CCF clk: meson: add vclk driver clk: meson: pll: print out pll name when unable to lock it clk: meson: s4: pll: determine maximum register in regmap config clk: meson: s4: peripherals: determine maximum register in regmap config clk: meson: a1: pll: determine maximum register in regmap config clk: meson: a1: peripherals: determine maximum register in regmap config * clk-binding: dt-bindings: clock: fixed: Define a preferred node name * clk-rockchip: clk: rockchip: rk3568: Add PLL rate for 724 MHz clk: rockchip: Remove an unused field in struct rockchip_mmc_clock clk: rockchip: rk3588: Add reset line for HDMI Receiver clk: rockchip: rk3568: Add missing USB480M_PHY mux dt-bindings: reset: Define reset id used for HDMI Receiver dt-bindings: clock: rockchip: add USB480M_PHY mux
6 parents 7552d1b + 6dc445c + 16fb217 + d855571 + b3e9912 + 2f8acf7 commit 4a35e6f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+1037
-63
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,15 @@ maintainers:
1111
- Stephen Boyd <sboyd@kernel.org>
1212

1313
properties:
14+
$nodename:
15+
anyOf:
16+
- description:
17+
Preferred name is 'clock-<freq>' with <freq> being the output
18+
frequency as defined in the 'clock-frequency' property.
19+
pattern: "^clock-([0-9]+|[a-z0-9-]+)$"
20+
- description: Any name allowed
21+
deprecated: true
22+
1423
compatible:
1524
const: fixed-clock
1625

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,15 @@ maintainers:
1111
- Stephen Boyd <sboyd@kernel.org>
1212

1313
properties:
14+
$nodename:
15+
anyOf:
16+
- description:
17+
If the frequency is fixed, the preferred name is 'clock-<freq>' with
18+
<freq> being the output frequency.
19+
pattern: "^clock-([0-9]+|[0-9a-z-]+)$"
20+
- description: Any name allowed
21+
deprecated: true
22+
1423
compatible:
1524
enum:
1625
- fixed-factor-clock
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-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/clock/nxp,imx95-blk-ctl.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: NXP i.MX95 Block Control
8+
9+
maintainers:
10+
- Peng Fan <peng.fan@nxp.com>
11+
12+
properties:
13+
compatible:
14+
items:
15+
- enum:
16+
- nxp,imx95-lvds-csr
17+
- nxp,imx95-display-csr
18+
- nxp,imx95-camera-csr
19+
- nxp,imx95-vpu-csr
20+
- const: syscon
21+
22+
reg:
23+
maxItems: 1
24+
25+
power-domains:
26+
maxItems: 1
27+
28+
clocks:
29+
maxItems: 1
30+
31+
'#clock-cells':
32+
const: 1
33+
description:
34+
The clock consumer should specify the desired clock by having the clock
35+
ID in its "clocks" phandle cell. See
36+
include/dt-bindings/clock/nxp,imx95-clock.h
37+
38+
required:
39+
- compatible
40+
- reg
41+
- '#clock-cells'
42+
- power-domains
43+
- clocks
44+
45+
additionalProperties: false
46+
47+
examples:
48+
- |
49+
syscon@4c410000 {
50+
compatible = "nxp,imx95-vpu-csr", "syscon";
51+
reg = <0x4c410000 0x10000>;
52+
#clock-cells = <1>;
53+
clocks = <&scmi_clk 114>;
54+
power-domains = <&scmi_devpd 21>;
55+
};
56+
...
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/clock/nxp,imx95-display-master-csr.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: NXP i.MX95 Display Master Block Control
8+
9+
maintainers:
10+
- Peng Fan <peng.fan@nxp.com>
11+
12+
properties:
13+
compatible:
14+
items:
15+
- const: nxp,imx95-display-master-csr
16+
- const: syscon
17+
18+
reg:
19+
maxItems: 1
20+
21+
power-domains:
22+
maxItems: 1
23+
24+
clocks:
25+
maxItems: 1
26+
27+
'#clock-cells':
28+
const: 1
29+
description:
30+
The clock consumer should specify the desired clock by having the clock
31+
ID in its "clocks" phandle cell. See
32+
include/dt-bindings/clock/nxp,imx95-clock.h
33+
34+
mux-controller:
35+
type: object
36+
$ref: /schemas/mux/reg-mux.yaml
37+
38+
required:
39+
- compatible
40+
- reg
41+
- '#clock-cells'
42+
- mux-controller
43+
- power-domains
44+
- clocks
45+
46+
additionalProperties: false
47+
48+
examples:
49+
- |
50+
syscon@4c410000 {
51+
compatible = "nxp,imx95-display-master-csr", "syscon";
52+
reg = <0x4c410000 0x10000>;
53+
#clock-cells = <1>;
54+
clocks = <&scmi_clk 62>;
55+
power-domains = <&scmi_devpd 3>;
56+
57+
mux: mux-controller {
58+
compatible = "mmio-mux";
59+
#mux-control-cells = <1>;
60+
mux-reg-masks = <0x4 0x00000001>; /* Pixel_link_sel */
61+
idle-states = <0>;
62+
};
63+
};
64+
...

drivers/clk/bcm/clk-bcm2711-dvp.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ static int clk_dvp_probe(struct platform_device *pdev)
5656
if (ret)
5757
return ret;
5858

59+
data->num = NR_CLOCKS;
60+
5961
data->hws[0] = clk_hw_register_gate_parent_data(&pdev->dev,
6062
"hdmi0-108MHz",
6163
&clk_dvp_parent, 0,
@@ -76,7 +78,6 @@ static int clk_dvp_probe(struct platform_device *pdev)
7678
goto unregister_clk0;
7779
}
7880

79-
data->num = NR_CLOCKS;
8081
ret = of_clk_add_hw_provider(pdev->dev.of_node, of_clk_hw_onecell_get,
8182
data);
8283
if (ret)

drivers/clk/bcm/clk-raspberrypi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,8 +371,8 @@ static int raspberrypi_discover_clocks(struct raspberrypi_clk *rpi,
371371
if (IS_ERR(hw))
372372
return PTR_ERR(hw);
373373

374-
data->hws[clks->id] = hw;
375374
data->num = clks->id + 1;
375+
data->hws[clks->id] = hw;
376376
}
377377

378378
clks++;

drivers/clk/imx/Kconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,13 @@ config CLK_IMX93
114114
help
115115
Build the driver for i.MX93 CCM Clock Driver
116116

117+
config CLK_IMX95_BLK_CTL
118+
tristate "IMX95 Clock Driver for BLK CTL"
119+
depends on ARCH_MXC || COMPILE_TEST
120+
select MXC_CLK
121+
help
122+
Build the clock driver for i.MX95 BLK CTL
123+
117124
config CLK_IMXRT1050
118125
tristate "IMXRT1050 CCM Clock Driver"
119126
depends on SOC_IMXRT || COMPILE_TEST

drivers/clk/imx/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ obj-$(CONFIG_CLK_IMX8MP) += clk-imx8mp.o clk-imx8mp-audiomix.o
3131
obj-$(CONFIG_CLK_IMX8MQ) += clk-imx8mq.o
3232

3333
obj-$(CONFIG_CLK_IMX93) += clk-imx93.o
34+
obj-$(CONFIG_CLK_IMX95_BLK_CTL) += clk-imx95-blk-ctl.o
3435

3536
obj-$(CONFIG_MXC_CLK_SCU) += clk-imx-scu.o clk-imx-lpcg-scu.o clk-imx-acm.o
3637
clk-imx-scu-$(CONFIG_CLK_IMX8QXP) += clk-scu.o clk-imx8qxp.o \

0 commit comments

Comments
 (0)