@@ -10,9 +10,11 @@ maintainers:
1010 - Chris Packham <chris.packham@alliedtelesis.co.nz>
1111
1212description :
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
1719properties :
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+
3854patternProperties :
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+
5186required :
5287 - compatible
5388 - reg
0 commit comments