Skip to content

Commit 748d3c3

Browse files
committed
Merge tag 'amlogic-drivers-for-v6.4' of https://git.kernel.org/pub/scm/linux/kernel/git/amlogic/linux into soc/drivers
Amlogic Drivers changes for v6.4: - convert clk-measure.txt to dt-schema - meson-pwrc: Use dev_err_probe() - meson_sm: populate platform devices from sm device tree data - dt-bindings: Drop unneeded quotes * tag 'amlogic-drivers-for-v6.4' of https://git.kernel.org/pub/scm/linux/kernel/git/amlogic/linux: dt-bindings: soc: amlogic: Drop unneeded quotes firmware: meson_sm: populate platform devices from sm device tree data soc: amlogic: meson-pwrc: Use dev_err_probe() dt-bindings: soc: amlogic: convert clk-measure.txt to dt-schema Link: https://lore.kernel.org/r/aebef87f-e0a3-17dd-12b7-7231ca6b0923@linaro.org Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2 parents 0d3bece + 1b61fdf commit 748d3c3

7 files changed

Lines changed: 53 additions & 33 deletions

File tree

Documentation/devicetree/bindings/arm/amlogic/amlogic,meson-gx-ao-secure.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
# Copyright 2019 BayLibre, SAS
33
%YAML 1.2
44
---
5-
$id: "http://devicetree.org/schemas/arm/amlogic/amlogic,meson-gx-ao-secure.yaml#"
6-
$schema: "http://devicetree.org/meta-schemas/core.yaml#"
5+
$id: http://devicetree.org/schemas/arm/amlogic/amlogic,meson-gx-ao-secure.yaml#
6+
$schema: http://devicetree.org/meta-schemas/core.yaml#
77

88
title: Amlogic Meson Firmware registers Interface
99

Documentation/devicetree/bindings/arm/amlogic/amlogic,meson-mx-secbus2.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
22
%YAML 1.2
33
---
4-
$id: "http://devicetree.org/schemas/arm/amlogic/amlogic,meson-mx-secbus2.yaml#"
5-
$schema: "http://devicetree.org/meta-schemas/core.yaml#"
4+
$id: http://devicetree.org/schemas/arm/amlogic/amlogic,meson-mx-secbus2.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
66

77
title: Amlogic Meson8/Meson8b/Meson8m2 SECBUS2 register interface
88

Documentation/devicetree/bindings/soc/amlogic/amlogic,canvas.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
# Copyright 2019 BayLibre, SAS
33
%YAML 1.2
44
---
5-
$id: "http://devicetree.org/schemas/soc/amlogic/amlogic,canvas.yaml#"
6-
$schema: "http://devicetree.org/meta-schemas/core.yaml#"
5+
$id: http://devicetree.org/schemas/soc/amlogic/amlogic,canvas.yaml#
6+
$schema: http://devicetree.org/meta-schemas/core.yaml#
77

88
title: Amlogic Canvas Video Lookup Table
99

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/soc/amlogic/amlogic,meson-gx-clk-measure.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Amlogic Internal Clock Measurer
8+
9+
description:
10+
The Amlogic SoCs contains an IP to measure the internal clocks.
11+
The precision is multiple of MHz, useful to debug the clock states.
12+
13+
maintainers:
14+
- Neil Armstrong <neil.armstrong@linaro.org>
15+
16+
properties:
17+
compatible:
18+
enum:
19+
- amlogic,meson-gx-clk-measure
20+
- amlogic,meson8-clk-measure
21+
- amlogic,meson8b-clk-measure
22+
- amlogic,meson-axg-clk-measure
23+
- amlogic,meson-g12a-clk-measure
24+
- amlogic,meson-sm1-clk-measure
25+
26+
reg:
27+
maxItems: 1
28+
29+
required:
30+
- compatible
31+
- reg
32+
33+
unevaluatedProperties: false
34+
35+
examples:
36+
- |
37+
clock-measure@8758 {
38+
compatible = "amlogic,meson-gx-clk-measure";
39+
reg = <0x8758 0x10>;
40+
};

Documentation/devicetree/bindings/soc/amlogic/clk-measure.txt

Lines changed: 0 additions & 21 deletions
This file was deleted.

drivers/firmware/meson/meson_sm.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,11 +311,14 @@ static int __init meson_sm_probe(struct platform_device *pdev)
311311

312312
platform_set_drvdata(pdev, fw);
313313

314-
pr_info("secure-monitor enabled\n");
314+
if (devm_of_platform_populate(dev))
315+
goto out_in_base;
315316

316317
if (sysfs_create_group(&pdev->dev.kobj, &meson_sm_sysfs_attr_group))
317318
goto out_in_base;
318319

320+
pr_info("secure-monitor enabled\n");
321+
319322
return 0;
320323

321324
out_in_base:

drivers/soc/amlogic/meson-gx-pwrc-vpu.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -308,11 +308,9 @@ static int meson_gx_pwrc_vpu_probe(struct platform_device *pdev)
308308
}
309309

310310
rstc = devm_reset_control_array_get_exclusive(&pdev->dev);
311-
if (IS_ERR(rstc)) {
312-
if (PTR_ERR(rstc) != -EPROBE_DEFER)
313-
dev_err(&pdev->dev, "failed to get reset lines\n");
314-
return PTR_ERR(rstc);
315-
}
311+
if (IS_ERR(rstc))
312+
return dev_err_probe(&pdev->dev, PTR_ERR(rstc),
313+
"failed to get reset lines\n");
316314

317315
vpu_clk = devm_clk_get(&pdev->dev, "vpu");
318316
if (IS_ERR(vpu_clk)) {

0 commit comments

Comments
 (0)