ipq6000-360v6.dts 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2. /dts-v1/;
  3. #include "ipq6018-512m.dtsi"
  4. #include "ipq6018-ess.dtsi"
  5. #include "ipq6018-cp-cpu.dtsi"
  6. #include <dt-bindings/gpio/gpio.h>
  7. #include <dt-bindings/input/input.h>
  8. #include <dt-bindings/leds/common.h>
  9. / {
  10. model = "Qihoo 360V6";
  11. compatible = "qihoo,360v6", "qcom,ipq6018";
  12. aliases {
  13. serial0 = &blsp1_uart3;
  14. led-boot = &led_status_red;
  15. led-failsafe = &led_status_red;
  16. led-running = &led_status_green;
  17. led-upgrade = &led_status_orange;
  18. };
  19. chosen {
  20. stdout-path = "serial0:115200n8";
  21. bootargs-append = " root=/dev/ubiblock0_1";
  22. };
  23. keys {
  24. compatible = "gpio-keys";
  25. wps {
  26. label = "wps";
  27. linux,code = <KEY_WPS_BUTTON>;
  28. gpios = <&tlmm 19 GPIO_ACTIVE_LOW>;
  29. };
  30. reset {
  31. label = "reset";
  32. linux,code = <KEY_RESTART>;
  33. gpios = <&tlmm 68 GPIO_ACTIVE_LOW>;
  34. };
  35. };
  36. leds {
  37. compatible = "gpio-leds";
  38. led_status_red: red {
  39. color = <LED_COLOR_ID_RED>;
  40. function = LED_FUNCTION_STATUS;
  41. gpios = <&tlmm 71 GPIO_ACTIVE_HIGH>;
  42. };
  43. led_status_orange: orange {
  44. color = <LED_COLOR_ID_ORANGE>;
  45. function = LED_FUNCTION_STATUS;
  46. gpios = <&tlmm 72 GPIO_ACTIVE_HIGH>;
  47. };
  48. led_status_green: green {
  49. color = <LED_COLOR_ID_GREEN>;
  50. function = LED_FUNCTION_STATUS;
  51. gpios = <&tlmm 73 GPIO_ACTIVE_HIGH>;
  52. };
  53. };
  54. };
  55. &tlmm {
  56. mdio_pins: mdio-pins {
  57. mdc {
  58. pins = "gpio64";
  59. function = "mdc";
  60. drive-strength = <8>;
  61. bias-pull-up;
  62. };
  63. mdio {
  64. pins = "gpio65";
  65. function = "mdio";
  66. drive-strength = <8>;
  67. bias-pull-up;
  68. };
  69. };
  70. };
  71. &blsp1_uart3 {
  72. pinctrl-0 = <&serial_3_pins>;
  73. pinctrl-names = "default";
  74. status = "okay";
  75. };
  76. &qpic_bam {
  77. status = "okay";
  78. };
  79. &qpic_nand {
  80. status = "okay";
  81. nand@0 {
  82. reg = <0>;
  83. nand-ecc-strength = <4>;
  84. nand-ecc-step-size = <512>;
  85. nand-bus-width = <8>;
  86. partitions {
  87. compatible = "qcom,smem-part";
  88. };
  89. };
  90. };
  91. &qusb_phy_0 {
  92. status = "okay";
  93. };
  94. &ssphy_0 {
  95. status = "okay";
  96. };
  97. &usb3 {
  98. status = "okay";
  99. };
  100. &mdio {
  101. status = "okay";
  102. pinctrl-0 = <&mdio_pins>;
  103. pinctrl-names = "default";
  104. reset-gpios = <&tlmm 75 GPIO_ACTIVE_LOW>;
  105. ethernet-phy-package@0 {
  106. compatible = "qcom,qca8075-package";
  107. #address-cells = <1>;
  108. #size-cells = <0>;
  109. reg = <0>;
  110. qca8075_0: ethernet-phy@0 {
  111. compatible = "ethernet-phy-ieee802.3-c22";
  112. reg = <0>;
  113. };
  114. qca8075_1: ethernet-phy@1 {
  115. compatible = "ethernet-phy-ieee802.3-c22";
  116. reg = <1>;
  117. };
  118. qca8075_2: ethernet-phy@2 {
  119. compatible = "ethernet-phy-ieee802.3-c22";
  120. reg = <2>;
  121. };
  122. qca8075_3: ethernet-phy@3 {
  123. compatible = "ethernet-phy-ieee802.3-c22";
  124. reg = <3>;
  125. };
  126. };
  127. };
  128. &switch {
  129. status = "okay";
  130. switch_lan_bmp = <(ESS_PORT1 | ESS_PORT2 | ESS_PORT3)>;
  131. switch_wan_bmp = <ESS_PORT4>;
  132. switch_mac_mode = <MAC_MODE_PSGMII>;
  133. qcom,port_phyinfo {
  134. port@1 {
  135. port_id = <1>;
  136. phy_address = <0>;
  137. };
  138. port@2 {
  139. port_id = <2>;
  140. phy_address = <1>;
  141. };
  142. port@3 {
  143. port_id = <3>;
  144. phy_address = <2>;
  145. };
  146. port@4 {
  147. port_id = <4>;
  148. phy_address = <3>;
  149. };
  150. };
  151. };
  152. &edma {
  153. status = "okay";
  154. };
  155. &dp1 {
  156. status = "okay";
  157. phy-handle = <&qca8075_0>;
  158. label = "lan1";
  159. };
  160. &dp2 {
  161. status = "okay";
  162. phy-handle = <&qca8075_1>;
  163. label = "lan2";
  164. };
  165. &dp3 {
  166. status = "okay";
  167. phy-handle = <&qca8075_2>;
  168. label = "lan3";
  169. };
  170. &dp4 {
  171. status = "okay";
  172. phy-handle = <&qca8075_3>;
  173. label = "wan";
  174. };
  175. &wifi {
  176. status = "okay";
  177. qcom,ath11k-fw-memory-mode = <1>;
  178. qcom,ath11k-calibration-variant = "Qihoo-360V6";
  179. };