acer,aspire1-ec.yaml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/platform/acer,aspire1-ec.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Acer Aspire 1 Embedded Controller
  7. maintainers:
  8. - Nikita Travkin <nikita@trvn.ru>
  9. description:
  10. The Acer Aspire 1 laptop uses an embedded controller to control battery
  11. and charging as well as to provide a set of misc features such as the
  12. laptop lid status and HPD events for the USB Type-C DP alt mode.
  13. properties:
  14. compatible:
  15. const: acer,aspire1-ec
  16. reg:
  17. const: 0x76
  18. interrupts:
  19. maxItems: 1
  20. connector:
  21. $ref: /schemas/connector/usb-connector.yaml#
  22. required:
  23. - compatible
  24. - reg
  25. - interrupts
  26. additionalProperties: false
  27. examples:
  28. - |
  29. #include <dt-bindings/interrupt-controller/irq.h>
  30. i2c {
  31. #address-cells = <1>;
  32. #size-cells = <0>;
  33. embedded-controller@76 {
  34. compatible = "acer,aspire1-ec";
  35. reg = <0x76>;
  36. interrupts-extended = <&tlmm 30 IRQ_TYPE_LEVEL_LOW>;
  37. connector {
  38. compatible = "usb-c-connector";
  39. port {
  40. ec_dp_in: endpoint {
  41. remote-endpoint = <&mdss_dp_out>;
  42. };
  43. };
  44. };
  45. };
  46. };