Skip to content

Commit 1884f54

Browse files
author
Wolfram Sang
committed
Merge tag 'i2c-host-6.18-pt2' of git://git.kernel.org/pub/scm/linux/kernel/git/andi.shyti/linux into i2c/for-mergewindow
i2c-host for v6.18, part 2 rtl9300 updates: - general cleanups - implemented block read/write support - added RTL9310 support
2 parents cbf33b8 + 1e33137 commit 1884f54

2 files changed

Lines changed: 329 additions & 175 deletions

File tree

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

Lines changed: 40 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@ maintainers:
1010
- Chris Packham <chris.packham@alliedtelesis.co.nz>
1111

1212
description:
13-
The RTL9300 SoC has two I2C controllers. Each of these has an SCL line (which
13+
RTL9300 SoCs have two I2C controllers. Each of these has an SCL line (which
1414
if not-used for SCL can be a GPIO). There are 8 common SDA lines that can be
1515
assigned to either I2C controller.
16+
RTL9310 SoCs have equal capabilities but support 12 common SDA lines which
17+
can be assigned to either I2C controller.
1618

1719
properties:
1820
compatible:
@@ -23,31 +25,64 @@ properties:
2325
- realtek,rtl9302c-i2c
2426
- realtek,rtl9303-i2c
2527
- const: realtek,rtl9301-i2c
26-
- const: realtek,rtl9301-i2c
28+
- items:
29+
- enum:
30+
- realtek,rtl9311-i2c
31+
- realtek,rtl9312-i2c
32+
- realtek,rtl9313-i2c
33+
- const: realtek,rtl9310-i2c
34+
- enum:
35+
- realtek,rtl9301-i2c
36+
- realtek,rtl9310-i2c
2737

2838
reg:
2939
items:
30-
- description: Register offset and size this I2C controller.
40+
- description: Register offset and size of this I2C controller.
3141

3242
"#address-cells":
3343
const: 1
3444

3545
"#size-cells":
3646
const: 0
3747

48+
realtek,scl:
49+
$ref: /schemas/types.yaml#/definitions/uint32
50+
description:
51+
The SCL line number of this I2C controller.
52+
enum: [ 0, 1 ]
53+
3854
patternProperties:
39-
'^i2c@[0-7]$':
55+
'^i2c@[0-9ab]$':
4056
$ref: /schemas/i2c/i2c-controller.yaml
4157
unevaluatedProperties: false
4258

4359
properties:
4460
reg:
45-
description: The SDA pin associated with the I2C bus.
61+
description: The SDA line number associated with the I2C bus.
4662
maxItems: 1
4763

4864
required:
4965
- reg
5066

67+
68+
allOf:
69+
- if:
70+
properties:
71+
compatible:
72+
contains:
73+
const: realtek,rtl9310-i2c
74+
then:
75+
required:
76+
- realtek,scl
77+
- if:
78+
properties:
79+
compatible:
80+
contains:
81+
const: realtek,rtl9301-i2c
82+
then:
83+
patternProperties:
84+
'^i2c@[89ab]$': false
85+
5186
required:
5287
- compatible
5388
- reg

0 commit comments

Comments
 (0)