0066-ramips-rename-Digineo-AC1200-Pro-to-ZBT-WG3526-32MB.patch 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. From: Mathias Kresin <dev@kresin.me>
  2. Date: Sat, 1 Apr 2017 10:46:44 +0200
  3. Subject: ramips: rename Digineo AC1200 Pro to ZBT-WG3526 32MB
  4. The Digineo AC1200 Pro is the 32MB flash variant of the ZBT-WG3526 with
  5. unpopulated/exposed sdhci slot. Rename to board to the OEM/ODM name and
  6. add the sdhci kernel module to use it for multiple clones.
  7. Signed-off-by: Mathias Kresin <dev@kresin.me>
  8. Conflicts (Resolved):
  9. target/linux/ramips/base-files/etc/diag.sh
  10. Signed-off-by: Vincent Wiemann <me@bibbl.com>
  11. further adjustments for backport to lede-17.01 branch
  12. Signed-off-by: Andreas Ziegler <github@andreas-ziegler.de>
  13. diff --git a/target/linux/ramips/base-files/etc/board.d/02_network b/target/linux/ramips/base-files/etc/board.d/02_network
  14. index 5a4042339c6761703578e014612062ac78babd9d..b9c8fe774fedab34267a8635033b9235d9d6c3aa 100755
  15. --- a/target/linux/ramips/base-files/etc/board.d/02_network
  16. +++ b/target/linux/ramips/base-files/etc/board.d/02_network
  17. @@ -70,7 +70,6 @@ ramips_setup_interfaces()
  18. ucidef_set_interface_lan "eth0.2"
  19. ;;
  20. 3g-6200n|\
  21. - ac1200pro|\
  22. ai-br100|\
  23. d240|\
  24. db-wrt01|\
  25. diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh
  26. index 9dbd6c4141d7facef2108cbb5cf3a7057522c88e..c4f521954c74635c61f42558f0d9b71f0f671c22 100644
  27. --- a/target/linux/ramips/base-files/etc/diag.sh
  28. +++ b/target/linux/ramips/base-files/etc/diag.sh
  29. @@ -59,7 +59,10 @@ get_status_led() {
  30. wn3000rpv3)
  31. status_led="$board:red:power"
  32. ;;
  33. - ac1200pro|\
  34. + ai-br100|\
  35. + ht-tm02)
  36. + status_led="$board:blue:wlan"
  37. + ;;
  38. all0239-3g|\
  39. dcs-930|\
  40. dir-300-b1|\
  41. @@ -85,10 +88,6 @@ get_status_led() {
  42. zbt-wg3526)
  43. status_led="$board:green:status"
  44. ;;
  45. - ai-br100|\
  46. - ht-tm02)
  47. - status_led="$board:blue:wlan"
  48. - ;;
  49. atp-52b|\
  50. ip2202)
  51. status_led="$board:green:run"
  52. diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh
  53. index 8e27a79fc1744d6bed9db8d930207c418899cab1..b9279a5a1e9baf55ca7f59dbb22ac0b0b7b01db4 100755
  54. --- a/target/linux/ramips/base-files/lib/ramips.sh
  55. +++ b/target/linux/ramips/base-files/lib/ramips.sh
  56. @@ -130,9 +130,6 @@ ramips_board_detect() {
  57. *"DCS-930L B1")
  58. name="dcs-930l-b1"
  59. ;;
  60. - *"Digineo AC1200 Pro")
  61. - name="ac1200pro"
  62. - ;;
  63. *"DIR-300 B1")
  64. name="dir-300-b1"
  65. ;;
  66. @@ -640,6 +637,9 @@ ramips_board_detect() {
  67. *"ZBT-WG3526 (16M)")
  68. name="zbt-wg3526-16M"
  69. ;;
  70. + *"ZBT-WG3526 (32M)")
  71. + name="zbt-wg3526-32M"
  72. + ;;
  73. *"ZBT-WR8305RT")
  74. name="zbt-wr8305rt"
  75. ;;
  76. diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh
  77. index d3efc2dd37ed855a1c0e966e448b67ae73324d5f..a45275077df8fa317c38adc8f0ab12fd4b0ecb83 100755
  78. --- a/target/linux/ramips/base-files/lib/upgrade/platform.sh
  79. +++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh
  80. @@ -17,7 +17,6 @@ platform_check_image() {
  81. 3g150b|\
  82. 3g300m|\
  83. a5-v11|\
  84. - ac1200pro|\
  85. ai-br100|\
  86. air3gii|\
  87. all0239-3g|\
  88. diff --git a/target/linux/ramips/dts/AC1200pro.dts b/target/linux/ramips/dts/AC1200pro.dts
  89. deleted file mode 100644
  90. index fbec81844025cf2a6544dec8dfeca02fce89fdc1..0000000000000000000000000000000000000000
  91. --- a/target/linux/ramips/dts/AC1200pro.dts
  92. +++ /dev/null
  93. @@ -1,15 +0,0 @@
  94. -/dts-v1/;
  95. -
  96. -#include "ZBT-WG3526.dtsi"
  97. -
  98. -/ {
  99. - model = "Digineo AC1200 Pro";
  100. -};
  101. -
  102. -&firmware {
  103. - reg = <0x50000 0x1fb0000>;
  104. -};
  105. -
  106. -&status_led {
  107. - label = "ac1200pro:green:status";
  108. -};
  109. diff --git a/target/linux/ramips/dts/ZBT-WG3526-16M.dts b/target/linux/ramips/dts/ZBT-WG3526-16M.dts
  110. index fb644502071d6641194c66baf552035937f35669..1e2f1525028f69468257cd8af8d5bad0319bc551 100644
  111. --- a/target/linux/ramips/dts/ZBT-WG3526-16M.dts
  112. +++ b/target/linux/ramips/dts/ZBT-WG3526-16M.dts
  113. @@ -9,7 +9,3 @@
  114. &firmware {
  115. reg = <0x50000 0xfb0000>;
  116. };
  117. -
  118. -&status_led {
  119. - label = "zbt-wg3526:green:status";
  120. -};
  121. diff --git a/target/linux/ramips/dts/ZBT-WG3526-32M.dts b/target/linux/ramips/dts/ZBT-WG3526-32M.dts
  122. new file mode 100644
  123. index 0000000000000000000000000000000000000000..99a4b45824ba4ee6c1a1c81615291c8efde1a7ac
  124. --- /dev/null
  125. +++ b/target/linux/ramips/dts/ZBT-WG3526-32M.dts
  126. @@ -0,0 +1,11 @@
  127. +/dts-v1/;
  128. +
  129. +#include "ZBT-WG3526.dtsi"
  130. +
  131. +/ {
  132. + model = "ZBT-WG3526 (32M)";
  133. +};
  134. +
  135. +&firmware {
  136. + reg = <0x50000 0x1fb0000>;
  137. +};
  138. diff --git a/target/linux/ramips/dts/ZBT-WG3526.dtsi b/target/linux/ramips/dts/ZBT-WG3526.dtsi
  139. index 582e42083920c465588f14e59e10eafe735640fb..5e195fb8120d3a66f19acf83c9f76bb4b1ec3e7e 100644
  140. --- a/target/linux/ramips/dts/ZBT-WG3526.dtsi
  141. +++ b/target/linux/ramips/dts/ZBT-WG3526.dtsi
  142. @@ -35,7 +35,8 @@
  143. gpio-leds {
  144. compatible = "gpio-leds";
  145. - status_led: status {
  146. + status {
  147. + label = "zbt-wg3526:green:status";
  148. gpios = <&gpio0 24 1>;
  149. };
  150. };
  151. diff --git a/target/linux/ramips/image/mt7621.mk b/target/linux/ramips/image/mt7621.mk
  152. index cabc86b28eb040f0d1e58d917e6edc4a97e80db7..aa84d78b9e42259cbee7de6c052fa7ab500a040a 100644
  153. --- a/target/linux/ramips/image/mt7621.mk
  154. +++ b/target/linux/ramips/image/mt7621.mk
  155. @@ -34,14 +34,6 @@ define Device/11acnas
  156. endef
  157. TARGET_DEVICES += 11acnas
  158. -define Device/ac1200pro
  159. - DTS := AC1200pro
  160. - IMAGE_SIZE := $(ralink_default_fw_size_32M)
  161. - DEVICE_TITLE := Digineo AC1200 Pro
  162. - DEVICE_PACKAGES := kmod-usb3 kmod-ata-core kmod-ata-ahci
  163. -endef
  164. -TARGET_DEVICES += ac1200pro
  165. -
  166. define Device/dir-860l-b1
  167. DTS := DIR-860L-B1
  168. BLOCKSIZE := 64k
  169. @@ -235,6 +227,15 @@ define Device/zbt-wg3526-16M
  170. endef
  171. TARGET_DEVICES += zbt-wg3526-16M
  172. +define Device/zbt-wg3526-32M
  173. + DTS := ZBT-WG3526-32M
  174. + IMAGE_SIZE := $(ralink_default_fw_size_32M)
  175. + SUPPORTED_DEVICES += ac1200pro
  176. + DEVICE_TITLE := ZBT WG3526 (32MB flash)
  177. + DEVICE_PACKAGES := kmod-usb3 kmod-usb-ledtrig-usbport kmod-ata-core kmod-ata-ahci kmod-sdhci-mt7620
  178. +endef
  179. +TARGET_DEVICES += zbt-wg3526-32M
  180. +
  181. # FIXME: is this still needed?
  182. define Image/Prepare
  183. #define Build/Compile