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