Skip to content

Commit 26c1bc6

Browse files
Marek Vasutbebarino
authored andcommitted
dt-bindings: clk: rs9: Add Renesas 9-series I2C PCIe clock generator
Add binding for Renesas 9-series PCIe clock generators. This binding is designed to support 9FGV/9DBV/9DMV/9FGL/9DML/9QXL/9SQ series I2C PCIe clock generators, currently the only tested and supported chip is 9FGV0241. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Michael Turquette <mturquette@baylibre.com> Cc: Rob Herring <robh+dt@kernel.org> Cc: Stephen Boyd <sboyd@kernel.org> Cc: devicetree@vger.kernel.org Link: https://lore.kernel.org/r/20220226040723.143705-1-marex@denx.de Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
1 parent 9a77103 commit 26c1bc6

File tree

1 file changed

+97
-0
lines changed

1 file changed

+97
-0
lines changed
Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/clock/renesas,9series.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Binding for Renesas 9-series I2C PCIe clock generators
8+
9+
description: |
10+
The Renesas 9-series are I2C PCIe clock generators providing
11+
from 1 to 20 output clocks.
12+
13+
When referencing the provided clock in the DT using phandle
14+
and clock specifier, the following mapping applies:
15+
16+
- 9FGV0241:
17+
0 -- DIF0
18+
1 -- DIF1
19+
20+
maintainers:
21+
- Marek Vasut <marex@denx.de>
22+
23+
properties:
24+
compatible:
25+
enum:
26+
- renesas,9fgv0241
27+
28+
reg:
29+
description: I2C device address
30+
enum: [ 0x68, 0x6a ]
31+
32+
'#clock-cells':
33+
const: 1
34+
35+
clocks:
36+
items:
37+
- description: XTal input clock
38+
39+
renesas,out-amplitude-microvolt:
40+
enum: [ 600000, 700000, 800000, 900000 ]
41+
description: Output clock signal amplitude
42+
43+
renesas,out-spread-spectrum:
44+
$ref: /schemas/types.yaml#/definitions/uint32
45+
enum: [ 100000, 99750, 99500 ]
46+
description: Output clock down spread in pcm (1/1000 of percent)
47+
48+
patternProperties:
49+
"^DIF[0-19]$":
50+
type: object
51+
description:
52+
Description of one of the outputs (DIF0..DIF19).
53+
54+
properties:
55+
renesas,slew-rate:
56+
$ref: /schemas/types.yaml#/definitions/uint32
57+
enum: [ 2000000, 3000000 ]
58+
description: Output clock slew rate select in V/ns
59+
60+
additionalProperties: false
61+
62+
required:
63+
- compatible
64+
- reg
65+
- clocks
66+
- '#clock-cells'
67+
68+
additionalProperties: false
69+
70+
examples:
71+
- |
72+
/* 25MHz reference crystal */
73+
ref25: ref25m {
74+
compatible = "fixed-clock";
75+
#clock-cells = <0>;
76+
clock-frequency = <25000000>;
77+
};
78+
79+
i2c@0 {
80+
reg = <0x0 0x100>;
81+
#address-cells = <1>;
82+
#size-cells = <0>;
83+
84+
rs9: clock-generator@6a {
85+
compatible = "renesas,9fgv0241";
86+
reg = <0x6a>;
87+
#clock-cells = <1>;
88+
89+
clocks = <&ref25m>;
90+
91+
DIF0 {
92+
renesas,slew-rate = <3000000>;
93+
};
94+
};
95+
};
96+
97+
...

0 commit comments

Comments
 (0)