Skip to content

Commit f0382e3

Browse files
PatrickRudolphwsakernel
authored andcommitted
dt-bindings: i2c: pca954x: Correct interrupt support
Only some of the PCA954x compatible ICs have interrupt capability, but the binding advertises it on all ICs. Sync the dt-binding with the driver and only advertise it on: - nxp,pca9542 - nxp,pca9543 - nxp,pca9544 - nxp,pca9545 Signed-off-by: Patrick Rudolph <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Acked-by: Peter Rosin <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
1 parent 08e3351 commit f0382e3

File tree

1 file changed

+19
-4
lines changed

1 file changed

+19
-4
lines changed

Documentation/devicetree/bindings/i2c/i2c-mux-pca954x.yaml

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ maintainers:
1212
description:
1313
The binding supports NXP PCA954x and PCA984x I2C mux/switch devices.
1414

15-
allOf:
16-
- $ref: /schemas/i2c/i2c-mux.yaml#
17-
1815
properties:
1916
compatible:
2017
oneOf:
@@ -63,6 +60,24 @@ required:
6360
- compatible
6461
- reg
6562

63+
allOf:
64+
- $ref: /schemas/i2c/i2c-mux.yaml#
65+
- if:
66+
not:
67+
properties:
68+
compatible:
69+
contains:
70+
enum:
71+
- nxp,pca9542
72+
- nxp,pca9543
73+
- nxp,pca9544
74+
- nxp,pca9545
75+
then:
76+
properties:
77+
interrupts: false
78+
"#interrupt-cells": false
79+
interrupt-controller: false
80+
6681
unevaluatedProperties: false
6782

6883
examples:
@@ -74,7 +89,7 @@ examples:
7489
#size-cells = <0>;
7590
7691
i2c-mux@74 {
77-
compatible = "nxp,pca9548";
92+
compatible = "nxp,pca9545";
7893
#address-cells = <1>;
7994
#size-cells = <0>;
8095
reg = <0x74>;

0 commit comments

Comments
 (0)