Skip to content

Commit 747d246

Browse files
robherringWolfram Sang
authored andcommitted
dt-bindings: i2c: brcm,iproc-i2c: Allow 2 reg entries for brcm,iproc-nic-i2c
The brcm,iproc-nic-i2c variant has 2 reg entries. The second one is related to the brcm,ape-hsls-addr-mask property, but it's not clear what a proper description would be. Signed-off-by: Rob Herring (Arm) <robh@kernel.org> Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
1 parent 0f61b18 commit 747d246

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

Documentation/devicetree/bindings/i2c/brcm,iproc-i2c.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ properties:
1616
- brcm,iproc-nic-i2c
1717

1818
reg:
19-
maxItems: 1
19+
minItems: 1
20+
maxItems: 2
2021

2122
clock-frequency:
2223
enum: [ 100000, 400000 ]
@@ -41,8 +42,15 @@ allOf:
4142
contains:
4243
const: brcm,iproc-nic-i2c
4344
then:
45+
properties:
46+
reg:
47+
minItems: 2
4448
required:
4549
- brcm,ape-hsls-addr-mask
50+
else:
51+
properties:
52+
reg:
53+
maxItems: 1
4654

4755
unevaluatedProperties: false
4856

0 commit comments

Comments
 (0)