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 | 2df324b | 2021-06-24 10:21:45 +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 | 2df324b | 2021-06-24 10:21:45 +0800 | [diff] [blame] | 22 | |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 23 | / { |
| 24 | compatible = "mediatek,mt7986b-rfb"; |
| 25 | interrupt-parent = <&gic>; |
| 26 | #address-cells = <2>; |
| 27 | #size-cells = <2>; |
| 28 | cpus { |
| 29 | #address-cells = <1>; |
| 30 | #size-cells = <0>; |
developer | 3e9ad9d | 2021-07-01 16:42:25 +0800 | [diff] [blame] | 31 | cpu0: cpu@0 { |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 32 | device_type = "cpu"; |
| 33 | compatible = "arm,cortex-a53"; |
| 34 | enable-method = "psci"; |
| 35 | reg = <0x0>; |
| 36 | }; |
| 37 | |
developer | 3e9ad9d | 2021-07-01 16:42:25 +0800 | [diff] [blame] | 38 | cpu1: cpu@1 { |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 39 | device_type = "cpu"; |
| 40 | compatible = "arm,cortex-a53"; |
| 41 | enable-method = "psci"; |
| 42 | reg = <0x1>; |
| 43 | }; |
| 44 | |
developer | 3e9ad9d | 2021-07-01 16:42:25 +0800 | [diff] [blame] | 45 | cpu2: cpu@2 { |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 46 | device_type = "cpu"; |
| 47 | compatible = "arm,cortex-a53"; |
| 48 | enable-method = "psci"; |
| 49 | reg = <0x2>; |
| 50 | }; |
| 51 | |
developer | 3e9ad9d | 2021-07-01 16:42:25 +0800 | [diff] [blame] | 52 | cpu3: cpu@3 { |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 53 | device_type = "cpu"; |
| 54 | enable-method = "psci"; |
| 55 | compatible = "arm,cortex-a53"; |
| 56 | reg = <0x3>; |
| 57 | }; |
| 58 | }; |
| 59 | |
| 60 | wed: wed@15010000 { |
| 61 | compatible = "mediatek,wed"; |
| 62 | wed_num = <2>; |
| 63 | /* add this property for wed get the pci slot number. */ |
| 64 | pci_slot_map = <0>, <1>; |
| 65 | reg = <0 0x15010000 0 0x1000>, |
| 66 | <0 0x15011000 0 0x1000>; |
| 67 | interrupt-parent = <&gic>; |
| 68 | interrupts = <GIC_SPI 205 IRQ_TYPE_LEVEL_HIGH>, |
| 69 | <GIC_SPI 206 IRQ_TYPE_LEVEL_HIGH>; |
| 70 | }; |
| 71 | |
| 72 | wed2: wed2@15011000 { |
| 73 | compatible = "mediatek,wed2"; |
| 74 | wed_num = <2>; |
| 75 | reg = <0 0x15010000 0 0x1000>, |
| 76 | <0 0x15011000 0 0x1000>; |
| 77 | interrupt-parent = <&gic>; |
| 78 | interrupts = <GIC_SPI 205 IRQ_TYPE_LEVEL_HIGH>, |
| 79 | <GIC_SPI 206 IRQ_TYPE_LEVEL_HIGH>; |
| 80 | }; |
| 81 | |
| 82 | wdma: wdma@15104800 { |
| 83 | compatible = "mediatek,wed-wdma"; |
| 84 | reg = <0 0x15104800 0 0x400>, |
| 85 | <0 0x15104c00 0 0x400>; |
| 86 | }; |
| 87 | |
| 88 | ap2woccif: ap2woccif@151A5000 { |
| 89 | compatible = "mediatek,ap2woccif"; |
| 90 | reg = <0 0x151A5000 0 0x1000>, |
| 91 | <0 0x151AD000 0 0x1000>; |
| 92 | interrupt-parent = <&gic>; |
| 93 | interrupts = <GIC_SPI 211 IRQ_TYPE_LEVEL_HIGH>, |
| 94 | <GIC_SPI 212 IRQ_TYPE_LEVEL_HIGH>; |
| 95 | }; |
| 96 | |
| 97 | wocpu0_ilm: wocpu0_ilm@151E0000 { |
| 98 | compatible = "mediatek,wocpu0_ilm"; |
| 99 | reg = <0 0x151E0000 0 0x8000>; |
| 100 | }; |
| 101 | |
| 102 | wocpu1_ilm: wocpu1_ilm@151F0000 { |
| 103 | compatible = "mediatek,wocpu1_ilm"; |
| 104 | reg = <0 0x151F0000 0 0x8000>; |
| 105 | }; |
| 106 | |
| 107 | wocpu_dlm: wocpu_dlm@151E8000 { |
| 108 | compatible = "mediatek,wocpu_dlm"; |
| 109 | reg = <0 0x151E8000 0 0x2000>, |
| 110 | <0 0x151F8000 0 0x2000>; |
| 111 | |
| 112 | resets = <ðsysrst 0>; |
| 113 | reset-names = "wocpu_rst"; |
| 114 | }; |
| 115 | |
| 116 | cpu_boot: wocpu_boot@15194000 { |
| 117 | compatible = "mediatek,wocpu_boot"; |
| 118 | reg = <0 0x15194000 0 0x1000>; |
| 119 | }; |
| 120 | |
| 121 | reserved-memory { |
| 122 | #address-cells = <2>; |
| 123 | #size-cells = <2>; |
| 124 | ranges; |
| 125 | |
| 126 | /* 192 KiB reserved for ARM Trusted Firmware (BL31) */ |
| 127 | secmon_reserved: secmon@43000000 { |
| 128 | reg = <0 0x43000000 0 0x30000>; |
| 129 | no-map; |
| 130 | }; |
| 131 | |
| 132 | wmcpu_emi: wmcpu-reserved@4FC00000 { |
| 133 | compatible = "mediatek,wmcpu-reserved"; |
| 134 | no-map; |
| 135 | reg = <0 0x4FC00000 0 0x00100000>; |
| 136 | }; |
| 137 | |
| 138 | wocpu0_emi: wocpu0_emi@4FD00000 { |
| 139 | compatible = "mediatek,wocpu0_emi"; |
| 140 | no-map; |
| 141 | reg = <0 0x4FD00000 0 0x40000>; |
| 142 | shared = <0>; |
| 143 | }; |
| 144 | |
developer | 86423f0 | 2021-10-12 15:20:50 +0800 | [diff] [blame^] | 145 | wocpu1_emi: wocpu1_emi@4FD40000 { |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 146 | compatible = "mediatek,wocpu1_emi"; |
| 147 | no-map; |
| 148 | reg = <0 0x4FD40000 0 0x40000>; |
| 149 | shared = <0>; |
| 150 | }; |
| 151 | |
developer | 86423f0 | 2021-10-12 15:20:50 +0800 | [diff] [blame^] | 152 | wocpu_data: wocpu_data@4FD80000 { |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 153 | compatible = "mediatek,wocpu_data"; |
| 154 | no-map; |
developer | 8be272e | 2021-07-29 13:15:07 +0800 | [diff] [blame] | 155 | reg = <0 0x4FD80000 0 0x240000>; |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 156 | shared = <1>; |
| 157 | }; |
| 158 | }; |
| 159 | |
| 160 | psci { |
| 161 | compatible = "arm,psci-0.2"; |
| 162 | method = "smc"; |
| 163 | }; |
| 164 | |
developer | 2df324b | 2021-06-24 10:21:45 +0800 | [diff] [blame] | 165 | clk40m: oscillator@0 { |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 166 | compatible = "fixed-clock"; |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 167 | #clock-cells = <0>; |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 168 | clock-frequency = <40000000>; |
developer | 2df324b | 2021-06-24 10:21:45 +0800 | [diff] [blame] | 169 | clock-output-names = "clkxtal"; |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 170 | }; |
| 171 | |
developer | 2df324b | 2021-06-24 10:21:45 +0800 | [diff] [blame] | 172 | system_clk: dummy_system_clk { |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 173 | compatible = "fixed-clock"; |
| 174 | clock-frequency = <40000000>; |
| 175 | #clock-cells = <0>; |
| 176 | }; |
| 177 | |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 178 | timer { |
| 179 | compatible = "arm,armv8-timer"; |
| 180 | interrupt-parent = <&gic>; |
developer | f39022a | 2021-05-06 13:31:52 +0800 | [diff] [blame] | 181 | clock-frequency = <13000000>; |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 182 | interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>, |
| 183 | <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>, |
| 184 | <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>, |
| 185 | <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>; |
developer | 2df324b | 2021-06-24 10:21:45 +0800 | [diff] [blame] | 186 | }; |
| 187 | |
| 188 | infracfg_ao: infracfg_ao@10001000 { |
| 189 | compatible = "mediatek,mt7986-infracfg_ao", "syscon"; |
| 190 | reg = <0 0x10001000 0 0x68>; |
| 191 | #clock-cells = <1>; |
| 192 | }; |
| 193 | |
| 194 | infracfg: infracfg@10001040 { |
| 195 | compatible = "mediatek,mt7986-infracfg", "syscon"; |
| 196 | reg = <0 0x1000106c 0 0x1000>; |
| 197 | #clock-cells = <1>; |
| 198 | }; |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 199 | |
developer | 2df324b | 2021-06-24 10:21:45 +0800 | [diff] [blame] | 200 | topckgen: topckgen@1001B000 { |
| 201 | compatible = "mediatek,mt7986-topckgen", "syscon"; |
| 202 | reg = <0 0x1001B000 0 0x1000>; |
| 203 | #clock-cells = <1>; |
| 204 | }; |
| 205 | |
| 206 | apmixedsys: apmixedsys@1001E000 { |
| 207 | compatible = "mediatek,mt7986-apmixedsys", "syscon"; |
| 208 | reg = <0 0x1001E000 0 0x1000>; |
| 209 | #clock-cells = <1>; |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 210 | }; |
| 211 | |
| 212 | watchdog: watchdog@1001c000 { |
| 213 | compatible = "mediatek,mt7622-wdt", |
| 214 | "mediatek,mt6589-wdt"; |
| 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 | 2df324b | 2021-06-24 10:21:45 +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 | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 253 | uart0: serial@11002000 { |
| 254 | compatible = "mediatek,mt7986-uart", |
| 255 | "mediatek,mt6577-uart"; |
| 256 | reg = <0 0x11002000 0 0x400>; |
| 257 | interrupts = <GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>; |
developer | 2df324b | 2021-06-24 10:21:45 +0800 | [diff] [blame] | 258 | clocks = <&infracfg_ao CK_INFRA_UART0_CK>; |
| 259 | assigned-clocks = <&topckgen CK_TOP_UART_SEL>, |
| 260 | <&infracfg_ao CK_INFRA_UART0_SEL>; |
| 261 | assigned-clock-parents = <&topckgen CK_TOP_CB_CKSQ_40M>, |
| 262 | <&infracfg CK_INFRA_UART>; |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 263 | status = "disabled"; |
| 264 | }; |
| 265 | |
| 266 | uart1: serial@11003000 { |
| 267 | compatible = "mediatek,mt7986-uart", |
| 268 | "mediatek,mt6577-uart"; |
| 269 | reg = <0 0x11003000 0 0x400>; |
| 270 | interrupts = <GIC_SPI 124 IRQ_TYPE_LEVEL_HIGH>; |
developer | 2df324b | 2021-06-24 10:21:45 +0800 | [diff] [blame] | 271 | clocks = <&infracfg_ao CK_INFRA_UART1_CK>; |
| 272 | assigned-clocks = <&infracfg_ao CK_INFRA_UART1_SEL>; |
| 273 | assigned-clock-parents = <&infracfg CK_INFRA_CK_F26M>; |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 274 | status = "disabled"; |
| 275 | }; |
| 276 | |
| 277 | uart2: serial@11004000 { |
| 278 | compatible = "mediatek,mt7986-uart", |
| 279 | "mediatek,mt6577-uart"; |
| 280 | reg = <0 0x11004000 0 0x400>; |
| 281 | interrupts = <GIC_SPI 125 IRQ_TYPE_LEVEL_HIGH>; |
developer | 2df324b | 2021-06-24 10:21:45 +0800 | [diff] [blame] | 282 | clocks = <&infracfg_ao CK_INFRA_UART2_CK>; |
| 283 | assigned-clocks = <&infracfg_ao CK_INFRA_UART2_SEL>; |
| 284 | assigned-clock-parents = <&infracfg CK_INFRA_CK_F26M>; |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 285 | status = "disabled"; |
| 286 | }; |
| 287 | |
developer | 2df324b | 2021-06-24 10:21:45 +0800 | [diff] [blame] | 288 | i2c0: i2c@11008000 { |
| 289 | compatible = "mediatek,mt7986-i2c"; |
| 290 | reg = <0 0x11008000 0 0x90>, |
| 291 | <0 0x10217080 0 0x80>; |
| 292 | interrupts = <GIC_SPI 136 IRQ_TYPE_LEVEL_HIGH>; |
developer | ccffa94 | 2021-09-22 15:57:01 +0800 | [diff] [blame] | 293 | clock-div = <5>; |
developer | 2df324b | 2021-06-24 10:21:45 +0800 | [diff] [blame] | 294 | clocks = <&infracfg_ao CK_INFRA_I2CO_CK>, |
| 295 | <&infracfg_ao CK_INFRA_AP_DMA_CK>; |
| 296 | clock-names = "main", "dma"; |
| 297 | #address-cells = <1>; |
| 298 | #size-cells = <0>; |
| 299 | status = "disabled"; |
| 300 | }; |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 301 | |
developer | 3e9ad9d | 2021-07-01 16:42:25 +0800 | [diff] [blame] | 302 | thermal-zones { |
| 303 | cpu_thermal: cpu-thermal { |
| 304 | polling-delay-passive = <1000>; |
| 305 | polling-delay = <1000>; |
| 306 | thermal-sensors = <&thermal 0>; |
developer | 3e9ad9d | 2021-07-01 16:42:25 +0800 | [diff] [blame] | 307 | }; |
| 308 | }; |
| 309 | |
| 310 | thermal: thermal@1100c800 { |
| 311 | #thermal-sensor-cells = <1>; |
| 312 | compatible = "mediatek,mt7986-thermal"; |
developer | 4173d3c | 2021-08-12 11:21:49 +0800 | [diff] [blame] | 313 | reg = <0 0x1100c800 0 0x800>; |
developer | 3e9ad9d | 2021-07-01 16:42:25 +0800 | [diff] [blame] | 314 | interrupts = <GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>; |
| 315 | clocks = <&infracfg_ao CK_INFRA_THERM_CK>, |
developer | df32d11 | 2021-08-29 11:58:01 +0800 | [diff] [blame] | 316 | <&infracfg_ao CK_INFRA_ADC_26M_CK>, |
| 317 | <&infracfg_ao CK_INFRA_ADC_FRC_CK>; |
| 318 | clock-names = "therm", "auxadc", "adc_32k"; |
developer | 3e9ad9d | 2021-07-01 16:42:25 +0800 | [diff] [blame] | 319 | mediatek,auxadc = <&auxadc>; |
| 320 | mediatek,apmixedsys = <&apmixedsys>; |
| 321 | nvmem-cells = <&thermal_calibration>; |
| 322 | nvmem-cell-names = "calibration-data"; |
| 323 | }; |
| 324 | |
developer | 3e91642 | 2021-05-27 16:40:29 +0800 | [diff] [blame] | 325 | crypto: crypto@10320000 { |
| 326 | compatible = "inside-secure,safexcel-eip97"; |
| 327 | reg = <0 0x10320000 0 0x40000>; |
| 328 | interrupts = <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>, |
| 329 | <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>, |
| 330 | <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>, |
| 331 | <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>; |
| 332 | interrupt-names = "ring0", "ring1", "ring2", "ring3"; |
developer | e1993bd | 2021-07-06 13:48:40 +0800 | [diff] [blame] | 333 | clocks = <&infracfg_ao CK_INFRA_EIP97_CK>; |
| 334 | clock-names = "infra_eip97_ck"; |
| 335 | assigned-clocks = <&topckgen CK_TOP_EIP_B_SEL>; |
| 336 | assigned-clock-parents = <&topckgen CK_TOP_CB_NET2_800M>; |
developer | 3e91642 | 2021-05-27 16:40:29 +0800 | [diff] [blame] | 337 | }; |
| 338 | |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 339 | pio: pinctrl@1001f000 { |
| 340 | compatible = "mediatek,mt7986-pinctrl"; |
| 341 | reg = <0 0x1001f000 0 0x1000>, |
| 342 | <0 0x11c30000 0 0x1000>, |
| 343 | <0 0x11c40000 0 0x1000>, |
| 344 | <0 0x11e20000 0 0x1000>, |
| 345 | <0 0x11e30000 0 0x1000>, |
| 346 | <0 0x11f00000 0 0x1000>, |
| 347 | <0 0x11f10000 0 0x1000>, |
| 348 | <0 0x1000b000 0 0x1000>; |
| 349 | reg-names = "gpio_base", "iocfg_rt_base", "iocfg_rb_base", |
| 350 | "iocfg_lt_base", "iocfg_lb_base", "iocfg_tr_base", |
| 351 | "iocfg_tl_base", "eint"; |
| 352 | gpio-controller; |
| 353 | #gpio-cells = <2>; |
| 354 | gpio-ranges = <&pio 0 0 100>; |
| 355 | interrupt-controller; |
developer | a7f8fa4 | 2021-06-07 16:46:34 +0800 | [diff] [blame] | 356 | interrupts = <GIC_SPI 225 IRQ_TYPE_LEVEL_HIGH>; |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 357 | interrupt-parent = <&gic>; |
| 358 | #interrupt-cells = <2>; |
| 359 | }; |
| 360 | |
| 361 | ethsys: syscon@15000000 { |
| 362 | #address-cells = <1>; |
| 363 | #size-cells = <1>; |
developer | 2df324b | 2021-06-24 10:21:45 +0800 | [diff] [blame] | 364 | compatible = "mediatek,mt7986-ethsys_ck", |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 365 | "syscon"; |
| 366 | reg = <0 0x15000000 0 0x1000>; |
| 367 | #clock-cells = <1>; |
| 368 | #reset-cells = <1>; |
| 369 | |
| 370 | ethsysrst: reset-controller { |
| 371 | compatible = "ti,syscon-reset"; |
| 372 | #reset-cells = <1>; |
| 373 | ti,reset-bits = <0x34 4 0x34 4 0x34 4 (ASSERT_SET | DEASSERT_CLEAR | STATUS_SET)>; |
| 374 | }; |
| 375 | }; |
| 376 | |
| 377 | eth: ethernet@15100000 { |
| 378 | compatible = "mediatek,mt7986-eth"; |
| 379 | reg = <0 0x15100000 0 0x80000>; |
| 380 | interrupts = <GIC_SPI 196 IRQ_TYPE_LEVEL_HIGH>, |
| 381 | <GIC_SPI 197 IRQ_TYPE_LEVEL_HIGH>, |
| 382 | <GIC_SPI 198 IRQ_TYPE_LEVEL_HIGH>, |
| 383 | <GIC_SPI 199 IRQ_TYPE_LEVEL_HIGH>; |
developer | 2df324b | 2021-06-24 10:21:45 +0800 | [diff] [blame] | 384 | clocks = <ðsys CK_ETH_FE_EN>, |
| 385 | <ðsys CK_ETH_GP2_EN>, |
| 386 | <ðsys CK_ETH_GP1_EN>, |
| 387 | <ðsys CK_ETH_WOCPU1_EN>, |
| 388 | <ðsys CK_ETH_WOCPU0_EN>, |
developer | 77bbf43 | 2021-06-28 18:39:08 +0800 | [diff] [blame] | 389 | <&sgmiisys0 CK_SGM0_TX_EN>, |
| 390 | <&sgmiisys0 CK_SGM0_RX_EN>, |
| 391 | <&sgmiisys0 CK_SGM0_CK0_EN>, |
| 392 | <&sgmiisys0 CK_SGM0_CDR_CK0_EN>, |
| 393 | <&sgmiisys1 CK_SGM1_TX_EN>, |
| 394 | <&sgmiisys1 CK_SGM1_RX_EN>, |
| 395 | <&sgmiisys1 CK_SGM1_CK1_EN>, |
| 396 | <&sgmiisys1 CK_SGM1_CDR_CK1_EN>; |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 397 | clock-names = "fe", "gp2", "gp1", "wocpu1", "wocpu0", |
| 398 | "sgmii_tx250m", "sgmii_rx250m", |
| 399 | "sgmii_cdr_ref", "sgmii_cdr_fb", |
| 400 | "sgmii2_tx250m", "sgmii2_rx250m", |
| 401 | "sgmii2_cdr_ref", "sgmii2_cdr_fb"; |
developer | 2df324b | 2021-06-24 10:21:45 +0800 | [diff] [blame] | 402 | assigned-clocks = <&topckgen CK_TOP_NETSYS_2X_SEL>, |
| 403 | <&topckgen CK_TOP_SGM_325M_SEL>; |
| 404 | assigned-clock-parents = <&topckgen CK_TOP_CB_NET2_800M>, |
| 405 | <&topckgen CK_TOP_CB_SGM_325M>; |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 406 | mediatek,ethsys = <ðsys>; |
| 407 | mediatek,sgmiisys = <&sgmiisys0>, <&sgmiisys1>; |
| 408 | #reset-cells = <1>; |
| 409 | #address-cells = <1>; |
| 410 | #size-cells = <0>; |
| 411 | status = "disabled"; |
| 412 | }; |
| 413 | |
| 414 | hnat: hnat@15000000 { |
| 415 | compatible = "mediatek,mtk-hnat_v4"; |
| 416 | reg = <0 0x15100000 0 0x80000>; |
| 417 | resets = <ðsys 0>; |
| 418 | reset-names = "mtketh"; |
| 419 | status = "disabled"; |
| 420 | }; |
| 421 | |
| 422 | sgmiisys0: syscon@10060000 { |
developer | 2df324b | 2021-06-24 10:21:45 +0800 | [diff] [blame] | 423 | compatible = "mediatek,mt7986-sgmiisys", |
| 424 | "mediatek,mt7986-sgmiisys_0", |
| 425 | "syscon"; |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 426 | reg = <0 0x10060000 0 0x1000>; |
| 427 | #clock-cells = <1>; |
| 428 | }; |
| 429 | |
| 430 | sgmiisys1: syscon@10070000 { |
developer | 2df324b | 2021-06-24 10:21:45 +0800 | [diff] [blame] | 431 | compatible = "mediatek,mt7986-sgmiisys", |
| 432 | "mediatek,mt7986-sgmiisys_1", |
| 433 | "syscon"; |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 434 | reg = <0 0x10070000 0 0x1000>; |
| 435 | #clock-cells = <1>; |
| 436 | }; |
| 437 | |
| 438 | snand: snfi@11005000 { |
| 439 | compatible = "mediatek,mt7986-snand"; |
| 440 | reg = <0 0x11005000 0 0x1000>, <0 0x11006000 0 0x1000>; |
| 441 | reg-names = "nfi", "ecc"; |
| 442 | interrupts = <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>; |
developer | 248c10b | 2021-07-14 16:11:19 +0800 | [diff] [blame] | 443 | clocks = <&infracfg_ao CK_INFRA_SPINFI1_CK>, |
| 444 | <&infracfg_ao CK_INFRA_NFI1_CK>, |
| 445 | <&infracfg_ao CK_INFRA_NFI_HCK_CK>; |
| 446 | clock-names = "pad_clk", "nfi_clk", "nfi_hclk"; |
developer | 2df324b | 2021-06-24 10:21:45 +0800 | [diff] [blame] | 447 | assigned-clocks = <&topckgen CK_TOP_SPINFI_SEL>, |
| 448 | <&topckgen CK_TOP_NFI1X_SEL>; |
developer | e556261 | 2021-08-05 15:50:40 +0800 | [diff] [blame] | 449 | assigned-clock-parents = <&topckgen CK_TOP_CB_M_D8>, |
| 450 | <&topckgen CK_TOP_CB_M_D8>; |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 451 | #address-cells = <1>; |
| 452 | #size-cells = <0>; |
| 453 | status = "disabled"; |
| 454 | }; |
| 455 | |
| 456 | wbsys: wbsys@18000000 { |
| 457 | compatible = "mediatek,wbsys"; |
| 458 | reg = <0 0x18000000 0 0x1000000>; |
| 459 | interrupts = <GIC_SPI 213 IRQ_TYPE_LEVEL_HIGH>, |
| 460 | <GIC_SPI 214 IRQ_TYPE_LEVEL_HIGH>, |
| 461 | <GIC_SPI 215 IRQ_TYPE_LEVEL_HIGH>, |
| 462 | <GIC_SPI 216 IRQ_TYPE_LEVEL_HIGH>; |
| 463 | chip_id = <0x7986>; |
| 464 | }; |
| 465 | |
| 466 | wed_pcie: wed_pcie@10003000 { |
| 467 | compatible = "mediatek,wed_pcie"; |
| 468 | reg = <0 0x10003000 0 0x10>; |
| 469 | }; |
| 470 | |
| 471 | spi0: spi@1100a000 { |
developer | 44700a2 | 2021-07-13 19:06:49 +0800 | [diff] [blame] | 472 | compatible = "mediatek,ipm-spi-quad"; |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 473 | reg = <0 0x1100a000 0 0x100>; |
| 474 | interrupts = <GIC_SPI 140 IRQ_TYPE_LEVEL_HIGH>; |
developer | 2df324b | 2021-06-24 10:21:45 +0800 | [diff] [blame] | 475 | clocks = <&topckgen CK_TOP_CB_M_D2>, |
developer | 44700a2 | 2021-07-13 19:06:49 +0800 | [diff] [blame] | 476 | <&topckgen CK_TOP_SPI_SEL>, |
developer | 2df324b | 2021-06-24 10:21:45 +0800 | [diff] [blame] | 477 | <&infracfg_ao CK_INFRA_SPI0_CK>, |
developer | 44700a2 | 2021-07-13 19:06:49 +0800 | [diff] [blame] | 478 | <&infracfg_ao CK_INFRA_SPI0_HCK_CK>; |
| 479 | clock-names = "parent-clk", "sel-clk", "spi-clk", "spi-hclk"; |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 480 | status = "disabled"; |
| 481 | }; |
| 482 | |
| 483 | spi1: spi@1100b000 { |
developer | 44700a2 | 2021-07-13 19:06:49 +0800 | [diff] [blame] | 484 | compatible = "mediatek,ipm-spi-single"; |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 485 | reg = <0 0x1100b000 0 0x100>; |
| 486 | interrupts = <GIC_SPI 141 IRQ_TYPE_LEVEL_HIGH>; |
developer | 2df324b | 2021-06-24 10:21:45 +0800 | [diff] [blame] | 487 | clocks = <&topckgen CK_TOP_CB_M_D2>, |
developer | 44700a2 | 2021-07-13 19:06:49 +0800 | [diff] [blame] | 488 | <&topckgen CK_TOP_SPIM_MST_SEL>, |
developer | 2df324b | 2021-06-24 10:21:45 +0800 | [diff] [blame] | 489 | <&infracfg_ao CK_INFRA_SPI1_CK>, |
developer | 44700a2 | 2021-07-13 19:06:49 +0800 | [diff] [blame] | 490 | <&infracfg_ao CK_INFRA_SPI1_HCK_CK>; |
| 491 | clock-names = "parent-clk", "sel-clk", "spi-clk", "spi-hclk"; |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 492 | status = "disabled"; |
| 493 | }; |
| 494 | |
developer | f1422f6 | 2021-09-14 13:59:15 +0800 | [diff] [blame] | 495 | mmc0: mmc@11230000 { |
| 496 | compatible = "mediatek,mt7986-mmc"; |
| 497 | reg = <0 0x11230000 0 0x1000>, |
| 498 | <0 0x11c20000 0 0x1000>; |
| 499 | interrupts = <GIC_SPI 143 IRQ_TYPE_LEVEL_HIGH>; |
| 500 | clocks = <&topckgen CK_TOP_EMMC_416M>, |
| 501 | <&topckgen CK_TOP_EMMC_250M>, |
| 502 | <&infracfg_ao CK_INFRA_MSDC_CK>; |
| 503 | clock-names = "source", "hclk", "source_cg"; |
| 504 | assigned-clocks = <&topckgen CK_TOP_EMMC_416M_SEL>, |
| 505 | <&topckgen CK_TOP_EMMC_250M_SEL>; |
| 506 | assigned-clock-parents = <&topckgen CK_TOP_CB_CKSQ_40M>, |
| 507 | <&topckgen CK_TOP_CB_CKSQ_40M>; |
| 508 | status = "disabled"; |
| 509 | }; |
| 510 | |
developer | ee2df73 | 2021-05-21 15:19:42 +0800 | [diff] [blame] | 511 | auxadc: adc@1100d000 { |
| 512 | compatible = "mediatek,mt7986-auxadc", |
| 513 | "mediatek,mt7622-auxadc"; |
| 514 | reg = <0 0x1100d000 0 0x1000>; |
developer | 2cdfa05 | 2021-08-12 10:41:52 +0800 | [diff] [blame] | 515 | clocks = <&infracfg_ao CK_INFRA_ADC_26M_CK>, |
| 516 | <&infracfg_ao CK_INFRA_ADC_FRC_CK>; |
| 517 | clock-names = "main", "32k"; |
developer | ee2df73 | 2021-05-21 15:19:42 +0800 | [diff] [blame] | 518 | #io-channel-cells = <1>; |
developer | 2df324b | 2021-06-24 10:21:45 +0800 | [diff] [blame] | 519 | status = "disabled"; |
developer | ee2df73 | 2021-05-21 15:19:42 +0800 | [diff] [blame] | 520 | }; |
| 521 | |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 522 | consys: consys@10000000 { |
| 523 | compatible = "mediatek,mt7986-consys"; |
| 524 | reg = <0 0x10000000 0 0x8600000>; |
| 525 | memory-region = <&wmcpu_emi>; |
| 526 | }; |
| 527 | |
| 528 | xhci: xhci@11200000 { |
| 529 | compatible = "mediatek,mt7986-xhci", |
| 530 | "mediatek,mtk-xhci"; |
| 531 | reg = <0 0x11200000 0 0x2e00>, |
| 532 | <0 0x11203e00 0 0x0100>; |
| 533 | reg-names = "mac", "ippc"; |
| 534 | interrupts = <GIC_SPI 173 IRQ_TYPE_LEVEL_HIGH>; |
| 535 | phys = <&u2port0 PHY_TYPE_USB2>, |
| 536 | <&u3port0 PHY_TYPE_USB3>, |
| 537 | <&u2port1 PHY_TYPE_USB2>; |
| 538 | clocks = <&system_clk>, |
| 539 | <&system_clk>, |
| 540 | <&system_clk>, |
| 541 | <&system_clk>, |
| 542 | <&system_clk>; |
| 543 | clock-names = "sys_ck", |
| 544 | "xhci_ck", |
| 545 | "ref_ck", |
| 546 | "mcu_ck", |
| 547 | "dma_ck"; |
| 548 | #address-cells = <2>; |
| 549 | #size-cells = <2>; |
| 550 | status = "okay"; |
| 551 | }; |
| 552 | |
| 553 | usbtphy: usb-phy@11e10000 { |
| 554 | compatible = "mediatek,mt7986", |
| 555 | "mediatek,generic-tphy-v2"; |
| 556 | #address-cells = <2>; |
| 557 | #size-cells = <2>; |
| 558 | ranges; |
| 559 | status = "okay"; |
| 560 | |
| 561 | u2port0: usb-phy@11e10000 { |
| 562 | reg = <0 0x11e10000 0 0x700>; |
| 563 | clocks = <&system_clk>; |
| 564 | clock-names = "ref"; |
| 565 | #phy-cells = <1>; |
| 566 | status = "okay"; |
| 567 | }; |
| 568 | |
| 569 | u3port0: usb-phy@11e10700 { |
| 570 | reg = <0 0x11e10700 0 0x900>; |
| 571 | clocks = <&system_clk>; |
| 572 | clock-names = "ref"; |
| 573 | #phy-cells = <1>; |
| 574 | status = "okay"; |
| 575 | }; |
| 576 | |
| 577 | u2port1: usb-phy@11e11000 { |
| 578 | reg = <0 0x11e11000 0 0x700>; |
| 579 | clocks = <&system_clk>; |
| 580 | clock-names = "ref"; |
| 581 | #phy-cells = <1>; |
developer | 2df324b | 2021-06-24 10:21:45 +0800 | [diff] [blame] | 582 | status = "disabled"; |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 583 | }; |
| 584 | }; |
developer | 2df324b | 2021-06-24 10:21:45 +0800 | [diff] [blame] | 585 | |
| 586 | clkitg: clkitg { |
| 587 | compatible = "simple-bus"; |
| 588 | }; |
developer | fbbf02b | 2021-06-25 09:30:28 +0800 | [diff] [blame] | 589 | |
| 590 | trng: trng@1020f000 { |
| 591 | compatible = "mediatek,mt7986-rng", |
| 592 | "mediatek,mt7623-rng"; |
| 593 | reg = <0 0x1020f000 0 0x100>; |
| 594 | clocks = <&infracfg_ao CK_INFRA_TRNG_CK>; |
| 595 | clock-names = "rng"; |
| 596 | }; |
developer | 86ee1e1 | 2021-06-30 11:18:53 +0800 | [diff] [blame] | 597 | |
| 598 | ice: ice_debug { |
| 599 | compatible = "mediatek,mt8512-ice_debug", |
| 600 | "mediatek,mt2701-ice_debug"; |
developer | 66b5c8d | 2021-07-16 14:02:47 +0800 | [diff] [blame] | 601 | clocks = <&infracfg_ao CK_INFRA_DBG_CK>, |
| 602 | <&topckgen CK_TOP_ARM_DB_JTSEL>; |
| 603 | clock-names = "ice_dbg", "dbg_jtsel"; |
developer | 86ee1e1 | 2021-06-30 11:18:53 +0800 | [diff] [blame] | 604 | }; |
developer | 3e9ad9d | 2021-07-01 16:42:25 +0800 | [diff] [blame] | 605 | |
| 606 | efuse: efuse@11d00000 { |
| 607 | compatible = "mediatek,mt7986-efuse", |
| 608 | "mediatek,efuse"; |
| 609 | reg = <0 0x11d00000 0 0x1000>; |
| 610 | #address-cells = <1>; |
| 611 | #size-cells = <1>; |
| 612 | |
| 613 | thermal_calibration: calib@274 { |
| 614 | reg = <0x274 0xc>; |
| 615 | }; |
| 616 | }; |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 617 | }; |
developer | 2df324b | 2021-06-24 10:21:45 +0800 | [diff] [blame] | 618 | |
| 619 | #include "mt7986-clkitg.dtsi" |