qcom-ipq8065-rt4230w-rev6.dts 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321
  1. // SPDX-License-Identifier: GPL-2.0-or-later
  2. #include "qcom-ipq8065.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. model = "Askey RT4230W REV6";
  6. compatible = "askey,rt4230w-rev6", "qcom,ipq8065", "qcom,ipq8064";
  7. memory@0 {
  8. reg = <0x42000000 0x3e000000>;
  9. device_type = "memory";
  10. };
  11. aliases {
  12. led-boot = &ledctrl3;
  13. led-failsafe = &ledctrl1;
  14. led-running = &ledctrl2;
  15. led-upgrade = &ledctrl3;
  16. };
  17. chosen {
  18. bootargs = "rootfstype=squashfs noinitrd";
  19. };
  20. keys {
  21. compatible = "gpio-keys";
  22. pinctrl-0 = <&button_pins>;
  23. pinctrl-names = "default";
  24. reset {
  25. label = "reset";
  26. gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
  27. linux,code = <KEY_RESTART>;
  28. };
  29. wps {
  30. label = "wps";
  31. gpios = <&qcom_pinmux 68 GPIO_ACTIVE_LOW>;
  32. linux,code = <KEY_WPS_BUTTON>;
  33. };
  34. };
  35. leds {
  36. compatible = "gpio-leds";
  37. pinctrl-0 = <&led_pins>;
  38. pinctrl-names = "default";
  39. ledctrl1: ledctrl1 {
  40. label = "ledctrl1";
  41. gpios = <&qcom_pinmux 22 GPIO_ACTIVE_HIGH>;
  42. };
  43. ledctrl2: ledctrl2 {
  44. label = "ledctrl2";
  45. gpios = <&qcom_pinmux 23 GPIO_ACTIVE_HIGH>;
  46. };
  47. ledctrl3: ledctrl3 {
  48. label = "ledctrl3";
  49. gpios = <&qcom_pinmux 24 GPIO_ACTIVE_HIGH>;
  50. };
  51. };
  52. };
  53. &qcom_pinmux {
  54. button_pins: button_pins {
  55. mux {
  56. pins = "gpio54", "gpio68";
  57. function = "gpio";
  58. drive-strength = <2>;
  59. bias-pull-up;
  60. };
  61. };
  62. led_pins: led_pins {
  63. mux {
  64. pins = "gpio22", "gpio23", "gpio24";
  65. function = "gpio";
  66. drive-strength = <2>;
  67. bias-pull-down;
  68. };
  69. };
  70. rgmii2_pins: rgmii2_pins {
  71. mux {
  72. pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31",
  73. "gpio51", "gpio52", "gpio59", "gpio60", "gpio61", "gpio62";
  74. function = "rgmii2";
  75. drive-strength = <8>;
  76. bias-disable;
  77. };
  78. tx {
  79. pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32";
  80. input-disable;
  81. };
  82. };
  83. };
  84. &nand_controller {
  85. status = "okay";
  86. pinctrl-0 = <&nand_pins>;
  87. pinctrl-names = "default";
  88. nand@0 {
  89. reg = <0>;
  90. compatible = "qcom,nandcs";
  91. nand-ecc-strength = <4>;
  92. nand-bus-width = <8>;
  93. nand-ecc-step-size = <512>;
  94. partitions {
  95. compatible = "fixed-partitions";
  96. #address-cells = <1>;
  97. #size-cells = <1>;
  98. partition@0 {
  99. label = "0:SBL1";
  100. reg = <0x0000000 0x0040000>;
  101. read-only;
  102. };
  103. partition@40000 {
  104. label = "0:MIBIB";
  105. reg = <0x0040000 0x0140000>;
  106. read-only;
  107. };
  108. partition@180000 {
  109. label = "0:SBL2";
  110. reg = <0x0180000 0x0140000>;
  111. read-only;
  112. };
  113. partition@2c0000 {
  114. label = "0:SBL3";
  115. reg = <0x02c0000 0x0280000>;
  116. read-only;
  117. };
  118. partition@540000 {
  119. label = "0:DDRCONFIG";
  120. reg = <0x0540000 0x0120000>;
  121. read-only;
  122. };
  123. partition@660000 {
  124. label = "0:SSD";
  125. reg = <0x0660000 0x0120000>;
  126. read-only;
  127. };
  128. partition@780000 {
  129. label = "0:TZ";
  130. reg = <0x0780000 0x0280000>;
  131. read-only;
  132. };
  133. partition@a00000 {
  134. label = "0:RPM";
  135. reg = <0x0a00000 0x0280000>;
  136. read-only;
  137. };
  138. partition@c80000 {
  139. label = "0:APPSBL";
  140. reg = <0x0c80000 0x0500000>;
  141. read-only;
  142. };
  143. partition@1180000 {
  144. label = "0:APPSBLENV";
  145. reg = <0x1180000 0x0080000>;
  146. };
  147. ART: partition@1200000 {
  148. label = "0:ART";
  149. reg = <0x1200000 0x0140000>;
  150. read-only;
  151. };
  152. partition@1340000 {
  153. label = "0:BOOTCONFIG";
  154. reg = <0x1340000 0x0060000>;
  155. read-only;
  156. };
  157. partition@13a0000 {
  158. label = "0:SBL2_1";
  159. reg = <0x13a0000 0x0140000>;
  160. read-only;
  161. };
  162. partition@14e0000 {
  163. label = "0:SBL3_1";
  164. reg = <0x14e0000 0x0280000>;
  165. read-only;
  166. };
  167. partition@1760000 {
  168. label = "0:DDRCONFIG_1";
  169. reg = <0x1760000 0x0120000>;
  170. read-only;
  171. };
  172. partition@1880000 {
  173. label = "0:SSD_1";
  174. reg = <0x1880000 0x0120000>;
  175. read-only;
  176. };
  177. partition@19a0000 {
  178. label = "0:TZ_1";
  179. reg = <0x19a0000 0x0280000>;
  180. read-only;
  181. };
  182. partition@1c20000 {
  183. label = "0:RPM_1";
  184. reg = <0x1c20000 0x0280000>;
  185. read-only;
  186. };
  187. partition@1ea0000 {
  188. label = "0:BOOTCONFIG1";
  189. reg = <0x1ea0000 0x0060000>;
  190. read-only;
  191. };
  192. partition@1f00000 {
  193. label = "0:APPSBL_1";
  194. reg = <0x1f00000 0x0500000>;
  195. read-only;
  196. };
  197. partition@2400000 {
  198. label = "ubi";
  199. reg = <0x2400000 0x1a000000>;
  200. };
  201. };
  202. };
  203. };
  204. &mdio0 {
  205. status = "okay";
  206. pinctrl-0 = <&mdio0_pins>;
  207. pinctrl-names = "default";
  208. phy0: ethernet-phy@0 {
  209. reg = <0x0>;
  210. qca,ar8327-initvals = <
  211. 0x00004 0x7600000 /* PAD0_MODE */
  212. 0x00008 0x1000000 /* PAD5_MODE */
  213. 0x0000c 0x80 /* PAD6_MODE */
  214. 0x000e4 0xaa545 /* MAC_POWER_SEL */
  215. 0x000e0 0xc74164de /* SGMII_CTRL */
  216. 0x0007c 0x4e /* PORT0_STATUS */
  217. 0x00094 0x4e /* PORT6_STATUS */
  218. 0x00050 0xcf02cf02 /* LED_CTRL_0 */
  219. 0x00054 0xc832c832 /* LED_CTRL_1 */
  220. >;
  221. };
  222. };
  223. &gmac0 {
  224. status = "okay";
  225. phy-mode = "rgmii";
  226. qcom,id = <0>;
  227. nvmem-cells = <&macaddr_ART_0>;
  228. nvmem-cell-names = "mac-address";
  229. pinctrl-0 = <&rgmii2_pins>;
  230. pinctrl-names = "default";
  231. fixed-link {
  232. speed = <1000>;
  233. full-duplex;
  234. };
  235. };
  236. &gmac1 {
  237. status = "okay";
  238. phy-mode = "sgmii";
  239. qcom,id = <1>;
  240. nvmem-cells = <&macaddr_ART_6>;
  241. nvmem-cell-names = "mac-address";
  242. fixed-link {
  243. speed = <1000>;
  244. full-duplex;
  245. };
  246. };
  247. &adm_dma {
  248. status = "okay";
  249. };
  250. &usb3_0 {
  251. status = "okay";
  252. clocks = <&gcc USB30_1_MASTER_CLK>;
  253. };
  254. &usb3_1 {
  255. status = "okay";
  256. clocks = <&gcc USB30_0_MASTER_CLK>;
  257. };
  258. &pcie0 {
  259. status = "okay";
  260. reset-gpio = <&qcom_pinmux 3 GPIO_ACTIVE_HIGH>;
  261. pinctrl-0 = <&pcie0_pins>;
  262. pinctrl-names = "default";
  263. };
  264. &pcie1 {
  265. status = "okay";
  266. reset-gpio = <&qcom_pinmux 48 GPIO_ACTIVE_HIGH>;
  267. pinctrl-0 = <&pcie1_pins>;
  268. pinctrl-names = "default";
  269. max-link-speed = <1>;
  270. };
  271. &ART {
  272. compatible = "nvmem-cells";
  273. #address-cells = <1>;
  274. #size-cells = <1>;
  275. macaddr_ART_0: macaddr@0 {
  276. reg = <0x0 0x6>;
  277. };
  278. macaddr_ART_6: macaddr@6 {
  279. reg = <0x6 0x6>;
  280. };
  281. };