Skip to content

Commit 1211ce1

Browse files
Rustam AdilovAndi Shyti
authored andcommitted
dt-bindings: i2c: realtek,rtl9301-i2c: extend for clocks and RTL9607C support
Add the "realtek,rtl9607-i2c" compatible for i2c controller on the RTL9607C SoC series. Add a clocks property to the properties to describe the i2c reference clock and make it available for all the compatibles. This i2c reference clock is assumed to be coming from switchcore region via Lexra bus as the other SoC peripherals. According to the info available about the existing devices, they also have the i2c master controller clocks. RTL9607C requires the "realtek,scl" and "clocks" to be specified and so handle it under separate if check for "realtek,rtl9607-i2c". Signed-off-by: Rustam Adilov <adilov@disroot.org> Acked-by: Conor Dooley <conor.dooley@microchip.com> Signed-off-by: Andi Shyti <andi.shyti@kernel.org> Link: https://lore.kernel.org/r/20260401180648.337834-6-adilov@disroot.org
1 parent 6afde01 commit 1211ce1

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

Documentation/devicetree/bindings/i2c/realtek,rtl9301-i2c.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ description:
1515
assigned to either I2C controller.
1616
RTL9310 SoCs have equal capabilities but support 12 common SDA lines which
1717
can be assigned to either I2C controller.
18+
RTL9607C SoCs have equal capabilities but each controller only supports 1
19+
SCL/SDA line.
1820

1921
properties:
2022
compatible:
@@ -34,6 +36,7 @@ properties:
3436
- enum:
3537
- realtek,rtl9301-i2c
3638
- realtek,rtl9310-i2c
39+
- realtek,rtl9607-i2c
3740

3841
reg:
3942
items:
@@ -51,6 +54,9 @@ properties:
5154
The SCL line number of this I2C controller.
5255
enum: [ 0, 1 ]
5356

57+
clocks:
58+
maxItems: 1
59+
5460
patternProperties:
5561
'^i2c@[0-9ab]$':
5662
$ref: /schemas/i2c/i2c-controller.yaml
@@ -81,6 +87,15 @@ allOf:
8187
then:
8288
patternProperties:
8389
'^i2c@[89ab]$': false
90+
- if:
91+
properties:
92+
compatible:
93+
contains:
94+
const: realtek,rtl9607-i2c
95+
then:
96+
required:
97+
- realtek,scl
98+
- clocks
8499

85100
required:
86101
- compatible

0 commit comments

Comments
 (0)