vialab,vl817.yaml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/usb/vialab,vl817.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Via labs VL817 USB 3.1 hub controller
  7. maintainers:
  8. - Anand Moon <linux.amoon@gmail.com>
  9. allOf:
  10. - $ref: usb-device.yaml#
  11. properties:
  12. compatible:
  13. enum:
  14. - usb2109,2817
  15. - usb2109,817
  16. reg: true
  17. reset-gpios:
  18. maxItems: 1
  19. description:
  20. GPIO controlling the RESET# pin.
  21. vdd-supply:
  22. description:
  23. phandle to the regulator that provides power to the hub.
  24. peer-hub:
  25. $ref: /schemas/types.yaml#/definitions/phandle
  26. description:
  27. phandle to the peer hub on the controller.
  28. required:
  29. - compatible
  30. - reg
  31. - vdd-supply
  32. - peer-hub
  33. additionalProperties: false
  34. examples:
  35. - |
  36. #include <dt-bindings/gpio/gpio.h>
  37. usb {
  38. #address-cells = <1>;
  39. #size-cells = <0>;
  40. /* 2.0 hub on port 1 */
  41. hub_2_0: hub@1 {
  42. compatible = "usb2109,2817";
  43. reg = <1>;
  44. vdd-supply = <&vcc_5v>;
  45. peer-hub = <&hub_3_0>;
  46. reset-gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
  47. };
  48. /* 3.1 hub on port 4 */
  49. hub_3_0: hub@2 {
  50. compatible = "usb2109,817";
  51. reg = <2>;
  52. vdd-supply = <&vcc_5v>;
  53. peer-hub = <&hub_2_0>;
  54. reset-gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
  55. };
  56. };