WIP FPC-III support
[linux/fpc-iii.git] / arch / arm / boot / dts / mt7623.dtsi
blobaea6809500d7484c3d9daf8c90f9fd9320c8c36c
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3  * Copyright (c) 2017-2018 MediaTek Inc.
4  * Author: John Crispin <john@phrozen.org>
5  *         Sean Wang <sean.wang@mediatek.com>
6  *         Ryder Lee <ryder.lee@mediatek.com>
7  *
8  */
10 #include <dt-bindings/interrupt-controller/irq.h>
11 #include <dt-bindings/interrupt-controller/arm-gic.h>
12 #include <dt-bindings/clock/mt2701-clk.h>
13 #include <dt-bindings/pinctrl/mt7623-pinfunc.h>
14 #include <dt-bindings/power/mt2701-power.h>
15 #include <dt-bindings/gpio/gpio.h>
16 #include <dt-bindings/phy/phy.h>
17 #include <dt-bindings/reset/mt2701-resets.h>
18 #include <dt-bindings/thermal/thermal.h>
20 / {
21         compatible = "mediatek,mt7623";
22         interrupt-parent = <&sysirq>;
23         #address-cells = <2>;
24         #size-cells = <2>;
26         cpu_opp_table: opp-table {
27                 compatible = "operating-points-v2";
28                 opp-shared;
30                 opp-98000000 {
31                         opp-hz = /bits/ 64 <98000000>;
32                         opp-microvolt = <1050000>;
33                 };
35                 opp-198000000 {
36                         opp-hz = /bits/ 64 <198000000>;
37                         opp-microvolt = <1050000>;
38                 };
40                 opp-398000000 {
41                         opp-hz = /bits/ 64 <398000000>;
42                         opp-microvolt = <1050000>;
43                 };
45                 opp-598000000 {
46                         opp-hz = /bits/ 64 <598000000>;
47                         opp-microvolt = <1050000>;
48                 };
50                 opp-747500000 {
51                         opp-hz = /bits/ 64 <747500000>;
52                         opp-microvolt = <1050000>;
53                 };
55                 opp-1040000000 {
56                         opp-hz = /bits/ 64 <1040000000>;
57                         opp-microvolt = <1150000>;
58                 };
60                 opp-1196000000 {
61                         opp-hz = /bits/ 64 <1196000000>;
62                         opp-microvolt = <1200000>;
63                 };
65                 opp-1300000000 {
66                         opp-hz = /bits/ 64 <1300000000>;
67                         opp-microvolt = <1300000>;
68                 };
69         };
71         cpus {
72                 #address-cells = <1>;
73                 #size-cells = <0>;
74                 enable-method = "mediatek,mt6589-smp";
76                 cpu0: cpu@0 {
77                         device_type = "cpu";
78                         compatible = "arm,cortex-a7";
79                         reg = <0x0>;
80                         clocks = <&infracfg CLK_INFRA_CPUSEL>,
81                                  <&apmixedsys CLK_APMIXED_MAINPLL>;
82                         clock-names = "cpu", "intermediate";
83                         operating-points-v2 = <&cpu_opp_table>;
84                         #cooling-cells = <2>;
85                         clock-frequency = <1300000000>;
86                 };
88                 cpu1: cpu@1 {
89                         device_type = "cpu";
90                         compatible = "arm,cortex-a7";
91                         reg = <0x1>;
92                         clocks = <&infracfg CLK_INFRA_CPUSEL>,
93                                  <&apmixedsys CLK_APMIXED_MAINPLL>;
94                         clock-names = "cpu", "intermediate";
95                         operating-points-v2 = <&cpu_opp_table>;
96                         #cooling-cells = <2>;
97                         clock-frequency = <1300000000>;
98                 };
100                 cpu2: cpu@2 {
101                         device_type = "cpu";
102                         compatible = "arm,cortex-a7";
103                         reg = <0x2>;
104                         clocks = <&infracfg CLK_INFRA_CPUSEL>,
105                                  <&apmixedsys CLK_APMIXED_MAINPLL>;
106                         clock-names = "cpu", "intermediate";
107                         operating-points-v2 = <&cpu_opp_table>;
108                         #cooling-cells = <2>;
109                         clock-frequency = <1300000000>;
110                 };
112                 cpu3: cpu@3 {
113                         device_type = "cpu";
114                         compatible = "arm,cortex-a7";
115                         reg = <0x3>;
116                         clocks = <&infracfg CLK_INFRA_CPUSEL>,
117                                  <&apmixedsys CLK_APMIXED_MAINPLL>;
118                         clock-names = "cpu", "intermediate";
119                         operating-points-v2 = <&cpu_opp_table>;
120                         #cooling-cells = <2>;
121                         clock-frequency = <1300000000>;
122                 };
123         };
125         pmu {
126                 compatible = "arm,cortex-a7-pmu";
127                 interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_LOW>,
128                              <GIC_SPI 5 IRQ_TYPE_LEVEL_LOW>,
129                              <GIC_SPI 6 IRQ_TYPE_LEVEL_LOW>,
130                              <GIC_SPI 7 IRQ_TYPE_LEVEL_LOW>;
131                 interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>;
132         };
134         system_clk: dummy13m {
135                 compatible = "fixed-clock";
136                 clock-frequency = <13000000>;
137                 #clock-cells = <0>;
138         };
140         rtc32k: oscillator-1 {
141                 compatible = "fixed-clock";
142                 #clock-cells = <0>;
143                 clock-frequency = <32000>;
144                 clock-output-names = "rtc32k";
145         };
147         clk26m: oscillator-0 {
148                 compatible = "fixed-clock";
149                 #clock-cells = <0>;
150                 clock-frequency = <26000000>;
151                 clock-output-names = "clk26m";
152         };
154         thermal-zones {
155                         cpu_thermal: cpu-thermal {
156                                 polling-delay-passive = <1000>;
157                                 polling-delay = <1000>;
159                                 thermal-sensors = <&thermal 0>;
161                                 trips {
162                                         cpu_passive: cpu-passive {
163                                                 temperature = <47000>;
164                                                 hysteresis = <2000>;
165                                                 type = "passive";
166                                         };
168                                         cpu_active: cpu-active {
169                                                 temperature = <67000>;
170                                                 hysteresis = <2000>;
171                                                 type = "active";
172                                         };
174                                         cpu_hot: cpu-hot {
175                                                 temperature = <87000>;
176                                                 hysteresis = <2000>;
177                                                 type = "hot";
178                                         };
180                                         cpu-crit {
181                                                 temperature = <107000>;
182                                                 hysteresis = <2000>;
183                                                 type = "critical";
184                                         };
185                                 };
187                         cooling-maps {
188                                 map0 {
189                                         trip = <&cpu_passive>;
190                                         cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
191                                                          <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
192                                                          <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
193                                                          <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
194                                 };
196                                 map1 {
197                                         trip = <&cpu_active>;
198                                         cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
199                                                          <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
200                                                          <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
201                                                          <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
202                                 };
204                                 map2 {
205                                         trip = <&cpu_hot>;
206                                         cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
207                                                          <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
208                                                          <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
209                                                          <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
210                                 };
211                         };
212                 };
213         };
215         timer {
216                 compatible = "arm,armv7-timer";
217                 interrupt-parent = <&gic>;
218                 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
219                              <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
220                              <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
221                              <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
222                 clock-frequency = <13000000>;
223                 arm,cpu-registers-not-fw-configured;
224         };
226         topckgen: syscon@10000000 {
227                 compatible = "mediatek,mt7623-topckgen",
228                              "mediatek,mt2701-topckgen",
229                              "syscon";
230                 reg = <0 0x10000000 0 0x1000>;
231                 #clock-cells = <1>;
232         };
234         infracfg: syscon@10001000 {
235                 compatible = "mediatek,mt7623-infracfg",
236                              "mediatek,mt2701-infracfg",
237                              "syscon";
238                 reg = <0 0x10001000 0 0x1000>;
239                 #clock-cells = <1>;
240                 #reset-cells = <1>;
241         };
243         pericfg: syscon@10003000 {
244                 compatible =  "mediatek,mt7623-pericfg",
245                               "mediatek,mt2701-pericfg",
246                               "syscon";
247                 reg = <0 0x10003000 0 0x1000>;
248                 #clock-cells = <1>;
249                 #reset-cells = <1>;
250         };
252         pio: pinctrl@10005000 {
253                 compatible = "mediatek,mt7623-pinctrl";
254                 reg = <0 0x1000b000 0 0x1000>;
255                 mediatek,pctl-regmap = <&syscfg_pctl_a>;
256                 pins-are-numbered;
257                 gpio-controller;
258                 #gpio-cells = <2>;
259                 interrupt-controller;
260                 interrupt-parent = <&gic>;
261                 #interrupt-cells = <2>;
262                 interrupts = <GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH>,
263                              <GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH>;
264         };
266         syscfg_pctl_a: syscfg@10005000 {
267                 compatible = "mediatek,mt7623-pctl-a-syscfg", "syscon";
268                 reg = <0 0x10005000 0 0x1000>;
269         };
271         scpsys: power-controller@10006000 {
272                 compatible = "mediatek,mt7623-scpsys",
273                              "mediatek,mt2701-scpsys",
274                              "syscon";
275                 #power-domain-cells = <1>;
276                 reg = <0 0x10006000 0 0x1000>;
277                 infracfg = <&infracfg>;
278                 clocks = <&topckgen CLK_TOP_MM_SEL>,
279                          <&topckgen CLK_TOP_MFG_SEL>,
280                          <&topckgen CLK_TOP_ETHIF_SEL>;
281                 clock-names = "mm", "mfg", "ethif";
282         };
284         watchdog: watchdog@10007000 {
285                 compatible = "mediatek,mt7623-wdt",
286                              "mediatek,mt6589-wdt";
287                 reg = <0 0x10007000 0 0x100>;
288         };
290         timer: timer@10008000 {
291                 compatible = "mediatek,mt7623-timer",
292                              "mediatek,mt6577-timer";
293                 reg = <0 0x10008000 0 0x80>;
294                 interrupts = <GIC_SPI 112 IRQ_TYPE_LEVEL_LOW>;
295                 clocks = <&system_clk>, <&rtc32k>;
296                 clock-names = "system-clk", "rtc-clk";
297         };
299         pwrap: pwrap@1000d000 {
300                 compatible = "mediatek,mt7623-pwrap",
301                              "mediatek,mt2701-pwrap";
302                 reg = <0 0x1000d000 0 0x1000>;
303                 reg-names = "pwrap";
304                 interrupts = <GIC_SPI 115 IRQ_TYPE_LEVEL_HIGH>;
305                 resets = <&infracfg MT2701_INFRA_PMIC_WRAP_RST>;
306                 reset-names = "pwrap";
307                 clocks = <&infracfg CLK_INFRA_PMICSPI>,
308                          <&infracfg CLK_INFRA_PMICWRAP>;
309                 clock-names = "spi", "wrap";
310         };
312         cir: cir@10013000 {
313                 compatible = "mediatek,mt7623-cir";
314                 reg = <0 0x10013000 0 0x1000>;
315                 interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_LOW>;
316                 clocks = <&infracfg CLK_INFRA_IRRX>;
317                 clock-names = "clk";
318                 status = "disabled";
319         };
321         sysirq: interrupt-controller@10200100 {
322                 compatible = "mediatek,mt7623-sysirq",
323                              "mediatek,mt6577-sysirq";
324                 interrupt-controller;
325                 #interrupt-cells = <3>;
326                 interrupt-parent = <&gic>;
327                 reg = <0 0x10200100 0 0x1c>;
328         };
330         efuse: efuse@10206000 {
331                 compatible = "mediatek,mt7623-efuse",
332                              "mediatek,mt8173-efuse";
333                 reg = <0 0x10206000 0 0x1000>;
334                 #address-cells = <1>;
335                 #size-cells = <1>;
336                 thermal_calibration_data: calib@424 {
337                         reg = <0x424 0xc>;
338                 };
339         };
341         apmixedsys: syscon@10209000 {
342                 compatible = "mediatek,mt7623-apmixedsys",
343                              "mediatek,mt2701-apmixedsys",
344                              "syscon";
345                 reg = <0 0x10209000 0 0x1000>;
346                 #clock-cells = <1>;
347         };
349         rng: rng@1020f000 {
350                 compatible = "mediatek,mt7623-rng";
351                 reg = <0 0x1020f000 0 0x1000>;
352                 clocks = <&infracfg CLK_INFRA_TRNG>;
353                 clock-names = "rng";
354         };
356         gic: interrupt-controller@10211000 {
357                 compatible = "arm,cortex-a7-gic";
358                 interrupt-controller;
359                 #interrupt-cells = <3>;
360                 interrupt-parent = <&gic>;
361                 reg = <0 0x10211000 0 0x1000>,
362                       <0 0x10212000 0 0x2000>,
363                       <0 0x10214000 0 0x2000>,
364                       <0 0x10216000 0 0x2000>;
365         };
367         auxadc: adc@11001000 {
368                 compatible = "mediatek,mt7623-auxadc",
369                              "mediatek,mt2701-auxadc";
370                 reg = <0 0x11001000 0 0x1000>;
371                 clocks = <&pericfg CLK_PERI_AUXADC>;
372                 clock-names = "main";
373                 #io-channel-cells = <1>;
374         };
376         uart0: serial@11002000 {
377                 compatible = "mediatek,mt7623-uart",
378                              "mediatek,mt6577-uart";
379                 reg = <0 0x11002000 0 0x400>;
380                 interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_LOW>;
381                 clocks = <&pericfg CLK_PERI_UART0_SEL>,
382                          <&pericfg CLK_PERI_UART0>;
383                 clock-names = "baud", "bus";
384                 status = "disabled";
385         };
387         uart1: serial@11003000 {
388                 compatible = "mediatek,mt7623-uart",
389                              "mediatek,mt6577-uart";
390                 reg = <0 0x11003000 0 0x400>;
391                 interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_LOW>;
392                 clocks = <&pericfg CLK_PERI_UART1_SEL>,
393                          <&pericfg CLK_PERI_UART1>;
394                 clock-names = "baud", "bus";
395                 status = "disabled";
396         };
398         uart2: serial@11004000 {
399                 compatible = "mediatek,mt7623-uart",
400                              "mediatek,mt6577-uart";
401                 reg = <0 0x11004000 0 0x400>;
402                 interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_LOW>;
403                 clocks = <&pericfg CLK_PERI_UART2_SEL>,
404                          <&pericfg CLK_PERI_UART2>;
405                 clock-names = "baud", "bus";
406                 status = "disabled";
407         };
409         uart3: serial@11005000 {
410                 compatible = "mediatek,mt7623-uart",
411                              "mediatek,mt6577-uart";
412                 reg = <0 0x11005000 0 0x400>;
413                 interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_LOW>;
414                 clocks = <&pericfg CLK_PERI_UART3_SEL>,
415                          <&pericfg CLK_PERI_UART3>;
416                 clock-names = "baud", "bus";
417                 status = "disabled";
418         };
420         pwm: pwm@11006000 {
421                 compatible = "mediatek,mt7623-pwm";
422                 reg = <0 0x11006000 0 0x1000>;
423                 #pwm-cells = <2>;
424                 clocks = <&topckgen CLK_TOP_PWM_SEL>,
425                          <&pericfg CLK_PERI_PWM>,
426                          <&pericfg CLK_PERI_PWM1>,
427                          <&pericfg CLK_PERI_PWM2>,
428                          <&pericfg CLK_PERI_PWM3>,
429                          <&pericfg CLK_PERI_PWM4>,
430                          <&pericfg CLK_PERI_PWM5>;
431                 clock-names = "top", "main", "pwm1", "pwm2",
432                               "pwm3", "pwm4", "pwm5";
433                 status = "disabled";
434         };
436         i2c0: i2c@11007000 {
437                 compatible = "mediatek,mt7623-i2c",
438                              "mediatek,mt6577-i2c";
439                 reg = <0 0x11007000 0 0x70>,
440                       <0 0x11000200 0 0x80>;
441                 interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_LOW>;
442                 clock-div = <16>;
443                 clocks = <&pericfg CLK_PERI_I2C0>,
444                          <&pericfg CLK_PERI_AP_DMA>;
445                 clock-names = "main", "dma";
446                 #address-cells = <1>;
447                 #size-cells = <0>;
448                 status = "disabled";
449         };
451         i2c1: i2c@11008000 {
452                 compatible = "mediatek,mt7623-i2c",
453                              "mediatek,mt6577-i2c";
454                 reg = <0 0x11008000 0 0x70>,
455                       <0 0x11000280 0 0x80>;
456                 interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_LOW>;
457                 clock-div = <16>;
458                 clocks = <&pericfg CLK_PERI_I2C1>,
459                          <&pericfg CLK_PERI_AP_DMA>;
460                 clock-names = "main", "dma";
461                 #address-cells = <1>;
462                 #size-cells = <0>;
463                 status = "disabled";
464         };
466         i2c2: i2c@11009000 {
467                 compatible = "mediatek,mt7623-i2c",
468                              "mediatek,mt6577-i2c";
469                 reg = <0 0x11009000 0 0x70>,
470                       <0 0x11000300 0 0x80>;
471                 interrupts = <GIC_SPI 46 IRQ_TYPE_LEVEL_LOW>;
472                 clock-div = <16>;
473                 clocks = <&pericfg CLK_PERI_I2C2>,
474                          <&pericfg CLK_PERI_AP_DMA>;
475                 clock-names = "main", "dma";
476                 #address-cells = <1>;
477                 #size-cells = <0>;
478                 status = "disabled";
479         };
481         spi0: spi@1100a000 {
482                 compatible = "mediatek,mt7623-spi",
483                              "mediatek,mt2701-spi";
484                 #address-cells = <1>;
485                 #size-cells = <0>;
486                 reg = <0 0x1100a000 0 0x100>;
487                 interrupts = <GIC_SPI 78 IRQ_TYPE_LEVEL_LOW>;
488                 clocks = <&topckgen CLK_TOP_SYSPLL3_D2>,
489                          <&topckgen CLK_TOP_SPI0_SEL>,
490                          <&pericfg CLK_PERI_SPI0>;
491                 clock-names = "parent-clk", "sel-clk", "spi-clk";
492                 status = "disabled";
493         };
495         thermal: thermal@1100b000 {
496                 #thermal-sensor-cells = <1>;
497                 compatible = "mediatek,mt7623-thermal",
498                              "mediatek,mt2701-thermal";
499                 reg = <0 0x1100b000 0 0x1000>;
500                 interrupts = <0 70 IRQ_TYPE_LEVEL_LOW>;
501                 clocks = <&pericfg CLK_PERI_THERM>, <&pericfg CLK_PERI_AUXADC>;
502                 clock-names = "therm", "auxadc";
503                 resets = <&pericfg MT2701_PERI_THERM_SW_RST>;
504                 reset-names = "therm";
505                 mediatek,auxadc = <&auxadc>;
506                 mediatek,apmixedsys = <&apmixedsys>;
507                 nvmem-cells = <&thermal_calibration_data>;
508                 nvmem-cell-names = "calibration-data";
509         };
511         btif: serial@1100c000 {
512                 compatible = "mediatek,mt7623-btif",
513                              "mediatek,mtk-btif";
514                 reg = <0 0x1100c000 0 0x1000>;
515                 interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_LOW>;
516                 clocks = <&pericfg CLK_PERI_BTIF>;
517                 clock-names = "main";
518                 reg-shift = <2>;
519                 reg-io-width = <4>;
520                 status = "disabled";
521         };
523         nandc: nfi@1100d000 {
524                 compatible = "mediatek,mt7623-nfc",
525                              "mediatek,mt2701-nfc";
526                 reg = <0 0x1100d000 0 0x1000>;
527                 interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_LOW>;
528                 power-domains = <&scpsys MT2701_POWER_DOMAIN_IFR_MSC>;
529                 clocks = <&pericfg CLK_PERI_NFI>,
530                          <&pericfg CLK_PERI_NFI_PAD>;
531                 clock-names = "nfi_clk", "pad_clk";
532                 status = "disabled";
533                 ecc-engine = <&bch>;
534                 #address-cells = <1>;
535                 #size-cells = <0>;
536         };
538         bch: ecc@1100e000 {
539                 compatible = "mediatek,mt7623-ecc",
540                              "mediatek,mt2701-ecc";
541                 reg = <0 0x1100e000 0 0x1000>;
542                 interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_LOW>;
543                 clocks = <&pericfg CLK_PERI_NFI_ECC>;
544                 clock-names = "nfiecc_clk";
545                 status = "disabled";
546         };
548         nor_flash: spi@11014000 {
549                 compatible = "mediatek,mt7623-nor",
550                              "mediatek,mt8173-nor";
551                 reg = <0 0x11014000 0 0x1000>;
552                 clocks = <&pericfg CLK_PERI_FLASH>,
553                          <&topckgen CLK_TOP_FLASH_SEL>;
554                 clock-names = "spi", "sf";
555                 #address-cells = <1>;
556                 #size-cells = <0>;
557                 status = "disabled";
558         };
560         spi1: spi@11016000 {
561                 compatible = "mediatek,mt7623-spi",
562                              "mediatek,mt2701-spi";
563                 #address-cells = <1>;
564                 #size-cells = <0>;
565                 reg = <0 0x11016000 0 0x100>;
566                 interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_LOW>;
567                 clocks = <&topckgen CLK_TOP_SYSPLL3_D2>,
568                          <&topckgen CLK_TOP_SPI1_SEL>,
569                          <&pericfg CLK_PERI_SPI1>;
570                 clock-names = "parent-clk", "sel-clk", "spi-clk";
571                 status = "disabled";
572         };
574         spi2: spi@11017000 {
575                 compatible = "mediatek,mt7623-spi",
576                              "mediatek,mt2701-spi";
577                 #address-cells = <1>;
578                 #size-cells = <0>;
579                 reg = <0 0x11017000 0 0x1000>;
580                 interrupts = <GIC_SPI 142 IRQ_TYPE_LEVEL_LOW>;
581                 clocks = <&topckgen CLK_TOP_SYSPLL3_D2>,
582                          <&topckgen CLK_TOP_SPI2_SEL>,
583                          <&pericfg CLK_PERI_SPI2>;
584                 clock-names = "parent-clk", "sel-clk", "spi-clk";
585                 status = "disabled";
586         };
588         audsys: clock-controller@11220000 {
589                 compatible = "mediatek,mt7623-audsys",
590                              "mediatek,mt2701-audsys",
591                              "syscon";
592                 reg = <0 0x11220000 0 0x2000>;
593                 #clock-cells = <1>;
595                 afe: audio-controller {
596                         compatible = "mediatek,mt7623-audio",
597                                      "mediatek,mt2701-audio";
598                         interrupts =  <GIC_SPI 104 IRQ_TYPE_LEVEL_LOW>,
599                                       <GIC_SPI 132 IRQ_TYPE_LEVEL_LOW>;
600                         interrupt-names = "afe", "asys";
601                         power-domains = <&scpsys MT2701_POWER_DOMAIN_IFR_MSC>;
603                         clocks = <&infracfg CLK_INFRA_AUDIO>,
604                                  <&topckgen CLK_TOP_AUD_MUX1_SEL>,
605                                  <&topckgen CLK_TOP_AUD_MUX2_SEL>,
606                                  <&topckgen CLK_TOP_AUD_48K_TIMING>,
607                                  <&topckgen CLK_TOP_AUD_44K_TIMING>,
608                                  <&topckgen CLK_TOP_AUD_K1_SRC_SEL>,
609                                  <&topckgen CLK_TOP_AUD_K2_SRC_SEL>,
610                                  <&topckgen CLK_TOP_AUD_K3_SRC_SEL>,
611                                  <&topckgen CLK_TOP_AUD_K4_SRC_SEL>,
612                                  <&topckgen CLK_TOP_AUD_K1_SRC_DIV>,
613                                  <&topckgen CLK_TOP_AUD_K2_SRC_DIV>,
614                                  <&topckgen CLK_TOP_AUD_K3_SRC_DIV>,
615                                  <&topckgen CLK_TOP_AUD_K4_SRC_DIV>,
616                                  <&topckgen CLK_TOP_AUD_I2S1_MCLK>,
617                                  <&topckgen CLK_TOP_AUD_I2S2_MCLK>,
618                                  <&topckgen CLK_TOP_AUD_I2S3_MCLK>,
619                                  <&topckgen CLK_TOP_AUD_I2S4_MCLK>,
620                                  <&audsys CLK_AUD_I2SO1>,
621                                  <&audsys CLK_AUD_I2SO2>,
622                                  <&audsys CLK_AUD_I2SO3>,
623                                  <&audsys CLK_AUD_I2SO4>,
624                                  <&audsys CLK_AUD_I2SIN1>,
625                                  <&audsys CLK_AUD_I2SIN2>,
626                                  <&audsys CLK_AUD_I2SIN3>,
627                                  <&audsys CLK_AUD_I2SIN4>,
628                                  <&audsys CLK_AUD_ASRCO1>,
629                                  <&audsys CLK_AUD_ASRCO2>,
630                                  <&audsys CLK_AUD_ASRCO3>,
631                                  <&audsys CLK_AUD_ASRCO4>,
632                                  <&audsys CLK_AUD_AFE>,
633                                  <&audsys CLK_AUD_AFE_CONN>,
634                                  <&audsys CLK_AUD_A1SYS>,
635                                  <&audsys CLK_AUD_A2SYS>,
636                                  <&audsys CLK_AUD_AFE_MRGIF>;
638                         clock-names = "infra_sys_audio_clk",
639                                       "top_audio_mux1_sel",
640                                       "top_audio_mux2_sel",
641                                       "top_audio_a1sys_hp",
642                                       "top_audio_a2sys_hp",
643                                       "i2s0_src_sel",
644                                       "i2s1_src_sel",
645                                       "i2s2_src_sel",
646                                       "i2s3_src_sel",
647                                       "i2s0_src_div",
648                                       "i2s1_src_div",
649                                       "i2s2_src_div",
650                                       "i2s3_src_div",
651                                       "i2s0_mclk_en",
652                                       "i2s1_mclk_en",
653                                       "i2s2_mclk_en",
654                                       "i2s3_mclk_en",
655                                       "i2so0_hop_ck",
656                                       "i2so1_hop_ck",
657                                       "i2so2_hop_ck",
658                                       "i2so3_hop_ck",
659                                       "i2si0_hop_ck",
660                                       "i2si1_hop_ck",
661                                       "i2si2_hop_ck",
662                                       "i2si3_hop_ck",
663                                       "asrc0_out_ck",
664                                       "asrc1_out_ck",
665                                       "asrc2_out_ck",
666                                       "asrc3_out_ck",
667                                       "audio_afe_pd",
668                                       "audio_afe_conn_pd",
669                                       "audio_a1sys_pd",
670                                       "audio_a2sys_pd",
671                                       "audio_mrgif_pd";
673                         assigned-clocks = <&topckgen CLK_TOP_AUD_MUX1_SEL>,
674                                           <&topckgen CLK_TOP_AUD_MUX2_SEL>,
675                                           <&topckgen CLK_TOP_AUD_MUX1_DIV>,
676                                           <&topckgen CLK_TOP_AUD_MUX2_DIV>;
677                         assigned-clock-parents = <&topckgen CLK_TOP_AUD1PLL_98M>,
678                                                  <&topckgen CLK_TOP_AUD2PLL_90M>;
679                         assigned-clock-rates = <0>, <0>, <49152000>, <45158400>;
680                 };
681         };
683         mmc0: mmc@11230000 {
684                 compatible = "mediatek,mt7623-mmc",
685                              "mediatek,mt2701-mmc";
686                 reg = <0 0x11230000 0 0x1000>;
687                 interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_LOW>;
688                 clocks = <&pericfg CLK_PERI_MSDC30_0>,
689                          <&topckgen CLK_TOP_MSDC30_0_SEL>;
690                 clock-names = "source", "hclk";
691                 status = "disabled";
692         };
694         mmc1: mmc@11240000 {
695                 compatible = "mediatek,mt7623-mmc",
696                              "mediatek,mt2701-mmc";
697                 reg = <0 0x11240000 0 0x1000>;
698                 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_LOW>;
699                 clocks = <&pericfg CLK_PERI_MSDC30_1>,
700                          <&topckgen CLK_TOP_MSDC30_1_SEL>;
701                 clock-names = "source", "hclk";
702                 status = "disabled";
703         };
705         vdecsys: syscon@16000000 {
706                 compatible = "mediatek,mt7623-vdecsys",
707                              "mediatek,mt2701-vdecsys",
708                              "syscon";
709                 reg = <0 0x16000000 0 0x1000>;
710                 #clock-cells = <1>;
711         };
713         hifsys: syscon@1a000000 {
714                 compatible = "mediatek,mt7623-hifsys",
715                              "mediatek,mt2701-hifsys",
716                              "syscon";
717                 reg = <0 0x1a000000 0 0x1000>;
718                 #clock-cells = <1>;
719                 #reset-cells = <1>;
720         };
722         pcie: pcie@1a140000 {
723                 compatible = "mediatek,mt7623-pcie";
724                 device_type = "pci";
725                 reg = <0 0x1a140000 0 0x1000>, /* PCIe shared registers */
726                       <0 0x1a142000 0 0x1000>, /* Port0 registers */
727                       <0 0x1a143000 0 0x1000>, /* Port1 registers */
728                       <0 0x1a144000 0 0x1000>; /* Port2 registers */
729                 reg-names = "subsys", "port0", "port1", "port2";
730                 #address-cells = <3>;
731                 #size-cells = <2>;
732                 #interrupt-cells = <1>;
733                 interrupt-map-mask = <0xf800 0 0 0>;
734                 interrupt-map = <0x0000 0 0 0 &sysirq GIC_SPI 193 IRQ_TYPE_LEVEL_LOW>,
735                                 <0x0800 0 0 0 &sysirq GIC_SPI 194 IRQ_TYPE_LEVEL_LOW>,
736                                 <0x1000 0 0 0 &sysirq GIC_SPI 195 IRQ_TYPE_LEVEL_LOW>;
737                 clocks = <&topckgen CLK_TOP_ETHIF_SEL>,
738                          <&hifsys CLK_HIFSYS_PCIE0>,
739                          <&hifsys CLK_HIFSYS_PCIE1>,
740                          <&hifsys CLK_HIFSYS_PCIE2>;
741                 clock-names = "free_ck", "sys_ck0", "sys_ck1", "sys_ck2";
742                 resets = <&hifsys MT2701_HIFSYS_PCIE0_RST>,
743                          <&hifsys MT2701_HIFSYS_PCIE1_RST>,
744                          <&hifsys MT2701_HIFSYS_PCIE2_RST>;
745                 reset-names = "pcie-rst0", "pcie-rst1", "pcie-rst2";
746                 phys = <&pcie0_port PHY_TYPE_PCIE>,
747                        <&pcie1_port PHY_TYPE_PCIE>,
748                        <&u3port1 PHY_TYPE_PCIE>;
749                 phy-names = "pcie-phy0", "pcie-phy1", "pcie-phy2";
750                 power-domains = <&scpsys MT2701_POWER_DOMAIN_HIF>;
751                 bus-range = <0x00 0xff>;
752                 status = "disabled";
753                 ranges = <0x81000000 0 0x1a160000 0 0x1a160000 0 0x00010000
754                           0x83000000 0 0x60000000 0 0x60000000 0 0x10000000>;
756                 pcie@0,0 {
757                         reg = <0x0000 0 0 0 0>;
758                         #address-cells = <3>;
759                         #size-cells = <2>;
760                         #interrupt-cells = <1>;
761                         interrupt-map-mask = <0 0 0 0>;
762                         interrupt-map = <0 0 0 0 &sysirq GIC_SPI 193 IRQ_TYPE_LEVEL_LOW>;
763                         ranges;
764                         status = "disabled";
765                 };
767                 pcie@1,0 {
768                         reg = <0x0800 0 0 0 0>;
769                         #address-cells = <3>;
770                         #size-cells = <2>;
771                         #interrupt-cells = <1>;
772                         interrupt-map-mask = <0 0 0 0>;
773                         interrupt-map = <0 0 0 0 &sysirq GIC_SPI 194 IRQ_TYPE_LEVEL_LOW>;
774                         ranges;
775                         status = "disabled";
776                 };
778                 pcie@2,0 {
779                         reg = <0x1000 0 0 0 0>;
780                         #address-cells = <3>;
781                         #size-cells = <2>;
782                         #interrupt-cells = <1>;
783                         interrupt-map-mask = <0 0 0 0>;
784                         interrupt-map = <0 0 0 0 &sysirq GIC_SPI 195 IRQ_TYPE_LEVEL_LOW>;
785                         ranges;
786                         status = "disabled";
787                 };
788         };
790         pcie0_phy: pcie-phy@1a149000 {
791                 compatible = "mediatek,generic-tphy-v1";
792                 reg = <0 0x1a149000 0 0x0700>;
793                 #address-cells = <2>;
794                 #size-cells = <2>;
795                 ranges;
796                 status = "disabled";
798                 pcie0_port: pcie-phy@1a149900 {
799                         reg = <0 0x1a149900 0 0x0700>;
800                         clocks = <&clk26m>;
801                         clock-names = "ref";
802                         #phy-cells = <1>;
803                         status = "okay";
804                 };
805         };
807         pcie1_phy: pcie-phy@1a14a000 {
808                 compatible = "mediatek,generic-tphy-v1";
809                 reg = <0 0x1a14a000 0 0x0700>;
810                 #address-cells = <2>;
811                 #size-cells = <2>;
812                 ranges;
813                 status = "disabled";
815                 pcie1_port: pcie-phy@1a14a900 {
816                         reg = <0 0x1a14a900 0 0x0700>;
817                         clocks = <&clk26m>;
818                         clock-names = "ref";
819                         #phy-cells = <1>;
820                         status = "okay";
821                 };
822         };
824         usb1: usb@1a1c0000 {
825                 compatible = "mediatek,mt7623-xhci",
826                              "mediatek,mt8173-xhci";
827                 reg = <0 0x1a1c0000 0 0x1000>,
828                       <0 0x1a1c4700 0 0x0100>;
829                 reg-names = "mac", "ippc";
830                 interrupts = <GIC_SPI 196 IRQ_TYPE_LEVEL_LOW>;
831                 clocks = <&hifsys CLK_HIFSYS_USB0PHY>,
832                          <&topckgen CLK_TOP_ETHIF_SEL>;
833                 clock-names = "sys_ck", "ref_ck";
834                 power-domains = <&scpsys MT2701_POWER_DOMAIN_HIF>;
835                 phys = <&u2port0 PHY_TYPE_USB2>, <&u3port0 PHY_TYPE_USB3>;
836                 status = "disabled";
837         };
839         u3phy1: usb-phy@1a1c4000 {
840                 compatible = "mediatek,mt7623-u3phy",
841                              "mediatek,mt2701-u3phy";
842                 reg = <0 0x1a1c4000 0 0x0700>;
843                 #address-cells = <2>;
844                 #size-cells = <2>;
845                 ranges;
846                 status = "disabled";
848                 u2port0: usb-phy@1a1c4800 {
849                         reg = <0 0x1a1c4800 0 0x0100>;
850                         clocks = <&topckgen CLK_TOP_USB_PHY48M>;
851                         clock-names = "ref";
852                         #phy-cells = <1>;
853                         status = "okay";
854                 };
856                 u3port0: usb-phy@1a1c4900 {
857                         reg = <0 0x1a1c4900 0 0x0700>;
858                         clocks = <&clk26m>;
859                         clock-names = "ref";
860                         #phy-cells = <1>;
861                         status = "okay";
862                 };
863         };
865         usb2: usb@1a240000 {
866                 compatible = "mediatek,mt7623-xhci",
867                              "mediatek,mt8173-xhci";
868                 reg = <0 0x1a240000 0 0x1000>,
869                       <0 0x1a244700 0 0x0100>;
870                 reg-names = "mac", "ippc";
871                 interrupts = <GIC_SPI 197 IRQ_TYPE_LEVEL_LOW>;
872                 clocks = <&hifsys CLK_HIFSYS_USB1PHY>,
873                          <&topckgen CLK_TOP_ETHIF_SEL>;
874                 clock-names = "sys_ck", "ref_ck";
875                 power-domains = <&scpsys MT2701_POWER_DOMAIN_HIF>;
876                 phys = <&u2port1 PHY_TYPE_USB2>, <&u3port1 PHY_TYPE_USB3>;
877                 status = "disabled";
878         };
880         u3phy2: usb-phy@1a244000 {
881                 compatible = "mediatek,mt7623-u3phy",
882                              "mediatek,mt2701-u3phy";
883                 reg = <0 0x1a244000 0 0x0700>;
884                 #address-cells = <2>;
885                 #size-cells = <2>;
886                 ranges;
887                 status = "disabled";
889                 u2port1: usb-phy@1a244800 {
890                         reg = <0 0x1a244800 0 0x0100>;
891                         clocks = <&topckgen CLK_TOP_USB_PHY48M>;
892                         clock-names = "ref";
893                         #phy-cells = <1>;
894                         status = "okay";
895                 };
897                 u3port1: usb-phy@1a244900 {
898                         reg = <0 0x1a244900 0 0x0700>;
899                         clocks = <&clk26m>;
900                         clock-names = "ref";
901                         #phy-cells = <1>;
902                         status = "okay";
903                 };
904         };
906         ethsys: syscon@1b000000 {
907                 compatible = "mediatek,mt7623-ethsys",
908                              "mediatek,mt2701-ethsys",
909                              "syscon";
910                 reg = <0 0x1b000000 0 0x1000>;
911                 #clock-cells = <1>;
912                 #reset-cells = <1>;
913         };
915         hsdma: dma-controller@1b007000 {
916                 compatible = "mediatek,mt7623-hsdma";
917                 reg = <0 0x1b007000 0 0x1000>;
918                 interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_LOW>;
919                 clocks = <&ethsys CLK_ETHSYS_HSDMA>;
920                 clock-names = "hsdma";
921                 power-domains = <&scpsys MT2701_POWER_DOMAIN_ETH>;
922                 #dma-cells = <1>;
923         };
925         eth: ethernet@1b100000 {
926                 compatible = "mediatek,mt7623-eth",
927                              "mediatek,mt2701-eth",
928                              "syscon";
929                 reg = <0 0x1b100000 0 0x20000>;
930                 interrupts = <GIC_SPI 200 IRQ_TYPE_LEVEL_LOW>,
931                              <GIC_SPI 199 IRQ_TYPE_LEVEL_LOW>,
932                              <GIC_SPI 198 IRQ_TYPE_LEVEL_LOW>;
933                 clocks = <&topckgen CLK_TOP_ETHIF_SEL>,
934                          <&ethsys CLK_ETHSYS_ESW>,
935                          <&ethsys CLK_ETHSYS_GP1>,
936                          <&ethsys CLK_ETHSYS_GP2>,
937                          <&apmixedsys CLK_APMIXED_TRGPLL>;
938                 clock-names = "ethif", "esw", "gp1", "gp2", "trgpll";
939                 resets = <&ethsys MT2701_ETHSYS_FE_RST>,
940                          <&ethsys MT2701_ETHSYS_GMAC_RST>,
941                          <&ethsys MT2701_ETHSYS_PPE_RST>;
942                 reset-names = "fe", "gmac", "ppe";
943                 power-domains = <&scpsys MT2701_POWER_DOMAIN_ETH>;
944                 mediatek,ethsys = <&ethsys>;
945                 mediatek,pctl = <&syscfg_pctl_a>;
946                 #address-cells = <1>;
947                 #size-cells = <0>;
948                 status = "disabled";
949         };
951         crypto: crypto@1b240000 {
952                 compatible = "mediatek,eip97-crypto";
953                 reg = <0 0x1b240000 0 0x20000>;
954                 interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_LOW>,
955                              <GIC_SPI 83 IRQ_TYPE_LEVEL_LOW>,
956                              <GIC_SPI 84 IRQ_TYPE_LEVEL_LOW>,
957                              <GIC_SPI 91 IRQ_TYPE_LEVEL_LOW>,
958                              <GIC_SPI 97 IRQ_TYPE_LEVEL_LOW>;
959                 clocks = <&ethsys CLK_ETHSYS_CRYPTO>;
960                 clock-names = "cryp";
961                 power-domains = <&scpsys MT2701_POWER_DOMAIN_ETH>;
962                 status = "disabled";
963         };
965         bdpsys: syscon@1c000000 {
966                 compatible = "mediatek,mt7623-bdpsys",
967                              "mediatek,mt2701-bdpsys",
968                              "syscon";
969                 reg = <0 0x1c000000 0 0x1000>;
970                 #clock-cells = <1>;
971         };
974 &pio {
975         cir_pins_a:cir-default {
976                 pins-cir {
977                         pinmux = <MT7623_PIN_46_IR_FUNC_IR>;
978                         bias-disable;
979                 };
980         };
982         i2c0_pins_a: i2c0-default {
983                 pins-i2c0 {
984                         pinmux = <MT7623_PIN_75_SDA0_FUNC_SDA0>,
985                                  <MT7623_PIN_76_SCL0_FUNC_SCL0>;
986                         bias-disable;
987                 };
988         };
990         i2c1_pins_a: i2c1-default {
991                 pin-i2c1 {
992                         pinmux = <MT7623_PIN_57_SDA1_FUNC_SDA1>,
993                                  <MT7623_PIN_58_SCL1_FUNC_SCL1>;
994                         bias-disable;
995                 };
996         };
998         i2c1_pins_b: i2c1-alt {
999                 pin-i2c1 {
1000                         pinmux = <MT7623_PIN_242_URTS2_FUNC_SCL1>,
1001                                  <MT7623_PIN_243_UCTS2_FUNC_SDA1>;
1002                         bias-disable;
1003                 };
1004         };
1006         i2c2_pins_a: i2c2-default {
1007                 pin-i2c2 {
1008                         pinmux = <MT7623_PIN_77_SDA2_FUNC_SDA2>,
1009                                  <MT7623_PIN_78_SCL2_FUNC_SCL2>;
1010                         bias-disable;
1011                 };
1012         };
1014         i2c2_pins_b: i2c2-alt {
1015                 pin-i2c2 {
1016                         pinmux = <MT7623_PIN_122_GPIO122_FUNC_SDA2>,
1017                                  <MT7623_PIN_123_HTPLG_FUNC_SCL2>;
1018                         bias-disable;
1019                 };
1020         };
1022         i2s0_pins_a: i2s0-default {
1023                 pin-i2s0 {
1024                         pinmux = <MT7623_PIN_49_I2S0_DATA_FUNC_I2S0_DATA>,
1025                                  <MT7623_PIN_72_I2S0_DATA_IN_FUNC_I2S0_DATA_IN>,
1026                                  <MT7623_PIN_73_I2S0_LRCK_FUNC_I2S0_LRCK>,
1027                                  <MT7623_PIN_74_I2S0_BCK_FUNC_I2S0_BCK>,
1028                                  <MT7623_PIN_126_I2S0_MCLK_FUNC_I2S0_MCLK>;
1029                         drive-strength = <MTK_DRIVE_12mA>;
1030                         bias-pull-down;
1031                 };
1032         };
1034         i2s1_pins_a: i2s1-default {
1035                 pin-i2s1 {
1036                         pinmux = <MT7623_PIN_33_I2S1_DATA_FUNC_I2S1_DATA>,
1037                                  <MT7623_PIN_34_I2S1_DATA_IN_FUNC_I2S1_DATA_IN>,
1038                                  <MT7623_PIN_35_I2S1_BCK_FUNC_I2S1_BCK>,
1039                                  <MT7623_PIN_36_I2S1_LRCK_FUNC_I2S1_LRCK>,
1040                                  <MT7623_PIN_37_I2S1_MCLK_FUNC_I2S1_MCLK>;
1041                         drive-strength = <MTK_DRIVE_12mA>;
1042                         bias-pull-down;
1043                 };
1044         };
1046         key_pins_a: keys-alt {
1047                 pins-keys {
1048                         pinmux = <MT7623_PIN_256_GPIO256_FUNC_GPIO256>,
1049                                  <MT7623_PIN_257_GPIO257_FUNC_GPIO257> ;
1050                         input-enable;
1051                 };
1052         };
1054         led_pins_a: leds-alt {
1055                 pins-leds {
1056                         pinmux = <MT7623_PIN_239_EXT_SDIO0_FUNC_GPIO239>,
1057                                  <MT7623_PIN_240_EXT_XCS_FUNC_GPIO240>,
1058                                  <MT7623_PIN_241_EXT_SCK_FUNC_GPIO241>;
1059                 };
1060         };
1062         mmc0_pins_default: mmc0default {
1063                 pins-cmd-dat {
1064                         pinmux = <MT7623_PIN_111_MSDC0_DAT7_FUNC_MSDC0_DAT7>,
1065                                  <MT7623_PIN_112_MSDC0_DAT6_FUNC_MSDC0_DAT6>,
1066                                  <MT7623_PIN_113_MSDC0_DAT5_FUNC_MSDC0_DAT5>,
1067                                  <MT7623_PIN_114_MSDC0_DAT4_FUNC_MSDC0_DAT4>,
1068                                  <MT7623_PIN_118_MSDC0_DAT3_FUNC_MSDC0_DAT3>,
1069                                  <MT7623_PIN_119_MSDC0_DAT2_FUNC_MSDC0_DAT2>,
1070                                  <MT7623_PIN_120_MSDC0_DAT1_FUNC_MSDC0_DAT1>,
1071                                  <MT7623_PIN_121_MSDC0_DAT0_FUNC_MSDC0_DAT0>,
1072                                  <MT7623_PIN_116_MSDC0_CMD_FUNC_MSDC0_CMD>;
1073                         input-enable;
1074                         bias-pull-up;
1075                 };
1077                 pins-clk {
1078                         pinmux = <MT7623_PIN_117_MSDC0_CLK_FUNC_MSDC0_CLK>;
1079                         bias-pull-down;
1080                 };
1082                 pins-rst {
1083                         pinmux = <MT7623_PIN_115_MSDC0_RSTB_FUNC_MSDC0_RSTB>;
1084                         bias-pull-up;
1085                 };
1086         };
1088         mmc0_pins_uhs: mmc0 {
1089                 pins-cmd-dat {
1090                         pinmux = <MT7623_PIN_111_MSDC0_DAT7_FUNC_MSDC0_DAT7>,
1091                                  <MT7623_PIN_112_MSDC0_DAT6_FUNC_MSDC0_DAT6>,
1092                                  <MT7623_PIN_113_MSDC0_DAT5_FUNC_MSDC0_DAT5>,
1093                                  <MT7623_PIN_114_MSDC0_DAT4_FUNC_MSDC0_DAT4>,
1094                                  <MT7623_PIN_118_MSDC0_DAT3_FUNC_MSDC0_DAT3>,
1095                                  <MT7623_PIN_119_MSDC0_DAT2_FUNC_MSDC0_DAT2>,
1096                                  <MT7623_PIN_120_MSDC0_DAT1_FUNC_MSDC0_DAT1>,
1097                                  <MT7623_PIN_121_MSDC0_DAT0_FUNC_MSDC0_DAT0>,
1098                                  <MT7623_PIN_116_MSDC0_CMD_FUNC_MSDC0_CMD>;
1099                         input-enable;
1100                         drive-strength = <MTK_DRIVE_2mA>;
1101                         bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
1102                 };
1104                 pins-clk {
1105                         pinmux = <MT7623_PIN_117_MSDC0_CLK_FUNC_MSDC0_CLK>;
1106                         drive-strength = <MTK_DRIVE_2mA>;
1107                         bias-pull-down = <MTK_PUPD_SET_R1R0_01>;
1108                 };
1110                 pins-rst {
1111                         pinmux = <MT7623_PIN_115_MSDC0_RSTB_FUNC_MSDC0_RSTB>;
1112                         bias-pull-up;
1113                 };
1114         };
1116         mmc1_pins_default: mmc1default {
1117                 pins-cmd-dat {
1118                         pinmux = <MT7623_PIN_107_MSDC1_DAT0_FUNC_MSDC1_DAT0>,
1119                                  <MT7623_PIN_108_MSDC1_DAT1_FUNC_MSDC1_DAT1>,
1120                                  <MT7623_PIN_109_MSDC1_DAT2_FUNC_MSDC1_DAT2>,
1121                                  <MT7623_PIN_110_MSDC1_DAT3_FUNC_MSDC1_DAT3>,
1122                                  <MT7623_PIN_105_MSDC1_CMD_FUNC_MSDC1_CMD>;
1123                         input-enable;
1124                         drive-strength = <MTK_DRIVE_4mA>;
1125                         bias-pull-up = <MTK_PUPD_SET_R1R0_10>;
1126                 };
1128                 pins-clk {
1129                         pinmux = <MT7623_PIN_106_MSDC1_CLK_FUNC_MSDC1_CLK>;
1130                         bias-pull-down;
1131                         drive-strength = <MTK_DRIVE_4mA>;
1132                 };
1134                 pins-wp {
1135                         pinmux = <MT7623_PIN_29_EINT7_FUNC_MSDC1_WP>;
1136                         input-enable;
1137                         bias-pull-up;
1138                 };
1140                 pins-insert {
1141                         pinmux = <MT7623_PIN_261_MSDC1_INS_FUNC_GPIO261>;
1142                         bias-pull-up;
1143                 };
1144         };
1146         mmc1_pins_uhs: mmc1 {
1147                 pins-cmd-dat {
1148                         pinmux = <MT7623_PIN_107_MSDC1_DAT0_FUNC_MSDC1_DAT0>,
1149                                  <MT7623_PIN_108_MSDC1_DAT1_FUNC_MSDC1_DAT1>,
1150                                  <MT7623_PIN_109_MSDC1_DAT2_FUNC_MSDC1_DAT2>,
1151                                  <MT7623_PIN_110_MSDC1_DAT3_FUNC_MSDC1_DAT3>,
1152                                  <MT7623_PIN_105_MSDC1_CMD_FUNC_MSDC1_CMD>;
1153                         input-enable;
1154                         drive-strength = <MTK_DRIVE_4mA>;
1155                         bias-pull-up = <MTK_PUPD_SET_R1R0_10>;
1156                 };
1158                 pins-clk {
1159                         pinmux = <MT7623_PIN_106_MSDC1_CLK_FUNC_MSDC1_CLK>;
1160                         drive-strength = <MTK_DRIVE_4mA>;
1161                         bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
1162                 };
1163         };
1165         nand_pins_default: nanddefault {
1166                 pins-ale {
1167                         pinmux = <MT7623_PIN_116_MSDC0_CMD_FUNC_NALE>;
1168                         drive-strength = <MTK_DRIVE_8mA>;
1169                         bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
1170                 };
1172                 pins-dat {
1173                         pinmux = <MT7623_PIN_111_MSDC0_DAT7_FUNC_NLD7>,
1174                                  <MT7623_PIN_112_MSDC0_DAT6_FUNC_NLD6>,
1175                                  <MT7623_PIN_114_MSDC0_DAT4_FUNC_NLD4>,
1176                                  <MT7623_PIN_118_MSDC0_DAT3_FUNC_NLD3>,
1177                                  <MT7623_PIN_121_MSDC0_DAT0_FUNC_NLD0>,
1178                                  <MT7623_PIN_120_MSDC0_DAT1_FUNC_NLD1>,
1179                                  <MT7623_PIN_113_MSDC0_DAT5_FUNC_NLD5>,
1180                                  <MT7623_PIN_115_MSDC0_RSTB_FUNC_NLD8>,
1181                                  <MT7623_PIN_119_MSDC0_DAT2_FUNC_NLD2>;
1182                         input-enable;
1183                         drive-strength = <MTK_DRIVE_8mA>;
1184                         bias-pull-up;
1185                 };
1187                 pins-we {
1188                         pinmux = <MT7623_PIN_117_MSDC0_CLK_FUNC_NWEB>;
1189                         drive-strength = <MTK_DRIVE_8mA>;
1190                         bias-pull-up = <MTK_PUPD_SET_R1R0_10>;
1191                 };
1192         };
1194         pcie_default: pcie_pin_default {
1195                 pins_cmd_dat {
1196                         pinmux = <MT7623_PIN_208_AUD_EXT_CK1_FUNC_PCIE0_PERST_N>,
1197                                  <MT7623_PIN_209_AUD_EXT_CK2_FUNC_PCIE1_PERST_N>;
1198                         bias-disable;
1199                 };
1200         };
1202         pwm_pins_a: pwm-default {
1203                 pins-pwm {
1204                         pinmux = <MT7623_PIN_203_PWM0_FUNC_PWM0>,
1205                                  <MT7623_PIN_204_PWM1_FUNC_PWM1>,
1206                                  <MT7623_PIN_205_PWM2_FUNC_PWM2>,
1207                                  <MT7623_PIN_206_PWM3_FUNC_PWM3>,
1208                                  <MT7623_PIN_207_PWM4_FUNC_PWM4>;
1209                 };
1210         };
1212         spi0_pins_a: spi0-default {
1213                 pins-spi {
1214                         pinmux = <MT7623_PIN_53_SPI0_CSN_FUNC_SPI0_CS>,
1215                                 <MT7623_PIN_54_SPI0_CK_FUNC_SPI0_CK>,
1216                                 <MT7623_PIN_55_SPI0_MI_FUNC_SPI0_MI>,
1217                                 <MT7623_PIN_56_SPI0_MO_FUNC_SPI0_MO>;
1218                         bias-disable;
1219                 };
1220         };
1222         spi1_pins_a: spi1-default {
1223                 pins-spi {
1224                         pinmux = <MT7623_PIN_7_SPI1_CSN_FUNC_SPI1_CS>,
1225                                 <MT7623_PIN_199_SPI1_CK_FUNC_SPI1_CK>,
1226                                 <MT7623_PIN_8_SPI1_MI_FUNC_SPI1_MI>,
1227                                 <MT7623_PIN_9_SPI1_MO_FUNC_SPI1_MO>;
1228                 };
1229         };
1231         spi2_pins_a: spi2-default {
1232                 pins-spi {
1233                         pinmux = <MT7623_PIN_101_SPI2_CSN_FUNC_SPI2_CS>,
1234                                  <MT7623_PIN_104_SPI2_CK_FUNC_SPI2_CK>,
1235                                  <MT7623_PIN_102_SPI2_MI_FUNC_SPI2_MI>,
1236                                  <MT7623_PIN_103_SPI2_MO_FUNC_SPI2_MO>;
1237                 };
1238         };
1240         uart0_pins_a: uart0-default {
1241                 pins-dat {
1242                         pinmux = <MT7623_PIN_79_URXD0_FUNC_URXD0>,
1243                                  <MT7623_PIN_80_UTXD0_FUNC_UTXD0>;
1244                 };
1245         };
1247         uart1_pins_a: uart1-default {
1248                 pins-dat {
1249                         pinmux = <MT7623_PIN_81_URXD1_FUNC_URXD1>,
1250                                  <MT7623_PIN_82_UTXD1_FUNC_UTXD1>;
1251                 };
1252         };
1254         uart2_pins_a: uart2-default {
1255                 pins-dat {
1256                         pinmux = <MT7623_PIN_14_GPIO14_FUNC_URXD2>,
1257                                  <MT7623_PIN_15_GPIO15_FUNC_UTXD2>;
1258                 };
1259         };
1261         uart2_pins_b: uart2-alt {
1262                 pins-dat {
1263                         pinmux = <MT7623_PIN_200_URXD2_FUNC_URXD2>,
1264                                  <MT7623_PIN_201_UTXD2_FUNC_UTXD2>;
1265                 };
1266         };