maxim,max14526.yaml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/extcon/maxim,max14526.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Maxim MAX14526 MicroUSB Integrated Circuit (MUIC)
  7. maintainers:
  8. - Svyatoslav Ryhel <clamor95@gmail.com>
  9. properties:
  10. compatible:
  11. const: maxim,max14526
  12. reg:
  13. maxItems: 1
  14. interrupts:
  15. maxItems: 1
  16. connector:
  17. $ref: /schemas/connector/usb-connector.yaml#
  18. port:
  19. $ref: /schemas/graph.yaml#/properties/port
  20. required:
  21. - compatible
  22. - reg
  23. - interrupts
  24. - connector
  25. - port
  26. unevaluatedProperties: false
  27. examples:
  28. - |
  29. #include <dt-bindings/gpio/gpio.h>
  30. #include <dt-bindings/interrupt-controller/irq.h>
  31. i2c {
  32. #address-cells = <1>;
  33. #size-cells = <0>;
  34. muic@44 {
  35. compatible = "maxim,max14526";
  36. reg = <0x44>;
  37. interrupt-parent = <&gpio>;
  38. interrupts = <72 IRQ_TYPE_EDGE_FALLING>;
  39. connector {
  40. compatible = "usb-b-connector";
  41. label = "micro-USB";
  42. type = "micro";
  43. };
  44. port {
  45. #address-cells = <1>;
  46. #size-cells = <0>;
  47. muic_to_charger: endpoint@0 {
  48. reg = <0>;
  49. remote-endpoint = <&charger_input>;
  50. };
  51. muic_to_usb: endpoint@1 {
  52. reg = <1>;
  53. remote-endpoint = <&usb_input>;
  54. };
  55. muic_to_mhl: endpoint@2 {
  56. reg = <2>;
  57. remote-endpoint = <&mhl_input>;
  58. };
  59. };
  60. };
  61. };
  62. ...