Eddie Huang | b3a3724 | 2015-12-01 10:14:00 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2014 MediaTek Inc. |
| 3 | * Author: Eddie Huang <eddie.huang@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 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | * GNU General Public License for more details. |
| 12 | */ |
| 13 | |
Sascha Hauer | f2ce701 | 2015-05-20 15:32:44 +0200 | [diff] [blame] | 14 | #include <dt-bindings/clock/mt8173-clk.h> |
Eddie Huang | b3a3724 | 2015-12-01 10:14:00 +0100 | [diff] [blame] | 15 | #include <dt-bindings/interrupt-controller/irq.h> |
| 16 | #include <dt-bindings/interrupt-controller/arm-gic.h> |
Yong Wu | 5ff6b3a | 2016-02-23 01:20:51 +0800 | [diff] [blame] | 17 | #include <dt-bindings/memory/mt8173-larb-port.h> |
Chunfeng Yun | bfcce47 | 2015-11-24 13:09:56 +0200 | [diff] [blame] | 18 | #include <dt-bindings/phy/phy.h> |
Koro Chen | c02e0e8 | 2015-07-09 11:32:05 +0800 | [diff] [blame] | 19 | #include <dt-bindings/power/mt8173-power.h> |
Philipp Zabel | 967313e | 2015-11-20 12:42:44 +0100 | [diff] [blame] | 20 | #include <dt-bindings/reset/mt8173-resets.h> |
Hongzhou Yang | 359f936 | 2015-03-09 21:54:39 -0700 | [diff] [blame] | 21 | #include "mt8173-pinfunc.h" |
Eddie Huang | b3a3724 | 2015-12-01 10:14:00 +0100 | [diff] [blame] | 22 | |
| 23 | / { |
| 24 | compatible = "mediatek,mt8173"; |
| 25 | interrupt-parent = <&sysirq>; |
| 26 | #address-cells = <2>; |
| 27 | #size-cells = <2>; |
| 28 | |
CK Hu | 81ad4db | 2016-06-03 16:59:29 +0200 | [diff] [blame] | 29 | aliases { |
| 30 | ovl0 = &ovl0; |
| 31 | ovl1 = &ovl1; |
| 32 | rdma0 = &rdma0; |
| 33 | rdma1 = &rdma1; |
| 34 | rdma2 = &rdma2; |
| 35 | wdma0 = &wdma0; |
| 36 | wdma1 = &wdma1; |
| 37 | color0 = &color0; |
| 38 | color1 = &color1; |
| 39 | split0 = &split0; |
| 40 | split1 = &split1; |
| 41 | dpi0 = &dpi0; |
| 42 | dsi0 = &dsi0; |
| 43 | dsi1 = &dsi1; |
| 44 | }; |
| 45 | |
Eddie Huang | b3a3724 | 2015-12-01 10:14:00 +0100 | [diff] [blame] | 46 | cpus { |
| 47 | #address-cells = <1>; |
| 48 | #size-cells = <0>; |
| 49 | |
| 50 | cpu-map { |
| 51 | cluster0 { |
| 52 | core0 { |
| 53 | cpu = <&cpu0>; |
| 54 | }; |
| 55 | core1 { |
| 56 | cpu = <&cpu1>; |
| 57 | }; |
| 58 | }; |
| 59 | |
| 60 | cluster1 { |
| 61 | core0 { |
| 62 | cpu = <&cpu2>; |
| 63 | }; |
| 64 | core1 { |
| 65 | cpu = <&cpu3>; |
| 66 | }; |
| 67 | }; |
| 68 | }; |
| 69 | |
| 70 | cpu0: cpu@0 { |
| 71 | device_type = "cpu"; |
| 72 | compatible = "arm,cortex-a53"; |
| 73 | reg = <0x000>; |
Howard Chen | ad4df7a | 2015-06-04 15:13:37 +0800 | [diff] [blame] | 74 | enable-method = "psci"; |
| 75 | cpu-idle-states = <&CPU_SLEEP_0>; |
Eddie Huang | b3a3724 | 2015-12-01 10:14:00 +0100 | [diff] [blame] | 76 | }; |
| 77 | |
| 78 | cpu1: cpu@1 { |
| 79 | device_type = "cpu"; |
| 80 | compatible = "arm,cortex-a53"; |
| 81 | reg = <0x001>; |
| 82 | enable-method = "psci"; |
Howard Chen | ad4df7a | 2015-06-04 15:13:37 +0800 | [diff] [blame] | 83 | cpu-idle-states = <&CPU_SLEEP_0>; |
Eddie Huang | b3a3724 | 2015-12-01 10:14:00 +0100 | [diff] [blame] | 84 | }; |
| 85 | |
| 86 | cpu2: cpu@100 { |
| 87 | device_type = "cpu"; |
| 88 | compatible = "arm,cortex-a57"; |
| 89 | reg = <0x100>; |
| 90 | enable-method = "psci"; |
Howard Chen | ad4df7a | 2015-06-04 15:13:37 +0800 | [diff] [blame] | 91 | cpu-idle-states = <&CPU_SLEEP_0>; |
Eddie Huang | b3a3724 | 2015-12-01 10:14:00 +0100 | [diff] [blame] | 92 | }; |
| 93 | |
| 94 | cpu3: cpu@101 { |
| 95 | device_type = "cpu"; |
| 96 | compatible = "arm,cortex-a57"; |
| 97 | reg = <0x101>; |
| 98 | enable-method = "psci"; |
Howard Chen | ad4df7a | 2015-06-04 15:13:37 +0800 | [diff] [blame] | 99 | cpu-idle-states = <&CPU_SLEEP_0>; |
| 100 | }; |
| 101 | |
| 102 | idle-states { |
Lorenzo Pieralisi | a13f18f | 2015-09-24 15:53:56 +0100 | [diff] [blame] | 103 | entry-method = "psci"; |
Howard Chen | ad4df7a | 2015-06-04 15:13:37 +0800 | [diff] [blame] | 104 | |
| 105 | CPU_SLEEP_0: cpu-sleep-0 { |
| 106 | compatible = "arm,idle-state"; |
| 107 | local-timer-stop; |
| 108 | entry-latency-us = <639>; |
| 109 | exit-latency-us = <680>; |
| 110 | min-residency-us = <1088>; |
| 111 | arm,psci-suspend-param = <0x0010000>; |
| 112 | }; |
Eddie Huang | b3a3724 | 2015-12-01 10:14:00 +0100 | [diff] [blame] | 113 | }; |
| 114 | }; |
| 115 | |
| 116 | psci { |
Fan Chen | 05bdabe | 2015-08-28 10:11:59 +0800 | [diff] [blame] | 117 | compatible = "arm,psci-1.0", "arm,psci-0.2", "arm,psci"; |
Eddie Huang | b3a3724 | 2015-12-01 10:14:00 +0100 | [diff] [blame] | 118 | method = "smc"; |
| 119 | cpu_suspend = <0x84000001>; |
| 120 | cpu_off = <0x84000002>; |
| 121 | cpu_on = <0x84000003>; |
| 122 | }; |
| 123 | |
Sascha Hauer | f2ce701 | 2015-05-20 15:32:44 +0200 | [diff] [blame] | 124 | clk26m: oscillator@0 { |
| 125 | compatible = "fixed-clock"; |
| 126 | #clock-cells = <0>; |
| 127 | clock-frequency = <26000000>; |
| 128 | clock-output-names = "clk26m"; |
| 129 | }; |
| 130 | |
| 131 | clk32k: oscillator@1 { |
| 132 | compatible = "fixed-clock"; |
| 133 | #clock-cells = <0>; |
| 134 | clock-frequency = <32000>; |
| 135 | clock-output-names = "clk32k"; |
| 136 | }; |
| 137 | |
James Liao | 67e56c5 | 2015-08-10 17:50:28 +0800 | [diff] [blame] | 138 | cpum_ck: oscillator@2 { |
| 139 | compatible = "fixed-clock"; |
| 140 | #clock-cells = <0>; |
| 141 | clock-frequency = <0>; |
| 142 | clock-output-names = "cpum_ck"; |
| 143 | }; |
| 144 | |
dawei.chien@mediatek.com | 962f514 | 2016-03-15 16:10:36 +0800 | [diff] [blame] | 145 | thermal-zones { |
| 146 | cpu_thermal: cpu_thermal { |
| 147 | polling-delay-passive = <1000>; /* milliseconds */ |
| 148 | polling-delay = <1000>; /* milliseconds */ |
| 149 | |
| 150 | thermal-sensors = <&thermal>; |
| 151 | sustainable-power = <1500>; /* milliwatts */ |
| 152 | |
| 153 | trips { |
| 154 | threshold: trip-point@0 { |
| 155 | temperature = <68000>; |
| 156 | hysteresis = <2000>; |
| 157 | type = "passive"; |
| 158 | }; |
| 159 | |
| 160 | target: trip-point@1 { |
| 161 | temperature = <85000>; |
| 162 | hysteresis = <2000>; |
| 163 | type = "passive"; |
| 164 | }; |
| 165 | |
| 166 | cpu_crit: cpu_crit@0 { |
| 167 | temperature = <115000>; |
| 168 | hysteresis = <2000>; |
| 169 | type = "critical"; |
| 170 | }; |
| 171 | }; |
| 172 | |
| 173 | cooling-maps { |
| 174 | map@0 { |
| 175 | trip = <&target>; |
| 176 | cooling-device = <&cpu0 0 0>; |
| 177 | contribution = <1024>; |
| 178 | }; |
| 179 | map@1 { |
| 180 | trip = <&target>; |
| 181 | cooling-device = <&cpu2 0 0>; |
| 182 | contribution = <2048>; |
| 183 | }; |
| 184 | }; |
| 185 | }; |
| 186 | }; |
| 187 | |
Andrew-CT Chen | 404b281 | 2016-05-03 07:11:22 -0300 | [diff] [blame] | 188 | reserved-memory { |
| 189 | #address-cells = <2>; |
| 190 | #size-cells = <2>; |
| 191 | ranges; |
| 192 | vpu_dma_reserved: vpu_dma_mem_region { |
| 193 | compatible = "shared-dma-pool"; |
| 194 | reg = <0 0xb7000000 0 0x500000>; |
| 195 | alignment = <0x1000>; |
| 196 | no-map; |
| 197 | }; |
| 198 | }; |
| 199 | |
Eddie Huang | b3a3724 | 2015-12-01 10:14:00 +0100 | [diff] [blame] | 200 | timer { |
| 201 | compatible = "arm,armv8-timer"; |
| 202 | interrupt-parent = <&gic>; |
| 203 | interrupts = <GIC_PPI 13 |
Daniel Kurtz | e881ad1 | 2015-05-20 18:20:07 +0800 | [diff] [blame] | 204 | (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, |
Eddie Huang | b3a3724 | 2015-12-01 10:14:00 +0100 | [diff] [blame] | 205 | <GIC_PPI 14 |
Daniel Kurtz | e881ad1 | 2015-05-20 18:20:07 +0800 | [diff] [blame] | 206 | (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, |
Eddie Huang | b3a3724 | 2015-12-01 10:14:00 +0100 | [diff] [blame] | 207 | <GIC_PPI 11 |
Daniel Kurtz | e881ad1 | 2015-05-20 18:20:07 +0800 | [diff] [blame] | 208 | (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, |
Eddie Huang | b3a3724 | 2015-12-01 10:14:00 +0100 | [diff] [blame] | 209 | <GIC_PPI 10 |
Daniel Kurtz | e881ad1 | 2015-05-20 18:20:07 +0800 | [diff] [blame] | 210 | (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>; |
Eddie Huang | b3a3724 | 2015-12-01 10:14:00 +0100 | [diff] [blame] | 211 | }; |
| 212 | |
| 213 | soc { |
| 214 | #address-cells = <2>; |
| 215 | #size-cells = <2>; |
| 216 | compatible = "simple-bus"; |
| 217 | ranges; |
| 218 | |
Sascha Hauer | f2ce701 | 2015-05-20 15:32:44 +0200 | [diff] [blame] | 219 | topckgen: clock-controller@10000000 { |
| 220 | compatible = "mediatek,mt8173-topckgen"; |
| 221 | reg = <0 0x10000000 0 0x1000>; |
| 222 | #clock-cells = <1>; |
| 223 | }; |
| 224 | |
| 225 | infracfg: power-controller@10001000 { |
| 226 | compatible = "mediatek,mt8173-infracfg", "syscon"; |
| 227 | reg = <0 0x10001000 0 0x1000>; |
| 228 | #clock-cells = <1>; |
| 229 | #reset-cells = <1>; |
| 230 | }; |
| 231 | |
| 232 | pericfg: power-controller@10003000 { |
| 233 | compatible = "mediatek,mt8173-pericfg", "syscon"; |
| 234 | reg = <0 0x10003000 0 0x1000>; |
| 235 | #clock-cells = <1>; |
| 236 | #reset-cells = <1>; |
| 237 | }; |
| 238 | |
| 239 | syscfg_pctl_a: syscfg_pctl_a@10005000 { |
| 240 | compatible = "mediatek,mt8173-pctl-a-syscfg", "syscon"; |
| 241 | reg = <0 0x10005000 0 0x1000>; |
| 242 | }; |
| 243 | |
| 244 | pio: pinctrl@0x10005000 { |
Hongzhou Yang | 359f936 | 2015-03-09 21:54:39 -0700 | [diff] [blame] | 245 | compatible = "mediatek,mt8173-pinctrl"; |
Yingjoe Chen | 6769b93 | 2015-05-01 14:49:31 +0800 | [diff] [blame] | 246 | reg = <0 0x1000b000 0 0x1000>; |
Hongzhou Yang | 359f936 | 2015-03-09 21:54:39 -0700 | [diff] [blame] | 247 | mediatek,pctl-regmap = <&syscfg_pctl_a>; |
| 248 | pins-are-numbered; |
| 249 | gpio-controller; |
| 250 | #gpio-cells = <2>; |
| 251 | interrupt-controller; |
| 252 | #interrupt-cells = <2>; |
| 253 | interrupts = <GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>, |
Yingjoe Chen | 6769b93 | 2015-05-01 14:49:31 +0800 | [diff] [blame] | 254 | <GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>, |
| 255 | <GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>; |
Yingjoe Chen | 6769b93 | 2015-05-01 14:49:31 +0800 | [diff] [blame] | 256 | |
CK Hu | a10b57f | 2016-08-11 11:59:59 +0200 | [diff] [blame] | 257 | hdmi_pin: xxx { |
| 258 | |
| 259 | /*hdmi htplg pin*/ |
| 260 | pins1 { |
| 261 | pinmux = <MT8173_PIN_21_HTPLG__FUNC_HTPLG>; |
| 262 | input-enable; |
| 263 | bias-pull-down; |
| 264 | }; |
| 265 | }; |
| 266 | |
Eddie Huang | 091cf59 | 2015-06-17 23:08:03 +0800 | [diff] [blame] | 267 | i2c0_pins_a: i2c0 { |
| 268 | pins1 { |
| 269 | pinmux = <MT8173_PIN_45_SDA0__FUNC_SDA0>, |
| 270 | <MT8173_PIN_46_SCL0__FUNC_SCL0>; |
| 271 | bias-disable; |
| 272 | }; |
| 273 | }; |
| 274 | |
| 275 | i2c1_pins_a: i2c1 { |
| 276 | pins1 { |
| 277 | pinmux = <MT8173_PIN_125_SDA1__FUNC_SDA1>, |
| 278 | <MT8173_PIN_126_SCL1__FUNC_SCL1>; |
| 279 | bias-disable; |
| 280 | }; |
| 281 | }; |
| 282 | |
| 283 | i2c2_pins_a: i2c2 { |
| 284 | pins1 { |
| 285 | pinmux = <MT8173_PIN_43_SDA2__FUNC_SDA2>, |
| 286 | <MT8173_PIN_44_SCL2__FUNC_SCL2>; |
| 287 | bias-disable; |
| 288 | }; |
| 289 | }; |
| 290 | |
| 291 | i2c3_pins_a: i2c3 { |
| 292 | pins1 { |
| 293 | pinmux = <MT8173_PIN_106_SDA3__FUNC_SDA3>, |
| 294 | <MT8173_PIN_107_SCL3__FUNC_SCL3>; |
| 295 | bias-disable; |
| 296 | }; |
| 297 | }; |
| 298 | |
| 299 | i2c4_pins_a: i2c4 { |
| 300 | pins1 { |
| 301 | pinmux = <MT8173_PIN_133_SDA4__FUNC_SDA4>, |
| 302 | <MT8173_PIN_134_SCL4__FUNC_SCL4>; |
| 303 | bias-disable; |
| 304 | }; |
| 305 | }; |
| 306 | |
| 307 | i2c6_pins_a: i2c6 { |
| 308 | pins1 { |
| 309 | pinmux = <MT8173_PIN_100_MSDC2_DAT0__FUNC_SDA5>, |
| 310 | <MT8173_PIN_101_MSDC2_DAT1__FUNC_SCL5>; |
| 311 | bias-disable; |
| 312 | }; |
| 313 | }; |
Hongzhou Yang | 359f936 | 2015-03-09 21:54:39 -0700 | [diff] [blame] | 314 | }; |
| 315 | |
Sascha Hauer | c010ff5 | 2015-06-24 08:17:05 +0200 | [diff] [blame] | 316 | scpsys: scpsys@10006000 { |
| 317 | compatible = "mediatek,mt8173-scpsys"; |
| 318 | #power-domain-cells = <1>; |
| 319 | reg = <0 0x10006000 0 0x1000>; |
| 320 | clocks = <&clk26m>, |
James Liao | e34573c | 2015-10-07 17:14:41 +0800 | [diff] [blame] | 321 | <&topckgen CLK_TOP_MM_SEL>, |
| 322 | <&topckgen CLK_TOP_VENC_SEL>, |
| 323 | <&topckgen CLK_TOP_VENC_LT_SEL>; |
| 324 | clock-names = "mfg", "mm", "venc", "venc_lt"; |
Sascha Hauer | c010ff5 | 2015-06-24 08:17:05 +0200 | [diff] [blame] | 325 | infracfg = <&infracfg>; |
| 326 | }; |
| 327 | |
Eddie Huang | 13421b3 | 2015-06-01 21:08:26 +0800 | [diff] [blame] | 328 | watchdog: watchdog@10007000 { |
| 329 | compatible = "mediatek,mt8173-wdt", |
| 330 | "mediatek,mt6589-wdt"; |
| 331 | reg = <0 0x10007000 0 0x100>; |
| 332 | }; |
| 333 | |
Daniel Kurtz | b2c76e2 | 2015-10-02 23:05:19 +0800 | [diff] [blame] | 334 | timer: timer@10008000 { |
| 335 | compatible = "mediatek,mt8173-timer", |
| 336 | "mediatek,mt6577-timer"; |
| 337 | reg = <0 0x10008000 0 0x1000>; |
| 338 | interrupts = <GIC_SPI 144 IRQ_TYPE_LEVEL_LOW>; |
| 339 | clocks = <&infracfg CLK_INFRA_CLK_13M>, |
| 340 | <&topckgen CLK_TOP_RTC_SEL>; |
| 341 | }; |
| 342 | |
Sascha Hauer | 6cf15fc | 2015-05-20 15:32:46 +0200 | [diff] [blame] | 343 | pwrap: pwrap@1000d000 { |
| 344 | compatible = "mediatek,mt8173-pwrap"; |
| 345 | reg = <0 0x1000d000 0 0x1000>; |
| 346 | reg-names = "pwrap"; |
| 347 | interrupts = <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>; |
| 348 | resets = <&infracfg MT8173_INFRA_PMIC_WRAP_RST>; |
| 349 | reset-names = "pwrap"; |
| 350 | clocks = <&infracfg CLK_INFRA_PMICSPI>, <&infracfg CLK_INFRA_PMICWRAP>; |
| 351 | clock-names = "spi", "wrap"; |
| 352 | }; |
| 353 | |
CK Hu | a10b57f | 2016-08-11 11:59:59 +0200 | [diff] [blame] | 354 | cec: cec@10013000 { |
| 355 | compatible = "mediatek,mt8173-cec"; |
| 356 | reg = <0 0x10013000 0 0xbc>; |
| 357 | interrupts = <GIC_SPI 167 IRQ_TYPE_LEVEL_LOW>; |
| 358 | clocks = <&infracfg CLK_INFRA_CEC>; |
| 359 | status = "disabled"; |
| 360 | }; |
| 361 | |
Andrew-CT Chen | 404b281 | 2016-05-03 07:11:22 -0300 | [diff] [blame] | 362 | vpu: vpu@10020000 { |
| 363 | compatible = "mediatek,mt8173-vpu"; |
| 364 | reg = <0 0x10020000 0 0x30000>, |
| 365 | <0 0x10050000 0 0x100>; |
| 366 | reg-names = "tcm", "cfg_reg"; |
| 367 | interrupts = <GIC_SPI 166 IRQ_TYPE_LEVEL_HIGH>; |
| 368 | clocks = <&topckgen CLK_TOP_SCP_SEL>; |
| 369 | clock-names = "main"; |
| 370 | memory-region = <&vpu_dma_reserved>; |
| 371 | }; |
| 372 | |
Eddie Huang | b3a3724 | 2015-12-01 10:14:00 +0100 | [diff] [blame] | 373 | sysirq: intpol-controller@10200620 { |
| 374 | compatible = "mediatek,mt8173-sysirq", |
Daniel Kurtz | e881ad1 | 2015-05-20 18:20:07 +0800 | [diff] [blame] | 375 | "mediatek,mt6577-sysirq"; |
Eddie Huang | b3a3724 | 2015-12-01 10:14:00 +0100 | [diff] [blame] | 376 | interrupt-controller; |
| 377 | #interrupt-cells = <3>; |
| 378 | interrupt-parent = <&gic>; |
| 379 | reg = <0 0x10200620 0 0x20>; |
| 380 | }; |
| 381 | |
Yong Wu | 5ff6b3a | 2016-02-23 01:20:51 +0800 | [diff] [blame] | 382 | iommu: iommu@10205000 { |
| 383 | compatible = "mediatek,mt8173-m4u"; |
| 384 | reg = <0 0x10205000 0 0x1000>; |
| 385 | interrupts = <GIC_SPI 139 IRQ_TYPE_LEVEL_LOW>; |
| 386 | clocks = <&infracfg CLK_INFRA_M4U>; |
| 387 | clock-names = "bclk"; |
| 388 | mediatek,larbs = <&larb0 &larb1 &larb2 |
| 389 | &larb3 &larb4 &larb5>; |
| 390 | #iommu-cells = <1>; |
| 391 | }; |
| 392 | |
andrew-ct.chen@mediatek.com | 93e9f5e | 2015-11-19 18:46:54 +0800 | [diff] [blame] | 393 | efuse: efuse@10206000 { |
| 394 | compatible = "mediatek,mt8173-efuse"; |
| 395 | reg = <0 0x10206000 0 0x1000>; |
| 396 | }; |
| 397 | |
Sascha Hauer | f2ce701 | 2015-05-20 15:32:44 +0200 | [diff] [blame] | 398 | apmixedsys: clock-controller@10209000 { |
| 399 | compatible = "mediatek,mt8173-apmixedsys"; |
| 400 | reg = <0 0x10209000 0 0x1000>; |
| 401 | #clock-cells = <1>; |
| 402 | }; |
| 403 | |
CK Hu | a10b57f | 2016-08-11 11:59:59 +0200 | [diff] [blame] | 404 | hdmi_phy: hdmi-phy@10209100 { |
| 405 | compatible = "mediatek,mt8173-hdmi-phy"; |
| 406 | reg = <0 0x10209100 0 0x24>; |
| 407 | clocks = <&apmixedsys CLK_APMIXED_HDMI_REF>; |
| 408 | clock-names = "pll_ref"; |
| 409 | clock-output-names = "hdmitx_dig_cts"; |
| 410 | mediatek,ibias = <0xa>; |
| 411 | mediatek,ibias_up = <0x1c>; |
| 412 | #clock-cells = <0>; |
| 413 | #phy-cells = <0>; |
| 414 | status = "disabled"; |
| 415 | }; |
| 416 | |
CK Hu | 81ad4db | 2016-06-03 16:59:29 +0200 | [diff] [blame] | 417 | mipi_tx0: mipi-dphy@10215000 { |
| 418 | compatible = "mediatek,mt8173-mipi-tx"; |
| 419 | reg = <0 0x10215000 0 0x1000>; |
| 420 | clocks = <&clk26m>; |
| 421 | clock-output-names = "mipi_tx0_pll"; |
| 422 | #clock-cells = <0>; |
| 423 | #phy-cells = <0>; |
| 424 | status = "disabled"; |
| 425 | }; |
| 426 | |
| 427 | mipi_tx1: mipi-dphy@10216000 { |
| 428 | compatible = "mediatek,mt8173-mipi-tx"; |
| 429 | reg = <0 0x10216000 0 0x1000>; |
| 430 | clocks = <&clk26m>; |
| 431 | clock-output-names = "mipi_tx1_pll"; |
| 432 | #clock-cells = <0>; |
| 433 | #phy-cells = <0>; |
| 434 | status = "disabled"; |
| 435 | }; |
| 436 | |
Eddie Huang | b3a3724 | 2015-12-01 10:14:00 +0100 | [diff] [blame] | 437 | gic: interrupt-controller@10220000 { |
| 438 | compatible = "arm,gic-400"; |
| 439 | #interrupt-cells = <3>; |
| 440 | interrupt-parent = <&gic>; |
| 441 | interrupt-controller; |
| 442 | reg = <0 0x10221000 0 0x1000>, |
| 443 | <0 0x10222000 0 0x2000>, |
| 444 | <0 0x10224000 0 0x2000>, |
| 445 | <0 0x10226000 0 0x2000>; |
| 446 | interrupts = <GIC_PPI 9 |
| 447 | (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>; |
| 448 | }; |
| 449 | |
Sascha Hauer | 748c7d4 | 2015-11-30 12:42:33 +0100 | [diff] [blame] | 450 | auxadc: auxadc@11001000 { |
| 451 | compatible = "mediatek,mt8173-auxadc"; |
| 452 | reg = <0 0x11001000 0 0x1000>; |
| 453 | }; |
| 454 | |
Eddie Huang | b3a3724 | 2015-12-01 10:14:00 +0100 | [diff] [blame] | 455 | uart0: serial@11002000 { |
| 456 | compatible = "mediatek,mt8173-uart", |
Daniel Kurtz | e881ad1 | 2015-05-20 18:20:07 +0800 | [diff] [blame] | 457 | "mediatek,mt6577-uart"; |
Eddie Huang | b3a3724 | 2015-12-01 10:14:00 +0100 | [diff] [blame] | 458 | reg = <0 0x11002000 0 0x400>; |
| 459 | interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_LOW>; |
Sascha Hauer | 0e84faa | 2015-05-20 15:32:45 +0200 | [diff] [blame] | 460 | clocks = <&pericfg CLK_PERI_UART0_SEL>, <&pericfg CLK_PERI_UART0>; |
| 461 | clock-names = "baud", "bus"; |
Eddie Huang | b3a3724 | 2015-12-01 10:14:00 +0100 | [diff] [blame] | 462 | status = "disabled"; |
| 463 | }; |
| 464 | |
| 465 | uart1: serial@11003000 { |
| 466 | compatible = "mediatek,mt8173-uart", |
Daniel Kurtz | e881ad1 | 2015-05-20 18:20:07 +0800 | [diff] [blame] | 467 | "mediatek,mt6577-uart"; |
Eddie Huang | b3a3724 | 2015-12-01 10:14:00 +0100 | [diff] [blame] | 468 | reg = <0 0x11003000 0 0x400>; |
| 469 | interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_LOW>; |
Sascha Hauer | 0e84faa | 2015-05-20 15:32:45 +0200 | [diff] [blame] | 470 | clocks = <&pericfg CLK_PERI_UART1_SEL>, <&pericfg CLK_PERI_UART1>; |
| 471 | clock-names = "baud", "bus"; |
Eddie Huang | b3a3724 | 2015-12-01 10:14:00 +0100 | [diff] [blame] | 472 | status = "disabled"; |
| 473 | }; |
| 474 | |
| 475 | uart2: serial@11004000 { |
| 476 | compatible = "mediatek,mt8173-uart", |
Daniel Kurtz | e881ad1 | 2015-05-20 18:20:07 +0800 | [diff] [blame] | 477 | "mediatek,mt6577-uart"; |
Eddie Huang | b3a3724 | 2015-12-01 10:14:00 +0100 | [diff] [blame] | 478 | reg = <0 0x11004000 0 0x400>; |
| 479 | interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_LOW>; |
Sascha Hauer | 0e84faa | 2015-05-20 15:32:45 +0200 | [diff] [blame] | 480 | clocks = <&pericfg CLK_PERI_UART2_SEL>, <&pericfg CLK_PERI_UART2>; |
| 481 | clock-names = "baud", "bus"; |
Eddie Huang | b3a3724 | 2015-12-01 10:14:00 +0100 | [diff] [blame] | 482 | status = "disabled"; |
| 483 | }; |
| 484 | |
| 485 | uart3: serial@11005000 { |
| 486 | compatible = "mediatek,mt8173-uart", |
Daniel Kurtz | e881ad1 | 2015-05-20 18:20:07 +0800 | [diff] [blame] | 487 | "mediatek,mt6577-uart"; |
Eddie Huang | b3a3724 | 2015-12-01 10:14:00 +0100 | [diff] [blame] | 488 | reg = <0 0x11005000 0 0x400>; |
| 489 | interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_LOW>; |
Sascha Hauer | 0e84faa | 2015-05-20 15:32:45 +0200 | [diff] [blame] | 490 | clocks = <&pericfg CLK_PERI_UART3_SEL>, <&pericfg CLK_PERI_UART3>; |
| 491 | clock-names = "baud", "bus"; |
Eddie Huang | b3a3724 | 2015-12-01 10:14:00 +0100 | [diff] [blame] | 492 | status = "disabled"; |
| 493 | }; |
Eddie Huang | 091cf59 | 2015-06-17 23:08:03 +0800 | [diff] [blame] | 494 | |
| 495 | i2c0: i2c@11007000 { |
| 496 | compatible = "mediatek,mt8173-i2c"; |
| 497 | reg = <0 0x11007000 0 0x70>, |
| 498 | <0 0x11000100 0 0x80>; |
| 499 | interrupts = <GIC_SPI 76 IRQ_TYPE_LEVEL_LOW>; |
| 500 | clock-div = <16>; |
| 501 | clocks = <&pericfg CLK_PERI_I2C0>, |
| 502 | <&pericfg CLK_PERI_AP_DMA>; |
| 503 | clock-names = "main", "dma"; |
| 504 | pinctrl-names = "default"; |
| 505 | pinctrl-0 = <&i2c0_pins_a>; |
| 506 | #address-cells = <1>; |
| 507 | #size-cells = <0>; |
| 508 | status = "disabled"; |
| 509 | }; |
| 510 | |
| 511 | i2c1: i2c@11008000 { |
| 512 | compatible = "mediatek,mt8173-i2c"; |
| 513 | reg = <0 0x11008000 0 0x70>, |
| 514 | <0 0x11000180 0 0x80>; |
| 515 | interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_LOW>; |
| 516 | clock-div = <16>; |
| 517 | clocks = <&pericfg CLK_PERI_I2C1>, |
| 518 | <&pericfg CLK_PERI_AP_DMA>; |
| 519 | clock-names = "main", "dma"; |
| 520 | pinctrl-names = "default"; |
| 521 | pinctrl-0 = <&i2c1_pins_a>; |
| 522 | #address-cells = <1>; |
| 523 | #size-cells = <0>; |
| 524 | status = "disabled"; |
| 525 | }; |
| 526 | |
| 527 | i2c2: i2c@11009000 { |
| 528 | compatible = "mediatek,mt8173-i2c"; |
| 529 | reg = <0 0x11009000 0 0x70>, |
| 530 | <0 0x11000200 0 0x80>; |
| 531 | interrupts = <GIC_SPI 78 IRQ_TYPE_LEVEL_LOW>; |
| 532 | clock-div = <16>; |
| 533 | clocks = <&pericfg CLK_PERI_I2C2>, |
| 534 | <&pericfg CLK_PERI_AP_DMA>; |
| 535 | clock-names = "main", "dma"; |
| 536 | pinctrl-names = "default"; |
| 537 | pinctrl-0 = <&i2c2_pins_a>; |
| 538 | #address-cells = <1>; |
| 539 | #size-cells = <0>; |
| 540 | status = "disabled"; |
| 541 | }; |
| 542 | |
Leilk Liu | b0c936f | 2015-08-31 21:44:19 +0800 | [diff] [blame] | 543 | spi: spi@1100a000 { |
| 544 | compatible = "mediatek,mt8173-spi"; |
| 545 | #address-cells = <1>; |
| 546 | #size-cells = <0>; |
| 547 | reg = <0 0x1100a000 0 0x1000>; |
| 548 | interrupts = <GIC_SPI 110 IRQ_TYPE_LEVEL_LOW>; |
| 549 | clocks = <&topckgen CLK_TOP_SYSPLL3_D2>, |
| 550 | <&topckgen CLK_TOP_SPI_SEL>, |
| 551 | <&pericfg CLK_PERI_SPI0>; |
| 552 | clock-names = "parent-clk", "sel-clk", "spi-clk"; |
| 553 | status = "disabled"; |
| 554 | }; |
| 555 | |
Sascha Hauer | 748c7d4 | 2015-11-30 12:42:33 +0100 | [diff] [blame] | 556 | thermal: thermal@1100b000 { |
| 557 | #thermal-sensor-cells = <0>; |
| 558 | compatible = "mediatek,mt8173-thermal"; |
| 559 | reg = <0 0x1100b000 0 0x1000>; |
| 560 | interrupts = <0 70 IRQ_TYPE_LEVEL_LOW>; |
| 561 | clocks = <&pericfg CLK_PERI_THERM>, <&pericfg CLK_PERI_AUXADC>; |
| 562 | clock-names = "therm", "auxadc"; |
| 563 | resets = <&pericfg MT8173_PERI_THERM_SW_RST>; |
| 564 | mediatek,auxadc = <&auxadc>; |
| 565 | mediatek,apmixedsys = <&apmixedsys>; |
| 566 | }; |
| 567 | |
Bayi Cheng | 86cb8a8 | 2015-12-07 11:53:14 +0800 | [diff] [blame] | 568 | nor_flash: spi@1100d000 { |
| 569 | compatible = "mediatek,mt8173-nor"; |
| 570 | reg = <0 0x1100d000 0 0xe0>; |
| 571 | clocks = <&pericfg CLK_PERI_SPI>, |
| 572 | <&topckgen CLK_TOP_SPINFI_IFR_SEL>; |
| 573 | clock-names = "spi", "sf"; |
| 574 | #address-cells = <1>; |
| 575 | #size-cells = <0>; |
| 576 | status = "disabled"; |
| 577 | }; |
| 578 | |
Yingjoe Chen | 1ee35c05 | 2015-09-16 09:35:25 +0800 | [diff] [blame] | 579 | i2c3: i2c@11010000 { |
Eddie Huang | 091cf59 | 2015-06-17 23:08:03 +0800 | [diff] [blame] | 580 | compatible = "mediatek,mt8173-i2c"; |
| 581 | reg = <0 0x11010000 0 0x70>, |
| 582 | <0 0x11000280 0 0x80>; |
| 583 | interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_LOW>; |
| 584 | clock-div = <16>; |
| 585 | clocks = <&pericfg CLK_PERI_I2C3>, |
| 586 | <&pericfg CLK_PERI_AP_DMA>; |
| 587 | clock-names = "main", "dma"; |
| 588 | pinctrl-names = "default"; |
| 589 | pinctrl-0 = <&i2c3_pins_a>; |
| 590 | #address-cells = <1>; |
| 591 | #size-cells = <0>; |
| 592 | status = "disabled"; |
| 593 | }; |
| 594 | |
Yingjoe Chen | 1ee35c05 | 2015-09-16 09:35:25 +0800 | [diff] [blame] | 595 | i2c4: i2c@11011000 { |
Eddie Huang | 091cf59 | 2015-06-17 23:08:03 +0800 | [diff] [blame] | 596 | compatible = "mediatek,mt8173-i2c"; |
| 597 | reg = <0 0x11011000 0 0x70>, |
| 598 | <0 0x11000300 0 0x80>; |
| 599 | interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_LOW>; |
| 600 | clock-div = <16>; |
| 601 | clocks = <&pericfg CLK_PERI_I2C4>, |
| 602 | <&pericfg CLK_PERI_AP_DMA>; |
| 603 | clock-names = "main", "dma"; |
| 604 | pinctrl-names = "default"; |
| 605 | pinctrl-0 = <&i2c4_pins_a>; |
| 606 | #address-cells = <1>; |
| 607 | #size-cells = <0>; |
| 608 | status = "disabled"; |
| 609 | }; |
| 610 | |
CK Hu | a10b57f | 2016-08-11 11:59:59 +0200 | [diff] [blame] | 611 | hdmiddc0: i2c@11012000 { |
| 612 | compatible = "mediatek,mt8173-hdmi-ddc"; |
| 613 | interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_LOW>; |
| 614 | reg = <0 0x11012000 0 0x1C>; |
| 615 | clocks = <&pericfg CLK_PERI_I2C5>; |
| 616 | clock-names = "ddc-i2c"; |
| 617 | }; |
| 618 | |
Yingjoe Chen | 1ee35c05 | 2015-09-16 09:35:25 +0800 | [diff] [blame] | 619 | i2c6: i2c@11013000 { |
Eddie Huang | 091cf59 | 2015-06-17 23:08:03 +0800 | [diff] [blame] | 620 | compatible = "mediatek,mt8173-i2c"; |
| 621 | reg = <0 0x11013000 0 0x70>, |
| 622 | <0 0x11000080 0 0x80>; |
| 623 | interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_LOW>; |
| 624 | clock-div = <16>; |
| 625 | clocks = <&pericfg CLK_PERI_I2C6>, |
| 626 | <&pericfg CLK_PERI_AP_DMA>; |
| 627 | clock-names = "main", "dma"; |
| 628 | pinctrl-names = "default"; |
| 629 | pinctrl-0 = <&i2c6_pins_a>; |
| 630 | #address-cells = <1>; |
| 631 | #size-cells = <0>; |
| 632 | status = "disabled"; |
| 633 | }; |
Koro Chen | c02e0e8 | 2015-07-09 11:32:05 +0800 | [diff] [blame] | 634 | |
| 635 | afe: audio-controller@11220000 { |
| 636 | compatible = "mediatek,mt8173-afe-pcm"; |
| 637 | reg = <0 0x11220000 0 0x1000>; |
| 638 | interrupts = <GIC_SPI 134 IRQ_TYPE_EDGE_FALLING>; |
| 639 | power-domains = <&scpsys MT8173_POWER_DOMAIN_AUDIO>; |
| 640 | clocks = <&infracfg CLK_INFRA_AUDIO>, |
| 641 | <&topckgen CLK_TOP_AUDIO_SEL>, |
| 642 | <&topckgen CLK_TOP_AUD_INTBUS_SEL>, |
| 643 | <&topckgen CLK_TOP_APLL1_DIV0>, |
| 644 | <&topckgen CLK_TOP_APLL2_DIV0>, |
| 645 | <&topckgen CLK_TOP_I2S0_M_SEL>, |
| 646 | <&topckgen CLK_TOP_I2S1_M_SEL>, |
| 647 | <&topckgen CLK_TOP_I2S2_M_SEL>, |
| 648 | <&topckgen CLK_TOP_I2S3_M_SEL>, |
| 649 | <&topckgen CLK_TOP_I2S3_B_SEL>; |
| 650 | clock-names = "infra_sys_audio_clk", |
| 651 | "top_pdn_audio", |
| 652 | "top_pdn_aud_intbus", |
| 653 | "bck0", |
| 654 | "bck1", |
| 655 | "i2s0_m", |
| 656 | "i2s1_m", |
| 657 | "i2s2_m", |
| 658 | "i2s3_m", |
| 659 | "i2s3_b"; |
| 660 | assigned-clocks = <&topckgen CLK_TOP_AUD_1_SEL>, |
| 661 | <&topckgen CLK_TOP_AUD_2_SEL>; |
| 662 | assigned-clock-parents = <&topckgen CLK_TOP_APLL1>, |
| 663 | <&topckgen CLK_TOP_APLL2>; |
| 664 | }; |
Eddie Huang | 9719fa5 | 2015-07-16 19:36:20 +0800 | [diff] [blame] | 665 | |
| 666 | mmc0: mmc@11230000 { |
| 667 | compatible = "mediatek,mt8173-mmc", |
| 668 | "mediatek,mt8135-mmc"; |
| 669 | reg = <0 0x11230000 0 0x1000>; |
| 670 | interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_LOW>; |
| 671 | clocks = <&pericfg CLK_PERI_MSDC30_0>, |
| 672 | <&topckgen CLK_TOP_MSDC50_0_H_SEL>; |
| 673 | clock-names = "source", "hclk"; |
| 674 | status = "disabled"; |
| 675 | }; |
| 676 | |
| 677 | mmc1: mmc@11240000 { |
| 678 | compatible = "mediatek,mt8173-mmc", |
| 679 | "mediatek,mt8135-mmc"; |
| 680 | reg = <0 0x11240000 0 0x1000>; |
| 681 | interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_LOW>; |
| 682 | clocks = <&pericfg CLK_PERI_MSDC30_1>, |
| 683 | <&topckgen CLK_TOP_AXI_SEL>; |
| 684 | clock-names = "source", "hclk"; |
| 685 | status = "disabled"; |
| 686 | }; |
| 687 | |
| 688 | mmc2: mmc@11250000 { |
| 689 | compatible = "mediatek,mt8173-mmc", |
| 690 | "mediatek,mt8135-mmc"; |
| 691 | reg = <0 0x11250000 0 0x1000>; |
| 692 | interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_LOW>; |
| 693 | clocks = <&pericfg CLK_PERI_MSDC30_2>, |
| 694 | <&topckgen CLK_TOP_AXI_SEL>; |
| 695 | clock-names = "source", "hclk"; |
| 696 | status = "disabled"; |
| 697 | }; |
| 698 | |
| 699 | mmc3: mmc@11260000 { |
| 700 | compatible = "mediatek,mt8173-mmc", |
| 701 | "mediatek,mt8135-mmc"; |
| 702 | reg = <0 0x11260000 0 0x1000>; |
| 703 | interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_LOW>; |
| 704 | clocks = <&pericfg CLK_PERI_MSDC30_3>, |
| 705 | <&topckgen CLK_TOP_MSDC50_2_H_SEL>; |
| 706 | clock-names = "source", "hclk"; |
| 707 | status = "disabled"; |
| 708 | }; |
James Liao | 67e56c5 | 2015-08-10 17:50:28 +0800 | [diff] [blame] | 709 | |
Chunfeng Yun | c089128 | 2016-10-19 10:28:27 +0800 | [diff] [blame^] | 710 | ssusb: usb@11271000 { |
| 711 | compatible = "mediatek,mt8173-mtu3"; |
| 712 | reg = <0 0x11271000 0 0x3000>, |
Chunfeng Yun | bfcce47 | 2015-11-24 13:09:56 +0200 | [diff] [blame] | 713 | <0 0x11280700 0 0x0100>; |
Chunfeng Yun | c089128 | 2016-10-19 10:28:27 +0800 | [diff] [blame^] | 714 | reg-names = "mac", "ippc"; |
| 715 | interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_LOW>; |
| 716 | phys = <&phy_port0 PHY_TYPE_USB3>, |
| 717 | <&phy_port1 PHY_TYPE_USB2>; |
Chunfeng Yun | bfcce47 | 2015-11-24 13:09:56 +0200 | [diff] [blame] | 718 | power-domains = <&scpsys MT8173_POWER_DOMAIN_USB>; |
| 719 | clocks = <&topckgen CLK_TOP_USB30_SEL>, |
| 720 | <&pericfg CLK_PERI_USB0>, |
| 721 | <&pericfg CLK_PERI_USB1>; |
| 722 | clock-names = "sys_ck", |
| 723 | "wakeup_deb_p0", |
| 724 | "wakeup_deb_p1"; |
Chunfeng Yun | bfcce47 | 2015-11-24 13:09:56 +0200 | [diff] [blame] | 725 | mediatek,syscon-wakeup = <&pericfg>; |
Chunfeng Yun | c089128 | 2016-10-19 10:28:27 +0800 | [diff] [blame^] | 726 | #address-cells = <2>; |
| 727 | #size-cells = <2>; |
| 728 | ranges; |
| 729 | status = "disabled"; |
| 730 | |
| 731 | usb_host: xhci@11270000 { |
| 732 | compatible = "mediatek,mt8173-xhci"; |
| 733 | reg = <0 0x11270000 0 0x1000>; |
| 734 | reg-names = "mac"; |
| 735 | interrupts = <GIC_SPI 115 IRQ_TYPE_LEVEL_LOW>; |
| 736 | power-domains = <&scpsys MT8173_POWER_DOMAIN_USB>; |
| 737 | clocks = <&topckgen CLK_TOP_USB30_SEL>; |
| 738 | clock-names = "sys_ck"; |
| 739 | status = "disabled"; |
| 740 | }; |
Chunfeng Yun | bfcce47 | 2015-11-24 13:09:56 +0200 | [diff] [blame] | 741 | }; |
| 742 | |
| 743 | u3phy: usb-phy@11290000 { |
| 744 | compatible = "mediatek,mt8173-u3phy"; |
| 745 | reg = <0 0x11290000 0 0x800>; |
| 746 | clocks = <&apmixedsys CLK_APMIXED_REF2USB_TX>; |
| 747 | clock-names = "u3phya_ref"; |
| 748 | #address-cells = <2>; |
| 749 | #size-cells = <2>; |
| 750 | ranges; |
| 751 | status = "okay"; |
| 752 | |
| 753 | phy_port0: port@11290800 { |
| 754 | reg = <0 0x11290800 0 0x800>; |
| 755 | #phy-cells = <1>; |
| 756 | status = "okay"; |
| 757 | }; |
| 758 | |
| 759 | phy_port1: port@11291000 { |
| 760 | reg = <0 0x11291000 0 0x800>; |
| 761 | #phy-cells = <1>; |
| 762 | status = "okay"; |
| 763 | }; |
| 764 | }; |
| 765 | |
James Liao | 67e56c5 | 2015-08-10 17:50:28 +0800 | [diff] [blame] | 766 | mmsys: clock-controller@14000000 { |
| 767 | compatible = "mediatek,mt8173-mmsys", "syscon"; |
| 768 | reg = <0 0x14000000 0 0x1000>; |
CK Hu | 81ad4db | 2016-06-03 16:59:29 +0200 | [diff] [blame] | 769 | power-domains = <&scpsys MT8173_POWER_DOMAIN_MM>; |
James Liao | 67e56c5 | 2015-08-10 17:50:28 +0800 | [diff] [blame] | 770 | #clock-cells = <1>; |
| 771 | }; |
| 772 | |
CK Hu | 81ad4db | 2016-06-03 16:59:29 +0200 | [diff] [blame] | 773 | ovl0: ovl@1400c000 { |
| 774 | compatible = "mediatek,mt8173-disp-ovl"; |
| 775 | reg = <0 0x1400c000 0 0x1000>; |
| 776 | interrupts = <GIC_SPI 180 IRQ_TYPE_LEVEL_LOW>; |
| 777 | power-domains = <&scpsys MT8173_POWER_DOMAIN_MM>; |
| 778 | clocks = <&mmsys CLK_MM_DISP_OVL0>; |
| 779 | iommus = <&iommu M4U_PORT_DISP_OVL0>; |
| 780 | mediatek,larb = <&larb0>; |
| 781 | }; |
| 782 | |
| 783 | ovl1: ovl@1400d000 { |
| 784 | compatible = "mediatek,mt8173-disp-ovl"; |
| 785 | reg = <0 0x1400d000 0 0x1000>; |
| 786 | interrupts = <GIC_SPI 181 IRQ_TYPE_LEVEL_LOW>; |
| 787 | power-domains = <&scpsys MT8173_POWER_DOMAIN_MM>; |
| 788 | clocks = <&mmsys CLK_MM_DISP_OVL1>; |
| 789 | iommus = <&iommu M4U_PORT_DISP_OVL1>; |
| 790 | mediatek,larb = <&larb4>; |
| 791 | }; |
| 792 | |
| 793 | rdma0: rdma@1400e000 { |
| 794 | compatible = "mediatek,mt8173-disp-rdma"; |
| 795 | reg = <0 0x1400e000 0 0x1000>; |
| 796 | interrupts = <GIC_SPI 182 IRQ_TYPE_LEVEL_LOW>; |
| 797 | power-domains = <&scpsys MT8173_POWER_DOMAIN_MM>; |
| 798 | clocks = <&mmsys CLK_MM_DISP_RDMA0>; |
| 799 | iommus = <&iommu M4U_PORT_DISP_RDMA0>; |
| 800 | mediatek,larb = <&larb0>; |
| 801 | }; |
| 802 | |
| 803 | rdma1: rdma@1400f000 { |
| 804 | compatible = "mediatek,mt8173-disp-rdma"; |
| 805 | reg = <0 0x1400f000 0 0x1000>; |
| 806 | interrupts = <GIC_SPI 183 IRQ_TYPE_LEVEL_LOW>; |
| 807 | power-domains = <&scpsys MT8173_POWER_DOMAIN_MM>; |
| 808 | clocks = <&mmsys CLK_MM_DISP_RDMA1>; |
| 809 | iommus = <&iommu M4U_PORT_DISP_RDMA1>; |
| 810 | mediatek,larb = <&larb4>; |
| 811 | }; |
| 812 | |
| 813 | rdma2: rdma@14010000 { |
| 814 | compatible = "mediatek,mt8173-disp-rdma"; |
| 815 | reg = <0 0x14010000 0 0x1000>; |
| 816 | interrupts = <GIC_SPI 184 IRQ_TYPE_LEVEL_LOW>; |
| 817 | power-domains = <&scpsys MT8173_POWER_DOMAIN_MM>; |
| 818 | clocks = <&mmsys CLK_MM_DISP_RDMA2>; |
| 819 | iommus = <&iommu M4U_PORT_DISP_RDMA2>; |
| 820 | mediatek,larb = <&larb4>; |
| 821 | }; |
| 822 | |
| 823 | wdma0: wdma@14011000 { |
| 824 | compatible = "mediatek,mt8173-disp-wdma"; |
| 825 | reg = <0 0x14011000 0 0x1000>; |
| 826 | interrupts = <GIC_SPI 185 IRQ_TYPE_LEVEL_LOW>; |
| 827 | power-domains = <&scpsys MT8173_POWER_DOMAIN_MM>; |
| 828 | clocks = <&mmsys CLK_MM_DISP_WDMA0>; |
| 829 | iommus = <&iommu M4U_PORT_DISP_WDMA0>; |
| 830 | mediatek,larb = <&larb0>; |
| 831 | }; |
| 832 | |
| 833 | wdma1: wdma@14012000 { |
| 834 | compatible = "mediatek,mt8173-disp-wdma"; |
| 835 | reg = <0 0x14012000 0 0x1000>; |
| 836 | interrupts = <GIC_SPI 186 IRQ_TYPE_LEVEL_LOW>; |
| 837 | power-domains = <&scpsys MT8173_POWER_DOMAIN_MM>; |
| 838 | clocks = <&mmsys CLK_MM_DISP_WDMA1>; |
| 839 | iommus = <&iommu M4U_PORT_DISP_WDMA1>; |
| 840 | mediatek,larb = <&larb4>; |
| 841 | }; |
| 842 | |
| 843 | color0: color@14013000 { |
| 844 | compatible = "mediatek,mt8173-disp-color"; |
| 845 | reg = <0 0x14013000 0 0x1000>; |
| 846 | interrupts = <GIC_SPI 187 IRQ_TYPE_LEVEL_LOW>; |
| 847 | power-domains = <&scpsys MT8173_POWER_DOMAIN_MM>; |
| 848 | clocks = <&mmsys CLK_MM_DISP_COLOR0>; |
| 849 | }; |
| 850 | |
| 851 | color1: color@14014000 { |
| 852 | compatible = "mediatek,mt8173-disp-color"; |
| 853 | reg = <0 0x14014000 0 0x1000>; |
| 854 | interrupts = <GIC_SPI 188 IRQ_TYPE_LEVEL_LOW>; |
| 855 | power-domains = <&scpsys MT8173_POWER_DOMAIN_MM>; |
| 856 | clocks = <&mmsys CLK_MM_DISP_COLOR1>; |
| 857 | }; |
| 858 | |
| 859 | aal@14015000 { |
| 860 | compatible = "mediatek,mt8173-disp-aal"; |
| 861 | reg = <0 0x14015000 0 0x1000>; |
| 862 | interrupts = <GIC_SPI 189 IRQ_TYPE_LEVEL_LOW>; |
| 863 | power-domains = <&scpsys MT8173_POWER_DOMAIN_MM>; |
| 864 | clocks = <&mmsys CLK_MM_DISP_AAL>; |
| 865 | }; |
| 866 | |
| 867 | gamma@14016000 { |
| 868 | compatible = "mediatek,mt8173-disp-gamma"; |
| 869 | reg = <0 0x14016000 0 0x1000>; |
| 870 | interrupts = <GIC_SPI 190 IRQ_TYPE_LEVEL_LOW>; |
| 871 | power-domains = <&scpsys MT8173_POWER_DOMAIN_MM>; |
| 872 | clocks = <&mmsys CLK_MM_DISP_GAMMA>; |
| 873 | }; |
| 874 | |
| 875 | merge@14017000 { |
| 876 | compatible = "mediatek,mt8173-disp-merge"; |
| 877 | reg = <0 0x14017000 0 0x1000>; |
| 878 | power-domains = <&scpsys MT8173_POWER_DOMAIN_MM>; |
| 879 | clocks = <&mmsys CLK_MM_DISP_MERGE>; |
| 880 | }; |
| 881 | |
| 882 | split0: split@14018000 { |
| 883 | compatible = "mediatek,mt8173-disp-split"; |
| 884 | reg = <0 0x14018000 0 0x1000>; |
| 885 | power-domains = <&scpsys MT8173_POWER_DOMAIN_MM>; |
| 886 | clocks = <&mmsys CLK_MM_DISP_SPLIT0>; |
| 887 | }; |
| 888 | |
| 889 | split1: split@14019000 { |
| 890 | compatible = "mediatek,mt8173-disp-split"; |
| 891 | reg = <0 0x14019000 0 0x1000>; |
| 892 | power-domains = <&scpsys MT8173_POWER_DOMAIN_MM>; |
| 893 | clocks = <&mmsys CLK_MM_DISP_SPLIT1>; |
| 894 | }; |
| 895 | |
| 896 | ufoe@1401a000 { |
| 897 | compatible = "mediatek,mt8173-disp-ufoe"; |
| 898 | reg = <0 0x1401a000 0 0x1000>; |
| 899 | interrupts = <GIC_SPI 191 IRQ_TYPE_LEVEL_LOW>; |
| 900 | power-domains = <&scpsys MT8173_POWER_DOMAIN_MM>; |
| 901 | clocks = <&mmsys CLK_MM_DISP_UFOE>; |
| 902 | }; |
| 903 | |
| 904 | dsi0: dsi@1401b000 { |
| 905 | compatible = "mediatek,mt8173-dsi"; |
| 906 | reg = <0 0x1401b000 0 0x1000>; |
| 907 | interrupts = <GIC_SPI 192 IRQ_TYPE_LEVEL_LOW>; |
| 908 | power-domains = <&scpsys MT8173_POWER_DOMAIN_MM>; |
| 909 | clocks = <&mmsys CLK_MM_DSI0_ENGINE>, |
| 910 | <&mmsys CLK_MM_DSI0_DIGITAL>, |
| 911 | <&mipi_tx0>; |
| 912 | clock-names = "engine", "digital", "hs"; |
| 913 | phys = <&mipi_tx0>; |
| 914 | phy-names = "dphy"; |
| 915 | status = "disabled"; |
| 916 | }; |
| 917 | |
| 918 | dsi1: dsi@1401c000 { |
| 919 | compatible = "mediatek,mt8173-dsi"; |
| 920 | reg = <0 0x1401c000 0 0x1000>; |
| 921 | interrupts = <GIC_SPI 193 IRQ_TYPE_LEVEL_LOW>; |
| 922 | power-domains = <&scpsys MT8173_POWER_DOMAIN_MM>; |
| 923 | clocks = <&mmsys CLK_MM_DSI1_ENGINE>, |
| 924 | <&mmsys CLK_MM_DSI1_DIGITAL>, |
| 925 | <&mipi_tx1>; |
| 926 | clock-names = "engine", "digital", "hs"; |
| 927 | phy = <&mipi_tx1>; |
| 928 | phy-names = "dphy"; |
| 929 | status = "disabled"; |
| 930 | }; |
| 931 | |
| 932 | dpi0: dpi@1401d000 { |
| 933 | compatible = "mediatek,mt8173-dpi"; |
| 934 | reg = <0 0x1401d000 0 0x1000>; |
| 935 | interrupts = <GIC_SPI 194 IRQ_TYPE_LEVEL_LOW>; |
| 936 | power-domains = <&scpsys MT8173_POWER_DOMAIN_MM>; |
| 937 | clocks = <&mmsys CLK_MM_DPI_PIXEL>, |
| 938 | <&mmsys CLK_MM_DPI_ENGINE>, |
| 939 | <&apmixedsys CLK_APMIXED_TVDPLL>; |
| 940 | clock-names = "pixel", "engine", "pll"; |
| 941 | status = "disabled"; |
CK Hu | a10b57f | 2016-08-11 11:59:59 +0200 | [diff] [blame] | 942 | |
| 943 | port { |
| 944 | dpi0_out: endpoint { |
| 945 | remote-endpoint = <&hdmi0_in>; |
| 946 | }; |
| 947 | }; |
CK Hu | 81ad4db | 2016-06-03 16:59:29 +0200 | [diff] [blame] | 948 | }; |
| 949 | |
YH Huang | 61aee93 | 2015-10-06 15:40:43 +0800 | [diff] [blame] | 950 | pwm0: pwm@1401e000 { |
| 951 | compatible = "mediatek,mt8173-disp-pwm", |
| 952 | "mediatek,mt6595-disp-pwm"; |
| 953 | reg = <0 0x1401e000 0 0x1000>; |
| 954 | #pwm-cells = <2>; |
| 955 | clocks = <&mmsys CLK_MM_DISP_PWM026M>, |
| 956 | <&mmsys CLK_MM_DISP_PWM0MM>; |
| 957 | clock-names = "main", "mm"; |
| 958 | status = "disabled"; |
| 959 | }; |
| 960 | |
| 961 | pwm1: pwm@1401f000 { |
| 962 | compatible = "mediatek,mt8173-disp-pwm", |
| 963 | "mediatek,mt6595-disp-pwm"; |
| 964 | reg = <0 0x1401f000 0 0x1000>; |
| 965 | #pwm-cells = <2>; |
| 966 | clocks = <&mmsys CLK_MM_DISP_PWM126M>, |
| 967 | <&mmsys CLK_MM_DISP_PWM1MM>; |
| 968 | clock-names = "main", "mm"; |
| 969 | status = "disabled"; |
| 970 | }; |
| 971 | |
CK Hu | 81ad4db | 2016-06-03 16:59:29 +0200 | [diff] [blame] | 972 | mutex: mutex@14020000 { |
| 973 | compatible = "mediatek,mt8173-disp-mutex"; |
| 974 | reg = <0 0x14020000 0 0x1000>; |
| 975 | interrupts = <GIC_SPI 169 IRQ_TYPE_LEVEL_LOW>; |
| 976 | power-domains = <&scpsys MT8173_POWER_DOMAIN_MM>; |
| 977 | clocks = <&mmsys CLK_MM_MUTEX_32K>; |
| 978 | }; |
| 979 | |
Yong Wu | 5ff6b3a | 2016-02-23 01:20:51 +0800 | [diff] [blame] | 980 | larb0: larb@14021000 { |
| 981 | compatible = "mediatek,mt8173-smi-larb"; |
| 982 | reg = <0 0x14021000 0 0x1000>; |
| 983 | mediatek,smi = <&smi_common>; |
| 984 | power-domains = <&scpsys MT8173_POWER_DOMAIN_MM>; |
| 985 | clocks = <&mmsys CLK_MM_SMI_LARB0>, |
| 986 | <&mmsys CLK_MM_SMI_LARB0>; |
| 987 | clock-names = "apb", "smi"; |
| 988 | }; |
| 989 | |
| 990 | smi_common: smi@14022000 { |
| 991 | compatible = "mediatek,mt8173-smi-common"; |
| 992 | reg = <0 0x14022000 0 0x1000>; |
| 993 | power-domains = <&scpsys MT8173_POWER_DOMAIN_MM>; |
| 994 | clocks = <&mmsys CLK_MM_SMI_COMMON>, |
| 995 | <&mmsys CLK_MM_SMI_COMMON>; |
| 996 | clock-names = "apb", "smi"; |
| 997 | }; |
| 998 | |
CK Hu | 81ad4db | 2016-06-03 16:59:29 +0200 | [diff] [blame] | 999 | od@14023000 { |
| 1000 | compatible = "mediatek,mt8173-disp-od"; |
| 1001 | reg = <0 0x14023000 0 0x1000>; |
| 1002 | clocks = <&mmsys CLK_MM_DISP_OD>; |
| 1003 | }; |
| 1004 | |
CK Hu | a10b57f | 2016-08-11 11:59:59 +0200 | [diff] [blame] | 1005 | hdmi0: hdmi@14025000 { |
| 1006 | compatible = "mediatek,mt8173-hdmi"; |
| 1007 | reg = <0 0x14025000 0 0x400>; |
| 1008 | interrupts = <GIC_SPI 206 IRQ_TYPE_LEVEL_LOW>; |
| 1009 | clocks = <&mmsys CLK_MM_HDMI_PIXEL>, |
| 1010 | <&mmsys CLK_MM_HDMI_PLLCK>, |
| 1011 | <&mmsys CLK_MM_HDMI_AUDIO>, |
| 1012 | <&mmsys CLK_MM_HDMI_SPDIF>; |
| 1013 | clock-names = "pixel", "pll", "bclk", "spdif"; |
| 1014 | pinctrl-names = "default"; |
| 1015 | pinctrl-0 = <&hdmi_pin>; |
| 1016 | phys = <&hdmi_phy>; |
| 1017 | phy-names = "hdmi"; |
| 1018 | mediatek,syscon-hdmi = <&mmsys 0x900>; |
| 1019 | assigned-clocks = <&topckgen CLK_TOP_HDMI_SEL>; |
| 1020 | assigned-clock-parents = <&hdmi_phy>; |
| 1021 | status = "disabled"; |
| 1022 | |
| 1023 | ports { |
| 1024 | #address-cells = <1>; |
| 1025 | #size-cells = <0>; |
| 1026 | |
| 1027 | port@0 { |
| 1028 | reg = <0>; |
| 1029 | |
| 1030 | hdmi0_in: endpoint { |
| 1031 | remote-endpoint = <&dpi0_out>; |
| 1032 | }; |
| 1033 | }; |
| 1034 | }; |
| 1035 | }; |
| 1036 | |
Yong Wu | 5ff6b3a | 2016-02-23 01:20:51 +0800 | [diff] [blame] | 1037 | larb4: larb@14027000 { |
| 1038 | compatible = "mediatek,mt8173-smi-larb"; |
| 1039 | reg = <0 0x14027000 0 0x1000>; |
| 1040 | mediatek,smi = <&smi_common>; |
| 1041 | power-domains = <&scpsys MT8173_POWER_DOMAIN_MM>; |
| 1042 | clocks = <&mmsys CLK_MM_SMI_LARB4>, |
| 1043 | <&mmsys CLK_MM_SMI_LARB4>; |
| 1044 | clock-names = "apb", "smi"; |
| 1045 | }; |
| 1046 | |
James Liao | 67e56c5 | 2015-08-10 17:50:28 +0800 | [diff] [blame] | 1047 | imgsys: clock-controller@15000000 { |
| 1048 | compatible = "mediatek,mt8173-imgsys", "syscon"; |
| 1049 | reg = <0 0x15000000 0 0x1000>; |
| 1050 | #clock-cells = <1>; |
| 1051 | }; |
| 1052 | |
Yong Wu | 5ff6b3a | 2016-02-23 01:20:51 +0800 | [diff] [blame] | 1053 | larb2: larb@15001000 { |
| 1054 | compatible = "mediatek,mt8173-smi-larb"; |
| 1055 | reg = <0 0x15001000 0 0x1000>; |
| 1056 | mediatek,smi = <&smi_common>; |
| 1057 | power-domains = <&scpsys MT8173_POWER_DOMAIN_ISP>; |
| 1058 | clocks = <&imgsys CLK_IMG_LARB2_SMI>, |
| 1059 | <&imgsys CLK_IMG_LARB2_SMI>; |
| 1060 | clock-names = "apb", "smi"; |
| 1061 | }; |
| 1062 | |
James Liao | 67e56c5 | 2015-08-10 17:50:28 +0800 | [diff] [blame] | 1063 | vdecsys: clock-controller@16000000 { |
| 1064 | compatible = "mediatek,mt8173-vdecsys", "syscon"; |
| 1065 | reg = <0 0x16000000 0 0x1000>; |
| 1066 | #clock-cells = <1>; |
| 1067 | }; |
| 1068 | |
Yong Wu | 5ff6b3a | 2016-02-23 01:20:51 +0800 | [diff] [blame] | 1069 | larb1: larb@16010000 { |
| 1070 | compatible = "mediatek,mt8173-smi-larb"; |
| 1071 | reg = <0 0x16010000 0 0x1000>; |
| 1072 | mediatek,smi = <&smi_common>; |
| 1073 | power-domains = <&scpsys MT8173_POWER_DOMAIN_VDEC>; |
| 1074 | clocks = <&vdecsys CLK_VDEC_CKEN>, |
| 1075 | <&vdecsys CLK_VDEC_LARB_CKEN>; |
| 1076 | clock-names = "apb", "smi"; |
| 1077 | }; |
| 1078 | |
James Liao | 67e56c5 | 2015-08-10 17:50:28 +0800 | [diff] [blame] | 1079 | vencsys: clock-controller@18000000 { |
| 1080 | compatible = "mediatek,mt8173-vencsys", "syscon"; |
| 1081 | reg = <0 0x18000000 0 0x1000>; |
| 1082 | #clock-cells = <1>; |
| 1083 | }; |
| 1084 | |
Yong Wu | 5ff6b3a | 2016-02-23 01:20:51 +0800 | [diff] [blame] | 1085 | larb3: larb@18001000 { |
| 1086 | compatible = "mediatek,mt8173-smi-larb"; |
| 1087 | reg = <0 0x18001000 0 0x1000>; |
| 1088 | mediatek,smi = <&smi_common>; |
| 1089 | power-domains = <&scpsys MT8173_POWER_DOMAIN_VENC>; |
| 1090 | clocks = <&vencsys CLK_VENC_CKE1>, |
| 1091 | <&vencsys CLK_VENC_CKE0>; |
| 1092 | clock-names = "apb", "smi"; |
| 1093 | }; |
| 1094 | |
Tiffany Lin | 8eb8025 | 2016-05-03 07:11:27 -0300 | [diff] [blame] | 1095 | vcodec_enc: vcodec@18002000 { |
| 1096 | compatible = "mediatek,mt8173-vcodec-enc"; |
| 1097 | reg = <0 0x18002000 0 0x1000>, /* VENC_SYS */ |
| 1098 | <0 0x19002000 0 0x1000>; /* VENC_LT_SYS */ |
| 1099 | interrupts = <GIC_SPI 198 IRQ_TYPE_LEVEL_LOW>, |
| 1100 | <GIC_SPI 202 IRQ_TYPE_LEVEL_LOW>; |
| 1101 | mediatek,larb = <&larb3>, |
| 1102 | <&larb5>; |
| 1103 | iommus = <&iommu M4U_PORT_VENC_RCPU>, |
| 1104 | <&iommu M4U_PORT_VENC_REC>, |
| 1105 | <&iommu M4U_PORT_VENC_BSDMA>, |
| 1106 | <&iommu M4U_PORT_VENC_SV_COMV>, |
| 1107 | <&iommu M4U_PORT_VENC_RD_COMV>, |
| 1108 | <&iommu M4U_PORT_VENC_CUR_LUMA>, |
| 1109 | <&iommu M4U_PORT_VENC_CUR_CHROMA>, |
| 1110 | <&iommu M4U_PORT_VENC_REF_LUMA>, |
| 1111 | <&iommu M4U_PORT_VENC_REF_CHROMA>, |
| 1112 | <&iommu M4U_PORT_VENC_NBM_RDMA>, |
| 1113 | <&iommu M4U_PORT_VENC_NBM_WDMA>, |
| 1114 | <&iommu M4U_PORT_VENC_RCPU_SET2>, |
| 1115 | <&iommu M4U_PORT_VENC_REC_FRM_SET2>, |
| 1116 | <&iommu M4U_PORT_VENC_BSDMA_SET2>, |
| 1117 | <&iommu M4U_PORT_VENC_SV_COMA_SET2>, |
| 1118 | <&iommu M4U_PORT_VENC_RD_COMA_SET2>, |
| 1119 | <&iommu M4U_PORT_VENC_CUR_LUMA_SET2>, |
| 1120 | <&iommu M4U_PORT_VENC_CUR_CHROMA_SET2>, |
| 1121 | <&iommu M4U_PORT_VENC_REF_LUMA_SET2>, |
| 1122 | <&iommu M4U_PORT_VENC_REC_CHROMA_SET2>; |
| 1123 | mediatek,vpu = <&vpu>; |
| 1124 | clocks = <&topckgen CLK_TOP_VENCPLL_D2>, |
| 1125 | <&topckgen CLK_TOP_VENC_SEL>, |
| 1126 | <&topckgen CLK_TOP_UNIVPLL1_D2>, |
| 1127 | <&topckgen CLK_TOP_VENC_LT_SEL>; |
| 1128 | clock-names = "venc_sel_src", |
| 1129 | "venc_sel", |
| 1130 | "venc_lt_sel_src", |
| 1131 | "venc_lt_sel"; |
| 1132 | }; |
| 1133 | |
James Liao | 67e56c5 | 2015-08-10 17:50:28 +0800 | [diff] [blame] | 1134 | vencltsys: clock-controller@19000000 { |
| 1135 | compatible = "mediatek,mt8173-vencltsys", "syscon"; |
| 1136 | reg = <0 0x19000000 0 0x1000>; |
| 1137 | #clock-cells = <1>; |
| 1138 | }; |
Yong Wu | 5ff6b3a | 2016-02-23 01:20:51 +0800 | [diff] [blame] | 1139 | |
| 1140 | larb5: larb@19001000 { |
| 1141 | compatible = "mediatek,mt8173-smi-larb"; |
| 1142 | reg = <0 0x19001000 0 0x1000>; |
| 1143 | mediatek,smi = <&smi_common>; |
| 1144 | power-domains = <&scpsys MT8173_POWER_DOMAIN_VENC_LT>; |
| 1145 | clocks = <&vencltsys CLK_VENCLT_CKE1>, |
| 1146 | <&vencltsys CLK_VENCLT_CKE0>; |
| 1147 | clock-names = "apb", "smi"; |
| 1148 | }; |
Eddie Huang | b3a3724 | 2015-12-01 10:14:00 +0100 | [diff] [blame] | 1149 | }; |
Eddie Huang | b3a3724 | 2015-12-01 10:14:00 +0100 | [diff] [blame] | 1150 | }; |
| 1151 | |