xref: /linux/Documentation/devicetree/bindings/i2c/nxp,pca9541.yaml (revision 4f68ead61b0a20a37a2b3bc3dda3e7f10a86fd9a)
1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/i2c/nxp,pca9541.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: NXP PCA9541 I2C bus master selector
8
9maintainers:
10  - Peter Rosin <peda@axentia.se>
11
12properties:
13  compatible:
14    const: nxp,pca9541
15
16  reg:
17    maxItems: 1
18
19  i2c-arb:
20    type: object
21    $ref: /schemas/i2c/i2c-controller.yaml
22    unevaluatedProperties: false
23    description:
24      I2C arbitration bus node.
25
26required:
27  - compatible
28  - reg
29  - i2c-arb
30
31additionalProperties: false
32
33examples:
34  - |
35    #include <dt-bindings/gpio/gpio.h>
36    #include <dt-bindings/interrupt-controller/irq.h>
37
38    i2c {
39        #address-cells = <1>;
40        #size-cells = <0>;
41
42        i2c-arbitrator@74 {
43            compatible = "nxp,pca9541";
44            reg = <0x74>;
45
46            i2c-arb {
47                #address-cells = <1>;
48                #size-cells = <0>;
49
50                eeprom@54 {
51                    compatible = "atmel,24c08";
52                    reg = <0x54>;
53                };
54            };
55        };
56    };
57