qcom-ipq4019-wtr-m2133hp.dts 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419
  1. // SPDX-License-Identifier: ISC
  2. /*
  3. * Copyright (c) 2015 - 2016, The Linux Foundation. All rights reserved.
  4. * Copyright (c) 2020 Yanase Yuki <[email protected]>
  5. */
  6. #include "qcom-ipq4019.dtsi"
  7. #include <dt-bindings/input/input.h>
  8. #include <dt-bindings/gpio/gpio.h>
  9. #include <dt-bindings/soc/qcom,tcsr.h>
  10. / {
  11. model = "Buffalo WTR-M2133HP";
  12. compatible = "buffalo,wtr-m2133hp", "qcom,ipq4019";
  13. memory {
  14. device_type = "memory";
  15. reg = <0x80000000 0x20000000>;
  16. };
  17. chosen {
  18. /*
  19. * U-Boot adds "ubi.mtd=rootfs root=mtd:ubi_rootfs" to
  20. * kernel command line. But we use different partition names,
  21. * so we have to set correct parameters.
  22. */
  23. bootargs-append = " ubi.mtd=ubi root=/dev/ubiblock0_1";
  24. };
  25. aliases {
  26. led-boot = &led_power_blue;
  27. led-failsafe = &led_power_orange;
  28. led-running = &led_power_white;
  29. led-upgrade = &led_power_blue;
  30. label-mac-device = &gmac0;
  31. };
  32. soc {
  33. rng@22000 {
  34. status = "okay";
  35. };
  36. tcsr@1949000 {
  37. compatible = "qcom,tcsr";
  38. reg = <0x1949000 0x100>;
  39. qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
  40. };
  41. tcsr@194b000 {
  42. compatible = "qcom,tcsr";
  43. reg = <0x194b000 0x100>;
  44. qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
  45. status = "okay";
  46. };
  47. ess_tcsr@1953000 {
  48. compatible = "qcom,tcsr";
  49. reg = <0x1953000 0x1000>;
  50. qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
  51. };
  52. tcsr@1957000 {
  53. compatible = "qcom,tcsr";
  54. reg = <0x1957000 0x100>;
  55. qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
  56. };
  57. crypto@8e3a000 {
  58. status = "okay";
  59. };
  60. watchdog@b017000 {
  61. status = "okay";
  62. };
  63. ess-switch@c000000 {
  64. status = "okay";
  65. switch_lan_bmp = <0x1c>;
  66. };
  67. ess-psgmii@98000 {
  68. status = "okay";
  69. };
  70. edma@c080000 {
  71. status = "okay";
  72. };
  73. usb3@8af8800 {
  74. status = "okay";
  75. };
  76. };
  77. leds {
  78. compatible = "gpio-leds";
  79. led_power_white: power_white {
  80. label = "white:power";
  81. gpios = <&tlmm 40 GPIO_ACTIVE_HIGH>;
  82. };
  83. led_power_orange: power_orange {
  84. label = "orange:power";
  85. gpios = <&tlmm 25 GPIO_ACTIVE_HIGH>;
  86. };
  87. led_power_blue: power_blue {
  88. label = "blue:power";
  89. gpios = <&tlmm 43 GPIO_ACTIVE_HIGH>;
  90. };
  91. router_white {
  92. label = "white:router";
  93. gpios = <&tlmm 28 GPIO_ACTIVE_HIGH>;
  94. };
  95. router_orange {
  96. label = "orange:router";
  97. gpios = <&tlmm 46 GPIO_ACTIVE_HIGH>;
  98. };
  99. internet_white {
  100. label = "white:internet";
  101. gpios = <&tlmm 27 GPIO_ACTIVE_HIGH>;
  102. };
  103. internet_orange {
  104. label = "orange:internet";
  105. gpios = <&tlmm 45 GPIO_ACTIVE_HIGH>;
  106. };
  107. wireless_white {
  108. label = "white:wireless";
  109. gpios = <&tlmm 24 GPIO_ACTIVE_HIGH>;
  110. };
  111. wireless_orange {
  112. label = "orange:wireless";
  113. gpios = <&tlmm 44 GPIO_ACTIVE_HIGH>;
  114. };
  115. };
  116. keys {
  117. compatible = "gpio-keys";
  118. auto_mode {
  119. label = "auto_mode";
  120. gpios = <&tlmm 9 GPIO_ACTIVE_LOW>;
  121. linux,code = <BTN_0>;
  122. linux,input-type = <EV_SW>;
  123. };
  124. router_mode {
  125. label = "router_mode";
  126. gpios = <&tlmm 10 GPIO_ACTIVE_LOW>;
  127. linux,code = <BTN_1>;
  128. linux,input-type = <EV_SW>;
  129. };
  130. ap_mode {
  131. label = "ap_mode";
  132. gpios = <&tlmm 11 GPIO_ACTIVE_LOW>;
  133. linux,code = <BTN_2>;
  134. linux,input-type = <EV_SW>;
  135. };
  136. reset {
  137. label = "reset";
  138. gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
  139. linux,code = <KEY_RESTART>;
  140. };
  141. wps {
  142. label = "AOSS Button";
  143. gpios = <&tlmm 32 GPIO_ACTIVE_LOW>;
  144. linux,code = <KEY_WPS_BUTTON>;
  145. };
  146. };
  147. };
  148. &tlmm {
  149. serial_0_pins: serial0_pinmux {
  150. mux {
  151. pins = "gpio16", "gpio17";
  152. function = "blsp_uart0";
  153. bias-disable;
  154. };
  155. };
  156. mdio_pins: mdio_pinmux {
  157. mux_1 {
  158. pins = "gpio6";
  159. function = "mdio";
  160. bias-pull-up;
  161. };
  162. mux_2 {
  163. pins = "gpio7";
  164. function = "mdc";
  165. bias-pull-up;
  166. };
  167. };
  168. nand_pins: nand_pins {
  169. pullups {
  170. pins = "gpio52", "gpio53", "gpio58",
  171. "gpio59";
  172. function = "qpic";
  173. bias-pull-up;
  174. };
  175. pulldowns {
  176. pins = "gpio54", "gpio55", "gpio56",
  177. "gpio57", "gpio60", "gpio61",
  178. "gpio62", "gpio63", "gpio64",
  179. "gpio65", "gpio66", "gpio67",
  180. "gpio68", "gpio69";
  181. function = "qpic";
  182. bias-pull-down;
  183. };
  184. };
  185. usb_power {
  186. line-name = "USB power";
  187. gpios = <34 GPIO_ACTIVE_HIGH>;
  188. gpio-hog;
  189. output-high;
  190. };
  191. };
  192. &blsp_dma {
  193. status = "okay";
  194. };
  195. &blsp1_uart1 {
  196. pinctrl-0 = <&serial_0_pins>;
  197. pinctrl-names = "default";
  198. status = "okay";
  199. };
  200. &cryptobam {
  201. status = "okay";
  202. };
  203. &pcie0 {
  204. status = "okay";
  205. bridge@0,0 {
  206. reg = <0x00000000 0 0 0 0>;
  207. #address-cells = <3>;
  208. #size-cells = <2>;
  209. ranges;
  210. wifi@0,0 {
  211. compatible = "qcom,ath10k";
  212. reg = <0 0 0 0 0>;
  213. qcom,ath10k-calibration-variant = "Buffalo-WTR-M2133HP";
  214. };
  215. };
  216. };
  217. &qpic_bam {
  218. status = "okay";
  219. };
  220. &nand {
  221. pinctrl-0 = <&nand_pins>;
  222. pinctrl-names = "default";
  223. status = "okay";
  224. nand@0 {
  225. partitions {
  226. compatible = "fixed-partitions";
  227. #address-cells = <1>;
  228. #size-cells = <1>;
  229. partition@0 {
  230. label = "SBL1";
  231. reg = <0x0000000 0x0100000>;
  232. read-only;
  233. };
  234. partition@100000 {
  235. label = "MIBIB";
  236. reg = <0x0100000 0x0100000>;
  237. read-only;
  238. };
  239. partition@200000 {
  240. label = "BOOTCONFIG";
  241. reg = <0x0200000 0x0100000>;
  242. read-only;
  243. };
  244. partition@300000 {
  245. label = "QSEE";
  246. reg = <0x0300000 0x0100000>;
  247. read-only;
  248. };
  249. partition@400000 {
  250. label = "QSEE_1";
  251. reg = <0x0400000 0x0100000>;
  252. read-only;
  253. };
  254. partition@500000 {
  255. label = "CDT";
  256. reg = <0x0500000 0x0080000>;
  257. read-only;
  258. };
  259. partition@580000 {
  260. label = "CDT_1";
  261. reg = <0x0580000 0x0080000>;
  262. read-only;
  263. };
  264. partition@600000 {
  265. label = "BOOTCONFIG1";
  266. reg = <0x0600000 0x0080000>;
  267. read-only;
  268. };
  269. partition@680000 {
  270. label = "APPSBLENV";
  271. reg = <0x0680000 0x0080000>;
  272. };
  273. partition@700000 {
  274. label = "APPSBL";
  275. reg = <0x0700000 0x0200000>;
  276. read-only;
  277. };
  278. partition@900000 {
  279. label = "APPSBL_1";
  280. reg = <0x0900000 0x0200000>;
  281. read-only;
  282. };
  283. art: partition@b00000 {
  284. label = "ART";
  285. reg = <0x0b00000 0x0080000>;
  286. read-only;
  287. };
  288. partition@b80000 {
  289. label = "ART_1";
  290. reg = <0x0b80000 0x0080000>;
  291. read-only;
  292. };
  293. orgdata: partition@c00000 {
  294. label = "ORGDATA";
  295. reg = <0x0c00000 0x0080000>;
  296. read-only;
  297. };
  298. partition@c80000 {
  299. label = "ORGDATA_1";
  300. reg = <0x0c80000 0x0080000>;
  301. read-only;
  302. };
  303. partition@d00000 {
  304. label = "ubi";
  305. reg = <0x0d00000 0x2900000>;
  306. };
  307. partition@3600000 {
  308. label = "rootfs_recover";
  309. reg = <0x3600000 0x2900000>;
  310. read-only;
  311. };
  312. partition@5f00000 {
  313. label = "user_property";
  314. reg = <0x5f00000 0x1a20000>;
  315. read-only;
  316. };
  317. };
  318. };
  319. };
  320. &wifi0 {
  321. status = "okay";
  322. qcom,ath10k-calibration-variant = "Buffalo-WTR-M2133HP";
  323. ieee80211-freq-limit = <2400000 2483000>;
  324. };
  325. &wifi1 {
  326. status = "okay";
  327. qcom,ath10k-calibration-variant = "Buffalo-WTR-M2133HP";
  328. };
  329. &mdio {
  330. status = "okay";
  331. pinctrl-0 = <&mdio_pins>;
  332. pinctrl-names = "default";
  333. reset-gpios = <&tlmm 47 GPIO_ACTIVE_LOW>;
  334. };
  335. &gmac0 {
  336. mtd-mac-address = <&orgdata 0x20>;
  337. };
  338. &gmac1 {
  339. mtd-mac-address = <&orgdata 0x20>;
  340. };
  341. &usb3_ss_phy {
  342. status = "okay";
  343. };
  344. &usb3_hs_phy {
  345. status = "okay";
  346. };