maxim,max310x.yaml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/serial/maxim,max310x.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Maxim MAX310X Advanced Universal Asynchronous Receiver-Transmitter (UART)
  7. maintainers:
  8. - Hugo Villeneuve <hvilleneuve@dimonoff.com>
  9. properties:
  10. compatible:
  11. enum:
  12. - maxim,max3107
  13. - maxim,max3108
  14. - maxim,max3109
  15. - maxim,max14830
  16. reg:
  17. maxItems: 1
  18. interrupts:
  19. maxItems: 1
  20. clocks:
  21. maxItems: 1
  22. clock-names:
  23. enum:
  24. - xtal # External crystal
  25. - osc # External clock source
  26. gpio-controller: true
  27. "#gpio-cells":
  28. const: 2
  29. gpio-line-names:
  30. minItems: 1
  31. maxItems: 16
  32. required:
  33. - compatible
  34. - reg
  35. - interrupts
  36. - clocks
  37. - clock-names
  38. allOf:
  39. - $ref: /schemas/spi/spi-peripheral-props.yaml#
  40. - $ref: /schemas/serial/serial.yaml#
  41. - $ref: /schemas/serial/rs485.yaml#
  42. unevaluatedProperties: false
  43. examples:
  44. - |
  45. #include <dt-bindings/interrupt-controller/irq.h>
  46. i2c {
  47. #address-cells = <1>;
  48. #size-cells = <0>;
  49. serial@2c {
  50. compatible = "maxim,max3107";
  51. reg = <0x2c>;
  52. clocks = <&xtal4m>;
  53. clock-names = "xtal";
  54. interrupt-parent = <&gpio3>;
  55. interrupts = <7 IRQ_TYPE_LEVEL_LOW>;
  56. gpio-controller;
  57. #gpio-cells = <2>;
  58. };
  59. };