qcom-ipq8064-g10.dts 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346
  1. // SPDX-License-Identifier: GPL-2.0
  2. #include "qcom-ipq8064-v2.0-smb208.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. #include <dt-bindings/soc/qcom,tcsr.h>
  5. / {
  6. compatible = "asrock,g10", "qcom,ipq8064";
  7. model = "ASRock G10";
  8. aliases {
  9. ethernet0 = &gmac1;
  10. ethernet1 = &gmac0;
  11. led-boot = &led_status_blue;
  12. led-failsafe = &led_status_amber;
  13. led-running = &led_status_blue;
  14. led-upgrade = &led_status_amber;
  15. };
  16. chosen {
  17. bootargs-override = "console=ttyMSM0,115200n8";
  18. };
  19. leds {
  20. compatible = "gpio-leds";
  21. pinctrl-0 = <&led_pins>;
  22. pinctrl-names = "default";
  23. /*
  24. * this is a bit misleading. Because there are about seven
  25. * multicolor LEDs connected all wired together in parallel.
  26. */
  27. status_yellow {
  28. label = "yellow:status";
  29. gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
  30. };
  31. led_status_amber: status_amber {
  32. label = "amber:status";
  33. gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
  34. };
  35. led_status_blue: status_blue {
  36. label = "blue:status";
  37. gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
  38. };
  39. /*
  40. * LED is declared in vendors boardfile but it's not
  41. * working and the manual doesn't mention anything
  42. * about the LED being white.
  43. status_white {
  44. label = "white:status";
  45. gpios = <&qcom_pinmux 26 GPIO_ACTIVE_HIGH>;
  46. };
  47. */
  48. };
  49. i2c-gpio {
  50. #address-cells = <1>;
  51. #size-cells = <0>;
  52. compatible = "i2c-gpio";
  53. gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>, /* sda */
  54. <&qcom_pinmux 54 GPIO_ACTIVE_HIGH>; /* scl */
  55. i2c-gpio,delay-us = <5>;
  56. i2c-gpio,scl-output-only;
  57. mcu@50 {
  58. reg = <0x50>;
  59. compatible = "sonix,sn8f25e21";
  60. };
  61. };
  62. keys {
  63. compatible = "gpio-keys";
  64. pinctrl-0 = <&button_pins>;
  65. pinctrl-names = "default";
  66. ir-remote {
  67. label = "ir-remote";
  68. gpios = <&qcom_pinmux 15 GPIO_ACTIVE_LOW>;
  69. linux,code = <BTN_0>;
  70. debounce-interval = <60>;
  71. wakeup-source;
  72. };
  73. reset {
  74. label = "reset";
  75. gpios = <&qcom_pinmux 16 GPIO_ACTIVE_LOW>;
  76. linux,code = <KEY_RESTART>;
  77. debounce-interval = <60>;
  78. wakeup-source;
  79. };
  80. wps5g {
  81. label = "wps5g";
  82. gpios = <&qcom_pinmux 64 GPIO_ACTIVE_LOW>;
  83. linux,code = <KEY_WPS_BUTTON>;
  84. debounce-interval = <60>;
  85. wakeup-source;
  86. };
  87. wps2g {
  88. label = "wps2g";
  89. gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
  90. linux,code = <KEY_WPS_BUTTON>;
  91. debounce-interval = <60>;
  92. wakeup-source;
  93. };
  94. };
  95. };
  96. &adm_dma {
  97. status = "okay";
  98. };
  99. &gmac1 {
  100. status = "okay";
  101. pinctrl-0 = <&rgmii2_pins>;
  102. pinctrl-names = "default";
  103. phy-mode = "rgmii";
  104. qcom,id = <1>;
  105. fixed-link {
  106. speed = <1000>;
  107. full-duplex;
  108. };
  109. };
  110. &gmac2 {
  111. status = "okay";
  112. phy-mode = "sgmii";
  113. qcom,id = <2>;
  114. fixed-link {
  115. speed = <1000>;
  116. full-duplex;
  117. };
  118. };
  119. &gsbi4_serial {
  120. pinctrl-0 = <&uart0_pins>;
  121. pinctrl-names = "default";
  122. };
  123. &mdio0 {
  124. status = "okay";
  125. pinctrl-0 = <&mdio0_pins>;
  126. pinctrl-names = "default";
  127. switch@10 {
  128. compatible = "qca,qca8337";
  129. #address-cells = <1>;
  130. #size-cells = <0>;
  131. reg = <0x10>;
  132. qca8k,rgmii56_1_8v;
  133. ports {
  134. #address-cells = <1>;
  135. #size-cells = <0>;
  136. port@0 {
  137. reg = <0>;
  138. label = "cpu";
  139. ethernet = <&gmac1>;
  140. phy-mode = "rgmii-id";
  141. fixed-link {
  142. speed = <1000>;
  143. full-duplex;
  144. };
  145. };
  146. port@1 {
  147. reg = <1>;
  148. label = "lan1";
  149. };
  150. port@2 {
  151. reg = <2>;
  152. label = "lan2";
  153. };
  154. port@3 {
  155. reg = <3>;
  156. label = "lan3";
  157. };
  158. port@4 {
  159. reg = <4>;
  160. label = "lan4";
  161. };
  162. port@5 {
  163. reg = <5>;
  164. label = "wan";
  165. };
  166. /*
  167. port@6 {
  168. reg = <0>;
  169. label = "cpu";
  170. ethernet = <&gmac2>;
  171. phy-mode = "rgmii";
  172. fixed-link {
  173. speed = <1000>;
  174. full-duplex;
  175. pause;
  176. asym-pause;
  177. };
  178. };
  179. */
  180. };
  181. };
  182. };
  183. &nand {
  184. status = "okay";
  185. nand@0 {
  186. reg = <0>;
  187. compatible = "qcom,nandcs";
  188. nand-ecc-strength = <4>;
  189. nand-bus-width = <8>;
  190. nand-ecc-step-size = <512>;
  191. nand-is-boot-medium;
  192. qcom,boot-partitions = <0x0 0x1200000>;
  193. partitions {
  194. compatible = "qcom,smem-part";
  195. };
  196. };
  197. };
  198. &pcie0 {
  199. status = "okay";
  200. bridge@0,0 {
  201. reg = <0x00000000 0 0 0 0>;
  202. #address-cells = <3>;
  203. #size-cells = <2>;
  204. ranges;
  205. wifi5g: wifi@1,0 {
  206. reg = <0x00010000 0 0 0 0>;
  207. compatible = "qcom,ath10k";
  208. qcom,ath10k-calibration-variant = "ASRock-G10";
  209. };
  210. };
  211. };
  212. &pcie1 {
  213. status = "okay";
  214. bridge@0,0 {
  215. reg = <0x00000000 0 0 0 0>;
  216. #address-cells = <3>;
  217. #size-cells = <2>;
  218. ranges;
  219. wifi2g: wifi@1,0 {
  220. reg = <0x00010000 0 0 0 0>;
  221. compatible = "qcom,ath10k";
  222. qcom,ath10k-calibration-variant = "ASRock-G10";
  223. };
  224. };
  225. };
  226. &qcom_pinmux {
  227. led_pins: led_pins {
  228. mux {
  229. pins = "gpio7", "gpio8", "gpio9", "gpio26";
  230. function = "gpio";
  231. drive-strength = <2>;
  232. bias-pull-up;
  233. };
  234. };
  235. button_pins: button_pins {
  236. mux {
  237. pins = "gpio15", "gpio16", "gpio64", "gpio65";
  238. function = "gpio";
  239. drive-strength = <2>;
  240. bias-pull-up;
  241. };
  242. };
  243. uart0_pins: uart0_pins {
  244. mux {
  245. pins = "gpio10", "gpio11";
  246. function = "gsbi4";
  247. drive-strength = <10>;
  248. bias-disable;
  249. };
  250. };
  251. };
  252. &rpm {
  253. pinctrl-0 = <&i2c4_pins>;
  254. pinctrl-names = "default";
  255. };
  256. &hs_phy_0 {
  257. status = "okay";
  258. };
  259. &ss_phy_0 {
  260. status = "okay";
  261. };
  262. &usb3_0 {
  263. status = "okay";
  264. };
  265. &hs_phy_1 {
  266. status = "okay";
  267. };
  268. &ss_phy_1 {
  269. status = "okay";
  270. };
  271. &usb3_1 {
  272. status = "okay";
  273. };
  274. &tcsr {
  275. qcom,usb-ctrl-select = <TCSR_USB_SELECT_USB3_DUAL>;
  276. };
  277. /delete-node/ &pcie2_pins;
  278. /delete-node/ &pcie2;