meson-gxm-s912-libretech-pc.dts 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Copyright (c) 2019 BayLibre SAS. All rights reserved.
  4. * Author: Jerome Brunet <jbrunet@baylibre.com>
  5. */
  6. /dts-v1/;
  7. #include "meson-gxm.dtsi"
  8. #include "meson-gx-libretech-pc.dtsi"
  9. / {
  10. compatible = "libretech,aml-s912-pc", "amlogic,s912",
  11. "amlogic,meson-gxm";
  12. model = "Libre Computer AML-S912-PC";
  13. typec2_vbus: regulator-typec2_vbus {
  14. compatible = "regulator-fixed";
  15. regulator-name = "TYPEC2_VBUS";
  16. regulator-min-microvolt = <5000000>;
  17. regulator-max-microvolt = <5000000>;
  18. vin-supply = <&vcc5v>;
  19. gpio = <&gpio GPIODV_1 GPIO_ACTIVE_HIGH>;
  20. enable-active-high;
  21. };
  22. };
  23. &pinctrl_periphs {
  24. /*
  25. * Make sure the irq pin of the TYPE C controller is not driven
  26. * by the SoC.
  27. */
  28. fusb302_irq_pins: fusb302_irq {
  29. mux {
  30. groups = "GPIODV_0";
  31. function = "gpio_periphs";
  32. bias-pull-up;
  33. output-disable;
  34. };
  35. };
  36. };
  37. &i2c_C {
  38. fusb302@22 {
  39. compatible = "fcs,fusb302";
  40. reg = <0x22>;
  41. pinctrl-0 = <&fusb302_irq_pins>;
  42. pinctrl-names = "default";
  43. interrupt-parent = <&gpio_intc>;
  44. interrupts = <59 IRQ_TYPE_LEVEL_LOW>;
  45. vbus-supply = <&typec2_vbus>;
  46. status = "okay";
  47. };
  48. };
  49. &usb2_phy2 {
  50. phy-supply = <&typec2_vbus>;
  51. };