developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2020 MediaTek Inc. |
| 3 | * Author: Sam.Shih <sam.shih@mediatek.com> |
| 4 | * |
| 5 | * This program is free software; you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License version 2 as |
| 7 | * published by the Free Software Foundation. |
| 8 | * |
| 9 | * This program is distributed in the hope that it will be useful, |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | * GNU General Public License for more details. |
| 13 | */ |
| 14 | |
| 15 | #include <dt-bindings/interrupt-controller/irq.h> |
| 16 | #include <dt-bindings/interrupt-controller/arm-gic.h> |
| 17 | #include <dt-bindings/phy/phy.h> |
| 18 | #include <dt-bindings/reset/ti-syscon.h> |
developer | 15adbbf | 2021-05-24 22:20:07 +0800 | [diff] [blame] | 19 | #include <dt-bindings/clock/mt7986-clk.h> |
developer | 3e9ad9d | 2021-07-01 16:42:25 +0800 | [diff] [blame] | 20 | #include <dt-bindings/thermal/thermal.h> |
developer | 7f4cdcd | 2021-08-03 19:29:43 +0800 | [diff] [blame] | 21 | #include <dt-bindings/pinctrl/mt65xx.h> |
developer | e138bcd | 2021-12-06 09:20:47 +0800 | [diff] [blame] | 22 | #include <dt-bindings/reset/mt7986-resets.h> |
developer | 15adbbf | 2021-05-24 22:20:07 +0800 | [diff] [blame] | 23 | |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 24 | / { |
| 25 | compatible = "mediatek,mt7986a-rfb"; |
| 26 | interrupt-parent = <&gic>; |
| 27 | #address-cells = <2>; |
| 28 | #size-cells = <2>; |
| 29 | cpus { |
| 30 | #address-cells = <1>; |
| 31 | #size-cells = <0>; |
developer | 3e9ad9d | 2021-07-01 16:42:25 +0800 | [diff] [blame] | 32 | cpu0: cpu@0 { |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 33 | device_type = "cpu"; |
| 34 | compatible = "arm,cortex-a53"; |
| 35 | enable-method = "psci"; |
| 36 | reg = <0x0>; |
| 37 | }; |
| 38 | |
developer | 3e9ad9d | 2021-07-01 16:42:25 +0800 | [diff] [blame] | 39 | cpu1: cpu@1 { |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 40 | device_type = "cpu"; |
| 41 | compatible = "arm,cortex-a53"; |
| 42 | enable-method = "psci"; |
| 43 | reg = <0x1>; |
| 44 | }; |
| 45 | |
developer | 3e9ad9d | 2021-07-01 16:42:25 +0800 | [diff] [blame] | 46 | cpu2: cpu@2 { |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 47 | device_type = "cpu"; |
| 48 | compatible = "arm,cortex-a53"; |
| 49 | enable-method = "psci"; |
| 50 | reg = <0x2>; |
| 51 | }; |
| 52 | |
developer | 3e9ad9d | 2021-07-01 16:42:25 +0800 | [diff] [blame] | 53 | cpu3: cpu@3 { |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 54 | device_type = "cpu"; |
| 55 | enable-method = "psci"; |
| 56 | compatible = "arm,cortex-a53"; |
| 57 | reg = <0x3>; |
| 58 | }; |
| 59 | }; |
| 60 | |
| 61 | wed: wed@15010000 { |
| 62 | compatible = "mediatek,wed"; |
| 63 | wed_num = <2>; |
| 64 | /* add this property for wed get the pci slot number. */ |
| 65 | pci_slot_map = <0>, <1>; |
| 66 | reg = <0 0x15010000 0 0x1000>, |
| 67 | <0 0x15011000 0 0x1000>; |
| 68 | interrupt-parent = <&gic>; |
| 69 | interrupts = <GIC_SPI 205 IRQ_TYPE_LEVEL_HIGH>, |
| 70 | <GIC_SPI 206 IRQ_TYPE_LEVEL_HIGH>; |
| 71 | }; |
| 72 | |
| 73 | wed2: wed2@15011000 { |
| 74 | compatible = "mediatek,wed2"; |
| 75 | wed_num = <2>; |
| 76 | reg = <0 0x15010000 0 0x1000>, |
| 77 | <0 0x15011000 0 0x1000>; |
| 78 | interrupt-parent = <&gic>; |
| 79 | interrupts = <GIC_SPI 205 IRQ_TYPE_LEVEL_HIGH>, |
| 80 | <GIC_SPI 206 IRQ_TYPE_LEVEL_HIGH>; |
| 81 | }; |
| 82 | |
| 83 | wdma: wdma@15104800 { |
| 84 | compatible = "mediatek,wed-wdma"; |
| 85 | reg = <0 0x15104800 0 0x400>, |
| 86 | <0 0x15104c00 0 0x400>; |
| 87 | }; |
| 88 | |
| 89 | ap2woccif: ap2woccif@151A5000 { |
| 90 | compatible = "mediatek,ap2woccif"; |
| 91 | reg = <0 0x151A5000 0 0x1000>, |
| 92 | <0 0x151AD000 0 0x1000>; |
| 93 | interrupt-parent = <&gic>; |
| 94 | interrupts = <GIC_SPI 211 IRQ_TYPE_LEVEL_HIGH>, |
| 95 | <GIC_SPI 212 IRQ_TYPE_LEVEL_HIGH>; |
| 96 | }; |
| 97 | |
| 98 | wocpu0_ilm: wocpu0_ilm@151E0000 { |
| 99 | compatible = "mediatek,wocpu0_ilm"; |
| 100 | reg = <0 0x151E0000 0 0x8000>; |
| 101 | }; |
| 102 | |
| 103 | wocpu1_ilm: wocpu1_ilm@151F0000 { |
| 104 | compatible = "mediatek,wocpu1_ilm"; |
| 105 | reg = <0 0x151F0000 0 0x8000>; |
| 106 | }; |
| 107 | |
| 108 | wocpu_dlm: wocpu_dlm@151E8000 { |
| 109 | compatible = "mediatek,wocpu_dlm"; |
| 110 | reg = <0 0x151E8000 0 0x2000>, |
| 111 | <0 0x151F8000 0 0x2000>; |
| 112 | |
| 113 | resets = <ðsysrst 0>; |
| 114 | reset-names = "wocpu_rst"; |
| 115 | }; |
| 116 | |
| 117 | cpu_boot: wocpu_boot@15194000 { |
| 118 | compatible = "mediatek,wocpu_boot"; |
| 119 | reg = <0 0x15194000 0 0x1000>; |
| 120 | }; |
| 121 | |
| 122 | reserved-memory { |
| 123 | #address-cells = <2>; |
| 124 | #size-cells = <2>; |
| 125 | ranges; |
| 126 | |
| 127 | /* 192 KiB reserved for ARM Trusted Firmware (BL31) */ |
| 128 | secmon_reserved: secmon@43000000 { |
| 129 | reg = <0 0x43000000 0 0x30000>; |
| 130 | no-map; |
| 131 | }; |
| 132 | |
| 133 | wmcpu_emi: wmcpu-reserved@4FC00000 { |
| 134 | compatible = "mediatek,wmcpu-reserved"; |
| 135 | no-map; |
| 136 | reg = <0 0x4FC00000 0 0x00100000>; |
| 137 | }; |
| 138 | |
| 139 | wocpu0_emi: wocpu0_emi@4FD00000 { |
| 140 | compatible = "mediatek,wocpu0_emi"; |
| 141 | no-map; |
| 142 | reg = <0 0x4FD00000 0 0x40000>; |
| 143 | shared = <0>; |
| 144 | }; |
| 145 | |
developer | 86423f0 | 2021-10-12 15:20:50 +0800 | [diff] [blame] | 146 | wocpu1_emi: wocpu1_emi@4FD40000 { |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 147 | compatible = "mediatek,wocpu1_emi"; |
| 148 | no-map; |
| 149 | reg = <0 0x4FD40000 0 0x40000>; |
| 150 | shared = <0>; |
| 151 | }; |
| 152 | |
developer | 86423f0 | 2021-10-12 15:20:50 +0800 | [diff] [blame] | 153 | wocpu_data: wocpu_data@4FD80000 { |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 154 | compatible = "mediatek,wocpu_data"; |
| 155 | no-map; |
developer | 4323c33 | 2022-12-07 15:34:19 +0800 | [diff] [blame^] | 156 | reg = <0 0x4FD80000 0 0x249000>; |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 157 | shared = <1>; |
| 158 | }; |
| 159 | }; |
| 160 | |
| 161 | psci { |
| 162 | compatible = "arm,psci-0.2"; |
| 163 | method = "smc"; |
| 164 | }; |
| 165 | |
developer | 15adbbf | 2021-05-24 22:20:07 +0800 | [diff] [blame] | 166 | clk40m: oscillator@0 { |
| 167 | compatible = "fixed-clock"; |
| 168 | #clock-cells = <0>; |
| 169 | clock-frequency = <40000000>; |
| 170 | clock-output-names = "clkxtal"; |
| 171 | }; |
| 172 | |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 173 | system_clk: dummy_system_clk { |
| 174 | compatible = "fixed-clock"; |
| 175 | clock-frequency = <40000000>; |
| 176 | #clock-cells = <0>; |
| 177 | }; |
| 178 | |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 179 | timer { |
| 180 | compatible = "arm,armv8-timer"; |
| 181 | interrupt-parent = <&gic>; |
developer | f39022a | 2021-05-06 13:31:52 +0800 | [diff] [blame] | 182 | clock-frequency = <13000000>; |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 183 | interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>, |
| 184 | <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>, |
| 185 | <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>, |
| 186 | <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>; |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 187 | }; |
| 188 | |
developer | 15adbbf | 2021-05-24 22:20:07 +0800 | [diff] [blame] | 189 | infracfg_ao: infracfg_ao@10001000 { |
| 190 | compatible = "mediatek,mt7986-infracfg_ao", "syscon"; |
developer | 8b9f285 | 2021-06-03 21:53:08 +0800 | [diff] [blame] | 191 | reg = <0 0x10001000 0 0x68>; |
developer | 15adbbf | 2021-05-24 22:20:07 +0800 | [diff] [blame] | 192 | #clock-cells = <1>; |
| 193 | }; |
| 194 | |
| 195 | infracfg: infracfg@10001040 { |
| 196 | compatible = "mediatek,mt7986-infracfg", "syscon"; |
developer | 8b9f285 | 2021-06-03 21:53:08 +0800 | [diff] [blame] | 197 | reg = <0 0x1000106c 0 0x1000>; |
developer | 15adbbf | 2021-05-24 22:20:07 +0800 | [diff] [blame] | 198 | #clock-cells = <1>; |
| 199 | }; |
| 200 | |
| 201 | topckgen: topckgen@1001B000 { |
| 202 | compatible = "mediatek,mt7986-topckgen", "syscon"; |
| 203 | reg = <0 0x1001B000 0 0x1000>; |
| 204 | #clock-cells = <1>; |
| 205 | }; |
| 206 | |
| 207 | apmixedsys: apmixedsys@1001E000 { |
| 208 | compatible = "mediatek,mt7986-apmixedsys", "syscon"; |
| 209 | reg = <0 0x1001E000 0 0x1000>; |
| 210 | #clock-cells = <1>; |
| 211 | }; |
| 212 | |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 213 | watchdog: watchdog@1001c000 { |
developer | e138bcd | 2021-12-06 09:20:47 +0800 | [diff] [blame] | 214 | compatible = "mediatek,mt7986-wdt"; |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 215 | reg = <0 0x1001c000 0 0x1000>; |
| 216 | interrupts = <GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH>; |
| 217 | #reset-cells = <1>; |
| 218 | }; |
| 219 | |
| 220 | gic: interrupt-controller@c000000 { |
| 221 | compatible = "arm,gic-v3"; |
| 222 | #interrupt-cells = <3>; |
| 223 | interrupt-parent = <&gic>; |
| 224 | interrupt-controller; |
| 225 | reg = <0 0x0c000000 0 0x40000>, /* GICD */ |
| 226 | <0 0x0c080000 0 0x200000>; /* GICR */ |
| 227 | |
| 228 | interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>; |
| 229 | }; |
| 230 | |
developer | 8b9f285 | 2021-06-03 21:53:08 +0800 | [diff] [blame] | 231 | pwm: pwm@10048000 { |
| 232 | compatible = "mediatek,mt7986-pwm"; |
| 233 | reg = <0 0x10048000 0 0x1000>; |
| 234 | #clock-cells = <1>; |
| 235 | #pwm-cells = <2>; |
| 236 | interrupts = <GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>; |
| 237 | clocks = <&infracfg CK_INFRA_PWM>, |
| 238 | <&infracfg_ao CK_INFRA_PWM_BSEL>, |
| 239 | <&infracfg_ao CK_INFRA_PWM1_CK>, |
| 240 | <&infracfg_ao CK_INFRA_PWM2_CK>; |
| 241 | assigned-clocks = <&topckgen CK_TOP_PWM_SEL>, |
| 242 | <&infracfg_ao CK_INFRA_PWM_BSEL>, |
| 243 | <&infracfg_ao CK_INFRA_PWM1_SEL>, |
| 244 | <&infracfg_ao CK_INFRA_PWM2_SEL>; |
| 245 | assigned-clock-parents = <&topckgen CK_TOP_CB_M_D4>, |
| 246 | <&infracfg CK_INFRA_PWM>, |
| 247 | <&infracfg CK_INFRA_PWM>, |
| 248 | <&infracfg CK_INFRA_PWM>; |
| 249 | clock-names = "top", "main", "pwm1", "pwm2"; |
| 250 | status = "disabled"; |
| 251 | }; |
| 252 | |
developer | 017b92f | 2022-05-25 11:37:11 +0800 | [diff] [blame] | 253 | fan: pwm-fan { |
| 254 | compatible = "pwm-fan"; |
| 255 | /* cooling level (0, 1, 2) : (0% duty, 50% duty, 100% duty) */ |
| 256 | cooling-levels = <0 128 255>; |
| 257 | #cooling-cells = <2>; |
| 258 | status = "disabled"; |
| 259 | }; |
| 260 | |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 261 | uart0: serial@11002000 { |
| 262 | compatible = "mediatek,mt7986-uart", |
| 263 | "mediatek,mt6577-uart"; |
| 264 | reg = <0 0x11002000 0 0x400>; |
| 265 | interrupts = <GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>; |
developer | 8b9f285 | 2021-06-03 21:53:08 +0800 | [diff] [blame] | 266 | clocks = <&infracfg_ao CK_INFRA_UART0_CK>; |
| 267 | assigned-clocks = <&topckgen CK_TOP_UART_SEL>, |
| 268 | <&infracfg_ao CK_INFRA_UART0_SEL>; |
| 269 | assigned-clock-parents = <&topckgen CK_TOP_CB_CKSQ_40M>, |
| 270 | <&infracfg CK_INFRA_UART>; |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 271 | status = "disabled"; |
| 272 | }; |
| 273 | |
| 274 | uart1: serial@11003000 { |
| 275 | compatible = "mediatek,mt7986-uart", |
| 276 | "mediatek,mt6577-uart"; |
| 277 | reg = <0 0x11003000 0 0x400>; |
| 278 | interrupts = <GIC_SPI 124 IRQ_TYPE_LEVEL_HIGH>; |
developer | 8b9f285 | 2021-06-03 21:53:08 +0800 | [diff] [blame] | 279 | clocks = <&infracfg_ao CK_INFRA_UART1_CK>; |
| 280 | assigned-clocks = <&infracfg_ao CK_INFRA_UART1_SEL>; |
| 281 | assigned-clock-parents = <&infracfg CK_INFRA_CK_F26M>; |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 282 | status = "disabled"; |
| 283 | }; |
| 284 | |
| 285 | uart2: serial@11004000 { |
| 286 | compatible = "mediatek,mt7986-uart", |
| 287 | "mediatek,mt6577-uart"; |
| 288 | reg = <0 0x11004000 0 0x400>; |
| 289 | interrupts = <GIC_SPI 125 IRQ_TYPE_LEVEL_HIGH>; |
developer | 8b9f285 | 2021-06-03 21:53:08 +0800 | [diff] [blame] | 290 | clocks = <&infracfg_ao CK_INFRA_UART2_CK>; |
| 291 | assigned-clocks = <&infracfg_ao CK_INFRA_UART2_SEL>; |
| 292 | assigned-clock-parents = <&infracfg CK_INFRA_CK_F26M>; |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 293 | status = "disabled"; |
| 294 | }; |
| 295 | |
developer | 8b9f285 | 2021-06-03 21:53:08 +0800 | [diff] [blame] | 296 | i2c0: i2c@11008000 { |
| 297 | compatible = "mediatek,mt7986-i2c"; |
| 298 | reg = <0 0x11008000 0 0x90>, |
| 299 | <0 0x10217080 0 0x80>; |
| 300 | interrupts = <GIC_SPI 136 IRQ_TYPE_LEVEL_HIGH>; |
developer | ccffa94 | 2021-09-22 15:57:01 +0800 | [diff] [blame] | 301 | clock-div = <5>; |
developer | 8b9f285 | 2021-06-03 21:53:08 +0800 | [diff] [blame] | 302 | clocks = <&infracfg_ao CK_INFRA_I2CO_CK>, |
| 303 | <&infracfg_ao CK_INFRA_AP_DMA_CK>; |
| 304 | clock-names = "main", "dma"; |
| 305 | #address-cells = <1>; |
| 306 | #size-cells = <0>; |
| 307 | status = "disabled"; |
| 308 | }; |
| 309 | |
developer | 3e9ad9d | 2021-07-01 16:42:25 +0800 | [diff] [blame] | 310 | thermal-zones { |
| 311 | cpu_thermal: cpu-thermal { |
| 312 | polling-delay-passive = <1000>; |
| 313 | polling-delay = <1000>; |
| 314 | thermal-sensors = <&thermal 0>; |
developer | 017b92f | 2022-05-25 11:37:11 +0800 | [diff] [blame] | 315 | trips { |
developer | 209e52d | 2022-06-30 11:32:57 +0800 | [diff] [blame] | 316 | cpu_trip_crit: crit { |
| 317 | temperature = <125000>; |
| 318 | hysteresis = <2000>; |
| 319 | type = "critical"; |
| 320 | }; |
| 321 | |
developer | 017b92f | 2022-05-25 11:37:11 +0800 | [diff] [blame] | 322 | cpu_trip_hot: hot { |
developer | 209e52d | 2022-06-30 11:32:57 +0800 | [diff] [blame] | 323 | temperature = <120000>; |
developer | 017b92f | 2022-05-25 11:37:11 +0800 | [diff] [blame] | 324 | hysteresis = <2000>; |
| 325 | type = "hot"; |
| 326 | }; |
| 327 | |
developer | 209e52d | 2022-06-30 11:32:57 +0800 | [diff] [blame] | 328 | cpu_trip_active_high: active-high { |
| 329 | temperature = <115000>; |
| 330 | hysteresis = <2000>; |
| 331 | type = "active"; |
| 332 | }; |
| 333 | |
| 334 | cpu_trip_active_low: active-low { |
| 335 | temperature = <85000>; |
developer | 017b92f | 2022-05-25 11:37:11 +0800 | [diff] [blame] | 336 | hysteresis = <2000>; |
| 337 | type = "active"; |
| 338 | }; |
| 339 | |
| 340 | cpu_trip_passive: passive { |
developer | 209e52d | 2022-06-30 11:32:57 +0800 | [diff] [blame] | 341 | temperature = <40000>; |
developer | 017b92f | 2022-05-25 11:37:11 +0800 | [diff] [blame] | 342 | hysteresis = <2000>; |
| 343 | type = "passive"; |
| 344 | }; |
| 345 | }; |
developer | 209e52d | 2022-06-30 11:32:57 +0800 | [diff] [blame] | 346 | |
developer | 017b92f | 2022-05-25 11:37:11 +0800 | [diff] [blame] | 347 | cooling-maps { |
developer | 209e52d | 2022-06-30 11:32:57 +0800 | [diff] [blame] | 348 | cpu-active-high { |
| 349 | /* active: set fan to cooling level 2 */ |
developer | 017b92f | 2022-05-25 11:37:11 +0800 | [diff] [blame] | 350 | cooling-device = <&fan 2 2>; |
developer | 209e52d | 2022-06-30 11:32:57 +0800 | [diff] [blame] | 351 | trip = <&cpu_trip_active_high>; |
developer | 017b92f | 2022-05-25 11:37:11 +0800 | [diff] [blame] | 352 | }; |
| 353 | |
developer | 209e52d | 2022-06-30 11:32:57 +0800 | [diff] [blame] | 354 | cpu-active-low { |
developer | 017b92f | 2022-05-25 11:37:11 +0800 | [diff] [blame] | 355 | /* active: set fan to cooling level 1 */ |
| 356 | cooling-device = <&fan 1 1>; |
developer | 209e52d | 2022-06-30 11:32:57 +0800 | [diff] [blame] | 357 | trip = <&cpu_trip_active_low>; |
developer | 017b92f | 2022-05-25 11:37:11 +0800 | [diff] [blame] | 358 | }; |
| 359 | |
| 360 | cpu-passive { |
| 361 | /* passive: set fan to cooling level 0 */ |
| 362 | cooling-device = <&fan 0 0>; |
| 363 | trip = <&cpu_trip_passive>; |
| 364 | }; |
| 365 | }; |
| 366 | |
developer | 3e9ad9d | 2021-07-01 16:42:25 +0800 | [diff] [blame] | 367 | }; |
| 368 | }; |
| 369 | |
| 370 | thermal: thermal@1100c800 { |
| 371 | #thermal-sensor-cells = <1>; |
| 372 | compatible = "mediatek,mt7986-thermal"; |
developer | 4173d3c | 2021-08-12 11:21:49 +0800 | [diff] [blame] | 373 | reg = <0 0x1100c800 0 0x800>; |
developer | 3e9ad9d | 2021-07-01 16:42:25 +0800 | [diff] [blame] | 374 | interrupts = <GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>; |
| 375 | clocks = <&infracfg_ao CK_INFRA_THERM_CK>, |
developer | df32d11 | 2021-08-29 11:58:01 +0800 | [diff] [blame] | 376 | <&infracfg_ao CK_INFRA_ADC_26M_CK>, |
| 377 | <&infracfg_ao CK_INFRA_ADC_FRC_CK>; |
| 378 | clock-names = "therm", "auxadc", "adc_32k"; |
developer | 3e9ad9d | 2021-07-01 16:42:25 +0800 | [diff] [blame] | 379 | mediatek,auxadc = <&auxadc>; |
| 380 | mediatek,apmixedsys = <&apmixedsys>; |
| 381 | nvmem-cells = <&thermal_calibration>; |
| 382 | nvmem-cell-names = "calibration-data"; |
| 383 | }; |
| 384 | |
developer | e2ed434 | 2021-07-02 16:04:23 +0800 | [diff] [blame] | 385 | pcie0: pcie@11280000 { |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 386 | compatible = "mediatek,mt7986-pcie"; |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 387 | reg = <0 0x11280000 0 0x5000>; |
developer | e2ed434 | 2021-07-02 16:04:23 +0800 | [diff] [blame] | 388 | reg-names = "pcie-mac"; |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 389 | #address-cells = <3>; |
| 390 | #size-cells = <2>; |
| 391 | interrupts = <GIC_SPI 168 IRQ_TYPE_LEVEL_HIGH>; |
| 392 | bus-range = <0x00 0xff>; |
| 393 | ranges = <0x82000000 0 0x20000000 |
| 394 | 0x0 0x20000000 0 0x10000000>; |
developer | e2ed434 | 2021-07-02 16:04:23 +0800 | [diff] [blame] | 395 | status = "disabled"; |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 396 | |
developer | e2ed434 | 2021-07-02 16:04:23 +0800 | [diff] [blame] | 397 | clocks = <&infracfg_ao CK_INFRA_PCIE_SEL>, |
| 398 | <&infracfg_ao CK_INFRA_IPCIE_CK>, |
| 399 | <&infracfg_ao CK_INFRA_IPCIE_PIPE_CK>, |
| 400 | <&infracfg_ao CK_INFRA_IPCIER_CK>, |
| 401 | <&infracfg_ao CK_INFRA_IPCIEB_CK>; |
| 402 | |
developer | 604b5ac | 2021-12-30 14:35:44 +0800 | [diff] [blame] | 403 | phys = <&pcieport PHY_TYPE_PCIE>; |
| 404 | phy-names = "pcie-phy"; |
| 405 | |
developer | e2ed434 | 2021-07-02 16:04:23 +0800 | [diff] [blame] | 406 | #interrupt-cells = <1>; |
| 407 | interrupt-map-mask = <0 0 0 7>; |
| 408 | interrupt-map = <0 0 0 1 &pcie_intc0 0>, |
| 409 | <0 0 0 2 &pcie_intc0 1>, |
| 410 | <0 0 0 3 &pcie_intc0 2>, |
| 411 | <0 0 0 4 &pcie_intc0 3>; |
| 412 | pcie_intc0: interrupt-controller { |
| 413 | interrupt-controller; |
| 414 | #address-cells = <0>; |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 415 | #interrupt-cells = <1>; |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 416 | }; |
developer | 472b74d | 2022-05-31 18:17:18 +0800 | [diff] [blame] | 417 | |
| 418 | slot0: pcie@0,0 { |
| 419 | reg = <0x0000 0 0 0 0>; |
| 420 | }; |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 421 | }; |
| 422 | |
developer | 3e91642 | 2021-05-27 16:40:29 +0800 | [diff] [blame] | 423 | crypto: crypto@10320000 { |
| 424 | compatible = "inside-secure,safexcel-eip97"; |
| 425 | reg = <0 0x10320000 0 0x40000>; |
| 426 | interrupts = <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>, |
| 427 | <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>, |
| 428 | <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>, |
| 429 | <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>; |
| 430 | interrupt-names = "ring0", "ring1", "ring2", "ring3"; |
developer | e1993bd | 2021-07-06 13:48:40 +0800 | [diff] [blame] | 431 | clocks = <&infracfg_ao CK_INFRA_EIP97_CK>; |
| 432 | clock-names = "infra_eip97_ck"; |
| 433 | assigned-clocks = <&topckgen CK_TOP_EIP_B_SEL>; |
| 434 | assigned-clock-parents = <&topckgen CK_TOP_CB_NET2_800M>; |
developer | 3e91642 | 2021-05-27 16:40:29 +0800 | [diff] [blame] | 435 | }; |
| 436 | |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 437 | pio: pinctrl@1001f000 { |
| 438 | compatible = "mediatek,mt7986-pinctrl"; |
| 439 | reg = <0 0x1001f000 0 0x1000>, |
| 440 | <0 0x11c30000 0 0x1000>, |
| 441 | <0 0x11c40000 0 0x1000>, |
| 442 | <0 0x11e20000 0 0x1000>, |
| 443 | <0 0x11e30000 0 0x1000>, |
| 444 | <0 0x11f00000 0 0x1000>, |
| 445 | <0 0x11f10000 0 0x1000>, |
| 446 | <0 0x1000b000 0 0x1000>; |
| 447 | reg-names = "gpio_base", "iocfg_rt_base", "iocfg_rb_base", |
| 448 | "iocfg_lt_base", "iocfg_lb_base", "iocfg_tr_base", |
| 449 | "iocfg_tl_base", "eint"; |
| 450 | gpio-controller; |
| 451 | #gpio-cells = <2>; |
| 452 | gpio-ranges = <&pio 0 0 100>; |
| 453 | interrupt-controller; |
developer | a7f8fa4 | 2021-06-07 16:46:34 +0800 | [diff] [blame] | 454 | interrupts = <GIC_SPI 225 IRQ_TYPE_LEVEL_HIGH>; |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 455 | interrupt-parent = <&gic>; |
| 456 | #interrupt-cells = <2>; |
| 457 | }; |
| 458 | |
| 459 | ethsys: syscon@15000000 { |
| 460 | #address-cells = <1>; |
| 461 | #size-cells = <1>; |
developer | 8b9f285 | 2021-06-03 21:53:08 +0800 | [diff] [blame] | 462 | compatible = "mediatek,mt7986-ethsys_ck", |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 463 | "syscon"; |
| 464 | reg = <0 0x15000000 0 0x1000>; |
| 465 | #clock-cells = <1>; |
| 466 | #reset-cells = <1>; |
| 467 | |
| 468 | ethsysrst: reset-controller { |
| 469 | compatible = "ti,syscon-reset"; |
| 470 | #reset-cells = <1>; |
| 471 | ti,reset-bits = <0x34 4 0x34 4 0x34 4 (ASSERT_SET | DEASSERT_CLEAR | STATUS_SET)>; |
| 472 | }; |
| 473 | }; |
| 474 | |
| 475 | eth: ethernet@15100000 { |
| 476 | compatible = "mediatek,mt7986-eth"; |
| 477 | reg = <0 0x15100000 0 0x80000>; |
| 478 | interrupts = <GIC_SPI 196 IRQ_TYPE_LEVEL_HIGH>, |
| 479 | <GIC_SPI 197 IRQ_TYPE_LEVEL_HIGH>, |
| 480 | <GIC_SPI 198 IRQ_TYPE_LEVEL_HIGH>, |
| 481 | <GIC_SPI 199 IRQ_TYPE_LEVEL_HIGH>; |
developer | 8b9f285 | 2021-06-03 21:53:08 +0800 | [diff] [blame] | 482 | clocks = <ðsys CK_ETH_FE_EN>, |
| 483 | <ðsys CK_ETH_GP2_EN>, |
| 484 | <ðsys CK_ETH_GP1_EN>, |
| 485 | <ðsys CK_ETH_WOCPU1_EN>, |
| 486 | <ðsys CK_ETH_WOCPU0_EN>, |
developer | 77bbf43 | 2021-06-28 18:39:08 +0800 | [diff] [blame] | 487 | <&sgmiisys0 CK_SGM0_TX_EN>, |
| 488 | <&sgmiisys0 CK_SGM0_RX_EN>, |
| 489 | <&sgmiisys0 CK_SGM0_CK0_EN>, |
| 490 | <&sgmiisys0 CK_SGM0_CDR_CK0_EN>, |
| 491 | <&sgmiisys1 CK_SGM1_TX_EN>, |
| 492 | <&sgmiisys1 CK_SGM1_RX_EN>, |
| 493 | <&sgmiisys1 CK_SGM1_CK1_EN>, |
| 494 | <&sgmiisys1 CK_SGM1_CDR_CK1_EN>; |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 495 | clock-names = "fe", "gp2", "gp1", "wocpu1", "wocpu0", |
| 496 | "sgmii_tx250m", "sgmii_rx250m", |
| 497 | "sgmii_cdr_ref", "sgmii_cdr_fb", |
| 498 | "sgmii2_tx250m", "sgmii2_rx250m", |
| 499 | "sgmii2_cdr_ref", "sgmii2_cdr_fb"; |
developer | 8b9f285 | 2021-06-03 21:53:08 +0800 | [diff] [blame] | 500 | assigned-clocks = <&topckgen CK_TOP_NETSYS_2X_SEL>, |
| 501 | <&topckgen CK_TOP_SGM_325M_SEL>; |
| 502 | assigned-clock-parents = <&topckgen CK_TOP_CB_NET2_800M>, |
| 503 | <&topckgen CK_TOP_CB_SGM_325M>; |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 504 | mediatek,ethsys = <ðsys>; |
| 505 | mediatek,sgmiisys = <&sgmiisys0>, <&sgmiisys1>; |
| 506 | #reset-cells = <1>; |
| 507 | #address-cells = <1>; |
| 508 | #size-cells = <0>; |
| 509 | status = "disabled"; |
| 510 | }; |
| 511 | |
| 512 | hnat: hnat@15000000 { |
| 513 | compatible = "mediatek,mtk-hnat_v4"; |
| 514 | reg = <0 0x15100000 0 0x80000>; |
| 515 | resets = <ðsys 0>; |
| 516 | reset-names = "mtketh"; |
| 517 | status = "disabled"; |
| 518 | }; |
| 519 | |
| 520 | sgmiisys0: syscon@10060000 { |
developer | 15adbbf | 2021-05-24 22:20:07 +0800 | [diff] [blame] | 521 | compatible = "mediatek,mt7986-sgmiisys", |
| 522 | "mediatek,mt7986-sgmiisys_0", |
| 523 | "syscon"; |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 524 | reg = <0 0x10060000 0 0x1000>; |
| 525 | #clock-cells = <1>; |
| 526 | }; |
| 527 | |
| 528 | sgmiisys1: syscon@10070000 { |
developer | 15adbbf | 2021-05-24 22:20:07 +0800 | [diff] [blame] | 529 | compatible = "mediatek,mt7986-sgmiisys", |
| 530 | "mediatek,mt7986-sgmiisys_1", |
| 531 | "syscon"; |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 532 | reg = <0 0x10070000 0 0x1000>; |
| 533 | #clock-cells = <1>; |
| 534 | }; |
| 535 | |
| 536 | snand: snfi@11005000 { |
| 537 | compatible = "mediatek,mt7986-snand"; |
| 538 | reg = <0 0x11005000 0 0x1000>, <0 0x11006000 0 0x1000>; |
| 539 | reg-names = "nfi", "ecc"; |
| 540 | interrupts = <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>; |
developer | 248c10b | 2021-07-14 16:11:19 +0800 | [diff] [blame] | 541 | clocks = <&infracfg_ao CK_INFRA_SPINFI1_CK>, |
| 542 | <&infracfg_ao CK_INFRA_NFI1_CK>, |
| 543 | <&infracfg_ao CK_INFRA_NFI_HCK_CK>; |
| 544 | clock-names = "pad_clk", "nfi_clk", "nfi_hclk"; |
developer | 8b9f285 | 2021-06-03 21:53:08 +0800 | [diff] [blame] | 545 | assigned-clocks = <&topckgen CK_TOP_SPINFI_SEL>, |
| 546 | <&topckgen CK_TOP_NFI1X_SEL>; |
developer | e556261 | 2021-08-05 15:50:40 +0800 | [diff] [blame] | 547 | assigned-clock-parents = <&topckgen CK_TOP_CB_M_D8>, |
| 548 | <&topckgen CK_TOP_CB_M_D8>; |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 549 | #address-cells = <1>; |
| 550 | #size-cells = <0>; |
| 551 | status = "disabled"; |
| 552 | }; |
| 553 | |
| 554 | wbsys: wbsys@18000000 { |
developer | eb527ef | 2022-01-12 10:38:12 +0800 | [diff] [blame] | 555 | compatible = "mediatek,wbsys", |
| 556 | "mediatek,mt7986-wmac"; |
developer | e138bcd | 2021-12-06 09:20:47 +0800 | [diff] [blame] | 557 | resets = <&watchdog MT7986_TOPRGU_CONSYS_RST>; |
| 558 | reset-names = "consys"; |
| 559 | reg = <0 0x18000000 0 0x1000000>, |
| 560 | <0 0x10003000 0 0x1000>, |
developer | a5ea3d2 | 2022-02-17 09:23:09 +0800 | [diff] [blame] | 561 | <0 0x11d10000 0 0x1000>; |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 562 | interrupts = <GIC_SPI 213 IRQ_TYPE_LEVEL_HIGH>, |
| 563 | <GIC_SPI 214 IRQ_TYPE_LEVEL_HIGH>, |
| 564 | <GIC_SPI 215 IRQ_TYPE_LEVEL_HIGH>, |
| 565 | <GIC_SPI 216 IRQ_TYPE_LEVEL_HIGH>; |
| 566 | chip_id = <0x7986>; |
developer | e138bcd | 2021-12-06 09:20:47 +0800 | [diff] [blame] | 567 | memory-region = <&wmcpu_emi>; |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 568 | }; |
| 569 | |
| 570 | wed_pcie: wed_pcie@10003000 { |
| 571 | compatible = "mediatek,wed_pcie"; |
| 572 | reg = <0 0x10003000 0 0x10>; |
| 573 | }; |
| 574 | |
| 575 | spi0: spi@1100a000 { |
developer | 44700a2 | 2021-07-13 19:06:49 +0800 | [diff] [blame] | 576 | compatible = "mediatek,ipm-spi-quad"; |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 577 | reg = <0 0x1100a000 0 0x100>; |
| 578 | interrupts = <GIC_SPI 140 IRQ_TYPE_LEVEL_HIGH>; |
developer | 8b9f285 | 2021-06-03 21:53:08 +0800 | [diff] [blame] | 579 | clocks = <&topckgen CK_TOP_CB_M_D2>, |
developer | 44700a2 | 2021-07-13 19:06:49 +0800 | [diff] [blame] | 580 | <&topckgen CK_TOP_SPI_SEL>, |
developer | 8b9f285 | 2021-06-03 21:53:08 +0800 | [diff] [blame] | 581 | <&infracfg_ao CK_INFRA_SPI0_CK>, |
developer | 44700a2 | 2021-07-13 19:06:49 +0800 | [diff] [blame] | 582 | <&infracfg_ao CK_INFRA_SPI0_HCK_CK>; |
| 583 | clock-names = "parent-clk", "sel-clk", "spi-clk", "spi-hclk"; |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 584 | status = "disabled"; |
| 585 | }; |
| 586 | |
| 587 | spi1: spi@1100b000 { |
developer | 44700a2 | 2021-07-13 19:06:49 +0800 | [diff] [blame] | 588 | compatible = "mediatek,ipm-spi-single"; |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 589 | reg = <0 0x1100b000 0 0x100>; |
| 590 | interrupts = <GIC_SPI 141 IRQ_TYPE_LEVEL_HIGH>; |
developer | 8b9f285 | 2021-06-03 21:53:08 +0800 | [diff] [blame] | 591 | clocks = <&topckgen CK_TOP_CB_M_D2>, |
developer | 44700a2 | 2021-07-13 19:06:49 +0800 | [diff] [blame] | 592 | <&topckgen CK_TOP_SPIM_MST_SEL>, |
developer | 8b9f285 | 2021-06-03 21:53:08 +0800 | [diff] [blame] | 593 | <&infracfg_ao CK_INFRA_SPI1_CK>, |
developer | 44700a2 | 2021-07-13 19:06:49 +0800 | [diff] [blame] | 594 | <&infracfg_ao CK_INFRA_SPI1_HCK_CK>; |
| 595 | clock-names = "parent-clk", "sel-clk", "spi-clk", "spi-hclk"; |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 596 | status = "disabled"; |
| 597 | }; |
| 598 | |
developer | 637f555 | 2021-05-27 17:45:27 +0800 | [diff] [blame] | 599 | mmc0: mmc@11230000 { |
| 600 | compatible = "mediatek,mt7986-mmc"; |
| 601 | reg = <0 0x11230000 0 0x1000>, |
| 602 | <0 0x11c20000 0 0x1000>; |
| 603 | interrupts = <GIC_SPI 143 IRQ_TYPE_LEVEL_HIGH>; |
developer | 8b9f285 | 2021-06-03 21:53:08 +0800 | [diff] [blame] | 604 | clocks = <&topckgen CK_TOP_EMMC_416M>, |
developer | 30389d9 | 2022-05-10 09:35:17 +0800 | [diff] [blame] | 605 | <&infracfg_ao CK_INFRA_MSDC_HCK_CK>, |
| 606 | <&infracfg_ao CK_INFRA_MSDC_CK>, |
| 607 | <&infracfg_ao CK_INFRA_MSDC_66M_CK>, |
| 608 | <&infracfg_ao CK_INFRA_MSDC_133M_CK>; |
| 609 | clock-names = "source", "hclk", "source_cg", "sys_cg", "axi_cg"; |
developer | 8b9f285 | 2021-06-03 21:53:08 +0800 | [diff] [blame] | 610 | assigned-clocks = <&topckgen CK_TOP_EMMC_416M_SEL>, |
| 611 | <&topckgen CK_TOP_EMMC_250M_SEL>; |
developer | f089cc0 | 2021-09-11 17:23:41 +0800 | [diff] [blame] | 612 | assigned-clock-parents = <&topckgen CK_TOP_CB_M_416M>, |
| 613 | <&topckgen CK_TOP_NET1_D5_D2>; |
developer | 637f555 | 2021-05-27 17:45:27 +0800 | [diff] [blame] | 614 | status = "disabled"; |
| 615 | }; |
| 616 | |
developer | ee2df73 | 2021-05-21 15:19:42 +0800 | [diff] [blame] | 617 | auxadc: adc@1100d000 { |
| 618 | compatible = "mediatek,mt7986-auxadc", |
| 619 | "mediatek,mt7622-auxadc"; |
| 620 | reg = <0 0x1100d000 0 0x1000>; |
developer | 2cdfa05 | 2021-08-12 10:41:52 +0800 | [diff] [blame] | 621 | clocks = <&infracfg_ao CK_INFRA_ADC_26M_CK>, |
| 622 | <&infracfg_ao CK_INFRA_ADC_FRC_CK>; |
| 623 | clock-names = "main", "32k"; |
developer | ee2df73 | 2021-05-21 15:19:42 +0800 | [diff] [blame] | 624 | #io-channel-cells = <1>; |
developer | 8b9f285 | 2021-06-03 21:53:08 +0800 | [diff] [blame] | 625 | status = "disabled"; |
developer | ee2df73 | 2021-05-21 15:19:42 +0800 | [diff] [blame] | 626 | }; |
| 627 | |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 628 | consys: consys@10000000 { |
| 629 | compatible = "mediatek,mt7986-consys"; |
| 630 | reg = <0 0x10000000 0 0x8600000>; |
| 631 | memory-region = <&wmcpu_emi>; |
| 632 | }; |
| 633 | |
| 634 | xhci: xhci@11200000 { |
| 635 | compatible = "mediatek,mt7986-xhci", |
| 636 | "mediatek,mtk-xhci"; |
| 637 | reg = <0 0x11200000 0 0x2e00>, |
| 638 | <0 0x11203e00 0 0x0100>; |
| 639 | reg-names = "mac", "ippc"; |
| 640 | interrupts = <GIC_SPI 173 IRQ_TYPE_LEVEL_HIGH>; |
| 641 | phys = <&u2port0 PHY_TYPE_USB2>, |
| 642 | <&u3port0 PHY_TYPE_USB3>, |
| 643 | <&u2port1 PHY_TYPE_USB2>; |
| 644 | clocks = <&system_clk>, |
| 645 | <&system_clk>, |
| 646 | <&system_clk>, |
| 647 | <&system_clk>, |
| 648 | <&system_clk>; |
| 649 | clock-names = "sys_ck", |
| 650 | "xhci_ck", |
| 651 | "ref_ck", |
| 652 | "mcu_ck", |
| 653 | "dma_ck"; |
| 654 | #address-cells = <2>; |
| 655 | #size-cells = <2>; |
developer | 604b5ac | 2021-12-30 14:35:44 +0800 | [diff] [blame] | 656 | status = "okay"; |
| 657 | }; |
| 658 | |
| 659 | pcietphy: pcie-phy@11c00000 { |
| 660 | compatible = "mediatek,mt7986", |
developer | 98e5cb2 | 2022-01-28 17:31:23 +0800 | [diff] [blame] | 661 | "mediatek,generic-tphy-v4"; |
developer | 604b5ac | 2021-12-30 14:35:44 +0800 | [diff] [blame] | 662 | #address-cells = <2>; |
| 663 | #size-cells = <2>; |
| 664 | ranges; |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 665 | status = "okay"; |
developer | 604b5ac | 2021-12-30 14:35:44 +0800 | [diff] [blame] | 666 | |
| 667 | pcieport: pcie-phy@11c00000 { |
| 668 | reg = <0 0x11c00000 0 0x20000>; |
| 669 | clocks = <&system_clk>; |
| 670 | clock-names = "ref"; |
| 671 | #phy-cells = <1>; |
developer | 98e5cb2 | 2022-01-28 17:31:23 +0800 | [diff] [blame] | 672 | auto_load_valid; |
| 673 | auto_load_valid_ln1; |
| 674 | nvmem-cells = <&pcie_intr_ln0>, |
| 675 | <&pcie_rx_imp_ln0>, |
| 676 | <&pcie_tx_imp_ln0>, |
| 677 | <&pcie_auto_load_valid_ln0>, |
| 678 | <&pcie_intr_ln1>, |
| 679 | <&pcie_rx_imp_ln1>, |
| 680 | <&pcie_tx_imp_ln1>, |
| 681 | <&pcie_auto_load_valid_ln1>; |
| 682 | nvmem-cell-names = "intr", |
| 683 | "rx_imp", |
| 684 | "tx_imp", |
| 685 | "auto_load_valid", |
| 686 | "intr_ln1", |
| 687 | "rx_imp_ln1", |
| 688 | "tx_imp_ln1", |
| 689 | "auto_load_valid_ln1"; |
developer | 604b5ac | 2021-12-30 14:35:44 +0800 | [diff] [blame] | 690 | status = "okay"; |
| 691 | }; |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 692 | }; |
| 693 | |
| 694 | usbtphy: usb-phy@11e10000 { |
| 695 | compatible = "mediatek,mt7986", |
| 696 | "mediatek,generic-tphy-v2"; |
| 697 | #address-cells = <2>; |
| 698 | #size-cells = <2>; |
| 699 | ranges; |
| 700 | status = "okay"; |
| 701 | |
| 702 | u2port0: usb-phy@11e10000 { |
| 703 | reg = <0 0x11e10000 0 0x700>; |
| 704 | clocks = <&system_clk>; |
| 705 | clock-names = "ref"; |
| 706 | #phy-cells = <1>; |
developer | 98e5cb2 | 2022-01-28 17:31:23 +0800 | [diff] [blame] | 707 | auto_load_valid; |
| 708 | nvmem-cells = <&u2_intr_p0>, <&u2_auto_load_valid_p0>; |
| 709 | nvmem-cell-names = "intr", "auto_load_valid"; |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 710 | status = "okay"; |
| 711 | }; |
| 712 | |
| 713 | u3port0: usb-phy@11e10700 { |
| 714 | reg = <0 0x11e10700 0 0x900>; |
| 715 | clocks = <&system_clk>; |
| 716 | clock-names = "ref"; |
| 717 | #phy-cells = <1>; |
developer | 98e5cb2 | 2022-01-28 17:31:23 +0800 | [diff] [blame] | 718 | auto_load_valid; |
| 719 | nvmem-cells = <&comb_intr_p0>, |
| 720 | <&comb_rx_imp_p0>, |
| 721 | <&comb_tx_imp_p0>, |
| 722 | <&comb_auto_load_valid>; |
| 723 | nvmem-cell-names = "intr", "rx_imp", "tx_imp", "auto_load_valid"; |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 724 | status = "okay"; |
| 725 | }; |
| 726 | |
| 727 | u2port1: usb-phy@11e11000 { |
| 728 | reg = <0 0x11e11000 0 0x700>; |
| 729 | clocks = <&system_clk>; |
| 730 | clock-names = "ref"; |
| 731 | #phy-cells = <1>; |
developer | 98e5cb2 | 2022-01-28 17:31:23 +0800 | [diff] [blame] | 732 | auto_load_valid; |
| 733 | nvmem-cells = <&u2_intr_p1>, <&u2_auto_load_valid_p1>; |
| 734 | nvmem-cell-names = "intr", "auto_load_valid"; |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 735 | status = "okay"; |
| 736 | }; |
| 737 | }; |
developer | 15adbbf | 2021-05-24 22:20:07 +0800 | [diff] [blame] | 738 | |
| 739 | clkitg: clkitg { |
| 740 | compatible = "simple-bus"; |
| 741 | }; |
developer | fbbf02b | 2021-06-25 09:30:28 +0800 | [diff] [blame] | 742 | |
developer | e1993bd | 2021-07-06 13:48:40 +0800 | [diff] [blame] | 743 | afe: audio-controller@11210000 { |
developer | be797a3 | 2021-12-16 16:56:09 +0800 | [diff] [blame] | 744 | compatible = "mediatek,mt79xx-audio"; |
developer | e1993bd | 2021-07-06 13:48:40 +0800 | [diff] [blame] | 745 | reg = <0 0x11210000 0 0x9000>; |
| 746 | interrupts = <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>; |
| 747 | clocks = <&infracfg_ao CK_INFRA_AUD_BUS_CK>, |
| 748 | <&infracfg_ao CK_INFRA_AUD_26M_CK>, |
| 749 | <&infracfg_ao CK_INFRA_AUD_L_CK>, |
| 750 | <&infracfg_ao CK_INFRA_AUD_AUD_CK>, |
| 751 | <&infracfg_ao CK_INFRA_AUD_EG2_CK>; |
| 752 | clock-names = "aud_bus_ck", |
| 753 | "aud_26m_ck", |
| 754 | "aud_l_ck", |
| 755 | "aud_aud_ck", |
| 756 | "aud_eg2_ck"; |
| 757 | assigned-clocks = <&topckgen CK_TOP_A1SYS_SEL>, |
| 758 | <&topckgen CK_TOP_AUD_L_SEL>, |
| 759 | <&topckgen CK_TOP_A_TUNER_SEL>; |
| 760 | assigned-clock-parents = <&topckgen CK_TOP_APLL2_D4>, |
| 761 | <&topckgen CK_TOP_CB_APLL2_196M>, |
| 762 | <&topckgen CK_TOP_APLL2_D4>; |
| 763 | }; |
| 764 | |
developer | fbbf02b | 2021-06-25 09:30:28 +0800 | [diff] [blame] | 765 | trng: trng@1020f000 { |
| 766 | compatible = "mediatek,mt7986-rng", |
| 767 | "mediatek,mt7623-rng"; |
| 768 | reg = <0 0x1020f000 0 0x100>; |
| 769 | clocks = <&infracfg_ao CK_INFRA_TRNG_CK>; |
| 770 | clock-names = "rng"; |
| 771 | }; |
developer | 86ee1e1 | 2021-06-30 11:18:53 +0800 | [diff] [blame] | 772 | |
| 773 | ice: ice_debug { |
| 774 | compatible = "mediatek,mt7986-ice_debug", |
| 775 | "mediatek,mt2701-ice_debug"; |
developer | 66b5c8d | 2021-07-16 14:02:47 +0800 | [diff] [blame] | 776 | clocks = <&infracfg_ao CK_INFRA_DBG_CK>, |
| 777 | <&topckgen CK_TOP_ARM_DB_JTSEL>; |
| 778 | clock-names = "ice_dbg", "dbg_jtsel"; |
developer | 86ee1e1 | 2021-06-30 11:18:53 +0800 | [diff] [blame] | 779 | }; |
developer | 3e9ad9d | 2021-07-01 16:42:25 +0800 | [diff] [blame] | 780 | |
| 781 | efuse: efuse@11d00000 { |
| 782 | compatible = "mediatek,mt7986-efuse", |
| 783 | "mediatek,efuse"; |
| 784 | reg = <0 0x11d00000 0 0x1000>; |
| 785 | #address-cells = <1>; |
| 786 | #size-cells = <1>; |
| 787 | |
| 788 | thermal_calibration: calib@274 { |
| 789 | reg = <0x274 0xc>; |
| 790 | }; |
developer | 98e5cb2 | 2022-01-28 17:31:23 +0800 | [diff] [blame] | 791 | |
| 792 | comb_auto_load_valid: usb3-alv-imp@8da { |
| 793 | reg = <0x8da 1>; |
| 794 | bits = <0 1>; |
| 795 | }; |
| 796 | |
| 797 | comb_rx_imp_p0: usb3-rx-imp@8d8 { |
| 798 | reg = <0x8d8 1>; |
| 799 | bits = <0 5>; |
| 800 | }; |
| 801 | |
| 802 | comb_tx_imp_p0: usb3-tx-imp@8d8 { |
| 803 | reg = <0x8d8 2>; |
| 804 | bits = <5 5>; |
| 805 | }; |
| 806 | |
| 807 | comb_intr_p0: usb3-intr@8d9 { |
| 808 | reg = <0x8d9 1>; |
| 809 | bits = <2 6>; |
| 810 | }; |
| 811 | |
| 812 | u2_auto_load_valid_p0: usb2-alv-p0@8e0 { |
| 813 | reg = <0x8e0 1>; |
| 814 | bits = <0 1>; |
| 815 | }; |
| 816 | |
| 817 | u2_intr_p0: usb2-intr-p0@8e0 { |
| 818 | reg = <0x8e0 1>; |
| 819 | bits = <1 5>; |
| 820 | }; |
| 821 | |
| 822 | u2_auto_load_valid_p1: usb2-alv-p1@8e0 { |
| 823 | reg = <0x8e0 2>; |
| 824 | bits = <6 1>; |
| 825 | }; |
| 826 | |
| 827 | u2_intr_p1: usb2-intr-p1@8e0 { |
| 828 | reg = <0x8e0 2>; |
| 829 | bits = <7 5>; |
| 830 | }; |
| 831 | |
| 832 | pcie_rx_imp_ln0: pcie-rx-imp@8d0 { |
| 833 | reg = <0x8d0 1>; |
| 834 | bits = <0 5>; |
| 835 | }; |
| 836 | |
| 837 | pcie_tx_imp_ln0: pcie-tx-imp@8d0 { |
| 838 | reg = <0x8d0 2>; |
| 839 | bits = <5 5>; |
| 840 | }; |
| 841 | |
| 842 | pcie_intr_ln0: pcie-intr@8d1 { |
| 843 | reg = <0x8d1 1>; |
| 844 | bits = <2 6>; |
| 845 | }; |
| 846 | |
| 847 | pcie_auto_load_valid_ln0: pcie-ln0-alv@8d4 { |
| 848 | reg = <0x8d4 1>; |
| 849 | bits = <0 1>; |
| 850 | }; |
| 851 | |
| 852 | pcie_rx_imp_ln1: pcie-rx-imp@8d2 { |
| 853 | reg = <0x8d2 1>; |
| 854 | bits = <0 5>; |
| 855 | }; |
| 856 | |
| 857 | pcie_tx_imp_ln1: pcie-tx-imp@8d2 { |
| 858 | reg = <0x8d2 2>; |
| 859 | bits = <5 5>; |
| 860 | }; |
| 861 | |
| 862 | pcie_intr_ln1: pcie-intr@8d3 { |
| 863 | reg = <0x8d3 1>; |
| 864 | bits = <2 6>; |
| 865 | }; |
| 866 | |
| 867 | pcie_auto_load_valid_ln1: pcie-ln1-alv@8d4 { |
| 868 | reg = <0x8d4 1>; |
| 869 | bits = <1 1>; |
| 870 | }; |
developer | 3e9ad9d | 2021-07-01 16:42:25 +0800 | [diff] [blame] | 871 | }; |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 872 | }; |
developer | 15adbbf | 2021-05-24 22:20:07 +0800 | [diff] [blame] | 873 | |
developer | 8b9f285 | 2021-06-03 21:53:08 +0800 | [diff] [blame] | 874 | #include "mt7986-clkitg.dtsi" |