2
0

qcom-ipq4018-rutx50.dts 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2. #include "qcom-ipq4018-rutx.dtsi"
  3. / {
  4. model = "Teltonika RUTX50";
  5. compatible = "teltonika,rutx50";
  6. aliases {
  7. led-boot = &led_rssi0;
  8. led-failsafe = &led_rssi0;
  9. led-running = &led_rssi0;
  10. led-upgrade = &led_rssi0;
  11. label-mac-device = &gmac;
  12. };
  13. soc {
  14. gpio-export {
  15. compatible = "gpio-export";
  16. #size-cells = <0>;
  17. gpio_modem_reset {
  18. gpio-export,name = "modem_reset";
  19. gpio-export,output = <0>;
  20. gpios = <&shift_io 8 GPIO_ACTIVE_HIGH>;
  21. };
  22. gpio_modem_power {
  23. gpio-export,name = "modem_power";
  24. gpio-export,output = <0>;
  25. gpios = <&shift_io 9 GPIO_ACTIVE_HIGH>;
  26. };
  27. gpio_out_1 {
  28. gpio-export,name = "sim-select";
  29. /* 0 = SIM1 ; 1 = SIM2 */
  30. gpio-export,output = <0>;
  31. gpios = <&shift_io 10 GPIO_ACTIVE_HIGH>;
  32. };
  33. gpio_in_1 {
  34. gpio-export,name = "sim-detect";
  35. gpio-export,input = <0>;
  36. gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
  37. };
  38. };
  39. leds {
  40. compatible = "gpio-leds";
  41. led-0 {
  42. label = "green:sim1";
  43. gpios = <&shift_io 14 GPIO_ACTIVE_HIGH>;
  44. };
  45. led-1 {
  46. label = "green:sim2";
  47. gpios = <&shift_io 15 GPIO_ACTIVE_HIGH>;
  48. };
  49. led-2 {
  50. label = "green:eth";
  51. gpios = <&shift_io 6 GPIO_ACTIVE_HIGH>;
  52. };
  53. led-3 {
  54. label = "green:wifi";
  55. gpios = <&shift_io 7 GPIO_ACTIVE_HIGH>;
  56. };
  57. led-4 {
  58. label = "green:3g";
  59. gpios = <&shift_io 5 GPIO_ACTIVE_HIGH>;
  60. };
  61. led-5 {
  62. label = "green:4g";
  63. gpios = <&shift_io 4 GPIO_ACTIVE_HIGH>;
  64. };
  65. led-6 {
  66. label = "green:5g";
  67. gpios = <&shift_io 3 GPIO_ACTIVE_HIGH>;
  68. };
  69. led_rssi0: led-7 {
  70. label = "green:rssi0";
  71. gpios = <&shift_io 0 GPIO_ACTIVE_HIGH>;
  72. };
  73. led-8 {
  74. label = "green:rssi1";
  75. gpios = <&shift_io 1 GPIO_ACTIVE_HIGH>;
  76. };
  77. led-9 {
  78. label = "green:rssi2";
  79. gpios = <&shift_io 2 GPIO_ACTIVE_HIGH>;
  80. };
  81. led-10 {
  82. label = "green:wifi2g";
  83. gpios = <&shift_io 12 GPIO_ACTIVE_HIGH>;
  84. };
  85. led-11 {
  86. label = "green:wifi5g";
  87. gpios = <&shift_io 13 GPIO_ACTIVE_HIGH>;
  88. };
  89. };
  90. spi-gpio {
  91. compatible = "spi-gpio";
  92. #address-cells = <1>;
  93. #size-cells = <0>;
  94. gpio-sck = <&tlmm 1 GPIO_ACTIVE_HIGH>;
  95. gpio-mosi = <&tlmm 3 GPIO_ACTIVE_HIGH>;
  96. cs-gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
  97. num-chipselects = <1>;
  98. shift_io: shift_io@0 {
  99. compatible = "fairchild,74hc595";
  100. reg = <0>;
  101. gpio-controller;
  102. #gpio-cells = <2>;
  103. /* Attn: This is specific to RUTX50 in Teltonika GPL */
  104. registers-number = <2>;
  105. spi-max-frequency = <10000000>;
  106. };
  107. };
  108. };
  109. };
  110. &wifi0 {
  111. status = "okay";
  112. qcom,ath10k-calibration-variant = "Teltonika-RUTX10";
  113. };
  114. &wifi1 {
  115. status = "okay";
  116. qcom,ath10k-calibration-variant = "Teltonika-RUTX10";
  117. };
  118. &gmac {
  119. status = "okay";
  120. };
  121. &switch {
  122. status = "okay";
  123. };
  124. &swport1 {
  125. status = "okay";
  126. label = "lan1";
  127. };
  128. &swport2 {
  129. status = "okay";
  130. label = "lan2";
  131. };
  132. &swport3 {
  133. status = "okay";
  134. label = "lan3";
  135. };
  136. &swport4 {
  137. status = "okay";
  138. label = "lan4";
  139. };
  140. &swport5 {
  141. status = "okay";
  142. label = "wan";
  143. };