ipq6010-re-cs.dtsi 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2. #include "ipq6018.dtsi"
  3. #include "ipq6018-ess.dtsi"
  4. #include <dt-bindings/gpio/gpio.h>
  5. #include <dt-bindings/input/input.h>
  6. #include <dt-bindings/leds/common.h>
  7. / {
  8. aliases {
  9. led-boot = &led_status_red;
  10. led-failsafe = &led_status_red;
  11. led-running = &led_status_green;
  12. led-upgrade = &led_status_blue;
  13. };
  14. chosen {
  15. stdout-path = "serial0:115200n8";
  16. };
  17. leds {
  18. compatible = "gpio-leds";
  19. led_status_red: red {
  20. color = <LED_COLOR_ID_RED>;
  21. function = LED_FUNCTION_STATUS;
  22. gpios = <&tlmm 57 GPIO_ACTIVE_HIGH>;
  23. };
  24. led_status_green: green {
  25. color = <LED_COLOR_ID_GREEN>;
  26. function = LED_FUNCTION_STATUS;
  27. gpios = <&tlmm 58 GPIO_ACTIVE_HIGH>;
  28. };
  29. led_status_blue: blue {
  30. color = <LED_COLOR_ID_BLUE>;
  31. function = LED_FUNCTION_STATUS;
  32. gpios = <&tlmm 79 GPIO_ACTIVE_HIGH>;
  33. };
  34. };
  35. usb_vbus: regulator-usb-vbus {
  36. compatible = "regulator-fixed";
  37. regulator-name = "usb_vbus";
  38. regulator-min-microvolt = <5000000>;
  39. regulator-max-microvolt = <5000000>;
  40. gpios = <&tlmm 22 GPIO_ACTIVE_HIGH>;
  41. enable-active-high;
  42. regulator-boot-on;
  43. };
  44. };
  45. &tlmm {
  46. gpio-reserved-ranges = <20 1>;
  47. mdio_pins: mdio-pins {
  48. mdc {
  49. pins = "gpio64";
  50. function = "mdc";
  51. drive-strength = <8>;
  52. bias-pull-up;
  53. };
  54. mdio {
  55. pins = "gpio65";
  56. function = "mdio";
  57. drive-strength = <8>;
  58. bias-pull-up;
  59. };
  60. };
  61. };
  62. &blsp1_uart3 {
  63. pinctrl-0 = <&serial_3_pins>;
  64. pinctrl-names = "default";
  65. status = "okay";
  66. };
  67. &qusb_phy_0 {
  68. vdd-supply = <&usb_vbus>;
  69. status = "okay";
  70. };
  71. &rpm {
  72. status = "disabled";
  73. };
  74. &sdhc {
  75. bus-width = <8>;
  76. mmc-ddr-1_8v;
  77. mmc-hs200-1_8v;
  78. non-removable;
  79. status = "okay";
  80. };
  81. &ssphy_0 {
  82. status = "okay";
  83. };
  84. &usb3 {
  85. status = "okay";
  86. };
  87. &mdio {
  88. status = "okay";
  89. pinctrl-0 = <&mdio_pins>;
  90. pinctrl-names = "default";
  91. reset-gpios = <&tlmm 75 GPIO_ACTIVE_LOW>;
  92. ethernet-phy-package@24 {
  93. compatible = "qcom,qca8075-package";
  94. #address-cells = <1>;
  95. #size-cells = <0>;
  96. reg = <24>;
  97. qca8075_0: ethernet-phy@24 {
  98. compatible = "ethernet-phy-ieee802.3-c22";
  99. reg = <24>;
  100. };
  101. qca8075_1: ethernet-phy@25 {
  102. compatible = "ethernet-phy-ieee802.3-c22";
  103. reg = <25>;
  104. };
  105. qca8075_2: ethernet-phy@26 {
  106. compatible = "ethernet-phy-ieee802.3-c22";
  107. reg = <26>;
  108. };
  109. qca8075_3: ethernet-phy@27 {
  110. compatible = "ethernet-phy-ieee802.3-c22";
  111. reg = <27>;
  112. };
  113. };
  114. };