qcom-ipq8064-wxr-2533dhp.dts 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450
  1. // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2. #include "qcom-ipq8064-v2.0.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. model = "Buffalo WXR-2533DHP";
  6. compatible = "buffalo,wxr-2533dhp", "qcom,ipq8064";
  7. memory@42000000 {
  8. reg = <0x42000000 0x1e000000>;
  9. device_type = "memory";
  10. };
  11. aliases {
  12. led-boot = &power;
  13. led-failsafe = &diag;
  14. led-running = &power;
  15. led-upgrade = &power;
  16. };
  17. chosen {
  18. /* use "ubi_rootfs" volume in "ubi" partition as rootfs */
  19. bootargs = "ubi.block=0,1 root=/dev/ubiblock0_1 rootfstype=squashfs";
  20. };
  21. leds {
  22. compatible = "gpio-leds";
  23. pinctrl-0 = <&led_pins>;
  24. pinctrl-names = "default";
  25. usb {
  26. label = "green:usb";
  27. gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
  28. linux,default-trigger = "usbport";
  29. trigger-sources = <&hub_port0 &hub_port1>;
  30. };
  31. guestport {
  32. label = "green:guestport";
  33. gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
  34. };
  35. diag: diag {
  36. label = "orange:diag";
  37. gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
  38. };
  39. internet_orange {
  40. label = "orange:internet";
  41. gpios = <&qcom_pinmux 16 GPIO_ACTIVE_HIGH>;
  42. };
  43. internet_white {
  44. label = "white:internet";
  45. gpios = <&qcom_pinmux 22 GPIO_ACTIVE_HIGH>;
  46. };
  47. wireless_orange {
  48. label = "orange:wireless";
  49. gpios = <&qcom_pinmux 23 GPIO_ACTIVE_HIGH>;
  50. };
  51. wireless_white {
  52. label = "white:wireless";
  53. gpios = <&qcom_pinmux 24 GPIO_ACTIVE_HIGH>;
  54. };
  55. router_orange {
  56. label = "orange:router";
  57. gpios = <&qcom_pinmux 25 GPIO_ACTIVE_HIGH>;
  58. };
  59. router_white {
  60. label = "white:router";
  61. gpios = <&qcom_pinmux 26 GPIO_ACTIVE_LOW>;
  62. };
  63. power: power {
  64. label = "white:power";
  65. gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
  66. };
  67. };
  68. keys {
  69. compatible = "gpio-keys";
  70. pinctrl-0 = <&button_pins>;
  71. pinctrl-names = "default";
  72. power {
  73. label = "power";
  74. gpios = <&qcom_pinmux 58 GPIO_ACTIVE_LOW>;
  75. linux,code = <KEY_POWER>;
  76. };
  77. reset {
  78. label = "reset";
  79. gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
  80. linux,code = <KEY_RESTART>;
  81. };
  82. wps {
  83. label = "wps";
  84. gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
  85. linux,code = <KEY_WPS_BUTTON>;
  86. };
  87. eject {
  88. label = "eject";
  89. gpios = <&qcom_pinmux 6 GPIO_ACTIVE_LOW>;
  90. linux,code = <KEY_EJECTCD>;
  91. };
  92. guest {
  93. label = "guest";
  94. gpios = <&qcom_pinmux 64 GPIO_ACTIVE_LOW>;
  95. linux,code = <BTN_0>;
  96. };
  97. ap {
  98. label = "ap";
  99. gpios = <&qcom_pinmux 55 GPIO_ACTIVE_LOW>;
  100. linux,code = <BTN_1>;
  101. linux,input-type = <EV_SW>;
  102. };
  103. router {
  104. label = "router";
  105. gpios = <&qcom_pinmux 56 GPIO_ACTIVE_LOW>;
  106. linux,code = <BTN_1>;
  107. linux,input-type = <EV_SW>;
  108. };
  109. auto {
  110. label = "auto";
  111. gpios = <&qcom_pinmux 57 GPIO_ACTIVE_LOW>;
  112. linux,code = <BTN_1>;
  113. linux,input-type = <EV_SW>;
  114. };
  115. };
  116. };
  117. &nand_controller {
  118. status = "okay";
  119. pinctrl-0 = <&nand_pins>;
  120. pinctrl-names = "default";
  121. cs@0 {
  122. reg = <0>;
  123. compatible = "qcom,nandcs";
  124. nand-ecc-strength = <4>;
  125. nand-bus-width = <8>;
  126. nand-ecc-step-size = <512>;
  127. partitions {
  128. compatible = "fixed-partitions";
  129. #address-cells = <1>;
  130. #size-cells = <1>;
  131. ubi@0 {
  132. label = "ubi";
  133. reg = <0x0000000 0x4000000>;
  134. };
  135. rootfs_1@4000000 {
  136. label = "rootfs_1";
  137. reg = <0x4000000 0x4000000>;
  138. };
  139. };
  140. };
  141. };
  142. &adm_dma {
  143. status = "okay";
  144. };
  145. &mdio0 {
  146. status = "okay";
  147. pinctrl-0 = <&mdio0_pins>;
  148. pinctrl-names = "default";
  149. ethernet-phy@0 {
  150. reg = <0>;
  151. qca,ar8327-initvals = <
  152. 0x00004 0x07600000 /* PAD0_MODE */
  153. 0x00008 0x01000000 /* PAD5_MODE */
  154. 0x0000c 0x00000080 /* PAD6_MODE */
  155. 0x00050 0xcc35cc35 /* LED_CTRL0 */
  156. 0x00054 0xca35ca35 /* LED_CTRL1 */
  157. 0x00058 0xc935c935 /* LED_CTRL2 */
  158. 0x0005c 0x03ffff00 /* LED_CTRL3 */
  159. 0x000e4 0x0006a545 /* MAC_POWER_SEL */
  160. 0x000e0 0xc74164de /* SGMII_CTRL */
  161. 0x0007c 0x0000007e /* PORT0_STATUS */
  162. 0x00094 0x0000007e /* PORT6_STATUS */
  163. >;
  164. };
  165. ethernet-phy@4 {
  166. reg = <4>;
  167. };
  168. };
  169. &gmac1 {
  170. status = "okay";
  171. phy-mode = "rgmii";
  172. qcom,id = <1>;
  173. pinctrl-0 = <&rgmii2_pins>;
  174. pinctrl-names = "default";
  175. mtd-mac-address = <&ART 6>;
  176. fixed-link {
  177. speed = <1000>;
  178. full-duplex;
  179. };
  180. };
  181. &gmac2 {
  182. status = "okay";
  183. phy-mode = "sgmii";
  184. qcom,id = <2>;
  185. mtd-mac-address = <&ART 0>;
  186. fixed-link {
  187. speed = <1000>;
  188. full-duplex;
  189. };
  190. };
  191. &gsbi4_serial {
  192. pinctrl-0 = <&uart0_pins>;
  193. pinctrl-names = "default";
  194. };
  195. &gsbi5 {
  196. status = "okay";
  197. qcom,mode = <GSBI_PROT_SPI>;
  198. spi@1a280000 {
  199. status = "okay";
  200. pinctrl-0 = <&spi_pins>;
  201. pinctrl-names = "default";
  202. cs-gpios = <&qcom_pinmux 20 GPIO_ACTIVE_HIGH>;
  203. flash@0 {
  204. compatible = "jedec,spi-nor";
  205. spi-max-frequency = <50000000>;
  206. reg = <0>;
  207. partitions {
  208. compatible = "fixed-partitions";
  209. #address-cells = <1>;
  210. #size-cells = <1>;
  211. SBL1@0 {
  212. label = "SBL1";
  213. reg = <0x0 0x10000>;
  214. read-only;
  215. };
  216. MIBIB@10000 {
  217. label = "MIBIB";
  218. reg = <0x10000 0x20000>;
  219. read-only;
  220. };
  221. SBL2@30000 {
  222. label = "SBL2";
  223. reg = <0x30000 0x30000>;
  224. read-only;
  225. };
  226. SBL3@60000 {
  227. label = "SBL3";
  228. reg = <0x60000 0x30000>;
  229. read-only;
  230. };
  231. DDRCONFIG@90000 {
  232. label = "DDRCONFIG";
  233. reg = <0x90000 0x10000>;
  234. read-only;
  235. };
  236. SSD@a0000 {
  237. label = "SSD";
  238. reg = <0xa0000 0x10000>;
  239. read-only;
  240. };
  241. TZ@b0000 {
  242. label = "TZ";
  243. reg = <0xb0000 0x30000>;
  244. read-only;
  245. };
  246. RPM@e0000 {
  247. label = "RPM";
  248. reg = <0xe0000 0x20000>;
  249. read-only;
  250. };
  251. APPSBL@100000 {
  252. label = "APPSBL";
  253. reg = <0x100000 0x70000>;
  254. read-only;
  255. };
  256. APPSBLENV@170000 {
  257. label = "APPSBLENV";
  258. reg = <0x170000 0x10000>;
  259. read-only;
  260. };
  261. ART: ART@180000 {
  262. label = "ART";
  263. reg = <0x180000 0x40000>;
  264. read-only;
  265. };
  266. BOOTCONFIG@1c0000 {
  267. label = "BOOTCONFIG";
  268. reg = <0x1c0000 0x10000>;
  269. read-only;
  270. };
  271. APPSBL_1@1d0000 {
  272. label = "APPSBL_1";
  273. reg = <0x1d0000 0x70000>;
  274. read-only;
  275. };
  276. };
  277. };
  278. };
  279. };
  280. &usb3_0 {
  281. status = "okay";
  282. pinctrl-0 = <&usb_pwr_en_pins>;
  283. pinctrl-names = "default";
  284. };
  285. &usb3_1 {
  286. status = "okay";
  287. };
  288. &dwc3_0 {
  289. #address-cells = <1>;
  290. #size-cells = <0>;
  291. hub_port0: port@1 {
  292. reg = <1>;
  293. #trigger-source-cells = <0>;
  294. };
  295. };
  296. &dwc3_1 {
  297. #address-cells = <1>;
  298. #size-cells = <0>;
  299. hub_port1: port@1 {
  300. reg = <1>;
  301. #trigger-source-cells = <0>;
  302. };
  303. };
  304. &pcie0 {
  305. status = "okay";
  306. };
  307. &pcie1 {
  308. status = "okay";
  309. max-link-speed = <1>;
  310. };
  311. &qcom_pinmux {
  312. button_pins: button_pins {
  313. mux {
  314. pins = "gpio6", "gpio54", "gpio55", "gpio56", "gpio57",
  315. "gpio58", "gpio64", "gpio65";
  316. function = "gpio";
  317. drive-strength = <2>;
  318. bias-pull-up;
  319. };
  320. };
  321. led_pins: led_pins {
  322. mux {
  323. pins = "gpio7", "gpio8", "gpio9", "gpio16", "gpio22",
  324. "gpio23", "gpio24", "gpio25", "gpio26", "gpio53";
  325. function = "gpio";
  326. drive-strength = <2>;
  327. bias-pull-up;
  328. };
  329. };
  330. uart0_pins: uart0_pins {
  331. mux {
  332. pins = "gpio10", "gpio11";
  333. function = "gsbi4";
  334. drive-strength = <12>;
  335. bias-disable;
  336. };
  337. };
  338. spi_pins: spi_pins {
  339. mux {
  340. pins = "gpio18", "gpio19", "gpio21";
  341. function = "gsbi5";
  342. bias-pull-down;
  343. };
  344. data {
  345. pins = "gpio18", "gpio19";
  346. drive-strength = <10>;
  347. };
  348. cs{
  349. pins = "gpio20";
  350. drive-strength = <10>;
  351. bias-pull-up;
  352. };
  353. clk {
  354. pins = "gpio21";
  355. drive-strength = <12>;
  356. };
  357. };
  358. usb_pwr_en_pins: usb_pwr_en_pins {
  359. mux{
  360. pins = "gpio68";
  361. function = "gpio";
  362. drive-strength = <2>;
  363. bias-pull-up;
  364. output-high;
  365. };
  366. };
  367. };