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

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