gpio-pca9570.yaml 916 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/gpio/gpio-pca9570.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: PCA9570 I2C GPO expander
  7. maintainers:
  8. - Sungbo Eo <mans0n@gorani.run>
  9. properties:
  10. compatible:
  11. enum:
  12. - dlg,slg7xl45106
  13. - nxp,pca9570
  14. - nxp,pca9571
  15. reg:
  16. maxItems: 1
  17. gpio-controller: true
  18. '#gpio-cells':
  19. const: 2
  20. gpio-line-names:
  21. minItems: 4
  22. maxItems: 8
  23. label:
  24. description: A descriptive name for this device.
  25. required:
  26. - compatible
  27. - reg
  28. - gpio-controller
  29. - "#gpio-cells"
  30. additionalProperties: false
  31. examples:
  32. - |
  33. i2c {
  34. #address-cells = <1>;
  35. #size-cells = <0>;
  36. gpio@24 {
  37. compatible = "nxp,pca9570";
  38. reg = <0x24>;
  39. gpio-controller;
  40. #gpio-cells = <2>;
  41. };
  42. };
  43. ...