002-v6.2-arm64-dts-mt7986-harmonize-device-node-order.patch 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. From 438e53828c08cf0e8a65b61cf6ce1e4b6620551a Mon Sep 17 00:00:00 2001
  2. From: Sam Shih <[email protected]>
  3. Date: Sun, 6 Nov 2022 09:50:24 +0100
  4. Subject: [PATCH 02/19] arm64: dts: mt7986: harmonize device node order
  5. This arrange device tree nodes in alphabetical order.
  6. Signed-off-by: Sam Shih <[email protected]>
  7. Signed-off-by: Frank Wunderlich <[email protected]>
  8. Reviewed-by: AngeloGioacchino Del Regno <[email protected]>
  9. Link: https://lore.kernel.org/r/[email protected]
  10. Signed-off-by: Matthias Brugger <[email protected]>
  11. ---
  12. arch/arm64/boot/dts/mediatek/mt7986a-rfb.dts | 94 ++++++++++----------
  13. arch/arm64/boot/dts/mediatek/mt7986b-rfb.dts | 22 ++---
  14. 2 files changed, 58 insertions(+), 58 deletions(-)
  15. --- a/arch/arm64/boot/dts/mediatek/mt7986a-rfb.dts
  16. +++ b/arch/arm64/boot/dts/mediatek/mt7986a-rfb.dts
  17. @@ -54,6 +54,53 @@
  18. };
  19. };
  20. +&pio {
  21. + uart1_pins: uart1-pins {
  22. + mux {
  23. + function = "uart";
  24. + groups = "uart1";
  25. + };
  26. + };
  27. +
  28. + uart2_pins: uart2-pins {
  29. + mux {
  30. + function = "uart";
  31. + groups = "uart2";
  32. + };
  33. + };
  34. +
  35. + wf_2g_5g_pins: wf-2g-5g-pins {
  36. + mux {
  37. + function = "wifi";
  38. + groups = "wf_2g", "wf_5g";
  39. + };
  40. + conf {
  41. + pins = "WF0_HB1", "WF0_HB2", "WF0_HB3", "WF0_HB4",
  42. + "WF0_HB0", "WF0_HB0_B", "WF0_HB5", "WF0_HB6",
  43. + "WF0_HB7", "WF0_HB8", "WF0_HB9", "WF0_HB10",
  44. + "WF0_TOP_CLK", "WF0_TOP_DATA", "WF1_HB1",
  45. + "WF1_HB2", "WF1_HB3", "WF1_HB4", "WF1_HB0",
  46. + "WF1_HB5", "WF1_HB6", "WF1_HB7", "WF1_HB8",
  47. + "WF1_TOP_CLK", "WF1_TOP_DATA";
  48. + drive-strength = <4>;
  49. + };
  50. + };
  51. +
  52. + wf_dbdc_pins: wf-dbdc-pins {
  53. + mux {
  54. + function = "wifi";
  55. + groups = "wf_dbdc";
  56. + };
  57. + conf {
  58. + pins = "WF0_HB1", "WF0_HB2", "WF0_HB3", "WF0_HB4",
  59. + "WF0_HB0", "WF0_HB0_B", "WF0_HB5", "WF0_HB6",
  60. + "WF0_HB7", "WF0_HB8", "WF0_HB9", "WF0_HB10",
  61. + "WF0_TOP_CLK", "WF0_TOP_DATA";
  62. + drive-strength = <4>;
  63. + };
  64. + };
  65. +};
  66. +
  67. &switch {
  68. ports {
  69. #address-cells = <1>;
  70. @@ -121,50 +168,3 @@
  71. pinctrl-0 = <&wf_2g_5g_pins>;
  72. pinctrl-1 = <&wf_dbdc_pins>;
  73. };
  74. -
  75. -&pio {
  76. - uart1_pins: uart1-pins {
  77. - mux {
  78. - function = "uart";
  79. - groups = "uart1";
  80. - };
  81. - };
  82. -
  83. - uart2_pins: uart2-pins {
  84. - mux {
  85. - function = "uart";
  86. - groups = "uart2";
  87. - };
  88. - };
  89. -
  90. - wf_2g_5g_pins: wf-2g-5g-pins {
  91. - mux {
  92. - function = "wifi";
  93. - groups = "wf_2g", "wf_5g";
  94. - };
  95. - conf {
  96. - pins = "WF0_HB1", "WF0_HB2", "WF0_HB3", "WF0_HB4",
  97. - "WF0_HB0", "WF0_HB0_B", "WF0_HB5", "WF0_HB6",
  98. - "WF0_HB7", "WF0_HB8", "WF0_HB9", "WF0_HB10",
  99. - "WF0_TOP_CLK", "WF0_TOP_DATA", "WF1_HB1",
  100. - "WF1_HB2", "WF1_HB3", "WF1_HB4", "WF1_HB0",
  101. - "WF1_HB5", "WF1_HB6", "WF1_HB7", "WF1_HB8",
  102. - "WF1_TOP_CLK", "WF1_TOP_DATA";
  103. - drive-strength = <4>;
  104. - };
  105. - };
  106. -
  107. - wf_dbdc_pins: wf-dbdc-pins {
  108. - mux {
  109. - function = "wifi";
  110. - groups = "wf_dbdc";
  111. - };
  112. - conf {
  113. - pins = "WF0_HB1", "WF0_HB2", "WF0_HB3", "WF0_HB4",
  114. - "WF0_HB0", "WF0_HB0_B", "WF0_HB5", "WF0_HB6",
  115. - "WF0_HB7", "WF0_HB8", "WF0_HB9", "WF0_HB10",
  116. - "WF0_TOP_CLK", "WF0_TOP_DATA";
  117. - drive-strength = <4>;
  118. - };
  119. - };
  120. -};
  121. --- a/arch/arm64/boot/dts/mediatek/mt7986b-rfb.dts
  122. +++ b/arch/arm64/boot/dts/mediatek/mt7986b-rfb.dts
  123. @@ -25,10 +25,6 @@
  124. };
  125. };
  126. -&uart0 {
  127. - status = "okay";
  128. -};
  129. -
  130. &eth {
  131. status = "okay";
  132. @@ -99,13 +95,6 @@
  133. };
  134. };
  135. -&wifi {
  136. - status = "okay";
  137. - pinctrl-names = "default", "dbdc";
  138. - pinctrl-0 = <&wf_2g_5g_pins>;
  139. - pinctrl-1 = <&wf_dbdc_pins>;
  140. -};
  141. -
  142. &pio {
  143. wf_2g_5g_pins: wf-2g-5g-pins {
  144. mux {
  145. @@ -138,3 +127,14 @@
  146. };
  147. };
  148. };
  149. +
  150. +&uart0 {
  151. + status = "okay";
  152. +};
  153. +
  154. +&wifi {
  155. + status = "okay";
  156. + pinctrl-names = "default", "dbdc";
  157. + pinctrl-0 = <&wf_2g_5g_pins>;
  158. + pinctrl-1 = <&wf_dbdc_pins>;
  159. +};