0023-ARM-dts-mediatek-add-MT7623-basic-support.patch 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041
  1. From a4df3e7e4e906a4e9dac1f8c43f6192f22ef6242 Mon Sep 17 00:00:00 2001
  2. From: John Crispin <[email protected]>
  3. Date: Tue, 5 Jan 2016 12:16:17 +0100
  4. Subject: [PATCH 23/78] ARM: dts: mediatek: add MT7623 basic support
  5. This adds basic chip support for Mediatek MT7623.
  6. Signed-off-by: John Crispin <[email protected]>
  7. ---
  8. arch/arm/boot/dts/Makefile | 1 +
  9. arch/arm/boot/dts/mt7623-evb.dts | 459 +++++++++++++++++++++++++++++++++
  10. arch/arm/boot/dts/mt7623.dtsi | 510 +++++++++++++++++++++++++++++++++++++
  11. arch/arm/mach-mediatek/Kconfig | 4 +
  12. arch/arm/mach-mediatek/mediatek.c | 1 +
  13. 5 files changed, 975 insertions(+)
  14. create mode 100644 arch/arm/boot/dts/mt7623-evb.dts
  15. create mode 100644 arch/arm/boot/dts/mt7623.dtsi
  16. diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
  17. index 30bbc37..2bce370 100644
  18. --- a/arch/arm/boot/dts/Makefile
  19. +++ b/arch/arm/boot/dts/Makefile
  20. @@ -774,6 +774,7 @@ dtb-$(CONFIG_ARCH_MEDIATEK) += \
  21. mt6580-evbp1.dtb \
  22. mt6589-aquaris5.dtb \
  23. mt6592-evb.dtb \
  24. + mt7623-evb.dtb \
  25. mt8127-moose.dtb \
  26. mt8135-evbp1.dtb
  27. dtb-$(CONFIG_ARCH_ZX) += zx296702-ad1.dtb
  28. diff --git a/arch/arm/boot/dts/mt7623-evb.dts b/arch/arm/boot/dts/mt7623-evb.dts
  29. new file mode 100644
  30. index 0000000..5e9381d
  31. --- /dev/null
  32. +++ b/arch/arm/boot/dts/mt7623-evb.dts
  33. @@ -0,0 +1,459 @@
  34. +/*
  35. + * Copyright (c) 2016 MediaTek Inc.
  36. + * Author: John Crispin <[email protected]>
  37. + *
  38. + * This program is free software; you can redistribute it and/or modify
  39. + * it under the terms of the GNU General Public License version 2 as
  40. + * published by the Free Software Foundation.
  41. + *
  42. + * This program is distributed in the hope that it will be useful,
  43. + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  44. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  45. + * GNU General Public License for more details.
  46. + */
  47. +
  48. +/dts-v1/;
  49. +
  50. +#include "mt7623.dtsi"
  51. +#include <dt-bindings/gpio/gpio.h>
  52. +
  53. +/ {
  54. + model = "MediaTek MT7623 evaluation board";
  55. + compatible = "mediatek,mt7623-evb", "mediatek,mt7623";
  56. +
  57. + chosen {
  58. + stdout-path = &uart2;
  59. + };
  60. +
  61. + memory {
  62. + reg = <0 0x80000000 0 0x20000000>;
  63. + };
  64. +
  65. + usb_p1_vbus: regulator@0 {
  66. + compatible = "regulator-fixed";
  67. + regulator-name = "usb_vbus";
  68. + regulator-min-microvolt = <5000000>;
  69. + regulator-max-microvolt = <5000000>;
  70. + gpio = <&pio 135 GPIO_ACTIVE_HIGH>;
  71. + enable-active-high;
  72. + };
  73. +};
  74. +
  75. +&pwrap {
  76. + pmic: mt6323 {
  77. + compatible = "mediatek,mt6323";
  78. + interrupt-parent = <&pio>;
  79. + interrupts = <150 IRQ_TYPE_LEVEL_HIGH>;
  80. + interrupt-controller;
  81. + #interrupt-cells = <2>;
  82. +
  83. + mt6323regulator: mt6323regulator{
  84. + compatible = "mediatek,mt6323-regulator";
  85. +
  86. + mt6323_vproc_reg: buck_vproc{
  87. + regulator-name = "vproc";
  88. + regulator-min-microvolt = < 700000>;
  89. + regulator-max-microvolt = <1350000>;
  90. + regulator-ramp-delay = <12500>;
  91. + regulator-always-on;
  92. + regulator-boot-on;
  93. + };
  94. +
  95. + mt6323_vsys_reg: buck_vsys{
  96. + regulator-name = "vsys";
  97. + regulator-min-microvolt = <1400000>;
  98. + regulator-max-microvolt = <2987500>;
  99. + regulator-ramp-delay = <25000>;
  100. + regulator-always-on;
  101. + regulator-boot-on;
  102. + };
  103. +
  104. + mt6323_vpa_reg: buck_vpa{
  105. + regulator-name = "vpa";
  106. + regulator-min-microvolt = < 500000>;
  107. + regulator-max-microvolt = <3650000>;
  108. + };
  109. +
  110. + mt6323_vtcxo_reg: ldo_vtcxo{
  111. + regulator-name = "vtcxo";
  112. + regulator-min-microvolt = <2800000>;
  113. + regulator-max-microvolt = <2800000>;
  114. + regulator-enable-ramp-delay = <90>;
  115. + regulator-always-on;
  116. + regulator-boot-on;
  117. + };
  118. +
  119. + mt6323_vcn28_reg: ldo_vcn28{
  120. + regulator-name = "vcn28";
  121. + regulator-min-microvolt = <2800000>;
  122. + regulator-max-microvolt = <2800000>;
  123. + regulator-enable-ramp-delay = <185>;
  124. + };
  125. +
  126. + mt6323_vcn33_bt_reg: ldo_vcn33_bt{
  127. + regulator-name = "vcn33_bt";
  128. + regulator-min-microvolt = <3300000>;
  129. + regulator-max-microvolt = <3600000>;
  130. + regulator-enable-ramp-delay = <185>;
  131. + };
  132. +
  133. + mt6323_vcn33_wifi_reg: ldo_vcn33_wifi{
  134. + regulator-name = "vcn33_wifi";
  135. + regulator-min-microvolt = <3300000>;
  136. + regulator-max-microvolt = <3600000>;
  137. + regulator-enable-ramp-delay = <185>;
  138. + };
  139. +
  140. + mt6323_va_reg: ldo_va{
  141. + regulator-name = "va";
  142. + regulator-min-microvolt = <2800000>;
  143. + regulator-max-microvolt = <2800000>;
  144. + regulator-enable-ramp-delay = <216>;
  145. + regulator-always-on;
  146. + regulator-boot-on;
  147. + };
  148. +
  149. + mt6323_vcama_reg: ldo_vcama{
  150. + regulator-name = "vcama";
  151. + regulator-min-microvolt = <1500000>;
  152. + regulator-max-microvolt = <2800000>;
  153. + regulator-enable-ramp-delay = <216>;
  154. + };
  155. +
  156. + mt6323_vio28_reg: ldo_vio28{
  157. + regulator-name = "vio28";
  158. + regulator-min-microvolt = <2800000>;
  159. + regulator-max-microvolt = <2800000>;
  160. + regulator-enable-ramp-delay = <216>;
  161. + regulator-always-on;
  162. + regulator-boot-on;
  163. + };
  164. +
  165. + mt6323_vusb_reg: ldo_vusb{
  166. + regulator-name = "vusb";
  167. + regulator-min-microvolt = <3300000>;
  168. + regulator-max-microvolt = <3300000>;
  169. + regulator-enable-ramp-delay = <216>;
  170. + regulator-boot-on;
  171. + };
  172. +
  173. + mt6323_vmc_reg: ldo_vmc{
  174. + regulator-name = "vmc";
  175. + regulator-min-microvolt = <1800000>;
  176. + regulator-max-microvolt = <3300000>;
  177. + regulator-enable-ramp-delay = <36>;
  178. + regulator-boot-on;
  179. + };
  180. +
  181. + mt6323_vmch_reg: ldo_vmch{
  182. + regulator-name = "vmch";
  183. + regulator-min-microvolt = <3000000>;
  184. + regulator-max-microvolt = <3300000>;
  185. + regulator-enable-ramp-delay = <36>;
  186. + regulator-boot-on;
  187. + };
  188. +
  189. + mt6323_vemc3v3_reg: ldo_vemc3v3{
  190. + regulator-name = "vemc3v3";
  191. + regulator-min-microvolt = <3000000>;
  192. + regulator-max-microvolt = <3300000>;
  193. + regulator-enable-ramp-delay = <36>;
  194. + regulator-boot-on;
  195. + };
  196. +
  197. + mt6323_vgp1_reg: ldo_vgp1{
  198. + regulator-name = "vgp1";
  199. + regulator-min-microvolt = <1200000>;
  200. + regulator-max-microvolt = <3300000>;
  201. + regulator-enable-ramp-delay = <216>;
  202. + };
  203. +
  204. + mt6323_vgp2_reg: ldo_vgp2{
  205. + regulator-name = "vgp2";
  206. + regulator-min-microvolt = <1200000>;
  207. + regulator-max-microvolt = <3000000>;
  208. + regulator-enable-ramp-delay = <216>;
  209. + };
  210. +
  211. + mt6323_vgp3_reg: ldo_vgp3{
  212. + regulator-name = "vgp3";
  213. + regulator-min-microvolt = <1200000>;
  214. + regulator-max-microvolt = <1800000>;
  215. + regulator-enable-ramp-delay = <216>;
  216. + };
  217. +
  218. + mt6323_vcn18_reg: ldo_vcn18{
  219. + regulator-name = "vcn18";
  220. + regulator-min-microvolt = <1800000>;
  221. + regulator-max-microvolt = <1800000>;
  222. + regulator-enable-ramp-delay = <216>;
  223. + };
  224. +
  225. + mt6323_vsim1_reg: ldo_vsim1{
  226. + regulator-name = "vsim1";
  227. + regulator-min-microvolt = <1800000>;
  228. + regulator-max-microvolt = <3000000>;
  229. + regulator-enable-ramp-delay = <216>;
  230. + };
  231. +
  232. + mt6323_vsim2_reg: ldo_vsim2{
  233. + regulator-name = "vsim2";
  234. + regulator-min-microvolt = <1800000>;
  235. + regulator-max-microvolt = <3000000>;
  236. + regulator-enable-ramp-delay = <216>;
  237. + };
  238. +
  239. + mt6323_vrtc_reg: ldo_vrtc{
  240. + regulator-name = "vrtc";
  241. + regulator-min-microvolt = <2800000>;
  242. + regulator-max-microvolt = <2800000>;
  243. + regulator-always-on;
  244. + regulator-boot-on;
  245. + };
  246. +
  247. + mt6323_vcamaf_reg: ldo_vcamaf{
  248. + regulator-name = "vcamaf";
  249. + regulator-min-microvolt = <1200000>;
  250. + regulator-max-microvolt = <3300000>;
  251. + regulator-enable-ramp-delay = <216>;
  252. + };
  253. +
  254. + mt6323_vibr_reg: ldo_vibr{
  255. + regulator-name = "vibr";
  256. + regulator-min-microvolt = <1200000>;
  257. + regulator-max-microvolt = <3300000>;
  258. + regulator-enable-ramp-delay = <36>;
  259. + };
  260. +
  261. + mt6323_vrf18_reg: ldo_vrf18{
  262. + regulator-name = "vrf18";
  263. + regulator-min-microvolt = <1825000>;
  264. + regulator-max-microvolt = <1825000>;
  265. + regulator-enable-ramp-delay = <187>;
  266. + };
  267. +
  268. + mt6323_vm_reg: ldo_vm{
  269. + regulator-name = "vm";
  270. + regulator-min-microvolt = <1200000>;
  271. + regulator-max-microvolt = <1800000>;
  272. + regulator-enable-ramp-delay = <216>;
  273. + regulator-always-on;
  274. + regulator-boot-on;
  275. + };
  276. +
  277. + mt6323_vio18_reg: ldo_vio18{
  278. + regulator-name = "vio18";
  279. + regulator-min-microvolt = <1800000>;
  280. + regulator-max-microvolt = <1800000>;
  281. + regulator-enable-ramp-delay = <216>;
  282. + regulator-always-on;
  283. + regulator-boot-on;
  284. + };
  285. +
  286. + mt6323_vcamd_reg: ldo_vcamd{
  287. + regulator-name = "vcamd";
  288. + regulator-min-microvolt = <1200000>;
  289. + regulator-max-microvolt = <1800000>;
  290. + regulator-enable-ramp-delay = <216>;
  291. + };
  292. +
  293. + mt6323_vcamio_reg: ldo_vcamio{
  294. + regulator-name = "vcamio";
  295. + regulator-min-microvolt = <1800000>;
  296. + regulator-max-microvolt = <1800000>;
  297. + regulator-enable-ramp-delay = <216>;
  298. + };
  299. + };
  300. + };
  301. +};
  302. +
  303. +&uart2 {
  304. + status = "okay";
  305. +};
  306. +
  307. +&mmc0 {
  308. + status = "okay";
  309. + pinctrl-names = "default", "state_uhs";
  310. + pinctrl-0 = <&mmc0_pins_default>;
  311. + pinctrl-1 = <&mmc0_pins_uhs>;
  312. + bus-width = <8>;
  313. + max-frequency = <50000000>;
  314. + cap-mmc-highspeed;
  315. + vmmc-supply = <&mt6323_vemc3v3_reg>;
  316. + vqmmc-supply = <&mt6323_vio18_reg>;
  317. + non-removable;
  318. +};
  319. +
  320. +&mmc1 {
  321. + status = "okay";
  322. + pinctrl-names = "default", "state_uhs";
  323. + pinctrl-0 = <&mmc1_pins_default>;
  324. + pinctrl-1 = <&mmc1_pins_uhs>;
  325. + bus-width = <4>;
  326. + max-frequency = <50000000>;
  327. + cap-sd-highspeed;
  328. + sd-uhs-sdr25;
  329. +// cd-gpios = <&pio 132 0>;
  330. + vmmc-supply = <&mt6323_vmch_reg>;
  331. + vqmmc-supply = <&mt6323_vmc_reg>;
  332. +};
  333. +
  334. +&pio {
  335. + mmc0_pins_default: mmc0default {
  336. + pins_cmd_dat {
  337. + pinmux = <MT7623_PIN_111_MSDC0_DAT7_FUNC_MSDC0_DAT7>,
  338. + <MT7623_PIN_112_MSDC0_DAT6_FUNC_MSDC0_DAT6>,
  339. + <MT7623_PIN_113_MSDC0_DAT5_FUNC_MSDC0_DAT5>,
  340. + <MT7623_PIN_114_MSDC0_DAT4_FUNC_MSDC0_DAT4>,
  341. + <MT7623_PIN_118_MSDC0_DAT3_FUNC_MSDC0_DAT3>,
  342. + <MT7623_PIN_119_MSDC0_DAT2_FUNC_MSDC0_DAT2>,
  343. + <MT7623_PIN_120_MSDC0_DAT1_FUNC_MSDC0_DAT1>,
  344. + <MT7623_PIN_121_MSDC0_DAT0_FUNC_MSDC0_DAT0>,
  345. + <MT7623_PIN_116_MSDC0_CMD_FUNC_MSDC0_CMD>;
  346. + input-enable;
  347. + bias-pull-up;
  348. + };
  349. +
  350. + pins_clk {
  351. + pinmux = <MT7623_PIN_117_MSDC0_CLK_FUNC_MSDC0_CLK>;
  352. + bias-pull-down;
  353. + };
  354. +
  355. + pins_rst {
  356. + pinmux = <MT7623_PIN_115_MSDC0_RSTB_FUNC_MSDC0_RSTB>;
  357. + bias-pull-up;
  358. + };
  359. + };
  360. +
  361. + mmc0_pins_uhs: mmc0 {
  362. + pins_cmd_dat {
  363. + pinmux = <MT7623_PIN_111_MSDC0_DAT7_FUNC_MSDC0_DAT7>,
  364. + <MT7623_PIN_112_MSDC0_DAT6_FUNC_MSDC0_DAT6>,
  365. + <MT7623_PIN_113_MSDC0_DAT5_FUNC_MSDC0_DAT5>,
  366. + <MT7623_PIN_114_MSDC0_DAT4_FUNC_MSDC0_DAT4>,
  367. + <MT7623_PIN_118_MSDC0_DAT3_FUNC_MSDC0_DAT3>,
  368. + <MT7623_PIN_119_MSDC0_DAT2_FUNC_MSDC0_DAT2>,
  369. + <MT7623_PIN_120_MSDC0_DAT1_FUNC_MSDC0_DAT1>,
  370. + <MT7623_PIN_121_MSDC0_DAT0_FUNC_MSDC0_DAT0>,
  371. + <MT7623_PIN_116_MSDC0_CMD_FUNC_MSDC0_CMD>;
  372. + input-enable;
  373. + drive-strength = <MTK_DRIVE_2mA>;
  374. + bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
  375. + };
  376. +
  377. + pins_clk {
  378. + pinmux = <MT7623_PIN_117_MSDC0_CLK_FUNC_MSDC0_CLK>;
  379. + drive-strength = <MTK_DRIVE_2mA>;
  380. + bias-pull-down = <MTK_PUPD_SET_R1R0_01>;
  381. + };
  382. +
  383. + pins_rst {
  384. + pinmux = <MT7623_PIN_115_MSDC0_RSTB_FUNC_MSDC0_RSTB>;
  385. + bias-pull-up;
  386. + };
  387. + };
  388. +
  389. + mmc1_pins_default: mmc1default {
  390. + pins_cmd_dat {
  391. + pinmux = <MT7623_PIN_107_MSDC1_DAT0_FUNC_MSDC1_DAT0>,
  392. + <MT7623_PIN_108_MSDC1_DAT1_FUNC_MSDC1_DAT1>,
  393. + <MT7623_PIN_109_MSDC1_DAT2_FUNC_MSDC1_DAT2>,
  394. + <MT7623_PIN_110_MSDC1_DAT3_FUNC_MSDC1_DAT3>,
  395. + <MT7623_PIN_105_MSDC1_CMD_FUNC_MSDC1_CMD>;
  396. + input-enable;
  397. + drive-strength = <MTK_DRIVE_4mA>;
  398. + bias-pull-up = <MTK_PUPD_SET_R1R0_10>;
  399. + };
  400. +
  401. + pins_clk {
  402. + pinmux = <MT7623_PIN_106_MSDC1_CLK_FUNC_MSDC1_CLK>;
  403. + bias-pull-down;
  404. + drive-strength = <MTK_DRIVE_4mA>;
  405. + };
  406. +
  407. +// pins_insert {
  408. +// pinmux = <MT8173_PIN_132_I2S0_DATA1_FUNC_GPIO132>;
  409. +// bias-pull-up;
  410. +// };
  411. + };
  412. +
  413. + mmc1_pins_uhs: mmc1 {
  414. + pins_cmd_dat {
  415. + pinmux = <MT7623_PIN_107_MSDC1_DAT0_FUNC_MSDC1_DAT0>,
  416. + <MT7623_PIN_108_MSDC1_DAT1_FUNC_MSDC1_DAT1>,
  417. + <MT7623_PIN_109_MSDC1_DAT2_FUNC_MSDC1_DAT2>,
  418. + <MT7623_PIN_110_MSDC1_DAT3_FUNC_MSDC1_DAT3>,
  419. + <MT7623_PIN_105_MSDC1_CMD_FUNC_MSDC1_CMD>;
  420. + input-enable;
  421. + drive-strength = <MTK_DRIVE_4mA>;
  422. + bias-pull-up = <MTK_PUPD_SET_R1R0_10>;
  423. + };
  424. +
  425. + pins_clk {
  426. + pinmux = <MT7623_PIN_106_MSDC1_CLK_FUNC_MSDC1_CLK>;
  427. + drive-strength = <MTK_DRIVE_4mA>;
  428. + bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
  429. + };
  430. + };
  431. +
  432. + eth_default: eth {
  433. + pins_eth {
  434. + pinmux = <MT7623_PIN_275_G2_MDC_FUNC_MDC>,
  435. + <MT7623_PIN_276_G2_MDIO_FUNC_MDIO>,
  436. + <MT7623_PIN_262_G2_TXEN_FUNC_G2_TXEN>,
  437. + <MT7623_PIN_263_G2_TXD3_FUNC_G2_TXD3>,
  438. + <MT7623_PIN_264_G2_TXD2_FUNC_G2_TXD2>,
  439. + <MT7623_PIN_265_G2_TXD1_FUNC_G2_TXD1>,
  440. + <MT7623_PIN_266_G2_TXD0_FUNC_G2_TXD0>,
  441. + <MT7623_PIN_267_G2_TXCLK_FUNC_G2_TXC>,
  442. + <MT7623_PIN_268_G2_RXCLK_FUNC_G2_RXC>,
  443. + <MT7623_PIN_269_G2_RXD0_FUNC_G2_RXD0>,
  444. + <MT7623_PIN_270_G2_RXD1_FUNC_G2_RXD1>,
  445. + <MT7623_PIN_271_G2_RXD2_FUNC_G2_RXD2>,
  446. + <MT7623_PIN_272_G2_RXD3_FUNC_G2_RXD3>,
  447. + <MT7623_PIN_273_ESW_INT_FUNC_ESW_INT>,
  448. + <MT7623_PIN_274_G2_RXDV_FUNC_G2_RXDV>;
  449. + };
  450. +
  451. + pins_eth_rst {
  452. + pinmux = <MT7623_PIN_15_GPIO15_FUNC_GPIO15>;
  453. + output-low;
  454. + };
  455. + };
  456. +};
  457. +
  458. +&usb1 {
  459. + vusb33-supply = <&mt6323_vusb_reg>;
  460. + vbus-supply = <&usb_p1_vbus>;
  461. +// mediatek,wakeup-src = <1>;
  462. + status = "okay";
  463. +};
  464. +
  465. +&u3phy1 {
  466. + status = "okay";
  467. +};
  468. +
  469. +&pcie {
  470. + status = "okay";
  471. +};
  472. +
  473. +&eth {
  474. + status = "okay";
  475. +};
  476. +
  477. +&gmac1 {
  478. + mac-address = [00 11 22 33 44 56];
  479. + status = "okay";
  480. +};
  481. +
  482. +&gmac2 {
  483. + mac-address = [00 11 22 33 44 55];
  484. + status = "okay";
  485. +};
  486. +
  487. +&gsw {
  488. + pinctrl-names = "default";
  489. + pinctrl-0 = <&eth_default>;
  490. + mediatek,reset-pin = <&pio 15 0>;
  491. + status = "okay";
  492. +};
  493. diff --git a/arch/arm/boot/dts/mt7623.dtsi b/arch/arm/boot/dts/mt7623.dtsi
  494. new file mode 100644
  495. index 0000000..c53c10d
  496. --- /dev/null
  497. +++ b/arch/arm/boot/dts/mt7623.dtsi
  498. @@ -0,0 +1,510 @@
  499. +/*
  500. + * Copyright (c) 2016 MediaTek Inc.
  501. + * Author: John Crispin <[email protected]>
  502. + *
  503. + * This program is free software; you can redistribute it and/or modify
  504. + * it under the terms of the GNU General Public License version 2 as
  505. + * published by the Free Software Foundation.
  506. + *
  507. + * This program is distributed in the hope that it will be useful,
  508. + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  509. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  510. + * GNU General Public License for more details.
  511. + */
  512. +
  513. +#include <dt-bindings/interrupt-controller/irq.h>
  514. +#include <dt-bindings/interrupt-controller/arm-gic.h>
  515. +#include <dt-bindings/clock/mt2701-clk.h>
  516. +#include <dt-bindings/power/mt2701-power.h>
  517. +#include <dt-bindings/phy/phy.h>
  518. +#include <dt-bindings/reset-controller/mt2701-resets.h>
  519. +#include <dt-bindings/pinctrl/mt7623-pinfunc.h>
  520. +#include "skeleton64.dtsi"
  521. +
  522. +
  523. +/ {
  524. + compatible = "mediatek,mt7623";
  525. + interrupt-parent = <&sysirq>;
  526. +
  527. + cpus {
  528. + #address-cells = <1>;
  529. + #size-cells = <0>;
  530. + enable-method = "mediatek,mt6589-smp";
  531. +
  532. + cpu@0 {
  533. + device_type = "cpu";
  534. + compatible = "arm,cortex-a7";
  535. + reg = <0x0>;
  536. + };
  537. + cpu@1 {
  538. + device_type = "cpu";
  539. + compatible = "arm,cortex-a7";
  540. + reg = <0x1>;
  541. + };
  542. + cpu@2 {
  543. + device_type = "cpu";
  544. + compatible = "arm,cortex-a7";
  545. + reg = <0x2>;
  546. + };
  547. + cpu@3 {
  548. + device_type = "cpu";
  549. + compatible = "arm,cortex-a7";
  550. + reg = <0x3>;
  551. + };
  552. + };
  553. +
  554. + system_clk: dummy13m {
  555. + compatible = "fixed-clock";
  556. + clock-frequency = <13000000>;
  557. + #clock-cells = <0>;
  558. + };
  559. +
  560. + rtc_clk: dummy32k {
  561. + compatible = "fixed-clock";
  562. + clock-frequency = <32000>;
  563. + #clock-cells = <0>;
  564. + clock-output-names = "clk32k";
  565. + };
  566. +
  567. + clk26m: dummy26m {
  568. + compatible = "fixed-clock";
  569. + clock-frequency = <26000000>;
  570. + #clock-cells = <0>;
  571. + clock-output-names = "clk26m";
  572. + };
  573. +
  574. + timer {
  575. + compatible = "arm,armv7-timer";
  576. + interrupt-parent = <&gic>;
  577. + interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
  578. + <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
  579. + <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
  580. + <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
  581. + };
  582. +
  583. + topckgen: power-controller@10000000 {
  584. + compatible = "mediatek,mt7623-topckgen",
  585. + "mediatek,mt2701-topckgen",
  586. + "syscon";
  587. + reg = <0 0x10000000 0 0x1000>;
  588. + #clock-cells = <1>;
  589. + };
  590. +
  591. + infracfg: power-controller@10001000 {
  592. + compatible = "mediatek,mt7623-infracfg",
  593. + "mediatek,mt2701-infracfg",
  594. + "syscon";
  595. + reg = <0 0x10001000 0 0x1000>;
  596. + #clock-cells = <1>;
  597. + #reset-cells = <1>;
  598. + };
  599. +
  600. + pericfg: pericfg@10003000 {
  601. + compatible = "mediatek,mt7623-pericfg",
  602. + "mediatek,mt2701-pericfg",
  603. + "syscon";
  604. + reg = <0 0x10003000 0 0x1000>;
  605. + #clock-cells = <1>;
  606. + #reset-cells = <1>;
  607. + };
  608. +
  609. + pio: pinctrl@10005000 {
  610. + compatible = "mediatek,mt7623-pinctrl";
  611. + reg = <0 0x1000b000 0 0x1000>;
  612. + mediatek,pctl-regmap = <&syscfg_pctl_a>;
  613. + pins-are-numbered;
  614. + gpio-controller;
  615. + #gpio-cells = <2>;
  616. + interrupt-controller;
  617. + interrupt-parent = <&gic>;
  618. + #interrupt-cells = <2>;
  619. + interrupts = <GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH>,
  620. + <GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH>;
  621. + };
  622. +
  623. + syscfg_pctl_a: syscfg@10005000 {
  624. + compatible = "mediatek,mt7623-pctl-a-syscfg", "syscon";
  625. + reg = <0 0x10005000 0 0x1000>;
  626. + };
  627. +
  628. + scpsys: scpsys@10006000 {
  629. + #power-domain-cells = <1>;
  630. + compatible = "mediatek,mt7623-scpsys",
  631. + "mediatek,mt2701-scpsys";
  632. + reg = <0 0x10006000 0 0x1000>;
  633. + infracfg = <&infracfg>;
  634. + clocks = <&clk26m>,
  635. + <&topckgen CLK_TOP_MM_SEL>;
  636. + clock-names = "mfg", "mm";
  637. + };
  638. +
  639. + watchdog: watchdog@10007000 {
  640. + compatible = "mediatek,mt7623-wdt",
  641. + "mediatek,mt6589-wdt";
  642. + reg = <0 0x10007000 0 0x100>;
  643. + };
  644. +
  645. + timer: timer@10008000 {
  646. + compatible = "mediatek,mt7623-timer",
  647. + "mediatek,mt6577-timer";
  648. + reg = <0 0x10008000 0 0x80>;
  649. + interrupts = <GIC_SPI 112 IRQ_TYPE_LEVEL_LOW>;
  650. + clocks = <&system_clk>, <&rtc_clk>;
  651. + clock-names = "system-clk", "rtc-clk";
  652. + };
  653. +
  654. + pwrap: pwrap@1000d000 {
  655. + compatible = "mediatek,mt7623-pwrap",
  656. + "mediatek,mt2701-pwrap";
  657. + reg = <0 0x1000d000 0 0x1000>;
  658. + reg-names = "pwrap";
  659. + interrupts = <GIC_SPI 115 IRQ_TYPE_LEVEL_HIGH>;
  660. + resets = <&infracfg MT2701_INFRA_PMIC_WRAP_RST>;
  661. + reset-names = "pwrap";
  662. + clocks = <&infracfg CLK_INFRA_PMICSPI>,
  663. + <&infracfg CLK_INFRA_PMICWRAP>;
  664. + clock-names = "spi", "wrap";
  665. + };
  666. +
  667. + sysirq: interrupt-controller@10200100 {
  668. + compatible = "mediatek,mt7623-sysirq",
  669. + "mediatek,mt6577-sysirq";
  670. + interrupt-controller;
  671. + #interrupt-cells = <3>;
  672. + interrupt-parent = <&gic>;
  673. + reg = <0 0x10200100 0 0x1c>;
  674. + };
  675. +
  676. + apmixedsys: apmixedsys@10209000 {
  677. + compatible = "mediatek,mt7623-apmixedsys",
  678. + "mediatek,mt2701-apmixedsys";
  679. + reg = <0 0x10209000 0 0x1000>;
  680. + #clock-cells = <1>;
  681. + };
  682. +
  683. + gic: interrupt-controller@10211000 {
  684. + compatible = "arm,cortex-a7-gic";
  685. + interrupt-controller;
  686. + #interrupt-cells = <3>;
  687. + interrupt-parent = <&gic>;
  688. + reg = <0 0x10211000 0 0x1000>,
  689. + <0 0x10212000 0 0x1000>,
  690. + <0 0x10214000 0 0x2000>,
  691. + <0 0x10216000 0 0x2000>;
  692. + };
  693. +
  694. + i2c0: i2c@11007000 {
  695. + compatible = "mediatek,mt7623-i2c",
  696. + "mediatek,mt6577-i2c";
  697. + reg = <0 0x11007000 0 0x70>,
  698. + <0 0x11000200 0 0x80>;
  699. + interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_LOW>;
  700. + clock-div = <16>;
  701. + clocks = <&pericfg CLK_PERI_I2C0>,
  702. + <&pericfg CLK_PERI_AP_DMA>;
  703. + clock-names = "main", "dma";
  704. + #address-cells = <1>;
  705. + #size-cells = <0>;
  706. + status = "disabled";
  707. + };
  708. +
  709. + i2c1: i2c@11008000 {
  710. + compatible = "mediatek,mt7623-i2c",
  711. + "mediatek,mt6577-i2c";
  712. + reg = <0 0x11008000 0 0x70>,
  713. + <0 0x11000280 0 0x80>;
  714. + interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_LOW>;
  715. + clock-div = <16>;
  716. + clocks = <&pericfg CLK_PERI_I2C1>,
  717. + <&pericfg CLK_PERI_AP_DMA>;
  718. + clock-names = "main", "dma";
  719. + #address-cells = <1>;
  720. + #size-cells = <0>;
  721. + status = "disabled";
  722. + };
  723. +
  724. + i2c2: i2c@11009000 {
  725. + compatible = "mediatek,mt7623-i2c",
  726. + "mediatek,mt6577-i2c";
  727. + reg = <0 0x11009000 0 0x70>,
  728. + <0 0x11000300 0 0x80>;
  729. + interrupts = <GIC_SPI 46 IRQ_TYPE_LEVEL_LOW>;
  730. + clock-div = <16>;
  731. + clocks = <&pericfg CLK_PERI_I2C2>,
  732. + <&pericfg CLK_PERI_AP_DMA>;
  733. + clock-names = "main", "dma";
  734. + #address-cells = <1>;
  735. + #size-cells = <0>;
  736. + status = "disabled";
  737. + };
  738. +
  739. + uart0: serial@11002000 {
  740. + compatible = "mediatek,mt7623-uart",
  741. + "mediatek,mt6577-uart";
  742. + reg = <0 0x11002000 0 0x400>;
  743. + interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_LOW>;
  744. + clocks = <&pericfg CLK_PERI_UART0_SEL>,
  745. + <&pericfg CLK_PERI_UART0>;
  746. + clock-names = "baud", "bus";
  747. + status = "disabled";
  748. + };
  749. +
  750. + uart1: serial@11003000 {
  751. + compatible = "mediatek,mt7623-uart",
  752. + "mediatek,mt6577-uart";
  753. + reg = <0 0x11003000 0 0x400>;
  754. + interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_LOW>;
  755. + clocks = <&pericfg CLK_PERI_UART1_SEL>,
  756. + <&pericfg CLK_PERI_UART1>;
  757. + clock-names = "baud", "bus";
  758. + status = "disabled";
  759. + };
  760. +
  761. + uart2: serial@11004000 {
  762. + compatible = "mediatek,mt7623-uart",
  763. + "mediatek,mt6577-uart";
  764. + reg = <0 0x11004000 0 0x400>;
  765. + interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_LOW>;
  766. + clocks = <&pericfg CLK_PERI_UART2_SEL>,
  767. + <&pericfg CLK_PERI_UART2>;
  768. + clock-names = "baud", "bus";
  769. + status = "disabled";
  770. + };
  771. +
  772. + uart3: serial@11005000 {
  773. + compatible = "mediatek,mt7623-uart",
  774. + "mediatek,mt6577-uart";
  775. + reg = <0 0x11005000 0 0x400>;
  776. + interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_LOW>;
  777. + clocks = <&pericfg CLK_PERI_UART3_SEL>,
  778. + <&pericfg CLK_PERI_UART3>;
  779. + clock-names = "baud", "bus";
  780. + status = "disabled";
  781. + };
  782. +
  783. + spi: spi@1100a000 {
  784. + compatible = "mediatek,mt7623-spi", "mediatek,mt6589-spi";
  785. + reg = <0 0x1100a000 0 0x1000>;
  786. + interrupts = <GIC_SPI 78 IRQ_TYPE_LEVEL_LOW>;
  787. + clocks = <&pericfg CLK_PERI_SPI0>;
  788. + clock-names = "main";
  789. +
  790. + status = "disabled";
  791. + };
  792. +
  793. + mmc0: mmc@11230000 {
  794. + compatible = "mediatek,mt7623-mmc",
  795. + "mediatek,mt8135-mmc";
  796. + reg = <0 0x11230000 0 0x1000>;
  797. + interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_LOW>;
  798. + clocks = <&pericfg CLK_PERI_MSDC30_0>,
  799. + <&topckgen CLK_TOP_MSDC30_0_SEL>;
  800. + clock-names = "source", "hclk";
  801. + status = "disabled";
  802. + };
  803. +
  804. + mmc1: mmc@11240000 {
  805. + compatible = "mediatek,mt7623-mmc",
  806. + "mediatek,mt8135-mmc";
  807. + reg = <0 0x11240000 0 0x1000>;
  808. + interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_LOW>;
  809. + clocks = <&pericfg CLK_PERI_MSDC30_1>,
  810. + <&topckgen CLK_TOP_MSDC30_1_SEL>;
  811. + clock-names = "source", "hclk";
  812. + status = "disabled";
  813. + };
  814. +
  815. + usb1: usb@1a1c0000 {
  816. + compatible = "mediatek,mt2701-xhci",
  817. + "mediatek,mt8173-xhci";
  818. + reg = <0 0x1a1c0000 0 0x1000>,
  819. + <0 0x1a1c4700 0 0x0100>;
  820. + interrupts = <GIC_SPI 196 IRQ_TYPE_LEVEL_LOW>;
  821. + clocks = <&hifsys CLK_HIFSYS_USB0PHY>,
  822. + <&topckgen CLK_TOP_ETHIF_SEL>;
  823. + clock-names = "sys_ck", "ethif";
  824. + power-domains = <&scpsys MT2701_POWER_DOMAIN_HIF>;
  825. + phys = <&phy_port0 PHY_TYPE_USB3>;
  826. + status = "disabled";
  827. + };
  828. +
  829. + u3phy1: usb-phy@1a1c4000 {
  830. + compatible = "mediatek,mt2701-u3phy",
  831. + "mediatek,mt8173-u3phy";
  832. + reg = <0 0x1a1c4000 0 0x0700>;
  833. + clocks = <&clk26m>;
  834. + clock-names = "u3phya_ref";
  835. + #phy-cells = <1>;
  836. + #address-cells = <2>;
  837. + #size-cells = <2>;
  838. + ranges;
  839. + status = "disabled";
  840. +
  841. + phy_port0: phy_port0: port@1a1c4800 {
  842. + reg = <0 0x1a1c4800 0 0x800>;
  843. + #phy-cells = <1>;
  844. + status = "okay";
  845. + };
  846. + };
  847. +
  848. + usb2: usb@1a240000 {
  849. + compatible = "mediatek,mt2701-xhci",
  850. + "mediatek,mt8173-xhci";
  851. + reg = <0 0x1a240000 0 0x1000>,
  852. + <0 0x1a244700 0 0x0100>;
  853. + interrupts = <GIC_SPI 197 IRQ_TYPE_LEVEL_LOW>;
  854. + clocks = <&hifsys CLK_HIFSYS_USB1PHY>,
  855. + <&topckgen CLK_TOP_ETHIF_SEL>;
  856. + clock-names = "sys_ck", "ethif";
  857. + power-domains = <&scpsys MT2701_POWER_DOMAIN_HIF>;
  858. + phys = <&u3phy2 0>;
  859. + status = "disabled";
  860. + };
  861. +
  862. + u3phy2: usb-phy@1a244000 {
  863. + compatible = "mediatek,mt2701-u3phy",
  864. + "mediatek,mt8173-u3phy";
  865. + reg = <0 0x1a244000 0 0x0700>,
  866. + <0 0x1a244800 0 0x0800>;
  867. + clocks = <&clk26m>;
  868. + clock-names = "u3phya_ref";
  869. + #phy-cells = <1>;
  870. + status = "disabled";
  871. + };
  872. +
  873. + hifsys: clock-controller@1a000000 {
  874. + compatible = "mediatek,mt7623-hifsys",
  875. + "mediatek,mt2701-hifsys",
  876. + "syscon";
  877. + reg = <0 0x1a000000 0 0x1000>;
  878. + #clock-cells = <1>;
  879. + #reset-cells = <1>;
  880. + };
  881. +
  882. + pcie: pcie@1a140000 {
  883. + compatible = "mediatek,mt7623-pcie";
  884. + device_type = "pci";
  885. + reg = <0 0x1a140000 0 0x8000>, /* PCI-Express registers */
  886. + <0 0x1a149000 0 0x1000>, /* PCI-Express PHY0 */
  887. + <0 0x1a14a000 0 0x1000>, /* PCI-Express PHY1 */
  888. + <0 0x1a244000 0 0x1000>; /* PCI-Express PHY2 */
  889. + reg-names = "pcie", "pcie phy0", "pcie phy1", "pcie phy2";
  890. + interrupts = <GIC_SPI 193 IRQ_TYPE_LEVEL_LOW>,
  891. + <GIC_SPI 194 IRQ_TYPE_LEVEL_LOW>,
  892. + <GIC_SPI 195 IRQ_TYPE_LEVEL_LOW>;
  893. + interrupt-names = "pcie0", "pcie1", "pcie2";
  894. + clocks = <&topckgen CLK_TOP_ETHIF_SEL>;
  895. + clock-names = "pcie";
  896. + power-domains = <&scpsys MT2701_POWER_DOMAIN_HIF>;
  897. + resets = <&hifsys MT2701_HIFSYS_PCIE0_RST>,
  898. + <&hifsys MT2701_HIFSYS_PCIE1_RST>,
  899. + <&hifsys MT2701_HIFSYS_PCIE2_RST>;
  900. + reset-names = "pcie0", "pcie1", "pcie2";
  901. +
  902. + mediatek,hifsys = <&hifsys>;
  903. +
  904. + bus-range = <0x00 0xff>;
  905. + #address-cells = <3>;
  906. + #size-cells = <2>;
  907. +
  908. + ranges = <0x81000000 0 0x1a160000 0 0x1a160000 0 0x00010000 /* io space */
  909. + 0x83000000 0 0x60000000 0 0x60000000 0 0x10000000>; /* pci memory */
  910. +
  911. + status = "disabled";
  912. +
  913. + pcie@1,0 {
  914. + device_type = "pci";
  915. + reg = <0x0800 0 0 0 0>;
  916. +
  917. + #address-cells = <3>;
  918. + #size-cells = <2>;
  919. + ranges;
  920. + };
  921. +
  922. + pcie@2,0{
  923. + device_type = "pci";
  924. + reg = <0x1000 0 0 0 0>;
  925. +
  926. + #address-cells = <3>;
  927. + #size-cells = <2>;
  928. + ranges;
  929. + };
  930. +
  931. + pcie@3,0{
  932. + device_type = "pci";
  933. + reg = <0x1800 0 0 0 0>;
  934. +
  935. + #address-cells = <3>;
  936. + #size-cells = <2>;
  937. + ranges;
  938. + };
  939. + };
  940. +
  941. + ethsys: syscon@1b000000 {
  942. + #address-cells = <1>;
  943. + #size-cells = <1>;
  944. + compatible = "mediatek,mt2701-ethsys", "syscon";
  945. + reg = <0 0x1b000000 0 0x1000>;
  946. + #clock-cells = <1>;
  947. + };
  948. +
  949. + eth: ethernet@1b100000 {
  950. + compatible = "mediatek,mt7623-eth";
  951. + reg = <0 0x1b100000 0 0x10000>;
  952. +
  953. + clocks = <&topckgen CLK_TOP_ETHIF_SEL>;
  954. + clock-names = "ethif";
  955. + interrupts = <GIC_SPI 200 IRQ_TYPE_LEVEL_LOW
  956. + GIC_SPI 199 IRQ_TYPE_LEVEL_LOW
  957. + GIC_SPI 198 IRQ_TYPE_LEVEL_LOW>;
  958. + power-domains = <&scpsys MT2701_POWER_DOMAIN_ETH>;
  959. +
  960. + mediatek,ethsys = <&ethsys>;
  961. + mediatek,switch = <&gsw>;
  962. +
  963. + #address-cells = <1>;
  964. + #size-cells = <0>;
  965. +
  966. + status = "disabled";
  967. +
  968. + gmac1: mac@0 {
  969. + compatible = "mediatek,eth-mac";
  970. + reg = <0>;
  971. +
  972. + status = "disabled";
  973. + };
  974. +
  975. + gmac2: mac@1 {
  976. + compatible = "mediatek,eth-mac";
  977. + reg = <1>;
  978. +
  979. + status = "disabled";
  980. + };
  981. +
  982. + mdio-bus {
  983. + #address-cells = <1>;
  984. + #size-cells = <0>;
  985. +
  986. + phy1f: ethernet-phy@1f {
  987. + reg = <0x1f>;
  988. + phy-mode = "rgmii";
  989. + };
  990. + };
  991. + };
  992. +
  993. + gsw: switch@1b100000 {
  994. + compatible = "mediatek,mt7623-gsw";
  995. + reg = <0 0x1b110000 0 0x300000>;
  996. + interrupt-parent = <&pio>;
  997. + interrupts = <168 IRQ_TYPE_EDGE_RISING>;
  998. + clocks = <&apmixedsys CLK_APMIXED_TRGPLL>,
  999. + <&ethsys CLK_ETHSYS_ESW>,
  1000. + <&ethsys CLK_ETHSYS_GP2>,
  1001. + <&ethsys CLK_ETHSYS_GP1>;
  1002. + clock-names = "trgpll", "esw", "gp2", "gp1";
  1003. + mt7530-supply = <&mt6323_vpa_reg>;
  1004. + mediatek,pctl-regmap = <&syscfg_pctl_a>;
  1005. + mediatek,ethsys = <&ethsys>;
  1006. + status = "disabled";
  1007. + };
  1008. +};
  1009. diff --git a/arch/arm/mach-mediatek/Kconfig b/arch/arm/mach-mediatek/Kconfig
  1010. index 37dd438..7fb605e 100644
  1011. --- a/arch/arm/mach-mediatek/Kconfig
  1012. +++ b/arch/arm/mach-mediatek/Kconfig
  1013. @@ -21,6 +21,10 @@ config MACH_MT6592
  1014. bool "MediaTek MT6592 SoCs support"
  1015. default ARCH_MEDIATEK
  1016. +config MACH_MT7623
  1017. + bool "MediaTek MT7623 SoCs support"
  1018. + default ARCH_MEDIATEK
  1019. +
  1020. config MACH_MT8127
  1021. bool "MediaTek MT8127 SoCs support"
  1022. default ARCH_MEDIATEK
  1023. diff --git a/arch/arm/mach-mediatek/mediatek.c b/arch/arm/mach-mediatek/mediatek.c
  1024. index d019a08..bcfca37 100644
  1025. --- a/arch/arm/mach-mediatek/mediatek.c
  1026. +++ b/arch/arm/mach-mediatek/mediatek.c
  1027. @@ -46,6 +46,7 @@ static void __init mediatek_timer_init(void)
  1028. static const char * const mediatek_board_dt_compat[] = {
  1029. "mediatek,mt6589",
  1030. "mediatek,mt6592",
  1031. + "mediatek,mt7623",
  1032. "mediatek,mt8127",
  1033. "mediatek,mt8135",
  1034. NULL,
  1035. --
  1036. 1.7.10.4