Skip to content

Commit e6c6ddb

Browse files
rockosovjbrun3t
authored andcommitted
dt-bindings: clock: meson: add A1 PLL clock controller bindings
Add the documentation and dt bindings for Amlogic A1 PLL clock controller. Also include new A1 clock controller dt bindings to MAINTAINERS. Signed-off-by: Jian Hu <jian.hu@amlogic.com> Signed-off-by: Dmitry Rokosov <ddrokosov@sberdevices.ru> Reviewed-by: Rob Herring <robh@kernel.org> Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> Link: https://lore.kernel.org/r/20230523135351.19133-4-ddrokosov@sberdevices.ru Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
1 parent ac9a786 commit e6c6ddb

3 files changed

Lines changed: 79 additions & 0 deletions

File tree

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/clock/amlogic,a1-pll-clkc.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Amlogic A1 PLL Clock Control Unit
8+
9+
maintainers:
10+
- Neil Armstrong <neil.armstrong@linaro.org>
11+
- Jerome Brunet <jbrunet@baylibre.com>
12+
- Jian Hu <jian.hu@jian.hu.com>
13+
- Dmitry Rokosov <ddrokosov@sberdevices.ru>
14+
15+
properties:
16+
compatible:
17+
const: amlogic,a1-pll-clkc
18+
19+
'#clock-cells':
20+
const: 1
21+
22+
reg:
23+
maxItems: 1
24+
25+
clocks:
26+
items:
27+
- description: input fixpll_in
28+
- description: input hifipll_in
29+
30+
clock-names:
31+
items:
32+
- const: fixpll_in
33+
- const: hifipll_in
34+
35+
required:
36+
- compatible
37+
- '#clock-cells'
38+
- reg
39+
- clocks
40+
- clock-names
41+
42+
additionalProperties: false
43+
44+
examples:
45+
- |
46+
apb {
47+
#address-cells = <2>;
48+
#size-cells = <2>;
49+
50+
clock-controller@7c80 {
51+
compatible = "amlogic,a1-pll-clkc";
52+
reg = <0 0x7c80 0 0x18c>;
53+
#clock-cells = <1>;
54+
clocks = <&clkc_periphs_fixpll_in>,
55+
<&clkc_periphs_hifipll_in>;
56+
clock-names = "fixpll_in", "hifipll_in";
57+
};
58+
};

MAINTAINERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1888,6 +1888,7 @@ L: linux-amlogic@lists.infradead.org
18881888
S: Maintained
18891889
F: Documentation/devicetree/bindings/clock/amlogic*
18901890
F: drivers/clk/meson/
1891+
F: include/dt-bindings/clock/a1*
18911892
F: include/dt-bindings/clock/gxbb*
18921893
F: include/dt-bindings/clock/meson*
18931894

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/* SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause */
2+
/*
3+
* Copyright (c) 2019 Amlogic, Inc. All rights reserved.
4+
* Author: Jian Hu <jian.hu@amlogic.com>
5+
*
6+
* Copyright (c) 2023, SberDevices. All Rights Reserved.
7+
* Author: Dmitry Rokosov <ddrokosov@sberdevices.ru>
8+
*/
9+
10+
#ifndef __A1_PLL_CLKC_H
11+
#define __A1_PLL_CLKC_H
12+
13+
#define CLKID_FIXED_PLL 1
14+
#define CLKID_FCLK_DIV2 6
15+
#define CLKID_FCLK_DIV3 7
16+
#define CLKID_FCLK_DIV5 8
17+
#define CLKID_FCLK_DIV7 9
18+
#define CLKID_HIFI_PLL 10
19+
20+
#endif /* __A1_PLL_CLKC_H */

0 commit comments

Comments
 (0)