nxp,pca9541.yaml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. title: NXP PCA9541 I2C bus master selector
  7. maintainers:
  8. - Peter Rosin <peda@axentia.se>
  9. properties:
  10. compatible:
  11. const: nxp,pca9541
  12. reg:
  13. maxItems: 1
  14. i2c-arb:
  15. type: object
  16. $ref: /schemas/i2c/i2c-controller.yaml
  17. unevaluatedProperties: false
  18. description:
  19. I2C arbitration bus node.
  20. required:
  21. - compatible
  22. - reg
  23. - i2c-arb
  24. additionalProperties: false
  25. examples:
  26. - |
  27. #include <dt-bindings/gpio/gpio.h>
  28. #include <dt-bindings/interrupt-controller/irq.h>
  29. i2c {
  30. #address-cells = <1>;
  31. #size-cells = <0>;
  32. i2c-arbitrator@74 {
  33. compatible = "nxp,pca9541";
  34. reg = <0x74>;
  35. i2c-arb {
  36. #address-cells = <1>;
  37. #size-cells = <0>;
  38. eeprom@54 {
  39. compatible = "atmel,24c08";
  40. reg = <0x54>;
  41. };
  42. };
  43. };
  44. };