Jianqun Xu | f048b9a | 2016-04-27 15:54:51 +0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2016 Fuzhou Rockchip Electronics Co., Ltd |
| 3 | * |
| 4 | * This file is dual-licensed: you can use it either under the terms |
| 5 | * of the GPL or the X11 license, at your option. Note that this dual |
| 6 | * licensing only applies to this file, and not this project as a |
| 7 | * whole. |
| 8 | * |
| 9 | * a) This library is free software; you can redistribute it and/or |
| 10 | * modify it under the terms of the GNU General Public License as |
| 11 | * published by the Free Software Foundation; either version 2 of the |
| 12 | * License, or (at your option) any later version. |
| 13 | * |
| 14 | * This library is distributed in the hope that it will be useful, |
| 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 17 | * GNU General Public License for more details. |
| 18 | * |
| 19 | * Or, alternatively, |
| 20 | * |
| 21 | * b) Permission is hereby granted, free of charge, to any person |
| 22 | * obtaining a copy of this software and associated documentation |
| 23 | * files (the "Software"), to deal in the Software without |
| 24 | * restriction, including without limitation the rights to use, |
| 25 | * copy, modify, merge, publish, distribute, sublicense, and/or |
| 26 | * sell copies of the Software, and to permit persons to whom the |
| 27 | * Software is furnished to do so, subject to the following |
| 28 | * conditions: |
| 29 | * |
| 30 | * The above copyright notice and this permission notice shall be |
| 31 | * included in all copies or substantial portions of the Software. |
| 32 | * |
| 33 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
| 34 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
| 35 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
| 36 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
| 37 | * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
| 38 | * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
| 39 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
| 40 | * OTHER DEALINGS IN THE SOFTWARE. |
| 41 | */ |
| 42 | |
| 43 | #include <dt-bindings/clock/rk3399-cru.h> |
| 44 | #include <dt-bindings/gpio/gpio.h> |
| 45 | #include <dt-bindings/interrupt-controller/arm-gic.h> |
| 46 | #include <dt-bindings/interrupt-controller/irq.h> |
| 47 | #include <dt-bindings/pinctrl/rockchip.h> |
Elaine Zhang | 807a237 | 2016-07-04 20:34:04 +0800 | [diff] [blame] | 48 | #include <dt-bindings/power/rk3399-power.h> |
Caesar Wang | 95c27ba | 2016-05-25 15:39:35 +0800 | [diff] [blame] | 49 | #include <dt-bindings/thermal/thermal.h> |
Jianqun Xu | f048b9a | 2016-04-27 15:54:51 +0800 | [diff] [blame] | 50 | |
| 51 | / { |
| 52 | compatible = "rockchip,rk3399"; |
| 53 | |
| 54 | interrupt-parent = <&gic>; |
| 55 | #address-cells = <2>; |
| 56 | #size-cells = <2>; |
| 57 | |
| 58 | aliases { |
Heiko Stuebner | 2eca841 | 2017-05-09 20:34:06 +0200 | [diff] [blame] | 59 | ethernet0 = &gmac; |
David Wu | 69e5a8f | 2016-05-16 13:09:31 -0700 | [diff] [blame] | 60 | i2c0 = &i2c0; |
| 61 | i2c1 = &i2c1; |
| 62 | i2c2 = &i2c2; |
| 63 | i2c3 = &i2c3; |
| 64 | i2c4 = &i2c4; |
| 65 | i2c5 = &i2c5; |
| 66 | i2c6 = &i2c6; |
| 67 | i2c7 = &i2c7; |
| 68 | i2c8 = &i2c8; |
Jianqun Xu | f048b9a | 2016-04-27 15:54:51 +0800 | [diff] [blame] | 69 | serial0 = &uart0; |
| 70 | serial1 = &uart1; |
| 71 | serial2 = &uart2; |
| 72 | serial3 = &uart3; |
| 73 | serial4 = &uart4; |
| 74 | }; |
| 75 | |
| 76 | cpus { |
| 77 | #address-cells = <2>; |
| 78 | #size-cells = <0>; |
| 79 | |
| 80 | cpu-map { |
| 81 | cluster0 { |
| 82 | core0 { |
| 83 | cpu = <&cpu_l0>; |
| 84 | }; |
| 85 | core1 { |
| 86 | cpu = <&cpu_l1>; |
| 87 | }; |
| 88 | core2 { |
| 89 | cpu = <&cpu_l2>; |
| 90 | }; |
| 91 | core3 { |
| 92 | cpu = <&cpu_l3>; |
| 93 | }; |
| 94 | }; |
| 95 | |
| 96 | cluster1 { |
| 97 | core0 { |
| 98 | cpu = <&cpu_b0>; |
| 99 | }; |
| 100 | core1 { |
| 101 | cpu = <&cpu_b1>; |
| 102 | }; |
| 103 | }; |
| 104 | }; |
| 105 | |
| 106 | cpu_l0: cpu@0 { |
| 107 | device_type = "cpu"; |
| 108 | compatible = "arm,cortex-a53", "arm,armv8"; |
| 109 | reg = <0x0 0x0>; |
| 110 | enable-method = "psci"; |
| 111 | #cooling-cells = <2>; /* min followed by max */ |
| 112 | clocks = <&cru ARMCLKL>; |
Brian Norris | f4697bd | 2017-06-23 10:07:37 -0700 | [diff] [blame] | 113 | dynamic-power-coefficient = <100>; |
Jianqun Xu | f048b9a | 2016-04-27 15:54:51 +0800 | [diff] [blame] | 114 | }; |
| 115 | |
| 116 | cpu_l1: cpu@1 { |
| 117 | device_type = "cpu"; |
| 118 | compatible = "arm,cortex-a53", "arm,armv8"; |
| 119 | reg = <0x0 0x1>; |
| 120 | enable-method = "psci"; |
| 121 | clocks = <&cru ARMCLKL>; |
Brian Norris | f4697bd | 2017-06-23 10:07:37 -0700 | [diff] [blame] | 122 | dynamic-power-coefficient = <100>; |
Jianqun Xu | f048b9a | 2016-04-27 15:54:51 +0800 | [diff] [blame] | 123 | }; |
| 124 | |
| 125 | cpu_l2: cpu@2 { |
| 126 | device_type = "cpu"; |
| 127 | compatible = "arm,cortex-a53", "arm,armv8"; |
| 128 | reg = <0x0 0x2>; |
| 129 | enable-method = "psci"; |
| 130 | clocks = <&cru ARMCLKL>; |
Brian Norris | f4697bd | 2017-06-23 10:07:37 -0700 | [diff] [blame] | 131 | dynamic-power-coefficient = <100>; |
Jianqun Xu | f048b9a | 2016-04-27 15:54:51 +0800 | [diff] [blame] | 132 | }; |
| 133 | |
| 134 | cpu_l3: cpu@3 { |
| 135 | device_type = "cpu"; |
| 136 | compatible = "arm,cortex-a53", "arm,armv8"; |
| 137 | reg = <0x0 0x3>; |
| 138 | enable-method = "psci"; |
| 139 | clocks = <&cru ARMCLKL>; |
Brian Norris | f4697bd | 2017-06-23 10:07:37 -0700 | [diff] [blame] | 140 | dynamic-power-coefficient = <100>; |
Jianqun Xu | f048b9a | 2016-04-27 15:54:51 +0800 | [diff] [blame] | 141 | }; |
| 142 | |
| 143 | cpu_b0: cpu@100 { |
| 144 | device_type = "cpu"; |
| 145 | compatible = "arm,cortex-a72", "arm,armv8"; |
| 146 | reg = <0x0 0x100>; |
| 147 | enable-method = "psci"; |
| 148 | #cooling-cells = <2>; /* min followed by max */ |
| 149 | clocks = <&cru ARMCLKB>; |
Caesar Wang | 45a995c | 2017-07-25 17:22:55 +0800 | [diff] [blame] | 150 | dynamic-power-coefficient = <436>; |
Jianqun Xu | f048b9a | 2016-04-27 15:54:51 +0800 | [diff] [blame] | 151 | }; |
| 152 | |
| 153 | cpu_b1: cpu@101 { |
| 154 | device_type = "cpu"; |
| 155 | compatible = "arm,cortex-a72", "arm,armv8"; |
| 156 | reg = <0x0 0x101>; |
| 157 | enable-method = "psci"; |
| 158 | clocks = <&cru ARMCLKB>; |
Caesar Wang | 45a995c | 2017-07-25 17:22:55 +0800 | [diff] [blame] | 159 | dynamic-power-coefficient = <436>; |
Jianqun Xu | f048b9a | 2016-04-27 15:54:51 +0800 | [diff] [blame] | 160 | }; |
| 161 | }; |
| 162 | |
Mark Yao | fbd4cc0 | 2017-07-17 22:16:55 +0800 | [diff] [blame] | 163 | display-subsystem { |
| 164 | compatible = "rockchip,display-subsystem"; |
| 165 | ports = <&vopl_out>, <&vopb_out>; |
| 166 | }; |
| 167 | |
Caesar Wang | 6840eb0 | 2016-09-06 02:17:15 +0800 | [diff] [blame] | 168 | pmu_a53 { |
| 169 | compatible = "arm,cortex-a53-pmu"; |
| 170 | interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_LOW &ppi_cluster0>; |
| 171 | }; |
| 172 | |
| 173 | pmu_a72 { |
| 174 | compatible = "arm,cortex-a72-pmu"; |
| 175 | interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_LOW &ppi_cluster1>; |
| 176 | }; |
| 177 | |
Jianqun Xu | f048b9a | 2016-04-27 15:54:51 +0800 | [diff] [blame] | 178 | psci { |
| 179 | compatible = "arm,psci-1.0"; |
| 180 | method = "smc"; |
| 181 | }; |
| 182 | |
| 183 | timer { |
| 184 | compatible = "arm,armv8-timer"; |
Caesar Wang | 210bbd3 | 2016-09-06 02:17:14 +0800 | [diff] [blame] | 185 | interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW 0>, |
| 186 | <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW 0>, |
| 187 | <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW 0>, |
| 188 | <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW 0>; |
Brian Norris | e618682 | 2016-10-04 11:12:10 -0700 | [diff] [blame] | 189 | arm,no-tick-in-suspend; |
Jianqun Xu | f048b9a | 2016-04-27 15:54:51 +0800 | [diff] [blame] | 190 | }; |
| 191 | |
| 192 | xin24m: xin24m { |
| 193 | compatible = "fixed-clock"; |
| 194 | clock-frequency = <24000000>; |
| 195 | clock-output-names = "xin24m"; |
| 196 | #clock-cells = <0>; |
| 197 | }; |
| 198 | |
| 199 | amba { |
Masahiro Yamada | 15b7cc7 | 2016-05-30 11:12:33 +0900 | [diff] [blame] | 200 | compatible = "simple-bus"; |
Jianqun Xu | f048b9a | 2016-04-27 15:54:51 +0800 | [diff] [blame] | 201 | #address-cells = <2>; |
| 202 | #size-cells = <2>; |
| 203 | ranges; |
| 204 | |
| 205 | dmac_bus: dma-controller@ff6d0000 { |
| 206 | compatible = "arm,pl330", "arm,primecell"; |
| 207 | reg = <0x0 0xff6d0000 0x0 0x4000>; |
Caesar Wang | 210bbd3 | 2016-09-06 02:17:14 +0800 | [diff] [blame] | 208 | interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH 0>, |
| 209 | <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH 0>; |
Jianqun Xu | f048b9a | 2016-04-27 15:54:51 +0800 | [diff] [blame] | 210 | #dma-cells = <1>; |
| 211 | clocks = <&cru ACLK_DMAC0_PERILP>; |
| 212 | clock-names = "apb_pclk"; |
| 213 | }; |
| 214 | |
| 215 | dmac_peri: dma-controller@ff6e0000 { |
| 216 | compatible = "arm,pl330", "arm,primecell"; |
| 217 | reg = <0x0 0xff6e0000 0x0 0x4000>; |
Caesar Wang | 210bbd3 | 2016-09-06 02:17:14 +0800 | [diff] [blame] | 218 | interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH 0>, |
| 219 | <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH 0>; |
Jianqun Xu | f048b9a | 2016-04-27 15:54:51 +0800 | [diff] [blame] | 220 | #dma-cells = <1>; |
| 221 | clocks = <&cru ACLK_DMAC1_PERILP>; |
| 222 | clock-names = "apb_pclk"; |
| 223 | }; |
| 224 | }; |
| 225 | |
Brian Norris | 66aef3c | 2017-02-09 17:05:21 -0800 | [diff] [blame] | 226 | pcie0: pcie@f8000000 { |
| 227 | compatible = "rockchip,rk3399-pcie"; |
| 228 | reg = <0x0 0xf8000000 0x0 0x2000000>, |
| 229 | <0x0 0xfd000000 0x0 0x1000000>; |
| 230 | reg-names = "axi-base", "apb-base"; |
| 231 | #address-cells = <3>; |
| 232 | #size-cells = <2>; |
| 233 | #interrupt-cells = <1>; |
| 234 | aspm-no-l0s; |
Shawn Lin | d633bec | 2017-05-16 14:30:40 +0800 | [diff] [blame] | 235 | bus-range = <0x0 0x1f>; |
Brian Norris | 66aef3c | 2017-02-09 17:05:21 -0800 | [diff] [blame] | 236 | clocks = <&cru ACLK_PCIE>, <&cru ACLK_PERF_PCIE>, |
| 237 | <&cru PCLK_PCIE>, <&cru SCLK_PCIE_PM>; |
| 238 | clock-names = "aclk", "aclk-perf", |
| 239 | "hclk", "pm"; |
| 240 | interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH 0>, |
| 241 | <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH 0>, |
| 242 | <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH 0>; |
| 243 | interrupt-names = "sys", "legacy", "client"; |
| 244 | interrupt-map-mask = <0 0 0 7>; |
| 245 | interrupt-map = <0 0 0 1 &pcie0_intc 0>, |
| 246 | <0 0 0 2 &pcie0_intc 1>, |
| 247 | <0 0 0 3 &pcie0_intc 2>, |
| 248 | <0 0 0 4 &pcie0_intc 3>; |
Shawn Lin | 41b464ef | 2017-03-20 10:38:00 +0800 | [diff] [blame] | 249 | linux,pci-domain = <0>; |
Brian Norris | 66aef3c | 2017-02-09 17:05:21 -0800 | [diff] [blame] | 250 | max-link-speed = <1>; |
| 251 | msi-map = <0x0 &its 0x0 0x1000>; |
Shawn Lin | e9a60ca | 2017-07-19 17:57:56 +0800 | [diff] [blame] | 252 | phys = <&pcie_phy 0>, <&pcie_phy 1>, |
| 253 | <&pcie_phy 2>, <&pcie_phy 3>; |
| 254 | phy-names = "pcie-phy-0", "pcie-phy-1", |
| 255 | "pcie-phy-2", "pcie-phy-3"; |
Shawn Lin | 81f6660 | 2017-05-16 14:30:41 +0800 | [diff] [blame] | 256 | ranges = <0x83000000 0x0 0xfa000000 0x0 0xfa000000 0x0 0x1e00000 |
| 257 | 0x81000000 0x0 0xfbe00000 0x0 0xfbe00000 0x0 0x100000>; |
Brian Norris | 66aef3c | 2017-02-09 17:05:21 -0800 | [diff] [blame] | 258 | resets = <&cru SRST_PCIE_CORE>, <&cru SRST_PCIE_MGMT>, |
| 259 | <&cru SRST_PCIE_MGMT_STICKY>, <&cru SRST_PCIE_PIPE>, |
| 260 | <&cru SRST_PCIE_PM>, <&cru SRST_P_PCIE>, |
| 261 | <&cru SRST_A_PCIE>; |
| 262 | reset-names = "core", "mgmt", "mgmt-sticky", "pipe", |
| 263 | "pm", "pclk", "aclk"; |
| 264 | status = "disabled"; |
| 265 | |
| 266 | pcie0_intc: interrupt-controller { |
| 267 | interrupt-controller; |
| 268 | #address-cells = <0>; |
| 269 | #interrupt-cells = <1>; |
| 270 | }; |
| 271 | }; |
| 272 | |
Roger Chen | eb3a6a6 | 2016-09-02 01:50:03 +0800 | [diff] [blame] | 273 | gmac: ethernet@fe300000 { |
| 274 | compatible = "rockchip,rk3399-gmac"; |
| 275 | reg = <0x0 0xfe300000 0x0 0x10000>; |
| 276 | interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH 0>; |
| 277 | interrupt-names = "macirq"; |
| 278 | clocks = <&cru SCLK_MAC>, <&cru SCLK_MAC_RX>, |
| 279 | <&cru SCLK_MAC_TX>, <&cru SCLK_MACREF>, |
| 280 | <&cru SCLK_MACREF_OUT>, <&cru ACLK_GMAC>, |
| 281 | <&cru PCLK_GMAC>; |
| 282 | clock-names = "stmmaceth", "mac_clk_rx", |
| 283 | "mac_clk_tx", "clk_mac_ref", |
| 284 | "clk_mac_refout", "aclk_mac", |
| 285 | "pclk_mac"; |
| 286 | power-domains = <&power RK3399_PD_GMAC>; |
| 287 | resets = <&cru SRST_A_GMAC>; |
| 288 | reset-names = "stmmaceth"; |
| 289 | rockchip,grf = <&grf>; |
| 290 | status = "disabled"; |
| 291 | }; |
| 292 | |
Jianqun Xu | f048b9a | 2016-04-27 15:54:51 +0800 | [diff] [blame] | 293 | sdio0: dwmmc@fe310000 { |
| 294 | compatible = "rockchip,rk3399-dw-mshc", |
| 295 | "rockchip,rk3288-dw-mshc"; |
| 296 | reg = <0x0 0xfe310000 0x0 0x4000>; |
Caesar Wang | 210bbd3 | 2016-09-06 02:17:14 +0800 | [diff] [blame] | 297 | interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH 0>; |
Jaehoon Chung | c495906 | 2016-11-03 15:21:34 +0900 | [diff] [blame] | 298 | max-frequency = <150000000>; |
Jianqun Xu | f048b9a | 2016-04-27 15:54:51 +0800 | [diff] [blame] | 299 | clocks = <&cru HCLK_SDIO>, <&cru SCLK_SDIO>, |
| 300 | <&cru SCLK_SDIO_DRV>, <&cru SCLK_SDIO_SAMPLE>; |
| 301 | clock-names = "biu", "ciu", "ciu-drive", "ciu-sample"; |
| 302 | fifo-depth = <0x100>; |
Caesar Wang | b0f2110 | 2017-06-30 14:01:53 +0800 | [diff] [blame] | 303 | power-domains = <&power RK3399_PD_SDIOAUDIO>; |
Heiko Stuebner | 04dc7f62 | 2017-03-17 09:38:06 +0100 | [diff] [blame] | 304 | resets = <&cru SRST_SDIO0>; |
| 305 | reset-names = "reset"; |
Jianqun Xu | f048b9a | 2016-04-27 15:54:51 +0800 | [diff] [blame] | 306 | status = "disabled"; |
| 307 | }; |
| 308 | |
| 309 | sdmmc: dwmmc@fe320000 { |
| 310 | compatible = "rockchip,rk3399-dw-mshc", |
| 311 | "rockchip,rk3288-dw-mshc"; |
| 312 | reg = <0x0 0xfe320000 0x0 0x4000>; |
Caesar Wang | 210bbd3 | 2016-09-06 02:17:14 +0800 | [diff] [blame] | 313 | interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH 0>; |
Jaehoon Chung | c495906 | 2016-11-03 15:21:34 +0900 | [diff] [blame] | 314 | max-frequency = <150000000>; |
Jianqun Xu | f048b9a | 2016-04-27 15:54:51 +0800 | [diff] [blame] | 315 | clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>, |
| 316 | <&cru SCLK_SDMMC_DRV>, <&cru SCLK_SDMMC_SAMPLE>; |
| 317 | clock-names = "biu", "ciu", "ciu-drive", "ciu-sample"; |
| 318 | fifo-depth = <0x100>; |
Elaine Zhang | 1bc60be | 2016-11-09 21:21:54 +0800 | [diff] [blame] | 319 | power-domains = <&power RK3399_PD_SD>; |
Heiko Stuebner | 04dc7f62 | 2017-03-17 09:38:06 +0100 | [diff] [blame] | 320 | resets = <&cru SRST_SDMMC>; |
| 321 | reset-names = "reset"; |
Jianqun Xu | f048b9a | 2016-04-27 15:54:51 +0800 | [diff] [blame] | 322 | status = "disabled"; |
| 323 | }; |
| 324 | |
Brian Norris | b4e87c0 | 2016-05-13 15:12:03 -0700 | [diff] [blame] | 325 | sdhci: sdhci@fe330000 { |
| 326 | compatible = "rockchip,rk3399-sdhci-5.1", "arasan,sdhci-5.1"; |
| 327 | reg = <0x0 0xfe330000 0x0 0x10000>; |
Caesar Wang | 210bbd3 | 2016-09-06 02:17:14 +0800 | [diff] [blame] | 328 | interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH 0>; |
Douglas Anderson | 64e3481 | 2016-06-20 10:56:48 -0700 | [diff] [blame] | 329 | arasan,soc-ctl-syscon = <&grf>; |
Brian Norris | b4e87c0 | 2016-05-13 15:12:03 -0700 | [diff] [blame] | 330 | assigned-clocks = <&cru SCLK_EMMC>; |
| 331 | assigned-clock-rates = <200000000>; |
| 332 | clocks = <&cru SCLK_EMMC>, <&cru ACLK_EMMC>; |
| 333 | clock-names = "clk_xin", "clk_ahb"; |
Douglas Anderson | ed388cd | 2016-06-20 10:56:54 -0700 | [diff] [blame] | 334 | clock-output-names = "emmc_cardclock"; |
| 335 | #clock-cells = <0>; |
Brian Norris | b4e87c0 | 2016-05-13 15:12:03 -0700 | [diff] [blame] | 336 | phys = <&emmc_phy>; |
| 337 | phy-names = "phy_arasan"; |
Elaine Zhang | a1907df | 2016-11-09 21:21:53 +0800 | [diff] [blame] | 338 | power-domains = <&power RK3399_PD_EMMC>; |
Brian Norris | b4e87c0 | 2016-05-13 15:12:03 -0700 | [diff] [blame] | 339 | status = "disabled"; |
| 340 | }; |
| 341 | |
Jianqun Xu | f048b9a | 2016-04-27 15:54:51 +0800 | [diff] [blame] | 342 | usb_host0_ehci: usb@fe380000 { |
| 343 | compatible = "generic-ehci"; |
| 344 | reg = <0x0 0xfe380000 0x0 0x20000>; |
Caesar Wang | 210bbd3 | 2016-09-06 02:17:14 +0800 | [diff] [blame] | 345 | interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH 0>; |
William wu | b5d1c57 | 2016-12-21 18:41:05 +0800 | [diff] [blame] | 346 | clocks = <&cru HCLK_HOST0>, <&cru HCLK_HOST0_ARB>, |
| 347 | <&u2phy0>; |
| 348 | clock-names = "usbhost", "arbiter", |
| 349 | "utmi"; |
Frank Wang | 103e9f8 | 2016-07-22 15:00:45 +0800 | [diff] [blame] | 350 | phys = <&u2phy0_host>; |
| 351 | phy-names = "usb"; |
Jianqun Xu | f048b9a | 2016-04-27 15:54:51 +0800 | [diff] [blame] | 352 | status = "disabled"; |
| 353 | }; |
| 354 | |
| 355 | usb_host0_ohci: usb@fe3a0000 { |
| 356 | compatible = "generic-ohci"; |
| 357 | reg = <0x0 0xfe3a0000 0x0 0x20000>; |
Caesar Wang | 210bbd3 | 2016-09-06 02:17:14 +0800 | [diff] [blame] | 358 | interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH 0>; |
William wu | b5d1c57 | 2016-12-21 18:41:05 +0800 | [diff] [blame] | 359 | clocks = <&cru HCLK_HOST0>, <&cru HCLK_HOST0_ARB>, |
| 360 | <&u2phy0>; |
| 361 | clock-names = "usbhost", "arbiter", |
| 362 | "utmi"; |
| 363 | phys = <&u2phy0_host>; |
| 364 | phy-names = "usb"; |
Jianqun Xu | f048b9a | 2016-04-27 15:54:51 +0800 | [diff] [blame] | 365 | status = "disabled"; |
| 366 | }; |
| 367 | |
| 368 | usb_host1_ehci: usb@fe3c0000 { |
| 369 | compatible = "generic-ehci"; |
| 370 | reg = <0x0 0xfe3c0000 0x0 0x20000>; |
Caesar Wang | 210bbd3 | 2016-09-06 02:17:14 +0800 | [diff] [blame] | 371 | interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH 0>; |
William wu | b5d1c57 | 2016-12-21 18:41:05 +0800 | [diff] [blame] | 372 | clocks = <&cru HCLK_HOST1>, <&cru HCLK_HOST1_ARB>, |
| 373 | <&u2phy1>; |
| 374 | clock-names = "usbhost", "arbiter", |
| 375 | "utmi"; |
Frank Wang | 103e9f8 | 2016-07-22 15:00:45 +0800 | [diff] [blame] | 376 | phys = <&u2phy1_host>; |
| 377 | phy-names = "usb"; |
Jianqun Xu | f048b9a | 2016-04-27 15:54:51 +0800 | [diff] [blame] | 378 | status = "disabled"; |
| 379 | }; |
| 380 | |
| 381 | usb_host1_ohci: usb@fe3e0000 { |
| 382 | compatible = "generic-ohci"; |
| 383 | reg = <0x0 0xfe3e0000 0x0 0x20000>; |
Caesar Wang | 210bbd3 | 2016-09-06 02:17:14 +0800 | [diff] [blame] | 384 | interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH 0>; |
William wu | b5d1c57 | 2016-12-21 18:41:05 +0800 | [diff] [blame] | 385 | clocks = <&cru HCLK_HOST1>, <&cru HCLK_HOST1_ARB>, |
| 386 | <&u2phy1>; |
| 387 | clock-names = "usbhost", "arbiter", |
| 388 | "utmi"; |
| 389 | phys = <&u2phy1_host>; |
| 390 | phy-names = "usb"; |
Jianqun Xu | f048b9a | 2016-04-27 15:54:51 +0800 | [diff] [blame] | 391 | status = "disabled"; |
| 392 | }; |
| 393 | |
Brian Norris | 7144224 | 2017-02-09 17:05:17 -0800 | [diff] [blame] | 394 | usbdrd3_0: usb@fe800000 { |
| 395 | compatible = "rockchip,rk3399-dwc3"; |
| 396 | #address-cells = <2>; |
| 397 | #size-cells = <2>; |
| 398 | ranges; |
| 399 | clocks = <&cru SCLK_USB3OTG0_REF>, <&cru SCLK_USB3OTG0_SUSPEND>, |
| 400 | <&cru ACLK_USB3OTG0>, <&cru ACLK_USB3_GRF>; |
| 401 | clock-names = "ref_clk", "suspend_clk", |
| 402 | "bus_clk", "grf_clk"; |
| 403 | status = "disabled"; |
| 404 | |
| 405 | usbdrd_dwc3_0: dwc3 { |
| 406 | compatible = "snps,dwc3"; |
| 407 | reg = <0x0 0xfe800000 0x0 0x100000>; |
| 408 | interrupts = <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH 0>; |
| 409 | dr_mode = "otg"; |
| 410 | phys = <&u2phy0_otg>; |
| 411 | phy-names = "usb2-phy"; |
| 412 | phy_type = "utmi_wide"; |
| 413 | snps,dis_enblslpm_quirk; |
| 414 | snps,dis-u2-freeclk-exists-quirk; |
| 415 | snps,dis_u2_susphy_quirk; |
| 416 | snps,dis-del-phy-power-chg-quirk; |
William Wu | 1d5bcbb | 2017-08-17 16:24:32 +0800 | [diff] [blame] | 417 | snps,dis-tx-ipgap-linecheck-quirk; |
Brian Norris | 7144224 | 2017-02-09 17:05:17 -0800 | [diff] [blame] | 418 | status = "disabled"; |
| 419 | }; |
| 420 | }; |
| 421 | |
| 422 | usbdrd3_1: usb@fe900000 { |
| 423 | compatible = "rockchip,rk3399-dwc3"; |
| 424 | #address-cells = <2>; |
| 425 | #size-cells = <2>; |
| 426 | ranges; |
| 427 | clocks = <&cru SCLK_USB3OTG1_REF>, <&cru SCLK_USB3OTG1_SUSPEND>, |
| 428 | <&cru ACLK_USB3OTG1>, <&cru ACLK_USB3_GRF>; |
| 429 | clock-names = "ref_clk", "suspend_clk", |
| 430 | "bus_clk", "grf_clk"; |
| 431 | status = "disabled"; |
| 432 | |
| 433 | usbdrd_dwc3_1: dwc3 { |
| 434 | compatible = "snps,dwc3"; |
| 435 | reg = <0x0 0xfe900000 0x0 0x100000>; |
| 436 | interrupts = <GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH 0>; |
| 437 | dr_mode = "otg"; |
| 438 | phys = <&u2phy1_otg>; |
| 439 | phy-names = "usb2-phy"; |
| 440 | phy_type = "utmi_wide"; |
| 441 | snps,dis_enblslpm_quirk; |
| 442 | snps,dis-u2-freeclk-exists-quirk; |
| 443 | snps,dis_u2_susphy_quirk; |
| 444 | snps,dis-del-phy-power-chg-quirk; |
William Wu | 1d5bcbb | 2017-08-17 16:24:32 +0800 | [diff] [blame] | 445 | snps,dis-tx-ipgap-linecheck-quirk; |
Brian Norris | 7144224 | 2017-02-09 17:05:17 -0800 | [diff] [blame] | 446 | status = "disabled"; |
| 447 | }; |
| 448 | }; |
| 449 | |
Jianqun Xu | f048b9a | 2016-04-27 15:54:51 +0800 | [diff] [blame] | 450 | gic: interrupt-controller@fee00000 { |
| 451 | compatible = "arm,gic-v3"; |
Caesar Wang | 210bbd3 | 2016-09-06 02:17:14 +0800 | [diff] [blame] | 452 | #interrupt-cells = <4>; |
Jianqun Xu | f048b9a | 2016-04-27 15:54:51 +0800 | [diff] [blame] | 453 | #address-cells = <2>; |
| 454 | #size-cells = <2>; |
| 455 | ranges; |
| 456 | interrupt-controller; |
| 457 | |
| 458 | reg = <0x0 0xfee00000 0 0x10000>, /* GICD */ |
| 459 | <0x0 0xfef00000 0 0xc0000>, /* GICR */ |
| 460 | <0x0 0xfff00000 0 0x10000>, /* GICC */ |
| 461 | <0x0 0xfff10000 0 0x10000>, /* GICH */ |
| 462 | <0x0 0xfff20000 0 0x10000>; /* GICV */ |
Caesar Wang | 210bbd3 | 2016-09-06 02:17:14 +0800 | [diff] [blame] | 463 | interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH 0>; |
Jianqun Xu | f048b9a | 2016-04-27 15:54:51 +0800 | [diff] [blame] | 464 | its: interrupt-controller@fee20000 { |
| 465 | compatible = "arm,gic-v3-its"; |
| 466 | msi-controller; |
| 467 | reg = <0x0 0xfee20000 0x0 0x20000>; |
| 468 | }; |
Caesar Wang | 6840eb0 | 2016-09-06 02:17:15 +0800 | [diff] [blame] | 469 | |
| 470 | ppi-partitions { |
| 471 | ppi_cluster0: interrupt-partition-0 { |
| 472 | affinity = <&cpu_l0 &cpu_l1 &cpu_l2 &cpu_l3>; |
| 473 | }; |
| 474 | |
| 475 | ppi_cluster1: interrupt-partition-1 { |
| 476 | affinity = <&cpu_b0 &cpu_b1>; |
| 477 | }; |
| 478 | }; |
Jianqun Xu | f048b9a | 2016-04-27 15:54:51 +0800 | [diff] [blame] | 479 | }; |
| 480 | |
Caesar Wang | fe99621 | 2016-07-27 22:24:05 +0800 | [diff] [blame] | 481 | saradc: saradc@ff100000 { |
| 482 | compatible = "rockchip,rk3399-saradc"; |
| 483 | reg = <0x0 0xff100000 0x0 0x100>; |
Caesar Wang | 210bbd3 | 2016-09-06 02:17:14 +0800 | [diff] [blame] | 484 | interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH 0>; |
Caesar Wang | fe99621 | 2016-07-27 22:24:05 +0800 | [diff] [blame] | 485 | #io-channel-cells = <1>; |
| 486 | clocks = <&cru SCLK_SARADC>, <&cru PCLK_SARADC>; |
| 487 | clock-names = "saradc", "apb_pclk"; |
| 488 | resets = <&cru SRST_P_SARADC>; |
| 489 | reset-names = "saradc-apb"; |
| 490 | status = "disabled"; |
| 491 | }; |
| 492 | |
David Wu | 69e5a8f | 2016-05-16 13:09:31 -0700 | [diff] [blame] | 493 | i2c1: i2c@ff110000 { |
| 494 | compatible = "rockchip,rk3399-i2c"; |
| 495 | reg = <0x0 0xff110000 0x0 0x1000>; |
| 496 | assigned-clocks = <&cru SCLK_I2C1>; |
| 497 | assigned-clock-rates = <200000000>; |
| 498 | clocks = <&cru SCLK_I2C1>, <&cru PCLK_I2C1>; |
| 499 | clock-names = "i2c", "pclk"; |
Caesar Wang | 210bbd3 | 2016-09-06 02:17:14 +0800 | [diff] [blame] | 500 | interrupts = <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH 0>; |
David Wu | 69e5a8f | 2016-05-16 13:09:31 -0700 | [diff] [blame] | 501 | pinctrl-names = "default"; |
| 502 | pinctrl-0 = <&i2c1_xfer>; |
| 503 | #address-cells = <1>; |
| 504 | #size-cells = <0>; |
| 505 | status = "disabled"; |
| 506 | }; |
| 507 | |
| 508 | i2c2: i2c@ff120000 { |
| 509 | compatible = "rockchip,rk3399-i2c"; |
| 510 | reg = <0x0 0xff120000 0x0 0x1000>; |
| 511 | assigned-clocks = <&cru SCLK_I2C2>; |
| 512 | assigned-clock-rates = <200000000>; |
| 513 | clocks = <&cru SCLK_I2C2>, <&cru PCLK_I2C2>; |
| 514 | clock-names = "i2c", "pclk"; |
Caesar Wang | 210bbd3 | 2016-09-06 02:17:14 +0800 | [diff] [blame] | 515 | interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH 0>; |
David Wu | 69e5a8f | 2016-05-16 13:09:31 -0700 | [diff] [blame] | 516 | pinctrl-names = "default"; |
| 517 | pinctrl-0 = <&i2c2_xfer>; |
| 518 | #address-cells = <1>; |
| 519 | #size-cells = <0>; |
| 520 | status = "disabled"; |
| 521 | }; |
| 522 | |
| 523 | i2c3: i2c@ff130000 { |
| 524 | compatible = "rockchip,rk3399-i2c"; |
| 525 | reg = <0x0 0xff130000 0x0 0x1000>; |
| 526 | assigned-clocks = <&cru SCLK_I2C3>; |
| 527 | assigned-clock-rates = <200000000>; |
| 528 | clocks = <&cru SCLK_I2C3>, <&cru PCLK_I2C3>; |
| 529 | clock-names = "i2c", "pclk"; |
Caesar Wang | 210bbd3 | 2016-09-06 02:17:14 +0800 | [diff] [blame] | 530 | interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH 0>; |
David Wu | 69e5a8f | 2016-05-16 13:09:31 -0700 | [diff] [blame] | 531 | pinctrl-names = "default"; |
| 532 | pinctrl-0 = <&i2c3_xfer>; |
| 533 | #address-cells = <1>; |
| 534 | #size-cells = <0>; |
| 535 | status = "disabled"; |
| 536 | }; |
| 537 | |
| 538 | i2c5: i2c@ff140000 { |
| 539 | compatible = "rockchip,rk3399-i2c"; |
| 540 | reg = <0x0 0xff140000 0x0 0x1000>; |
| 541 | assigned-clocks = <&cru SCLK_I2C5>; |
| 542 | assigned-clock-rates = <200000000>; |
| 543 | clocks = <&cru SCLK_I2C5>, <&cru PCLK_I2C5>; |
| 544 | clock-names = "i2c", "pclk"; |
Caesar Wang | 210bbd3 | 2016-09-06 02:17:14 +0800 | [diff] [blame] | 545 | interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH 0>; |
David Wu | 69e5a8f | 2016-05-16 13:09:31 -0700 | [diff] [blame] | 546 | pinctrl-names = "default"; |
| 547 | pinctrl-0 = <&i2c5_xfer>; |
| 548 | #address-cells = <1>; |
| 549 | #size-cells = <0>; |
| 550 | status = "disabled"; |
| 551 | }; |
| 552 | |
| 553 | i2c6: i2c@ff150000 { |
| 554 | compatible = "rockchip,rk3399-i2c"; |
| 555 | reg = <0x0 0xff150000 0x0 0x1000>; |
| 556 | assigned-clocks = <&cru SCLK_I2C6>; |
| 557 | assigned-clock-rates = <200000000>; |
| 558 | clocks = <&cru SCLK_I2C6>, <&cru PCLK_I2C6>; |
| 559 | clock-names = "i2c", "pclk"; |
Caesar Wang | 210bbd3 | 2016-09-06 02:17:14 +0800 | [diff] [blame] | 560 | interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH 0>; |
David Wu | 69e5a8f | 2016-05-16 13:09:31 -0700 | [diff] [blame] | 561 | pinctrl-names = "default"; |
| 562 | pinctrl-0 = <&i2c6_xfer>; |
| 563 | #address-cells = <1>; |
| 564 | #size-cells = <0>; |
| 565 | status = "disabled"; |
| 566 | }; |
| 567 | |
| 568 | i2c7: i2c@ff160000 { |
| 569 | compatible = "rockchip,rk3399-i2c"; |
| 570 | reg = <0x0 0xff160000 0x0 0x1000>; |
| 571 | assigned-clocks = <&cru SCLK_I2C7>; |
| 572 | assigned-clock-rates = <200000000>; |
| 573 | clocks = <&cru SCLK_I2C7>, <&cru PCLK_I2C7>; |
| 574 | clock-names = "i2c", "pclk"; |
Caesar Wang | 210bbd3 | 2016-09-06 02:17:14 +0800 | [diff] [blame] | 575 | interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH 0>; |
David Wu | 69e5a8f | 2016-05-16 13:09:31 -0700 | [diff] [blame] | 576 | pinctrl-names = "default"; |
| 577 | pinctrl-0 = <&i2c7_xfer>; |
| 578 | #address-cells = <1>; |
| 579 | #size-cells = <0>; |
| 580 | status = "disabled"; |
| 581 | }; |
| 582 | |
Jianqun Xu | f048b9a | 2016-04-27 15:54:51 +0800 | [diff] [blame] | 583 | uart0: serial@ff180000 { |
| 584 | compatible = "rockchip,rk3399-uart", "snps,dw-apb-uart"; |
| 585 | reg = <0x0 0xff180000 0x0 0x100>; |
| 586 | clocks = <&cru SCLK_UART0>, <&cru PCLK_UART0>; |
| 587 | clock-names = "baudclk", "apb_pclk"; |
Caesar Wang | 210bbd3 | 2016-09-06 02:17:14 +0800 | [diff] [blame] | 588 | interrupts = <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH 0>; |
Jianqun Xu | f048b9a | 2016-04-27 15:54:51 +0800 | [diff] [blame] | 589 | reg-shift = <2>; |
| 590 | reg-io-width = <4>; |
| 591 | pinctrl-names = "default"; |
| 592 | pinctrl-0 = <&uart0_xfer>; |
| 593 | status = "disabled"; |
| 594 | }; |
| 595 | |
| 596 | uart1: serial@ff190000 { |
| 597 | compatible = "rockchip,rk3399-uart", "snps,dw-apb-uart"; |
| 598 | reg = <0x0 0xff190000 0x0 0x100>; |
| 599 | clocks = <&cru SCLK_UART1>, <&cru PCLK_UART1>; |
| 600 | clock-names = "baudclk", "apb_pclk"; |
Caesar Wang | 210bbd3 | 2016-09-06 02:17:14 +0800 | [diff] [blame] | 601 | interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH 0>; |
Jianqun Xu | f048b9a | 2016-04-27 15:54:51 +0800 | [diff] [blame] | 602 | reg-shift = <2>; |
| 603 | reg-io-width = <4>; |
| 604 | pinctrl-names = "default"; |
| 605 | pinctrl-0 = <&uart1_xfer>; |
| 606 | status = "disabled"; |
| 607 | }; |
| 608 | |
| 609 | uart2: serial@ff1a0000 { |
| 610 | compatible = "rockchip,rk3399-uart", "snps,dw-apb-uart"; |
| 611 | reg = <0x0 0xff1a0000 0x0 0x100>; |
| 612 | clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>; |
| 613 | clock-names = "baudclk", "apb_pclk"; |
Caesar Wang | 210bbd3 | 2016-09-06 02:17:14 +0800 | [diff] [blame] | 614 | interrupts = <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH 0>; |
Jianqun Xu | f048b9a | 2016-04-27 15:54:51 +0800 | [diff] [blame] | 615 | reg-shift = <2>; |
| 616 | reg-io-width = <4>; |
| 617 | pinctrl-names = "default"; |
| 618 | pinctrl-0 = <&uart2c_xfer>; |
| 619 | status = "disabled"; |
| 620 | }; |
| 621 | |
| 622 | uart3: serial@ff1b0000 { |
| 623 | compatible = "rockchip,rk3399-uart", "snps,dw-apb-uart"; |
| 624 | reg = <0x0 0xff1b0000 0x0 0x100>; |
| 625 | clocks = <&cru SCLK_UART3>, <&cru PCLK_UART3>; |
| 626 | clock-names = "baudclk", "apb_pclk"; |
Caesar Wang | 210bbd3 | 2016-09-06 02:17:14 +0800 | [diff] [blame] | 627 | interrupts = <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH 0>; |
Jianqun Xu | f048b9a | 2016-04-27 15:54:51 +0800 | [diff] [blame] | 628 | reg-shift = <2>; |
| 629 | reg-io-width = <4>; |
| 630 | pinctrl-names = "default"; |
| 631 | pinctrl-0 = <&uart3_xfer>; |
| 632 | status = "disabled"; |
| 633 | }; |
| 634 | |
| 635 | spi0: spi@ff1c0000 { |
| 636 | compatible = "rockchip,rk3399-spi", "rockchip,rk3066-spi"; |
| 637 | reg = <0x0 0xff1c0000 0x0 0x1000>; |
| 638 | clocks = <&cru SCLK_SPI0>, <&cru PCLK_SPI0>; |
| 639 | clock-names = "spiclk", "apb_pclk"; |
Caesar Wang | 210bbd3 | 2016-09-06 02:17:14 +0800 | [diff] [blame] | 640 | interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH 0>; |
Jianqun Xu | f048b9a | 2016-04-27 15:54:51 +0800 | [diff] [blame] | 641 | pinctrl-names = "default"; |
| 642 | pinctrl-0 = <&spi0_clk &spi0_tx &spi0_rx &spi0_cs0>; |
| 643 | #address-cells = <1>; |
| 644 | #size-cells = <0>; |
| 645 | status = "disabled"; |
| 646 | }; |
| 647 | |
| 648 | spi1: spi@ff1d0000 { |
| 649 | compatible = "rockchip,rk3399-spi", "rockchip,rk3066-spi"; |
| 650 | reg = <0x0 0xff1d0000 0x0 0x1000>; |
| 651 | clocks = <&cru SCLK_SPI1>, <&cru PCLK_SPI1>; |
| 652 | clock-names = "spiclk", "apb_pclk"; |
Caesar Wang | 210bbd3 | 2016-09-06 02:17:14 +0800 | [diff] [blame] | 653 | interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH 0>; |
Jianqun Xu | f048b9a | 2016-04-27 15:54:51 +0800 | [diff] [blame] | 654 | pinctrl-names = "default"; |
| 655 | pinctrl-0 = <&spi1_clk &spi1_tx &spi1_rx &spi1_cs0>; |
| 656 | #address-cells = <1>; |
| 657 | #size-cells = <0>; |
| 658 | status = "disabled"; |
| 659 | }; |
| 660 | |
| 661 | spi2: spi@ff1e0000 { |
| 662 | compatible = "rockchip,rk3399-spi", "rockchip,rk3066-spi"; |
| 663 | reg = <0x0 0xff1e0000 0x0 0x1000>; |
| 664 | clocks = <&cru SCLK_SPI2>, <&cru PCLK_SPI2>; |
| 665 | clock-names = "spiclk", "apb_pclk"; |
Caesar Wang | 210bbd3 | 2016-09-06 02:17:14 +0800 | [diff] [blame] | 666 | interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH 0>; |
Jianqun Xu | f048b9a | 2016-04-27 15:54:51 +0800 | [diff] [blame] | 667 | pinctrl-names = "default"; |
| 668 | pinctrl-0 = <&spi2_clk &spi2_tx &spi2_rx &spi2_cs0>; |
| 669 | #address-cells = <1>; |
| 670 | #size-cells = <0>; |
| 671 | status = "disabled"; |
| 672 | }; |
| 673 | |
| 674 | spi4: spi@ff1f0000 { |
| 675 | compatible = "rockchip,rk3399-spi", "rockchip,rk3066-spi"; |
| 676 | reg = <0x0 0xff1f0000 0x0 0x1000>; |
| 677 | clocks = <&cru SCLK_SPI4>, <&cru PCLK_SPI4>; |
| 678 | clock-names = "spiclk", "apb_pclk"; |
Caesar Wang | 210bbd3 | 2016-09-06 02:17:14 +0800 | [diff] [blame] | 679 | interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH 0>; |
Jianqun Xu | f048b9a | 2016-04-27 15:54:51 +0800 | [diff] [blame] | 680 | pinctrl-names = "default"; |
| 681 | pinctrl-0 = <&spi4_clk &spi4_tx &spi4_rx &spi4_cs0>; |
| 682 | #address-cells = <1>; |
| 683 | #size-cells = <0>; |
| 684 | status = "disabled"; |
| 685 | }; |
| 686 | |
| 687 | spi5: spi@ff200000 { |
| 688 | compatible = "rockchip,rk3399-spi", "rockchip,rk3066-spi"; |
| 689 | reg = <0x0 0xff200000 0x0 0x1000>; |
| 690 | clocks = <&cru SCLK_SPI5>, <&cru PCLK_SPI5>; |
| 691 | clock-names = "spiclk", "apb_pclk"; |
Caesar Wang | 210bbd3 | 2016-09-06 02:17:14 +0800 | [diff] [blame] | 692 | interrupts = <GIC_SPI 132 IRQ_TYPE_LEVEL_HIGH 0>; |
Jianqun Xu | f048b9a | 2016-04-27 15:54:51 +0800 | [diff] [blame] | 693 | pinctrl-names = "default"; |
| 694 | pinctrl-0 = <&spi5_clk &spi5_tx &spi5_rx &spi5_cs0>; |
Caesar Wang | b0f2110 | 2017-06-30 14:01:53 +0800 | [diff] [blame] | 695 | power-domains = <&power RK3399_PD_SDIOAUDIO>; |
Jianqun Xu | f048b9a | 2016-04-27 15:54:51 +0800 | [diff] [blame] | 696 | #address-cells = <1>; |
| 697 | #size-cells = <0>; |
| 698 | status = "disabled"; |
| 699 | }; |
| 700 | |
Brian Norris | 647cea2 | 2016-12-01 18:27:26 -0800 | [diff] [blame] | 701 | thermal_zones: thermal-zones { |
Caesar Wang | 95c27ba | 2016-05-25 15:39:35 +0800 | [diff] [blame] | 702 | cpu_thermal: cpu { |
| 703 | polling-delay-passive = <100>; |
| 704 | polling-delay = <1000>; |
| 705 | |
| 706 | thermal-sensors = <&tsadc 0>; |
| 707 | |
| 708 | trips { |
| 709 | cpu_alert0: cpu_alert0 { |
| 710 | temperature = <70000>; |
| 711 | hysteresis = <2000>; |
| 712 | type = "passive"; |
| 713 | }; |
| 714 | cpu_alert1: cpu_alert1 { |
| 715 | temperature = <75000>; |
| 716 | hysteresis = <2000>; |
| 717 | type = "passive"; |
| 718 | }; |
| 719 | cpu_crit: cpu_crit { |
| 720 | temperature = <95000>; |
| 721 | hysteresis = <2000>; |
| 722 | type = "critical"; |
| 723 | }; |
| 724 | }; |
| 725 | |
| 726 | cooling-maps { |
| 727 | map0 { |
| 728 | trip = <&cpu_alert0>; |
| 729 | cooling-device = |
| 730 | <&cpu_b0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; |
| 731 | }; |
| 732 | map1 { |
| 733 | trip = <&cpu_alert1>; |
| 734 | cooling-device = |
| 735 | <&cpu_l0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, |
| 736 | <&cpu_b0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; |
| 737 | }; |
| 738 | }; |
| 739 | }; |
| 740 | |
| 741 | gpu_thermal: gpu { |
| 742 | polling-delay-passive = <100>; |
| 743 | polling-delay = <1000>; |
| 744 | |
| 745 | thermal-sensors = <&tsadc 1>; |
| 746 | |
| 747 | trips { |
| 748 | gpu_alert0: gpu_alert0 { |
| 749 | temperature = <75000>; |
| 750 | hysteresis = <2000>; |
| 751 | type = "passive"; |
| 752 | }; |
| 753 | gpu_crit: gpu_crit { |
| 754 | temperature = <95000>; |
| 755 | hysteresis = <2000>; |
| 756 | type = "critical"; |
| 757 | }; |
| 758 | }; |
| 759 | |
| 760 | cooling-maps { |
| 761 | map0 { |
| 762 | trip = <&gpu_alert0>; |
| 763 | cooling-device = |
| 764 | <&cpu_b0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; |
| 765 | }; |
| 766 | }; |
| 767 | }; |
| 768 | }; |
| 769 | |
| 770 | tsadc: tsadc@ff260000 { |
| 771 | compatible = "rockchip,rk3399-tsadc"; |
| 772 | reg = <0x0 0xff260000 0x0 0x100>; |
Caesar Wang | 210bbd3 | 2016-09-06 02:17:14 +0800 | [diff] [blame] | 773 | interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH 0>; |
Caesar Wang | 95c27ba | 2016-05-25 15:39:35 +0800 | [diff] [blame] | 774 | assigned-clocks = <&cru SCLK_TSADC>; |
| 775 | assigned-clock-rates = <750000>; |
| 776 | clocks = <&cru SCLK_TSADC>, <&cru PCLK_TSADC>; |
| 777 | clock-names = "tsadc", "apb_pclk"; |
| 778 | resets = <&cru SRST_TSADC>; |
| 779 | reset-names = "tsadc-apb"; |
| 780 | rockchip,grf = <&grf>; |
| 781 | rockchip,hw-tshut-temp = <95000>; |
| 782 | pinctrl-names = "init", "default", "sleep"; |
| 783 | pinctrl-0 = <&otp_gpio>; |
| 784 | pinctrl-1 = <&otp_out>; |
| 785 | pinctrl-2 = <&otp_gpio>; |
| 786 | #thermal-sensor-cells = <1>; |
| 787 | status = "disabled"; |
| 788 | }; |
| 789 | |
Elaine Zhang | a1907df | 2016-11-09 21:21:53 +0800 | [diff] [blame] | 790 | qos_emmc: qos@ffa58000 { |
| 791 | compatible = "syscon"; |
| 792 | reg = <0x0 0xffa58000 0x0 0x20>; |
| 793 | }; |
| 794 | |
Caesar Wang | d43c97a | 2016-09-02 01:50:02 +0800 | [diff] [blame] | 795 | qos_gmac: qos@ffa5c000 { |
| 796 | compatible = "syscon"; |
| 797 | reg = <0x0 0xffa5c000 0x0 0x20>; |
| 798 | }; |
| 799 | |
Kever Yang | 65f1e90 | 2017-04-12 15:10:41 +0800 | [diff] [blame] | 800 | qos_pcie: qos@ffa60080 { |
| 801 | compatible = "syscon"; |
| 802 | reg = <0x0 0xffa60080 0x0 0x20>; |
| 803 | }; |
| 804 | |
| 805 | qos_usb_host0: qos@ffa60100 { |
| 806 | compatible = "syscon"; |
| 807 | reg = <0x0 0xffa60100 0x0 0x20>; |
| 808 | }; |
| 809 | |
| 810 | qos_usb_host1: qos@ffa60180 { |
| 811 | compatible = "syscon"; |
| 812 | reg = <0x0 0xffa60180 0x0 0x20>; |
| 813 | }; |
| 814 | |
| 815 | qos_usb_otg0: qos@ffa70000 { |
| 816 | compatible = "syscon"; |
| 817 | reg = <0x0 0xffa70000 0x0 0x20>; |
| 818 | }; |
| 819 | |
| 820 | qos_usb_otg1: qos@ffa70080 { |
| 821 | compatible = "syscon"; |
| 822 | reg = <0x0 0xffa70080 0x0 0x20>; |
| 823 | }; |
| 824 | |
| 825 | qos_sd: qos@ffa74000 { |
| 826 | compatible = "syscon"; |
| 827 | reg = <0x0 0xffa74000 0x0 0x20>; |
| 828 | }; |
| 829 | |
| 830 | qos_sdioaudio: qos@ffa76000 { |
| 831 | compatible = "syscon"; |
| 832 | reg = <0x0 0xffa76000 0x0 0x20>; |
| 833 | }; |
| 834 | |
Elaine Zhang | 807a237 | 2016-07-04 20:34:04 +0800 | [diff] [blame] | 835 | qos_hdcp: qos@ffa90000 { |
| 836 | compatible = "syscon"; |
| 837 | reg = <0x0 0xffa90000 0x0 0x20>; |
| 838 | }; |
| 839 | |
| 840 | qos_iep: qos@ffa98000 { |
| 841 | compatible = "syscon"; |
| 842 | reg = <0x0 0xffa98000 0x0 0x20>; |
| 843 | }; |
| 844 | |
| 845 | qos_isp0_m0: qos@ffaa0000 { |
| 846 | compatible = "syscon"; |
| 847 | reg = <0x0 0xffaa0000 0x0 0x20>; |
| 848 | }; |
| 849 | |
| 850 | qos_isp0_m1: qos@ffaa0080 { |
| 851 | compatible = "syscon"; |
| 852 | reg = <0x0 0xffaa0080 0x0 0x20>; |
| 853 | }; |
| 854 | |
| 855 | qos_isp1_m0: qos@ffaa8000 { |
| 856 | compatible = "syscon"; |
| 857 | reg = <0x0 0xffaa8000 0x0 0x20>; |
| 858 | }; |
| 859 | |
| 860 | qos_isp1_m1: qos@ffaa8080 { |
| 861 | compatible = "syscon"; |
| 862 | reg = <0x0 0xffaa8080 0x0 0x20>; |
| 863 | }; |
| 864 | |
| 865 | qos_rga_r: qos@ffab0000 { |
| 866 | compatible = "syscon"; |
| 867 | reg = <0x0 0xffab0000 0x0 0x20>; |
| 868 | }; |
| 869 | |
| 870 | qos_rga_w: qos@ffab0080 { |
| 871 | compatible = "syscon"; |
| 872 | reg = <0x0 0xffab0080 0x0 0x20>; |
| 873 | }; |
| 874 | |
| 875 | qos_video_m0: qos@ffab8000 { |
| 876 | compatible = "syscon"; |
| 877 | reg = <0x0 0xffab8000 0x0 0x20>; |
| 878 | }; |
| 879 | |
| 880 | qos_video_m1_r: qos@ffac0000 { |
| 881 | compatible = "syscon"; |
| 882 | reg = <0x0 0xffac0000 0x0 0x20>; |
| 883 | }; |
| 884 | |
| 885 | qos_video_m1_w: qos@ffac0080 { |
| 886 | compatible = "syscon"; |
| 887 | reg = <0x0 0xffac0080 0x0 0x20>; |
| 888 | }; |
| 889 | |
| 890 | qos_vop_big_r: qos@ffac8000 { |
| 891 | compatible = "syscon"; |
| 892 | reg = <0x0 0xffac8000 0x0 0x20>; |
| 893 | }; |
| 894 | |
| 895 | qos_vop_big_w: qos@ffac8080 { |
| 896 | compatible = "syscon"; |
| 897 | reg = <0x0 0xffac8080 0x0 0x20>; |
| 898 | }; |
| 899 | |
| 900 | qos_vop_little: qos@ffad0000 { |
| 901 | compatible = "syscon"; |
| 902 | reg = <0x0 0xffad0000 0x0 0x20>; |
| 903 | }; |
| 904 | |
Kever Yang | 65f1e90 | 2017-04-12 15:10:41 +0800 | [diff] [blame] | 905 | qos_perihp: qos@ffad8080 { |
| 906 | compatible = "syscon"; |
| 907 | reg = <0x0 0xffad8080 0x0 0x20>; |
| 908 | }; |
| 909 | |
Elaine Zhang | 807a237 | 2016-07-04 20:34:04 +0800 | [diff] [blame] | 910 | qos_gpu: qos@ffae0000 { |
| 911 | compatible = "syscon"; |
| 912 | reg = <0x0 0xffae0000 0x0 0x20>; |
| 913 | }; |
| 914 | |
| 915 | pmu: power-management@ff310000 { |
| 916 | compatible = "rockchip,rk3399-pmu", "syscon", "simple-mfd"; |
| 917 | reg = <0x0 0xff310000 0x0 0x1000>; |
| 918 | |
| 919 | /* |
| 920 | * Note: RK3399 supports 6 voltage domains including VD_CORE_L, |
| 921 | * VD_CORE_B, VD_CENTER, VD_GPU, VD_LOGIC and VD_PMU. |
| 922 | * Some of the power domains are grouped together for every |
| 923 | * voltage domain. |
| 924 | * The detail contents as below. |
| 925 | */ |
| 926 | power: power-controller { |
| 927 | compatible = "rockchip,rk3399-power-controller"; |
| 928 | #power-domain-cells = <1>; |
| 929 | #address-cells = <1>; |
| 930 | #size-cells = <0>; |
| 931 | |
| 932 | /* These power domains are grouped by VD_CENTER */ |
| 933 | pd_iep@RK3399_PD_IEP { |
| 934 | reg = <RK3399_PD_IEP>; |
| 935 | clocks = <&cru ACLK_IEP>, |
| 936 | <&cru HCLK_IEP>; |
| 937 | pm_qos = <&qos_iep>; |
| 938 | }; |
| 939 | pd_rga@RK3399_PD_RGA { |
| 940 | reg = <RK3399_PD_RGA>; |
| 941 | clocks = <&cru ACLK_RGA>, |
| 942 | <&cru HCLK_RGA>; |
| 943 | pm_qos = <&qos_rga_r>, |
| 944 | <&qos_rga_w>; |
| 945 | }; |
| 946 | pd_vcodec@RK3399_PD_VCODEC { |
| 947 | reg = <RK3399_PD_VCODEC>; |
| 948 | clocks = <&cru ACLK_VCODEC>, |
| 949 | <&cru HCLK_VCODEC>; |
| 950 | pm_qos = <&qos_video_m0>; |
| 951 | }; |
| 952 | pd_vdu@RK3399_PD_VDU { |
| 953 | reg = <RK3399_PD_VDU>; |
| 954 | clocks = <&cru ACLK_VDU>, |
| 955 | <&cru HCLK_VDU>; |
| 956 | pm_qos = <&qos_video_m1_r>, |
| 957 | <&qos_video_m1_w>; |
| 958 | }; |
| 959 | |
| 960 | /* These power domains are grouped by VD_GPU */ |
| 961 | pd_gpu@RK3399_PD_GPU { |
| 962 | reg = <RK3399_PD_GPU>; |
| 963 | clocks = <&cru ACLK_GPU>; |
| 964 | pm_qos = <&qos_gpu>; |
| 965 | }; |
| 966 | |
| 967 | /* These power domains are grouped by VD_LOGIC */ |
Elaine Zhang | 3cf04a4 | 2017-07-17 22:16:56 +0800 | [diff] [blame] | 968 | pd_edp@RK3399_PD_EDP { |
| 969 | reg = <RK3399_PD_EDP>; |
| 970 | clocks = <&cru PCLK_EDP_CTRL>; |
| 971 | }; |
Elaine Zhang | a1907df | 2016-11-09 21:21:53 +0800 | [diff] [blame] | 972 | pd_emmc@RK3399_PD_EMMC { |
| 973 | reg = <RK3399_PD_EMMC>; |
| 974 | clocks = <&cru ACLK_EMMC>; |
| 975 | pm_qos = <&qos_emmc>; |
| 976 | }; |
Caesar Wang | d43c97a | 2016-09-02 01:50:02 +0800 | [diff] [blame] | 977 | pd_gmac@RK3399_PD_GMAC { |
| 978 | reg = <RK3399_PD_GMAC>; |
Jeffy Chen | 2afc1db | 2016-11-14 12:36:39 +0800 | [diff] [blame] | 979 | clocks = <&cru ACLK_GMAC>, |
| 980 | <&cru PCLK_GMAC>; |
Caesar Wang | d43c97a | 2016-09-02 01:50:02 +0800 | [diff] [blame] | 981 | pm_qos = <&qos_gmac>; |
| 982 | }; |
Elaine Zhang | 1bc60be | 2016-11-09 21:21:54 +0800 | [diff] [blame] | 983 | pd_sd@RK3399_PD_SD { |
| 984 | reg = <RK3399_PD_SD>; |
| 985 | clocks = <&cru HCLK_SDMMC>, |
| 986 | <&cru SCLK_SDMMC>; |
| 987 | pm_qos = <&qos_sd>; |
| 988 | }; |
Caesar Wang | b0f2110 | 2017-06-30 14:01:53 +0800 | [diff] [blame] | 989 | pd_sdioaudio@RK3399_PD_SDIOAUDIO { |
| 990 | reg = <RK3399_PD_SDIOAUDIO>; |
| 991 | clocks = <&cru HCLK_SDIO>; |
| 992 | pm_qos = <&qos_sdioaudio>; |
| 993 | }; |
Elaine Zhang | 807a237 | 2016-07-04 20:34:04 +0800 | [diff] [blame] | 994 | pd_vio@RK3399_PD_VIO { |
| 995 | reg = <RK3399_PD_VIO>; |
| 996 | #address-cells = <1>; |
| 997 | #size-cells = <0>; |
| 998 | |
| 999 | pd_hdcp@RK3399_PD_HDCP { |
| 1000 | reg = <RK3399_PD_HDCP>; |
| 1001 | clocks = <&cru ACLK_HDCP>, |
| 1002 | <&cru HCLK_HDCP>, |
| 1003 | <&cru PCLK_HDCP>; |
| 1004 | pm_qos = <&qos_hdcp>; |
| 1005 | }; |
| 1006 | pd_isp0@RK3399_PD_ISP0 { |
| 1007 | reg = <RK3399_PD_ISP0>; |
| 1008 | clocks = <&cru ACLK_ISP0>, |
| 1009 | <&cru HCLK_ISP0>; |
| 1010 | pm_qos = <&qos_isp0_m0>, |
| 1011 | <&qos_isp0_m1>; |
| 1012 | }; |
| 1013 | pd_isp1@RK3399_PD_ISP1 { |
| 1014 | reg = <RK3399_PD_ISP1>; |
| 1015 | clocks = <&cru ACLK_ISP1>, |
| 1016 | <&cru HCLK_ISP1>; |
| 1017 | pm_qos = <&qos_isp1_m0>, |
| 1018 | <&qos_isp1_m1>; |
| 1019 | }; |
Caesar Wang | 4a3a3d3 | 2016-09-03 04:39:06 +0800 | [diff] [blame] | 1020 | pd_tcpc0@RK3399_PD_TCPC0 { |
| 1021 | reg = <RK3399_PD_TCPD0>; |
| 1022 | clocks = <&cru SCLK_UPHY0_TCPDCORE>, |
| 1023 | <&cru SCLK_UPHY0_TCPDPHY_REF>; |
| 1024 | }; |
| 1025 | pd_tcpc1@RK3399_PD_TCPC1 { |
| 1026 | reg = <RK3399_PD_TCPD1>; |
| 1027 | clocks = <&cru SCLK_UPHY1_TCPDCORE>, |
| 1028 | <&cru SCLK_UPHY1_TCPDPHY_REF>; |
| 1029 | }; |
Elaine Zhang | 807a237 | 2016-07-04 20:34:04 +0800 | [diff] [blame] | 1030 | pd_vo@RK3399_PD_VO { |
| 1031 | reg = <RK3399_PD_VO>; |
| 1032 | #address-cells = <1>; |
| 1033 | #size-cells = <0>; |
| 1034 | |
| 1035 | pd_vopb@RK3399_PD_VOPB { |
| 1036 | reg = <RK3399_PD_VOPB>; |
| 1037 | clocks = <&cru ACLK_VOP0>, |
| 1038 | <&cru HCLK_VOP0>; |
| 1039 | pm_qos = <&qos_vop_big_r>, |
| 1040 | <&qos_vop_big_w>; |
| 1041 | }; |
| 1042 | pd_vopl@RK3399_PD_VOPL { |
| 1043 | reg = <RK3399_PD_VOPL>; |
| 1044 | clocks = <&cru ACLK_VOP1>, |
| 1045 | <&cru HCLK_VOP1>; |
| 1046 | pm_qos = <&qos_vop_little>; |
| 1047 | }; |
| 1048 | }; |
| 1049 | }; |
| 1050 | }; |
| 1051 | }; |
| 1052 | |
Jianqun Xu | f048b9a | 2016-04-27 15:54:51 +0800 | [diff] [blame] | 1053 | pmugrf: syscon@ff320000 { |
Brian Norris | 1675926 | 2016-05-13 15:12:02 -0700 | [diff] [blame] | 1054 | compatible = "rockchip,rk3399-pmugrf", "syscon", "simple-mfd"; |
Jianqun Xu | f048b9a | 2016-04-27 15:54:51 +0800 | [diff] [blame] | 1055 | reg = <0x0 0xff320000 0x0 0x1000>; |
Brian Norris | 1675926 | 2016-05-13 15:12:02 -0700 | [diff] [blame] | 1056 | #address-cells = <1>; |
| 1057 | #size-cells = <1>; |
Heiko Stuebner | 6d0e3a4 | 2016-05-21 19:55:28 +0200 | [diff] [blame] | 1058 | |
| 1059 | pmu_io_domains: io-domains { |
| 1060 | compatible = "rockchip,rk3399-pmu-io-voltage-domain"; |
| 1061 | status = "disabled"; |
| 1062 | }; |
Jianqun Xu | f048b9a | 2016-04-27 15:54:51 +0800 | [diff] [blame] | 1063 | }; |
| 1064 | |
| 1065 | spi3: spi@ff350000 { |
| 1066 | compatible = "rockchip,rk3399-spi", "rockchip,rk3066-spi"; |
| 1067 | reg = <0x0 0xff350000 0x0 0x1000>; |
| 1068 | clocks = <&pmucru SCLK_SPI3_PMU>, <&pmucru PCLK_SPI3_PMU>; |
| 1069 | clock-names = "spiclk", "apb_pclk"; |
Caesar Wang | 210bbd3 | 2016-09-06 02:17:14 +0800 | [diff] [blame] | 1070 | interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH 0>; |
Jianqun Xu | f048b9a | 2016-04-27 15:54:51 +0800 | [diff] [blame] | 1071 | pinctrl-names = "default"; |
| 1072 | pinctrl-0 = <&spi3_clk &spi3_tx &spi3_rx &spi3_cs0>; |
| 1073 | #address-cells = <1>; |
| 1074 | #size-cells = <0>; |
| 1075 | status = "disabled"; |
| 1076 | }; |
| 1077 | |
| 1078 | uart4: serial@ff370000 { |
| 1079 | compatible = "rockchip,rk3399-uart", "snps,dw-apb-uart"; |
| 1080 | reg = <0x0 0xff370000 0x0 0x100>; |
| 1081 | clocks = <&pmucru SCLK_UART4_PMU>, <&pmucru PCLK_UART4_PMU>; |
| 1082 | clock-names = "baudclk", "apb_pclk"; |
Caesar Wang | 210bbd3 | 2016-09-06 02:17:14 +0800 | [diff] [blame] | 1083 | interrupts = <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH 0>; |
Jianqun Xu | f048b9a | 2016-04-27 15:54:51 +0800 | [diff] [blame] | 1084 | reg-shift = <2>; |
| 1085 | reg-io-width = <4>; |
| 1086 | pinctrl-names = "default"; |
| 1087 | pinctrl-0 = <&uart4_xfer>; |
| 1088 | status = "disabled"; |
| 1089 | }; |
| 1090 | |
David Wu | 69e5a8f | 2016-05-16 13:09:31 -0700 | [diff] [blame] | 1091 | i2c0: i2c@ff3c0000 { |
| 1092 | compatible = "rockchip,rk3399-i2c"; |
| 1093 | reg = <0x0 0xff3c0000 0x0 0x1000>; |
| 1094 | assigned-clocks = <&pmucru SCLK_I2C0_PMU>; |
| 1095 | assigned-clock-rates = <200000000>; |
| 1096 | clocks = <&pmucru SCLK_I2C0_PMU>, <&pmucru PCLK_I2C0_PMU>; |
| 1097 | clock-names = "i2c", "pclk"; |
Caesar Wang | 210bbd3 | 2016-09-06 02:17:14 +0800 | [diff] [blame] | 1098 | interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH 0>; |
David Wu | 69e5a8f | 2016-05-16 13:09:31 -0700 | [diff] [blame] | 1099 | pinctrl-names = "default"; |
| 1100 | pinctrl-0 = <&i2c0_xfer>; |
| 1101 | #address-cells = <1>; |
| 1102 | #size-cells = <0>; |
| 1103 | status = "disabled"; |
| 1104 | }; |
| 1105 | |
| 1106 | i2c4: i2c@ff3d0000 { |
| 1107 | compatible = "rockchip,rk3399-i2c"; |
| 1108 | reg = <0x0 0xff3d0000 0x0 0x1000>; |
| 1109 | assigned-clocks = <&pmucru SCLK_I2C4_PMU>; |
| 1110 | assigned-clock-rates = <200000000>; |
| 1111 | clocks = <&pmucru SCLK_I2C4_PMU>, <&pmucru PCLK_I2C4_PMU>; |
| 1112 | clock-names = "i2c", "pclk"; |
Caesar Wang | 210bbd3 | 2016-09-06 02:17:14 +0800 | [diff] [blame] | 1113 | interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH 0>; |
David Wu | 69e5a8f | 2016-05-16 13:09:31 -0700 | [diff] [blame] | 1114 | pinctrl-names = "default"; |
| 1115 | pinctrl-0 = <&i2c4_xfer>; |
| 1116 | #address-cells = <1>; |
| 1117 | #size-cells = <0>; |
| 1118 | status = "disabled"; |
| 1119 | }; |
| 1120 | |
| 1121 | i2c8: i2c@ff3e0000 { |
| 1122 | compatible = "rockchip,rk3399-i2c"; |
| 1123 | reg = <0x0 0xff3e0000 0x0 0x1000>; |
| 1124 | assigned-clocks = <&pmucru SCLK_I2C8_PMU>; |
| 1125 | assigned-clock-rates = <200000000>; |
| 1126 | clocks = <&pmucru SCLK_I2C8_PMU>, <&pmucru PCLK_I2C8_PMU>; |
| 1127 | clock-names = "i2c", "pclk"; |
Caesar Wang | 210bbd3 | 2016-09-06 02:17:14 +0800 | [diff] [blame] | 1128 | interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH 0>; |
David Wu | 69e5a8f | 2016-05-16 13:09:31 -0700 | [diff] [blame] | 1129 | pinctrl-names = "default"; |
| 1130 | pinctrl-0 = <&i2c8_xfer>; |
| 1131 | #address-cells = <1>; |
| 1132 | #size-cells = <0>; |
| 1133 | status = "disabled"; |
| 1134 | }; |
| 1135 | |
Jianqun Xu | f048b9a | 2016-04-27 15:54:51 +0800 | [diff] [blame] | 1136 | pwm0: pwm@ff420000 { |
| 1137 | compatible = "rockchip,rk3399-pwm", "rockchip,rk3288-pwm"; |
| 1138 | reg = <0x0 0xff420000 0x0 0x10>; |
| 1139 | #pwm-cells = <3>; |
| 1140 | pinctrl-names = "default"; |
| 1141 | pinctrl-0 = <&pwm0_pin>; |
| 1142 | clocks = <&pmucru PCLK_RKPWM_PMU>; |
| 1143 | clock-names = "pwm"; |
| 1144 | status = "disabled"; |
| 1145 | }; |
| 1146 | |
| 1147 | pwm1: pwm@ff420010 { |
| 1148 | compatible = "rockchip,rk3399-pwm", "rockchip,rk3288-pwm"; |
| 1149 | reg = <0x0 0xff420010 0x0 0x10>; |
| 1150 | #pwm-cells = <3>; |
| 1151 | pinctrl-names = "default"; |
| 1152 | pinctrl-0 = <&pwm1_pin>; |
| 1153 | clocks = <&pmucru PCLK_RKPWM_PMU>; |
| 1154 | clock-names = "pwm"; |
| 1155 | status = "disabled"; |
| 1156 | }; |
| 1157 | |
| 1158 | pwm2: pwm@ff420020 { |
| 1159 | compatible = "rockchip,rk3399-pwm", "rockchip,rk3288-pwm"; |
| 1160 | reg = <0x0 0xff420020 0x0 0x10>; |
| 1161 | #pwm-cells = <3>; |
| 1162 | pinctrl-names = "default"; |
| 1163 | pinctrl-0 = <&pwm2_pin>; |
| 1164 | clocks = <&pmucru PCLK_RKPWM_PMU>; |
| 1165 | clock-names = "pwm"; |
| 1166 | status = "disabled"; |
| 1167 | }; |
| 1168 | |
| 1169 | pwm3: pwm@ff420030 { |
| 1170 | compatible = "rockchip,rk3399-pwm", "rockchip,rk3288-pwm"; |
| 1171 | reg = <0x0 0xff420030 0x0 0x10>; |
| 1172 | #pwm-cells = <3>; |
| 1173 | pinctrl-names = "default"; |
| 1174 | pinctrl-0 = <&pwm3a_pin>; |
| 1175 | clocks = <&pmucru PCLK_RKPWM_PMU>; |
| 1176 | clock-names = "pwm"; |
| 1177 | status = "disabled"; |
| 1178 | }; |
| 1179 | |
Simon Xue | ae4fdcc | 2017-07-24 10:32:10 +0800 | [diff] [blame] | 1180 | vpu_mmu: iommu@ff650800 { |
| 1181 | compatible = "rockchip,iommu"; |
| 1182 | reg = <0x0 0xff650800 0x0 0x40>; |
| 1183 | interrupts = <GIC_SPI 115 IRQ_TYPE_LEVEL_HIGH 0>; |
| 1184 | interrupt-names = "vpu_mmu"; |
| 1185 | #iommu-cells = <0>; |
| 1186 | status = "disabled"; |
| 1187 | }; |
| 1188 | |
| 1189 | vdec_mmu: iommu@ff660480 { |
| 1190 | compatible = "rockchip,iommu"; |
| 1191 | reg = <0x0 0xff660480 0x0 0x40>, <0x0 0xff6604c0 0x0 0x40>; |
| 1192 | interrupts = <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH 0>; |
| 1193 | interrupt-names = "vdec_mmu"; |
| 1194 | #iommu-cells = <0>; |
| 1195 | status = "disabled"; |
| 1196 | }; |
| 1197 | |
| 1198 | iep_mmu: iommu@ff670800 { |
| 1199 | compatible = "rockchip,iommu"; |
| 1200 | reg = <0x0 0xff670800 0x0 0x40>; |
| 1201 | interrupts = <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH 0>; |
| 1202 | interrupt-names = "iep_mmu"; |
| 1203 | #iommu-cells = <0>; |
| 1204 | status = "disabled"; |
| 1205 | }; |
| 1206 | |
Jacob Chen | ec5ccfd | 2017-10-11 15:29:38 +0800 | [diff] [blame] | 1207 | rga: rga@ff680000 { |
| 1208 | compatible = "rockchip,rk3399-rga"; |
| 1209 | reg = <0x0 0xff680000 0x0 0x10000>; |
| 1210 | interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH 0>; |
| 1211 | clocks = <&cru ACLK_RGA>, <&cru HCLK_RGA>, <&cru SCLK_RGA_CORE>; |
| 1212 | clock-names = "aclk", "hclk", "sclk"; |
| 1213 | resets = <&cru SRST_RGA_CORE>, <&cru SRST_A_RGA>, <&cru SRST_H_RGA>; |
| 1214 | reset-names = "core", "axi", "ahb"; |
| 1215 | power-domains = <&power RK3399_PD_RGA>; |
| 1216 | }; |
| 1217 | |
Finley Xiao | b7ee3b2 | 2016-09-01 20:16:56 -0700 | [diff] [blame] | 1218 | efuse0: efuse@ff690000 { |
| 1219 | compatible = "rockchip,rk3399-efuse"; |
| 1220 | reg = <0x0 0xff690000 0x0 0x80>; |
| 1221 | #address-cells = <1>; |
| 1222 | #size-cells = <1>; |
| 1223 | clocks = <&cru PCLK_EFUSE1024NS>; |
| 1224 | clock-names = "pclk_efuse"; |
| 1225 | |
| 1226 | /* Data cells */ |
Ziyuan Xu | 0d32692 | 2016-10-30 10:57:25 +0800 | [diff] [blame] | 1227 | cpu_id: cpu-id@7 { |
| 1228 | reg = <0x07 0x10>; |
| 1229 | }; |
Finley Xiao | b7ee3b2 | 2016-09-01 20:16:56 -0700 | [diff] [blame] | 1230 | cpub_leakage: cpu-leakage@17 { |
| 1231 | reg = <0x17 0x1>; |
| 1232 | }; |
| 1233 | gpu_leakage: gpu-leakage@18 { |
| 1234 | reg = <0x18 0x1>; |
| 1235 | }; |
| 1236 | center_leakage: center-leakage@19 { |
| 1237 | reg = <0x19 0x1>; |
| 1238 | }; |
| 1239 | cpul_leakage: cpu-leakage@1a { |
| 1240 | reg = <0x1a 0x1>; |
| 1241 | }; |
| 1242 | logic_leakage: logic-leakage@1b { |
| 1243 | reg = <0x1b 0x1>; |
| 1244 | }; |
| 1245 | wafer_info: wafer-info@1c { |
| 1246 | reg = <0x1c 0x1>; |
| 1247 | }; |
| 1248 | }; |
| 1249 | |
Jianqun Xu | f048b9a | 2016-04-27 15:54:51 +0800 | [diff] [blame] | 1250 | pmucru: pmu-clock-controller@ff750000 { |
| 1251 | compatible = "rockchip,rk3399-pmucru"; |
| 1252 | reg = <0x0 0xff750000 0x0 0x1000>; |
Xing Zheng | 8cbb59a | 2017-01-10 14:15:29 +0800 | [diff] [blame] | 1253 | rockchip,grf = <&pmugrf>; |
Jianqun Xu | f048b9a | 2016-04-27 15:54:51 +0800 | [diff] [blame] | 1254 | #clock-cells = <1>; |
| 1255 | #reset-cells = <1>; |
| 1256 | assigned-clocks = <&pmucru PLL_PPLL>; |
| 1257 | assigned-clock-rates = <676000000>; |
| 1258 | }; |
| 1259 | |
| 1260 | cru: clock-controller@ff760000 { |
| 1261 | compatible = "rockchip,rk3399-cru"; |
| 1262 | reg = <0x0 0xff760000 0x0 0x1000>; |
Xing Zheng | 8cbb59a | 2017-01-10 14:15:29 +0800 | [diff] [blame] | 1263 | rockchip,grf = <&grf>; |
Jianqun Xu | f048b9a | 2016-04-27 15:54:51 +0800 | [diff] [blame] | 1264 | #clock-cells = <1>; |
| 1265 | #reset-cells = <1>; |
Xing Zheng | a09906c | 2016-05-13 13:50:18 -0700 | [diff] [blame] | 1266 | assigned-clocks = |
| 1267 | <&cru PLL_GPLL>, <&cru PLL_CPLL>, |
| 1268 | <&cru PLL_NPLL>, |
| 1269 | <&cru ACLK_PERIHP>, <&cru HCLK_PERIHP>, |
| 1270 | <&cru PCLK_PERIHP>, |
| 1271 | <&cru ACLK_PERILP0>, <&cru HCLK_PERILP0>, |
Shunqian Zheng | bb4b620 | 2016-08-26 08:00:44 +0800 | [diff] [blame] | 1272 | <&cru PCLK_PERILP0>, <&cru ACLK_CCI>, |
Xing Zheng | a09906c | 2016-05-13 13:50:18 -0700 | [diff] [blame] | 1273 | <&cru HCLK_PERILP1>, <&cru PCLK_PERILP1>; |
| 1274 | assigned-clock-rates = |
| 1275 | <594000000>, <800000000>, |
| 1276 | <1000000000>, |
| 1277 | <150000000>, <75000000>, |
| 1278 | <37500000>, |
| 1279 | <100000000>, <100000000>, |
Shunqian Zheng | bb4b620 | 2016-08-26 08:00:44 +0800 | [diff] [blame] | 1280 | <50000000>, <600000000>, |
Xing Zheng | a09906c | 2016-05-13 13:50:18 -0700 | [diff] [blame] | 1281 | <100000000>, <50000000>; |
Jianqun Xu | f048b9a | 2016-04-27 15:54:51 +0800 | [diff] [blame] | 1282 | }; |
| 1283 | |
| 1284 | grf: syscon@ff770000 { |
Brian Norris | 1675926 | 2016-05-13 15:12:02 -0700 | [diff] [blame] | 1285 | compatible = "rockchip,rk3399-grf", "syscon", "simple-mfd"; |
Jianqun Xu | f048b9a | 2016-04-27 15:54:51 +0800 | [diff] [blame] | 1286 | reg = <0x0 0xff770000 0x0 0x10000>; |
Brian Norris | 1675926 | 2016-05-13 15:12:02 -0700 | [diff] [blame] | 1287 | #address-cells = <1>; |
| 1288 | #size-cells = <1>; |
Brian Norris | b4e87c0 | 2016-05-13 15:12:03 -0700 | [diff] [blame] | 1289 | |
Heiko Stuebner | 6d0e3a4 | 2016-05-21 19:55:28 +0200 | [diff] [blame] | 1290 | io_domains: io-domains { |
| 1291 | compatible = "rockchip,rk3399-io-voltage-domain"; |
| 1292 | status = "disabled"; |
| 1293 | }; |
| 1294 | |
Frank Wang | 103e9f8 | 2016-07-22 15:00:45 +0800 | [diff] [blame] | 1295 | u2phy0: usb2-phy@e450 { |
| 1296 | compatible = "rockchip,rk3399-usb2phy"; |
| 1297 | reg = <0xe450 0x10>; |
| 1298 | clocks = <&cru SCLK_USB2PHY0_REF>; |
| 1299 | clock-names = "phyclk"; |
| 1300 | #clock-cells = <0>; |
| 1301 | clock-output-names = "clk_usbphy0_480m"; |
| 1302 | status = "disabled"; |
| 1303 | |
| 1304 | u2phy0_host: host-port { |
| 1305 | #phy-cells = <0>; |
Caesar Wang | 210bbd3 | 2016-09-06 02:17:14 +0800 | [diff] [blame] | 1306 | interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH 0>; |
Frank Wang | 103e9f8 | 2016-07-22 15:00:45 +0800 | [diff] [blame] | 1307 | interrupt-names = "linestate"; |
| 1308 | status = "disabled"; |
| 1309 | }; |
William Wu | fe7f2de | 2016-11-07 20:08:49 +0800 | [diff] [blame] | 1310 | |
| 1311 | u2phy0_otg: otg-port { |
| 1312 | #phy-cells = <0>; |
| 1313 | interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH 0>, |
| 1314 | <GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH 0>, |
| 1315 | <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH 0>; |
| 1316 | interrupt-names = "otg-bvalid", "otg-id", |
| 1317 | "linestate"; |
| 1318 | status = "disabled"; |
| 1319 | }; |
Frank Wang | 103e9f8 | 2016-07-22 15:00:45 +0800 | [diff] [blame] | 1320 | }; |
| 1321 | |
| 1322 | u2phy1: usb2-phy@e460 { |
| 1323 | compatible = "rockchip,rk3399-usb2phy"; |
| 1324 | reg = <0xe460 0x10>; |
| 1325 | clocks = <&cru SCLK_USB2PHY1_REF>; |
| 1326 | clock-names = "phyclk"; |
| 1327 | #clock-cells = <0>; |
| 1328 | clock-output-names = "clk_usbphy1_480m"; |
| 1329 | status = "disabled"; |
| 1330 | |
| 1331 | u2phy1_host: host-port { |
| 1332 | #phy-cells = <0>; |
Caesar Wang | 210bbd3 | 2016-09-06 02:17:14 +0800 | [diff] [blame] | 1333 | interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH 0>; |
Frank Wang | 103e9f8 | 2016-07-22 15:00:45 +0800 | [diff] [blame] | 1334 | interrupt-names = "linestate"; |
| 1335 | status = "disabled"; |
| 1336 | }; |
William Wu | fe7f2de | 2016-11-07 20:08:49 +0800 | [diff] [blame] | 1337 | |
| 1338 | u2phy1_otg: otg-port { |
| 1339 | #phy-cells = <0>; |
| 1340 | interrupts = <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH 0>, |
| 1341 | <GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH 0>, |
| 1342 | <GIC_SPI 111 IRQ_TYPE_LEVEL_HIGH 0>; |
| 1343 | interrupt-names = "otg-bvalid", "otg-id", |
| 1344 | "linestate"; |
| 1345 | status = "disabled"; |
| 1346 | }; |
Frank Wang | 103e9f8 | 2016-07-22 15:00:45 +0800 | [diff] [blame] | 1347 | }; |
| 1348 | |
Brian Norris | b4e87c0 | 2016-05-13 15:12:03 -0700 | [diff] [blame] | 1349 | emmc_phy: phy@f780 { |
| 1350 | compatible = "rockchip,rk3399-emmc-phy"; |
| 1351 | reg = <0xf780 0x24>; |
Douglas Anderson | ed388cd | 2016-06-20 10:56:54 -0700 | [diff] [blame] | 1352 | clocks = <&sdhci>; |
| 1353 | clock-names = "emmcclk"; |
Brian Norris | b4e87c0 | 2016-05-13 15:12:03 -0700 | [diff] [blame] | 1354 | #phy-cells = <0>; |
| 1355 | status = "disabled"; |
| 1356 | }; |
Shawn Lin | 29a0be1 | 2016-08-19 11:24:27 +0800 | [diff] [blame] | 1357 | |
| 1358 | pcie_phy: pcie-phy { |
| 1359 | compatible = "rockchip,rk3399-pcie-phy"; |
| 1360 | clocks = <&cru SCLK_PCIEPHY_REF>; |
| 1361 | clock-names = "refclk"; |
Shawn Lin | e9a60ca | 2017-07-19 17:57:56 +0800 | [diff] [blame] | 1362 | #phy-cells = <1>; |
Shawn Lin | 29a0be1 | 2016-08-19 11:24:27 +0800 | [diff] [blame] | 1363 | resets = <&cru SRST_PCIEPHY>; |
| 1364 | reset-names = "phy"; |
| 1365 | status = "disabled"; |
| 1366 | }; |
Jianqun Xu | f048b9a | 2016-04-27 15:54:51 +0800 | [diff] [blame] | 1367 | }; |
| 1368 | |
Chris Zhong | f606193 | 2016-08-23 22:17:03 -0700 | [diff] [blame] | 1369 | tcphy0: phy@ff7c0000 { |
| 1370 | compatible = "rockchip,rk3399-typec-phy"; |
| 1371 | reg = <0x0 0xff7c0000 0x0 0x40000>; |
| 1372 | clocks = <&cru SCLK_UPHY0_TCPDCORE>, |
| 1373 | <&cru SCLK_UPHY0_TCPDPHY_REF>; |
| 1374 | clock-names = "tcpdcore", "tcpdphy-ref"; |
| 1375 | assigned-clocks = <&cru SCLK_UPHY0_TCPDCORE>; |
| 1376 | assigned-clock-rates = <50000000>; |
Chris Zhong | 06ad4b2 | 2016-09-07 16:06:17 -0700 | [diff] [blame] | 1377 | power-domains = <&power RK3399_PD_TCPD0>; |
Chris Zhong | f606193 | 2016-08-23 22:17:03 -0700 | [diff] [blame] | 1378 | resets = <&cru SRST_UPHY0>, |
| 1379 | <&cru SRST_UPHY0_PIPE_L00>, |
| 1380 | <&cru SRST_P_UPHY0_TCPHY>; |
| 1381 | reset-names = "uphy", "uphy-pipe", "uphy-tcphy"; |
| 1382 | rockchip,grf = <&grf>; |
| 1383 | rockchip,typec-conn-dir = <0xe580 0 16>; |
| 1384 | rockchip,usb3tousb2-en = <0xe580 3 19>; |
| 1385 | rockchip,external-psm = <0xe588 14 30>; |
| 1386 | rockchip,pipe-status = <0xe5c0 0 0>; |
| 1387 | status = "disabled"; |
| 1388 | |
| 1389 | tcphy0_dp: dp-port { |
| 1390 | #phy-cells = <0>; |
| 1391 | }; |
| 1392 | |
| 1393 | tcphy0_usb3: usb3-port { |
| 1394 | #phy-cells = <0>; |
| 1395 | }; |
| 1396 | }; |
| 1397 | |
| 1398 | tcphy1: phy@ff800000 { |
| 1399 | compatible = "rockchip,rk3399-typec-phy"; |
| 1400 | reg = <0x0 0xff800000 0x0 0x40000>; |
| 1401 | clocks = <&cru SCLK_UPHY1_TCPDCORE>, |
| 1402 | <&cru SCLK_UPHY1_TCPDPHY_REF>; |
| 1403 | clock-names = "tcpdcore", "tcpdphy-ref"; |
| 1404 | assigned-clocks = <&cru SCLK_UPHY1_TCPDCORE>; |
| 1405 | assigned-clock-rates = <50000000>; |
Chris Zhong | 06ad4b2 | 2016-09-07 16:06:17 -0700 | [diff] [blame] | 1406 | power-domains = <&power RK3399_PD_TCPD1>; |
Chris Zhong | f606193 | 2016-08-23 22:17:03 -0700 | [diff] [blame] | 1407 | resets = <&cru SRST_UPHY1>, |
| 1408 | <&cru SRST_UPHY1_PIPE_L00>, |
| 1409 | <&cru SRST_P_UPHY1_TCPHY>; |
| 1410 | reset-names = "uphy", "uphy-pipe", "uphy-tcphy"; |
| 1411 | rockchip,grf = <&grf>; |
| 1412 | rockchip,typec-conn-dir = <0xe58c 0 16>; |
| 1413 | rockchip,usb3tousb2-en = <0xe58c 3 19>; |
| 1414 | rockchip,external-psm = <0xe594 14 30>; |
| 1415 | rockchip,pipe-status = <0xe5c0 16 16>; |
| 1416 | status = "disabled"; |
| 1417 | |
| 1418 | tcphy1_dp: dp-port { |
| 1419 | #phy-cells = <0>; |
| 1420 | }; |
| 1421 | |
| 1422 | tcphy1_usb3: usb3-port { |
| 1423 | #phy-cells = <0>; |
| 1424 | }; |
| 1425 | }; |
| 1426 | |
Xing Zheng | 0895b3a | 2016-08-26 14:22:30 +0800 | [diff] [blame] | 1427 | watchdog@ff848000 { |
Jianqun Xu | f048b9a | 2016-04-27 15:54:51 +0800 | [diff] [blame] | 1428 | compatible = "snps,dw-wdt"; |
Xing Zheng | 0895b3a | 2016-08-26 14:22:30 +0800 | [diff] [blame] | 1429 | reg = <0x0 0xff848000 0x0 0x100>; |
Jianqun Xu | f048b9a | 2016-04-27 15:54:51 +0800 | [diff] [blame] | 1430 | clocks = <&cru PCLK_WDT>; |
Caesar Wang | 210bbd3 | 2016-09-06 02:17:14 +0800 | [diff] [blame] | 1431 | interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH 0>; |
Jianqun Xu | f048b9a | 2016-04-27 15:54:51 +0800 | [diff] [blame] | 1432 | }; |
| 1433 | |
Huang Tao | 1e8567d | 2016-06-16 16:18:58 +0200 | [diff] [blame] | 1434 | rktimer: rktimer@ff850000 { |
| 1435 | compatible = "rockchip,rk3399-timer"; |
| 1436 | reg = <0x0 0xff850000 0x0 0x1000>; |
Caesar Wang | 210bbd3 | 2016-09-06 02:17:14 +0800 | [diff] [blame] | 1437 | interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH 0>; |
Huang Tao | 1e8567d | 2016-06-16 16:18:58 +0200 | [diff] [blame] | 1438 | clocks = <&cru PCLK_TIMER0>, <&cru SCLK_TIMER00>; |
| 1439 | clock-names = "pclk", "timer"; |
| 1440 | }; |
| 1441 | |
Jianqun Xu | f048b9a | 2016-04-27 15:54:51 +0800 | [diff] [blame] | 1442 | spdif: spdif@ff870000 { |
| 1443 | compatible = "rockchip,rk3399-spdif"; |
| 1444 | reg = <0x0 0xff870000 0x0 0x1000>; |
Caesar Wang | 210bbd3 | 2016-09-06 02:17:14 +0800 | [diff] [blame] | 1445 | interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH 0>; |
Jianqun Xu | f048b9a | 2016-04-27 15:54:51 +0800 | [diff] [blame] | 1446 | dmas = <&dmac_bus 7>; |
| 1447 | dma-names = "tx"; |
| 1448 | clock-names = "mclk", "hclk"; |
| 1449 | clocks = <&cru SCLK_SPDIF_8CH>, <&cru HCLK_SPDIF>; |
| 1450 | pinctrl-names = "default"; |
| 1451 | pinctrl-0 = <&spdif_bus>; |
Caesar Wang | b0f2110 | 2017-06-30 14:01:53 +0800 | [diff] [blame] | 1452 | power-domains = <&power RK3399_PD_SDIOAUDIO>; |
Jianqun Xu | f048b9a | 2016-04-27 15:54:51 +0800 | [diff] [blame] | 1453 | status = "disabled"; |
| 1454 | }; |
| 1455 | |
| 1456 | i2s0: i2s@ff880000 { |
| 1457 | compatible = "rockchip,rk3399-i2s", "rockchip,rk3066-i2s"; |
| 1458 | reg = <0x0 0xff880000 0x0 0x1000>; |
| 1459 | rockchip,grf = <&grf>; |
Caesar Wang | 210bbd3 | 2016-09-06 02:17:14 +0800 | [diff] [blame] | 1460 | interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH 0>; |
Jianqun Xu | f048b9a | 2016-04-27 15:54:51 +0800 | [diff] [blame] | 1461 | dmas = <&dmac_bus 0>, <&dmac_bus 1>; |
| 1462 | dma-names = "tx", "rx"; |
| 1463 | clock-names = "i2s_clk", "i2s_hclk"; |
| 1464 | clocks = <&cru SCLK_I2S0_8CH>, <&cru HCLK_I2S0_8CH>; |
| 1465 | pinctrl-names = "default"; |
| 1466 | pinctrl-0 = <&i2s0_8ch_bus>; |
Caesar Wang | b0f2110 | 2017-06-30 14:01:53 +0800 | [diff] [blame] | 1467 | power-domains = <&power RK3399_PD_SDIOAUDIO>; |
Jianqun Xu | f048b9a | 2016-04-27 15:54:51 +0800 | [diff] [blame] | 1468 | status = "disabled"; |
| 1469 | }; |
| 1470 | |
| 1471 | i2s1: i2s@ff890000 { |
| 1472 | compatible = "rockchip,rk3399-i2s", "rockchip,rk3066-i2s"; |
| 1473 | reg = <0x0 0xff890000 0x0 0x1000>; |
Caesar Wang | 210bbd3 | 2016-09-06 02:17:14 +0800 | [diff] [blame] | 1474 | interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH 0>; |
Jianqun Xu | f048b9a | 2016-04-27 15:54:51 +0800 | [diff] [blame] | 1475 | dmas = <&dmac_bus 2>, <&dmac_bus 3>; |
| 1476 | dma-names = "tx", "rx"; |
| 1477 | clock-names = "i2s_clk", "i2s_hclk"; |
| 1478 | clocks = <&cru SCLK_I2S1_8CH>, <&cru HCLK_I2S1_8CH>; |
| 1479 | pinctrl-names = "default"; |
| 1480 | pinctrl-0 = <&i2s1_2ch_bus>; |
Caesar Wang | b0f2110 | 2017-06-30 14:01:53 +0800 | [diff] [blame] | 1481 | power-domains = <&power RK3399_PD_SDIOAUDIO>; |
Jianqun Xu | f048b9a | 2016-04-27 15:54:51 +0800 | [diff] [blame] | 1482 | status = "disabled"; |
| 1483 | }; |
| 1484 | |
| 1485 | i2s2: i2s@ff8a0000 { |
| 1486 | compatible = "rockchip,rk3399-i2s", "rockchip,rk3066-i2s"; |
| 1487 | reg = <0x0 0xff8a0000 0x0 0x1000>; |
Caesar Wang | 210bbd3 | 2016-09-06 02:17:14 +0800 | [diff] [blame] | 1488 | interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH 0>; |
Jianqun Xu | f048b9a | 2016-04-27 15:54:51 +0800 | [diff] [blame] | 1489 | dmas = <&dmac_bus 4>, <&dmac_bus 5>; |
| 1490 | dma-names = "tx", "rx"; |
| 1491 | clock-names = "i2s_clk", "i2s_hclk"; |
| 1492 | clocks = <&cru SCLK_I2S2_8CH>, <&cru HCLK_I2S2_8CH>; |
Caesar Wang | b0f2110 | 2017-06-30 14:01:53 +0800 | [diff] [blame] | 1493 | power-domains = <&power RK3399_PD_SDIOAUDIO>; |
Jianqun Xu | f048b9a | 2016-04-27 15:54:51 +0800 | [diff] [blame] | 1494 | status = "disabled"; |
| 1495 | }; |
| 1496 | |
Mark Yao | fbd4cc0 | 2017-07-17 22:16:55 +0800 | [diff] [blame] | 1497 | vopl: vop@ff8f0000 { |
| 1498 | compatible = "rockchip,rk3399-vop-lit"; |
| 1499 | reg = <0x0 0xff8f0000 0x0 0x3efc>; |
| 1500 | interrupts = <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH 0>; |
Kever Yang | 617f447 | 2017-08-16 10:51:09 +0800 | [diff] [blame] | 1501 | assigned-clocks = <&cru ACLK_VOP1>, <&cru HCLK_VOP1>; |
| 1502 | assigned-clock-rates = <400000000>, <100000000>; |
Mark Yao | fbd4cc0 | 2017-07-17 22:16:55 +0800 | [diff] [blame] | 1503 | clocks = <&cru ACLK_VOP1>, <&cru DCLK_VOP1>, <&cru HCLK_VOP1>; |
| 1504 | clock-names = "aclk_vop", "dclk_vop", "hclk_vop"; |
| 1505 | iommus = <&vopl_mmu>; |
| 1506 | power-domains = <&power RK3399_PD_VOPL>; |
| 1507 | resets = <&cru SRST_A_VOP1>, <&cru SRST_H_VOP1>, <&cru SRST_D_VOP1>; |
| 1508 | reset-names = "axi", "ahb", "dclk"; |
| 1509 | status = "disabled"; |
| 1510 | |
| 1511 | vopl_out: port { |
| 1512 | #address-cells = <1>; |
| 1513 | #size-cells = <0>; |
Yakir Yang | f7a29e3 | 2017-07-17 22:16:57 +0800 | [diff] [blame] | 1514 | |
Jacob Chen | d3f51f4 | 2017-07-17 22:16:58 +0800 | [diff] [blame] | 1515 | vopl_out_mipi: endpoint@0 { |
| 1516 | reg = <0>; |
| 1517 | remote-endpoint = <&mipi_in_vopl>; |
| 1518 | }; |
| 1519 | |
Yakir Yang | f7a29e3 | 2017-07-17 22:16:57 +0800 | [diff] [blame] | 1520 | vopl_out_edp: endpoint@1 { |
| 1521 | reg = <1>; |
| 1522 | remote-endpoint = <&edp_in_vopl>; |
| 1523 | }; |
| 1524 | |
Jacob Chen | 81e923d | 2017-07-31 23:58:45 +0800 | [diff] [blame] | 1525 | vopl_out_hdmi: endpoint@2 { |
| 1526 | reg = <2>; |
| 1527 | remote-endpoint = <&hdmi_in_vopl>; |
| 1528 | }; |
Nickey Yang | 1df5d2a | 2017-11-29 17:11:27 -0800 | [diff] [blame] | 1529 | |
| 1530 | vopl_out_mipi1: endpoint@3 { |
| 1531 | reg = <3>; |
| 1532 | remote-endpoint = <&mipi1_in_vopl>; |
| 1533 | }; |
Mark Yao | fbd4cc0 | 2017-07-17 22:16:55 +0800 | [diff] [blame] | 1534 | }; |
| 1535 | }; |
| 1536 | |
| 1537 | vopl_mmu: iommu@ff8f3f00 { |
| 1538 | compatible = "rockchip,iommu"; |
| 1539 | reg = <0x0 0xff8f3f00 0x0 0x100>; |
| 1540 | interrupts = <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH 0>; |
| 1541 | interrupt-names = "vopl_mmu"; |
| 1542 | clocks = <&cru ACLK_VOP1>, <&cru HCLK_VOP1>; |
| 1543 | clock-names = "aclk", "hclk"; |
| 1544 | power-domains = <&power RK3399_PD_VOPL>; |
| 1545 | #iommu-cells = <0>; |
| 1546 | status = "disabled"; |
| 1547 | }; |
| 1548 | |
| 1549 | vopb: vop@ff900000 { |
| 1550 | compatible = "rockchip,rk3399-vop-big"; |
| 1551 | reg = <0x0 0xff900000 0x0 0x3efc>; |
| 1552 | interrupts = <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH 0>; |
Kever Yang | 617f447 | 2017-08-16 10:51:09 +0800 | [diff] [blame] | 1553 | assigned-clocks = <&cru ACLK_VOP0>, <&cru HCLK_VOP0>; |
| 1554 | assigned-clock-rates = <400000000>, <100000000>; |
Mark Yao | fbd4cc0 | 2017-07-17 22:16:55 +0800 | [diff] [blame] | 1555 | clocks = <&cru ACLK_VOP0>, <&cru DCLK_VOP0>, <&cru HCLK_VOP0>; |
| 1556 | clock-names = "aclk_vop", "dclk_vop", "hclk_vop"; |
| 1557 | iommus = <&vopb_mmu>; |
| 1558 | power-domains = <&power RK3399_PD_VOPB>; |
| 1559 | resets = <&cru SRST_A_VOP0>, <&cru SRST_H_VOP0>, <&cru SRST_D_VOP0>; |
| 1560 | reset-names = "axi", "ahb", "dclk"; |
| 1561 | status = "disabled"; |
| 1562 | |
| 1563 | vopb_out: port { |
| 1564 | #address-cells = <1>; |
| 1565 | #size-cells = <0>; |
Yakir Yang | f7a29e3 | 2017-07-17 22:16:57 +0800 | [diff] [blame] | 1566 | |
| 1567 | vopb_out_edp: endpoint@0 { |
| 1568 | reg = <0>; |
| 1569 | remote-endpoint = <&edp_in_vopb>; |
| 1570 | }; |
| 1571 | |
Jacob Chen | d3f51f4 | 2017-07-17 22:16:58 +0800 | [diff] [blame] | 1572 | vopb_out_mipi: endpoint@1 { |
| 1573 | reg = <1>; |
| 1574 | remote-endpoint = <&mipi_in_vopb>; |
| 1575 | }; |
| 1576 | |
Jacob Chen | 81e923d | 2017-07-31 23:58:45 +0800 | [diff] [blame] | 1577 | vopb_out_hdmi: endpoint@2 { |
| 1578 | reg = <2>; |
| 1579 | remote-endpoint = <&hdmi_in_vopb>; |
| 1580 | }; |
Nickey Yang | 1df5d2a | 2017-11-29 17:11:27 -0800 | [diff] [blame] | 1581 | |
| 1582 | vopb_out_mipi1: endpoint@3 { |
| 1583 | reg = <3>; |
| 1584 | remote-endpoint = <&mipi1_in_vopb>; |
| 1585 | }; |
Mark Yao | fbd4cc0 | 2017-07-17 22:16:55 +0800 | [diff] [blame] | 1586 | }; |
| 1587 | }; |
| 1588 | |
| 1589 | vopb_mmu: iommu@ff903f00 { |
| 1590 | compatible = "rockchip,iommu"; |
| 1591 | reg = <0x0 0xff903f00 0x0 0x100>; |
| 1592 | interrupts = <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH 0>; |
| 1593 | interrupt-names = "vopb_mmu"; |
| 1594 | clocks = <&cru ACLK_VOP0>, <&cru HCLK_VOP0>; |
| 1595 | clock-names = "aclk", "hclk"; |
| 1596 | power-domains = <&power RK3399_PD_VOPB>; |
| 1597 | #iommu-cells = <0>; |
| 1598 | status = "disabled"; |
| 1599 | }; |
| 1600 | |
Simon Xue | ae4fdcc | 2017-07-24 10:32:10 +0800 | [diff] [blame] | 1601 | isp0_mmu: iommu@ff914000 { |
| 1602 | compatible = "rockchip,iommu"; |
| 1603 | reg = <0x0 0xff914000 0x0 0x100>, <0x0 0xff915000 0x0 0x100>; |
| 1604 | interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH 0>; |
| 1605 | interrupt-names = "isp0_mmu"; |
| 1606 | #iommu-cells = <0>; |
| 1607 | rockchip,disable-mmu-reset; |
| 1608 | status = "disabled"; |
| 1609 | }; |
| 1610 | |
| 1611 | isp1_mmu: iommu@ff924000 { |
| 1612 | compatible = "rockchip,iommu"; |
| 1613 | reg = <0x0 0xff924000 0x0 0x100>, <0x0 0xff925000 0x0 0x100>; |
| 1614 | interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH 0>; |
| 1615 | interrupt-names = "isp1_mmu"; |
| 1616 | #iommu-cells = <0>; |
| 1617 | rockchip,disable-mmu-reset; |
| 1618 | status = "disabled"; |
| 1619 | }; |
| 1620 | |
Jacob Chen | 81e923d | 2017-07-31 23:58:45 +0800 | [diff] [blame] | 1621 | hdmi: hdmi@ff940000 { |
| 1622 | compatible = "rockchip,rk3399-dw-hdmi"; |
| 1623 | reg = <0x0 0xff940000 0x0 0x20000>; |
| 1624 | interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH 0>; |
Pierre-Hugues Husson | db2fd26 | 2017-10-14 00:53:36 +0200 | [diff] [blame] | 1625 | clocks = <&cru PCLK_HDMI_CTRL>, |
| 1626 | <&cru SCLK_HDMI_SFR>, |
| 1627 | <&cru PLL_VPLL>, |
| 1628 | <&cru PCLK_VIO_GRF>, |
| 1629 | <&cru SCLK_HDMI_CEC>; |
| 1630 | clock-names = "iahb", "isfr", "vpll", "grf", "cec"; |
Jacob Chen | 81e923d | 2017-07-31 23:58:45 +0800 | [diff] [blame] | 1631 | power-domains = <&power RK3399_PD_HDCP>; |
| 1632 | reg-io-width = <4>; |
| 1633 | rockchip,grf = <&grf>; |
| 1634 | status = "disabled"; |
| 1635 | |
| 1636 | ports { |
| 1637 | hdmi_in: port { |
| 1638 | #address-cells = <1>; |
| 1639 | #size-cells = <0>; |
| 1640 | |
| 1641 | hdmi_in_vopb: endpoint@0 { |
| 1642 | reg = <0>; |
| 1643 | remote-endpoint = <&vopb_out_hdmi>; |
| 1644 | }; |
| 1645 | hdmi_in_vopl: endpoint@1 { |
| 1646 | reg = <1>; |
| 1647 | remote-endpoint = <&vopl_out_hdmi>; |
| 1648 | }; |
| 1649 | }; |
| 1650 | }; |
| 1651 | }; |
| 1652 | |
Jacob Chen | d3f51f4 | 2017-07-17 22:16:58 +0800 | [diff] [blame] | 1653 | mipi_dsi: mipi@ff960000 { |
| 1654 | compatible = "rockchip,rk3399-mipi-dsi", "snps,dw-mipi-dsi"; |
| 1655 | reg = <0x0 0xff960000 0x0 0x8000>; |
| 1656 | interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH 0>; |
Nickey Yang | bb4e6ff | 2017-09-18 17:05:37 +0800 | [diff] [blame] | 1657 | clocks = <&cru SCLK_DPHY_PLL>, <&cru PCLK_MIPI_DSI0>, |
Nickey Yang | 0bc15d8 | 2017-09-26 15:55:22 +0800 | [diff] [blame] | 1658 | <&cru SCLK_DPHY_TX0_CFG>, <&cru PCLK_VIO_GRF>; |
| 1659 | clock-names = "ref", "pclk", "phy_cfg", "grf"; |
Jacob Chen | d3f51f4 | 2017-07-17 22:16:58 +0800 | [diff] [blame] | 1660 | power-domains = <&power RK3399_PD_VIO>; |
Brian Norris | 3813a10 | 2017-11-29 15:35:41 -0800 | [diff] [blame] | 1661 | resets = <&cru SRST_P_MIPI_DSI0>; |
| 1662 | reset-names = "apb"; |
Jacob Chen | d3f51f4 | 2017-07-17 22:16:58 +0800 | [diff] [blame] | 1663 | rockchip,grf = <&grf>; |
| 1664 | status = "disabled"; |
| 1665 | |
| 1666 | ports { |
Nickey Yang | c856cb5 | 2017-11-29 10:47:55 -0800 | [diff] [blame^] | 1667 | #address-cells = <1>; |
| 1668 | #size-cells = <0>; |
| 1669 | |
| 1670 | mipi_in: port@0 { |
| 1671 | reg = <0>; |
Jacob Chen | d3f51f4 | 2017-07-17 22:16:58 +0800 | [diff] [blame] | 1672 | #address-cells = <1>; |
| 1673 | #size-cells = <0>; |
| 1674 | |
| 1675 | mipi_in_vopb: endpoint@0 { |
| 1676 | reg = <0>; |
| 1677 | remote-endpoint = <&vopb_out_mipi>; |
| 1678 | }; |
| 1679 | mipi_in_vopl: endpoint@1 { |
| 1680 | reg = <1>; |
| 1681 | remote-endpoint = <&vopl_out_mipi>; |
| 1682 | }; |
| 1683 | }; |
| 1684 | }; |
| 1685 | }; |
| 1686 | |
Nickey Yang | 1df5d2a | 2017-11-29 17:11:27 -0800 | [diff] [blame] | 1687 | mipi_dsi1: mipi@ff968000 { |
| 1688 | compatible = "rockchip,rk3399-mipi-dsi", "snps,dw-mipi-dsi"; |
| 1689 | reg = <0x0 0xff968000 0x0 0x8000>; |
| 1690 | interrupts = <GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH 0>; |
| 1691 | clocks = <&cru SCLK_DPHY_PLL>, <&cru PCLK_MIPI_DSI1>, |
| 1692 | <&cru SCLK_DPHY_TX1RX1_CFG>, <&cru PCLK_VIO_GRF>; |
| 1693 | clock-names = "ref", "pclk", "phy_cfg", "grf"; |
| 1694 | power-domains = <&power RK3399_PD_VIO>; |
| 1695 | resets = <&cru SRST_P_MIPI_DSI1>; |
| 1696 | reset-names = "apb"; |
| 1697 | rockchip,grf = <&grf>; |
| 1698 | status = "disabled"; |
| 1699 | |
| 1700 | ports { |
| 1701 | #address-cells = <1>; |
| 1702 | #size-cells = <0>; |
| 1703 | |
| 1704 | mipi1_in: port@0 { |
| 1705 | reg = <0>; |
| 1706 | #address-cells = <1>; |
| 1707 | #size-cells = <0>; |
| 1708 | |
| 1709 | mipi1_in_vopb: endpoint@0 { |
| 1710 | reg = <0>; |
| 1711 | remote-endpoint = <&vopb_out_mipi1>; |
| 1712 | }; |
| 1713 | |
| 1714 | mipi1_in_vopl: endpoint@1 { |
| 1715 | reg = <1>; |
| 1716 | remote-endpoint = <&vopl_out_mipi1>; |
| 1717 | }; |
| 1718 | }; |
| 1719 | }; |
| 1720 | }; |
| 1721 | |
Yakir Yang | f7a29e3 | 2017-07-17 22:16:57 +0800 | [diff] [blame] | 1722 | edp: edp@ff970000 { |
| 1723 | compatible = "rockchip,rk3399-edp"; |
| 1724 | reg = <0x0 0xff970000 0x0 0x8000>; |
| 1725 | interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH 0>; |
| 1726 | clocks = <&cru PCLK_EDP>, <&cru PCLK_EDP_CTRL>; |
| 1727 | clock-names = "dp", "pclk"; |
| 1728 | pinctrl-names = "default"; |
| 1729 | pinctrl-0 = <&edp_hpd>; |
| 1730 | power-domains = <&power RK3399_PD_EDP>; |
| 1731 | resets = <&cru SRST_P_EDP_CTRL>; |
| 1732 | reset-names = "dp"; |
| 1733 | rockchip,grf = <&grf>; |
| 1734 | status = "disabled"; |
| 1735 | |
| 1736 | ports { |
| 1737 | #address-cells = <1>; |
| 1738 | #size-cells = <0>; |
| 1739 | edp_in: port@0 { |
| 1740 | reg = <0>; |
| 1741 | #address-cells = <1>; |
| 1742 | #size-cells = <0>; |
| 1743 | |
| 1744 | edp_in_vopb: endpoint@0 { |
| 1745 | reg = <0>; |
| 1746 | remote-endpoint = <&vopb_out_edp>; |
| 1747 | }; |
| 1748 | |
| 1749 | edp_in_vopl: endpoint@1 { |
| 1750 | reg = <1>; |
| 1751 | remote-endpoint = <&vopl_out_edp>; |
| 1752 | }; |
| 1753 | }; |
| 1754 | }; |
| 1755 | }; |
| 1756 | |
Caesar Wang | 68d1933 | 2017-07-17 16:14:29 +0800 | [diff] [blame] | 1757 | gpu: gpu@ff9a0000 { |
| 1758 | compatible = "rockchip,rk3399-mali", "arm,mali-t860"; |
| 1759 | reg = <0x0 0xff9a0000 0x0 0x10000>; |
| 1760 | interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH 0>, |
| 1761 | <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH 0>, |
| 1762 | <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH 0>; |
| 1763 | interrupt-names = "gpu", "job", "mmu"; |
| 1764 | clocks = <&cru ACLK_GPU>; |
| 1765 | power-domains = <&power RK3399_PD_GPU>; |
Jianqun Xu | f048b9a | 2016-04-27 15:54:51 +0800 | [diff] [blame] | 1766 | status = "disabled"; |
| 1767 | }; |
| 1768 | |
| 1769 | pinctrl: pinctrl { |
| 1770 | compatible = "rockchip,rk3399-pinctrl"; |
| 1771 | rockchip,grf = <&grf>; |
| 1772 | rockchip,pmu = <&pmugrf>; |
| 1773 | #address-cells = <2>; |
| 1774 | #size-cells = <2>; |
| 1775 | ranges; |
| 1776 | |
| 1777 | gpio0: gpio0@ff720000 { |
| 1778 | compatible = "rockchip,gpio-bank"; |
| 1779 | reg = <0x0 0xff720000 0x0 0x100>; |
| 1780 | clocks = <&pmucru PCLK_GPIO0_PMU>; |
Caesar Wang | 210bbd3 | 2016-09-06 02:17:14 +0800 | [diff] [blame] | 1781 | interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH 0>; |
Jianqun Xu | f048b9a | 2016-04-27 15:54:51 +0800 | [diff] [blame] | 1782 | |
| 1783 | gpio-controller; |
| 1784 | #gpio-cells = <0x2>; |
| 1785 | |
| 1786 | interrupt-controller; |
| 1787 | #interrupt-cells = <0x2>; |
| 1788 | }; |
| 1789 | |
| 1790 | gpio1: gpio1@ff730000 { |
| 1791 | compatible = "rockchip,gpio-bank"; |
| 1792 | reg = <0x0 0xff730000 0x0 0x100>; |
| 1793 | clocks = <&pmucru PCLK_GPIO1_PMU>; |
Caesar Wang | 210bbd3 | 2016-09-06 02:17:14 +0800 | [diff] [blame] | 1794 | interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH 0>; |
Jianqun Xu | f048b9a | 2016-04-27 15:54:51 +0800 | [diff] [blame] | 1795 | |
| 1796 | gpio-controller; |
| 1797 | #gpio-cells = <0x2>; |
| 1798 | |
| 1799 | interrupt-controller; |
| 1800 | #interrupt-cells = <0x2>; |
| 1801 | }; |
| 1802 | |
| 1803 | gpio2: gpio2@ff780000 { |
| 1804 | compatible = "rockchip,gpio-bank"; |
| 1805 | reg = <0x0 0xff780000 0x0 0x100>; |
| 1806 | clocks = <&cru PCLK_GPIO2>; |
Caesar Wang | 210bbd3 | 2016-09-06 02:17:14 +0800 | [diff] [blame] | 1807 | interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH 0>; |
Jianqun Xu | f048b9a | 2016-04-27 15:54:51 +0800 | [diff] [blame] | 1808 | |
| 1809 | gpio-controller; |
| 1810 | #gpio-cells = <0x2>; |
| 1811 | |
| 1812 | interrupt-controller; |
| 1813 | #interrupt-cells = <0x2>; |
| 1814 | }; |
| 1815 | |
| 1816 | gpio3: gpio3@ff788000 { |
| 1817 | compatible = "rockchip,gpio-bank"; |
| 1818 | reg = <0x0 0xff788000 0x0 0x100>; |
| 1819 | clocks = <&cru PCLK_GPIO3>; |
Caesar Wang | 210bbd3 | 2016-09-06 02:17:14 +0800 | [diff] [blame] | 1820 | interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH 0>; |
Jianqun Xu | f048b9a | 2016-04-27 15:54:51 +0800 | [diff] [blame] | 1821 | |
| 1822 | gpio-controller; |
| 1823 | #gpio-cells = <0x2>; |
| 1824 | |
| 1825 | interrupt-controller; |
| 1826 | #interrupt-cells = <0x2>; |
| 1827 | }; |
| 1828 | |
| 1829 | gpio4: gpio4@ff790000 { |
| 1830 | compatible = "rockchip,gpio-bank"; |
| 1831 | reg = <0x0 0xff790000 0x0 0x100>; |
| 1832 | clocks = <&cru PCLK_GPIO4>; |
Caesar Wang | 210bbd3 | 2016-09-06 02:17:14 +0800 | [diff] [blame] | 1833 | interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH 0>; |
Jianqun Xu | f048b9a | 2016-04-27 15:54:51 +0800 | [diff] [blame] | 1834 | |
| 1835 | gpio-controller; |
| 1836 | #gpio-cells = <0x2>; |
| 1837 | |
| 1838 | interrupt-controller; |
| 1839 | #interrupt-cells = <0x2>; |
| 1840 | }; |
| 1841 | |
| 1842 | pcfg_pull_up: pcfg-pull-up { |
| 1843 | bias-pull-up; |
| 1844 | }; |
| 1845 | |
| 1846 | pcfg_pull_down: pcfg-pull-down { |
| 1847 | bias-pull-down; |
| 1848 | }; |
| 1849 | |
| 1850 | pcfg_pull_none: pcfg-pull-none { |
| 1851 | bias-disable; |
| 1852 | }; |
| 1853 | |
| 1854 | pcfg_pull_none_12ma: pcfg-pull-none-12ma { |
| 1855 | bias-disable; |
| 1856 | drive-strength = <12>; |
| 1857 | }; |
| 1858 | |
| 1859 | pcfg_pull_up_8ma: pcfg-pull-up-8ma { |
| 1860 | bias-pull-up; |
| 1861 | drive-strength = <8>; |
| 1862 | }; |
| 1863 | |
| 1864 | pcfg_pull_down_4ma: pcfg-pull-down-4ma { |
| 1865 | bias-pull-down; |
| 1866 | drive-strength = <4>; |
| 1867 | }; |
| 1868 | |
| 1869 | pcfg_pull_up_2ma: pcfg-pull-up-2ma { |
| 1870 | bias-pull-up; |
| 1871 | drive-strength = <2>; |
| 1872 | }; |
| 1873 | |
| 1874 | pcfg_pull_down_12ma: pcfg-pull-down-12ma { |
| 1875 | bias-pull-down; |
| 1876 | drive-strength = <12>; |
| 1877 | }; |
| 1878 | |
| 1879 | pcfg_pull_none_13ma: pcfg-pull-none-13ma { |
| 1880 | bias-disable; |
| 1881 | drive-strength = <13>; |
| 1882 | }; |
| 1883 | |
Douglas Anderson | a8bcaea | 2016-09-01 16:53:22 -0700 | [diff] [blame] | 1884 | clock { |
| 1885 | clk_32k: clk-32k { |
| 1886 | rockchip,pins = <0 0 RK_FUNC_2 &pcfg_pull_none>; |
| 1887 | }; |
| 1888 | }; |
| 1889 | |
Brian Norris | 8742466 | 2016-12-01 18:27:27 -0800 | [diff] [blame] | 1890 | edp { |
| 1891 | edp_hpd: edp-hpd { |
| 1892 | rockchip,pins = |
| 1893 | <4 23 RK_FUNC_2 &pcfg_pull_none>; |
| 1894 | }; |
| 1895 | }; |
| 1896 | |
Roger Chen | eb3a6a6 | 2016-09-02 01:50:03 +0800 | [diff] [blame] | 1897 | gmac { |
| 1898 | rgmii_pins: rgmii-pins { |
| 1899 | rockchip,pins = |
| 1900 | /* mac_txclk */ |
| 1901 | <3 17 RK_FUNC_1 &pcfg_pull_none_13ma>, |
| 1902 | /* mac_rxclk */ |
| 1903 | <3 14 RK_FUNC_1 &pcfg_pull_none>, |
| 1904 | /* mac_mdio */ |
| 1905 | <3 13 RK_FUNC_1 &pcfg_pull_none>, |
| 1906 | /* mac_txen */ |
| 1907 | <3 12 RK_FUNC_1 &pcfg_pull_none_13ma>, |
| 1908 | /* mac_clk */ |
| 1909 | <3 11 RK_FUNC_1 &pcfg_pull_none>, |
| 1910 | /* mac_rxdv */ |
| 1911 | <3 9 RK_FUNC_1 &pcfg_pull_none>, |
| 1912 | /* mac_mdc */ |
| 1913 | <3 8 RK_FUNC_1 &pcfg_pull_none>, |
| 1914 | /* mac_rxd1 */ |
| 1915 | <3 7 RK_FUNC_1 &pcfg_pull_none>, |
| 1916 | /* mac_rxd0 */ |
| 1917 | <3 6 RK_FUNC_1 &pcfg_pull_none>, |
| 1918 | /* mac_txd1 */ |
| 1919 | <3 5 RK_FUNC_1 &pcfg_pull_none_13ma>, |
| 1920 | /* mac_txd0 */ |
| 1921 | <3 4 RK_FUNC_1 &pcfg_pull_none_13ma>, |
| 1922 | /* mac_rxd3 */ |
| 1923 | <3 3 RK_FUNC_1 &pcfg_pull_none>, |
| 1924 | /* mac_rxd2 */ |
| 1925 | <3 2 RK_FUNC_1 &pcfg_pull_none>, |
| 1926 | /* mac_txd3 */ |
| 1927 | <3 1 RK_FUNC_1 &pcfg_pull_none_13ma>, |
| 1928 | /* mac_txd2 */ |
| 1929 | <3 0 RK_FUNC_1 &pcfg_pull_none_13ma>; |
| 1930 | }; |
| 1931 | |
| 1932 | rmii_pins: rmii-pins { |
| 1933 | rockchip,pins = |
| 1934 | /* mac_mdio */ |
| 1935 | <3 13 RK_FUNC_1 &pcfg_pull_none>, |
| 1936 | /* mac_txen */ |
| 1937 | <3 12 RK_FUNC_1 &pcfg_pull_none_13ma>, |
| 1938 | /* mac_clk */ |
| 1939 | <3 11 RK_FUNC_1 &pcfg_pull_none>, |
| 1940 | /* mac_rxer */ |
| 1941 | <3 10 RK_FUNC_1 &pcfg_pull_none>, |
| 1942 | /* mac_rxdv */ |
| 1943 | <3 9 RK_FUNC_1 &pcfg_pull_none>, |
| 1944 | /* mac_mdc */ |
| 1945 | <3 8 RK_FUNC_1 &pcfg_pull_none>, |
| 1946 | /* mac_rxd1 */ |
| 1947 | <3 7 RK_FUNC_1 &pcfg_pull_none>, |
| 1948 | /* mac_rxd0 */ |
| 1949 | <3 6 RK_FUNC_1 &pcfg_pull_none>, |
| 1950 | /* mac_txd1 */ |
| 1951 | <3 5 RK_FUNC_1 &pcfg_pull_none_13ma>, |
| 1952 | /* mac_txd0 */ |
| 1953 | <3 4 RK_FUNC_1 &pcfg_pull_none_13ma>; |
| 1954 | }; |
| 1955 | }; |
| 1956 | |
Jianqun Xu | f048b9a | 2016-04-27 15:54:51 +0800 | [diff] [blame] | 1957 | i2c0 { |
| 1958 | i2c0_xfer: i2c0-xfer { |
| 1959 | rockchip,pins = |
| 1960 | <1 15 RK_FUNC_2 &pcfg_pull_none>, |
| 1961 | <1 16 RK_FUNC_2 &pcfg_pull_none>; |
| 1962 | }; |
| 1963 | }; |
| 1964 | |
| 1965 | i2c1 { |
| 1966 | i2c1_xfer: i2c1-xfer { |
| 1967 | rockchip,pins = |
| 1968 | <4 2 RK_FUNC_1 &pcfg_pull_none>, |
| 1969 | <4 1 RK_FUNC_1 &pcfg_pull_none>; |
| 1970 | }; |
| 1971 | }; |
| 1972 | |
| 1973 | i2c2 { |
| 1974 | i2c2_xfer: i2c2-xfer { |
| 1975 | rockchip,pins = |
| 1976 | <2 1 RK_FUNC_2 &pcfg_pull_none_12ma>, |
| 1977 | <2 0 RK_FUNC_2 &pcfg_pull_none_12ma>; |
| 1978 | }; |
| 1979 | }; |
| 1980 | |
| 1981 | i2c3 { |
| 1982 | i2c3_xfer: i2c3-xfer { |
| 1983 | rockchip,pins = |
| 1984 | <4 17 RK_FUNC_1 &pcfg_pull_none>, |
| 1985 | <4 16 RK_FUNC_1 &pcfg_pull_none>; |
| 1986 | }; |
| 1987 | }; |
| 1988 | |
| 1989 | i2c4 { |
| 1990 | i2c4_xfer: i2c4-xfer { |
| 1991 | rockchip,pins = |
| 1992 | <1 12 RK_FUNC_1 &pcfg_pull_none>, |
| 1993 | <1 11 RK_FUNC_1 &pcfg_pull_none>; |
| 1994 | }; |
| 1995 | }; |
| 1996 | |
| 1997 | i2c5 { |
| 1998 | i2c5_xfer: i2c5-xfer { |
| 1999 | rockchip,pins = |
| 2000 | <3 11 RK_FUNC_2 &pcfg_pull_none>, |
| 2001 | <3 10 RK_FUNC_2 &pcfg_pull_none>; |
| 2002 | }; |
| 2003 | }; |
| 2004 | |
| 2005 | i2c6 { |
| 2006 | i2c6_xfer: i2c6-xfer { |
| 2007 | rockchip,pins = |
| 2008 | <2 10 RK_FUNC_2 &pcfg_pull_none>, |
| 2009 | <2 9 RK_FUNC_2 &pcfg_pull_none>; |
| 2010 | }; |
| 2011 | }; |
| 2012 | |
| 2013 | i2c7 { |
| 2014 | i2c7_xfer: i2c7-xfer { |
| 2015 | rockchip,pins = |
| 2016 | <2 8 RK_FUNC_2 &pcfg_pull_none>, |
| 2017 | <2 7 RK_FUNC_2 &pcfg_pull_none>; |
| 2018 | }; |
| 2019 | }; |
| 2020 | |
| 2021 | i2c8 { |
| 2022 | i2c8_xfer: i2c8-xfer { |
| 2023 | rockchip,pins = |
| 2024 | <1 21 RK_FUNC_1 &pcfg_pull_none>, |
| 2025 | <1 20 RK_FUNC_1 &pcfg_pull_none>; |
| 2026 | }; |
| 2027 | }; |
| 2028 | |
| 2029 | i2s0 { |
| 2030 | i2s0_8ch_bus: i2s0-8ch-bus { |
| 2031 | rockchip,pins = |
| 2032 | <3 24 RK_FUNC_1 &pcfg_pull_none>, |
| 2033 | <3 25 RK_FUNC_1 &pcfg_pull_none>, |
| 2034 | <3 26 RK_FUNC_1 &pcfg_pull_none>, |
| 2035 | <3 27 RK_FUNC_1 &pcfg_pull_none>, |
| 2036 | <3 28 RK_FUNC_1 &pcfg_pull_none>, |
| 2037 | <3 29 RK_FUNC_1 &pcfg_pull_none>, |
| 2038 | <3 30 RK_FUNC_1 &pcfg_pull_none>, |
| 2039 | <3 31 RK_FUNC_1 &pcfg_pull_none>, |
| 2040 | <4 0 RK_FUNC_1 &pcfg_pull_none>; |
| 2041 | }; |
| 2042 | }; |
| 2043 | |
| 2044 | i2s1 { |
| 2045 | i2s1_2ch_bus: i2s1-2ch-bus { |
| 2046 | rockchip,pins = |
| 2047 | <4 3 RK_FUNC_1 &pcfg_pull_none>, |
| 2048 | <4 4 RK_FUNC_1 &pcfg_pull_none>, |
| 2049 | <4 5 RK_FUNC_1 &pcfg_pull_none>, |
| 2050 | <4 6 RK_FUNC_1 &pcfg_pull_none>, |
| 2051 | <4 7 RK_FUNC_1 &pcfg_pull_none>; |
| 2052 | }; |
| 2053 | }; |
| 2054 | |
Kever Yang | b74a2e9 | 2017-04-12 15:10:44 +0800 | [diff] [blame] | 2055 | sdio0 { |
| 2056 | sdio0_bus1: sdio0-bus1 { |
| 2057 | rockchip,pins = |
| 2058 | <2 RK_PC4 RK_FUNC_1 &pcfg_pull_up>; |
| 2059 | }; |
| 2060 | |
| 2061 | sdio0_bus4: sdio0-bus4 { |
| 2062 | rockchip,pins = |
| 2063 | <2 RK_PC4 RK_FUNC_1 &pcfg_pull_up>, |
| 2064 | <2 RK_PC5 RK_FUNC_1 &pcfg_pull_up>, |
| 2065 | <2 RK_PC6 RK_FUNC_1 &pcfg_pull_up>, |
| 2066 | <2 RK_PC7 RK_FUNC_1 &pcfg_pull_up>; |
| 2067 | }; |
| 2068 | |
| 2069 | sdio0_cmd: sdio0-cmd { |
| 2070 | rockchip,pins = |
| 2071 | <2 RK_PD0 RK_FUNC_1 &pcfg_pull_up>; |
| 2072 | }; |
| 2073 | |
| 2074 | sdio0_clk: sdio0-clk { |
| 2075 | rockchip,pins = |
| 2076 | <2 RK_PD1 RK_FUNC_1 &pcfg_pull_none>; |
| 2077 | }; |
| 2078 | |
| 2079 | sdio0_cd: sdio0-cd { |
| 2080 | rockchip,pins = |
| 2081 | <2 RK_PD2 RK_FUNC_1 &pcfg_pull_up>; |
| 2082 | }; |
| 2083 | |
| 2084 | sdio0_pwr: sdio0-pwr { |
| 2085 | rockchip,pins = |
| 2086 | <2 RK_PD3 RK_FUNC_1 &pcfg_pull_up>; |
| 2087 | }; |
| 2088 | |
| 2089 | sdio0_bkpwr: sdio0-bkpwr { |
| 2090 | rockchip,pins = |
| 2091 | <2 RK_PD4 RK_FUNC_1 &pcfg_pull_up>; |
| 2092 | }; |
| 2093 | |
| 2094 | sdio0_wp: sdio0-wp { |
| 2095 | rockchip,pins = |
| 2096 | <0 RK_PA3 RK_FUNC_1 &pcfg_pull_up>; |
| 2097 | }; |
| 2098 | |
| 2099 | sdio0_int: sdio0-int { |
| 2100 | rockchip,pins = |
| 2101 | <0 RK_PA4 RK_FUNC_1 &pcfg_pull_up>; |
| 2102 | }; |
| 2103 | }; |
| 2104 | |
| 2105 | sdmmc { |
| 2106 | sdmmc_bus1: sdmmc-bus1 { |
| 2107 | rockchip,pins = |
| 2108 | <4 RK_PB0 RK_FUNC_1 &pcfg_pull_up>; |
| 2109 | }; |
| 2110 | |
| 2111 | sdmmc_bus4: sdmmc-bus4 { |
| 2112 | rockchip,pins = |
| 2113 | <4 RK_PB0 RK_FUNC_1 &pcfg_pull_up>, |
| 2114 | <4 RK_PB1 RK_FUNC_1 &pcfg_pull_up>, |
| 2115 | <4 RK_PB2 RK_FUNC_1 &pcfg_pull_up>, |
| 2116 | <4 RK_PB3 RK_FUNC_1 &pcfg_pull_up>; |
| 2117 | }; |
| 2118 | |
| 2119 | sdmmc_clk: sdmmc-clk { |
| 2120 | rockchip,pins = |
| 2121 | <4 RK_PB4 RK_FUNC_1 &pcfg_pull_none>; |
| 2122 | }; |
| 2123 | |
| 2124 | sdmmc_cmd: sdmmc-cmd { |
| 2125 | rockchip,pins = |
| 2126 | <4 RK_PB5 RK_FUNC_1 &pcfg_pull_up>; |
| 2127 | }; |
| 2128 | |
Klaus Goger | 6122308 | 2017-06-27 21:58:31 +0200 | [diff] [blame] | 2129 | sdmmc_cd: sdmmc-cd { |
Kever Yang | b74a2e9 | 2017-04-12 15:10:44 +0800 | [diff] [blame] | 2130 | rockchip,pins = |
| 2131 | <0 RK_PA7 RK_FUNC_1 &pcfg_pull_up>; |
| 2132 | }; |
| 2133 | |
| 2134 | sdmmc_wp: sdmmc-wp { |
| 2135 | rockchip,pins = |
| 2136 | <0 RK_PB0 RK_FUNC_1 &pcfg_pull_up>; |
| 2137 | }; |
| 2138 | }; |
| 2139 | |
Douglas Anderson | 5d26ad9 | 2016-06-14 13:21:11 -0700 | [diff] [blame] | 2140 | sleep { |
| 2141 | ap_pwroff: ap-pwroff { |
| 2142 | rockchip,pins = <1 5 RK_FUNC_1 &pcfg_pull_none>; |
| 2143 | }; |
| 2144 | |
| 2145 | ddrio_pwroff: ddrio-pwroff { |
| 2146 | rockchip,pins = <0 1 RK_FUNC_1 &pcfg_pull_none>; |
| 2147 | }; |
| 2148 | }; |
| 2149 | |
Jianqun Xu | f048b9a | 2016-04-27 15:54:51 +0800 | [diff] [blame] | 2150 | spdif { |
| 2151 | spdif_bus: spdif-bus { |
| 2152 | rockchip,pins = |
| 2153 | <4 21 RK_FUNC_1 &pcfg_pull_none>; |
| 2154 | }; |
Kever Yang | b74a2e9 | 2017-04-12 15:10:44 +0800 | [diff] [blame] | 2155 | |
| 2156 | spdif_bus_1: spdif-bus-1 { |
| 2157 | rockchip,pins = |
| 2158 | <3 RK_PC0 RK_FUNC_3 &pcfg_pull_none>; |
| 2159 | }; |
Jianqun Xu | f048b9a | 2016-04-27 15:54:51 +0800 | [diff] [blame] | 2160 | }; |
| 2161 | |
| 2162 | spi0 { |
| 2163 | spi0_clk: spi0-clk { |
| 2164 | rockchip,pins = |
| 2165 | <3 6 RK_FUNC_2 &pcfg_pull_up>; |
| 2166 | }; |
| 2167 | spi0_cs0: spi0-cs0 { |
| 2168 | rockchip,pins = |
| 2169 | <3 7 RK_FUNC_2 &pcfg_pull_up>; |
| 2170 | }; |
| 2171 | spi0_cs1: spi0-cs1 { |
| 2172 | rockchip,pins = |
| 2173 | <3 8 RK_FUNC_2 &pcfg_pull_up>; |
| 2174 | }; |
| 2175 | spi0_tx: spi0-tx { |
| 2176 | rockchip,pins = |
| 2177 | <3 5 RK_FUNC_2 &pcfg_pull_up>; |
| 2178 | }; |
| 2179 | spi0_rx: spi0-rx { |
| 2180 | rockchip,pins = |
| 2181 | <3 4 RK_FUNC_2 &pcfg_pull_up>; |
| 2182 | }; |
| 2183 | }; |
| 2184 | |
| 2185 | spi1 { |
| 2186 | spi1_clk: spi1-clk { |
| 2187 | rockchip,pins = |
| 2188 | <1 9 RK_FUNC_2 &pcfg_pull_up>; |
| 2189 | }; |
| 2190 | spi1_cs0: spi1-cs0 { |
| 2191 | rockchip,pins = |
| 2192 | <1 10 RK_FUNC_2 &pcfg_pull_up>; |
| 2193 | }; |
| 2194 | spi1_rx: spi1-rx { |
| 2195 | rockchip,pins = |
| 2196 | <1 7 RK_FUNC_2 &pcfg_pull_up>; |
| 2197 | }; |
| 2198 | spi1_tx: spi1-tx { |
| 2199 | rockchip,pins = |
| 2200 | <1 8 RK_FUNC_2 &pcfg_pull_up>; |
| 2201 | }; |
| 2202 | }; |
| 2203 | |
| 2204 | spi2 { |
| 2205 | spi2_clk: spi2-clk { |
| 2206 | rockchip,pins = |
| 2207 | <2 11 RK_FUNC_1 &pcfg_pull_up>; |
| 2208 | }; |
| 2209 | spi2_cs0: spi2-cs0 { |
| 2210 | rockchip,pins = |
| 2211 | <2 12 RK_FUNC_1 &pcfg_pull_up>; |
| 2212 | }; |
| 2213 | spi2_rx: spi2-rx { |
| 2214 | rockchip,pins = |
| 2215 | <2 9 RK_FUNC_1 &pcfg_pull_up>; |
| 2216 | }; |
| 2217 | spi2_tx: spi2-tx { |
| 2218 | rockchip,pins = |
| 2219 | <2 10 RK_FUNC_1 &pcfg_pull_up>; |
| 2220 | }; |
| 2221 | }; |
| 2222 | |
| 2223 | spi3 { |
| 2224 | spi3_clk: spi3-clk { |
| 2225 | rockchip,pins = |
| 2226 | <1 17 RK_FUNC_1 &pcfg_pull_up>; |
| 2227 | }; |
| 2228 | spi3_cs0: spi3-cs0 { |
| 2229 | rockchip,pins = |
| 2230 | <1 18 RK_FUNC_1 &pcfg_pull_up>; |
| 2231 | }; |
| 2232 | spi3_rx: spi3-rx { |
| 2233 | rockchip,pins = |
| 2234 | <1 15 RK_FUNC_1 &pcfg_pull_up>; |
| 2235 | }; |
| 2236 | spi3_tx: spi3-tx { |
| 2237 | rockchip,pins = |
| 2238 | <1 16 RK_FUNC_1 &pcfg_pull_up>; |
| 2239 | }; |
| 2240 | }; |
| 2241 | |
| 2242 | spi4 { |
| 2243 | spi4_clk: spi4-clk { |
| 2244 | rockchip,pins = |
| 2245 | <3 2 RK_FUNC_2 &pcfg_pull_up>; |
| 2246 | }; |
| 2247 | spi4_cs0: spi4-cs0 { |
| 2248 | rockchip,pins = |
| 2249 | <3 3 RK_FUNC_2 &pcfg_pull_up>; |
| 2250 | }; |
| 2251 | spi4_rx: spi4-rx { |
| 2252 | rockchip,pins = |
| 2253 | <3 0 RK_FUNC_2 &pcfg_pull_up>; |
| 2254 | }; |
| 2255 | spi4_tx: spi4-tx { |
| 2256 | rockchip,pins = |
| 2257 | <3 1 RK_FUNC_2 &pcfg_pull_up>; |
| 2258 | }; |
| 2259 | }; |
| 2260 | |
| 2261 | spi5 { |
| 2262 | spi5_clk: spi5-clk { |
| 2263 | rockchip,pins = |
| 2264 | <2 22 RK_FUNC_2 &pcfg_pull_up>; |
| 2265 | }; |
| 2266 | spi5_cs0: spi5-cs0 { |
| 2267 | rockchip,pins = |
| 2268 | <2 23 RK_FUNC_2 &pcfg_pull_up>; |
| 2269 | }; |
| 2270 | spi5_rx: spi5-rx { |
| 2271 | rockchip,pins = |
| 2272 | <2 20 RK_FUNC_2 &pcfg_pull_up>; |
| 2273 | }; |
| 2274 | spi5_tx: spi5-tx { |
| 2275 | rockchip,pins = |
| 2276 | <2 21 RK_FUNC_2 &pcfg_pull_up>; |
| 2277 | }; |
| 2278 | }; |
| 2279 | |
Caesar Wang | 95c27ba | 2016-05-25 15:39:35 +0800 | [diff] [blame] | 2280 | tsadc { |
| 2281 | otp_gpio: otp-gpio { |
| 2282 | rockchip,pins = <1 6 RK_FUNC_GPIO &pcfg_pull_none>; |
| 2283 | }; |
| 2284 | |
| 2285 | otp_out: otp-out { |
| 2286 | rockchip,pins = <1 6 RK_FUNC_1 &pcfg_pull_none>; |
| 2287 | }; |
| 2288 | }; |
| 2289 | |
Jianqun Xu | f048b9a | 2016-04-27 15:54:51 +0800 | [diff] [blame] | 2290 | uart0 { |
| 2291 | uart0_xfer: uart0-xfer { |
| 2292 | rockchip,pins = |
| 2293 | <2 16 RK_FUNC_1 &pcfg_pull_up>, |
| 2294 | <2 17 RK_FUNC_1 &pcfg_pull_none>; |
| 2295 | }; |
| 2296 | |
| 2297 | uart0_cts: uart0-cts { |
| 2298 | rockchip,pins = |
| 2299 | <2 18 RK_FUNC_1 &pcfg_pull_none>; |
| 2300 | }; |
| 2301 | |
| 2302 | uart0_rts: uart0-rts { |
| 2303 | rockchip,pins = |
| 2304 | <2 19 RK_FUNC_1 &pcfg_pull_none>; |
| 2305 | }; |
| 2306 | }; |
| 2307 | |
| 2308 | uart1 { |
| 2309 | uart1_xfer: uart1-xfer { |
| 2310 | rockchip,pins = |
| 2311 | <3 12 RK_FUNC_2 &pcfg_pull_up>, |
| 2312 | <3 13 RK_FUNC_2 &pcfg_pull_none>; |
| 2313 | }; |
| 2314 | }; |
| 2315 | |
| 2316 | uart2a { |
| 2317 | uart2a_xfer: uart2a-xfer { |
| 2318 | rockchip,pins = |
| 2319 | <4 8 RK_FUNC_2 &pcfg_pull_up>, |
| 2320 | <4 9 RK_FUNC_2 &pcfg_pull_none>; |
| 2321 | }; |
| 2322 | }; |
| 2323 | |
| 2324 | uart2b { |
| 2325 | uart2b_xfer: uart2b-xfer { |
| 2326 | rockchip,pins = |
| 2327 | <4 16 RK_FUNC_2 &pcfg_pull_up>, |
| 2328 | <4 17 RK_FUNC_2 &pcfg_pull_none>; |
| 2329 | }; |
| 2330 | }; |
| 2331 | |
| 2332 | uart2c { |
| 2333 | uart2c_xfer: uart2c-xfer { |
| 2334 | rockchip,pins = |
| 2335 | <4 19 RK_FUNC_1 &pcfg_pull_up>, |
| 2336 | <4 20 RK_FUNC_1 &pcfg_pull_none>; |
| 2337 | }; |
| 2338 | }; |
| 2339 | |
| 2340 | uart3 { |
| 2341 | uart3_xfer: uart3-xfer { |
| 2342 | rockchip,pins = |
| 2343 | <3 14 RK_FUNC_2 &pcfg_pull_up>, |
| 2344 | <3 15 RK_FUNC_2 &pcfg_pull_none>; |
| 2345 | }; |
| 2346 | |
| 2347 | uart3_cts: uart3-cts { |
| 2348 | rockchip,pins = |
| 2349 | <3 18 RK_FUNC_2 &pcfg_pull_none>; |
| 2350 | }; |
| 2351 | |
| 2352 | uart3_rts: uart3-rts { |
| 2353 | rockchip,pins = |
| 2354 | <3 19 RK_FUNC_2 &pcfg_pull_none>; |
| 2355 | }; |
| 2356 | }; |
| 2357 | |
| 2358 | uart4 { |
| 2359 | uart4_xfer: uart4-xfer { |
| 2360 | rockchip,pins = |
| 2361 | <1 7 RK_FUNC_1 &pcfg_pull_up>, |
| 2362 | <1 8 RK_FUNC_1 &pcfg_pull_none>; |
| 2363 | }; |
| 2364 | }; |
| 2365 | |
| 2366 | uarthdcp { |
| 2367 | uarthdcp_xfer: uarthdcp-xfer { |
| 2368 | rockchip,pins = |
| 2369 | <4 21 RK_FUNC_2 &pcfg_pull_up>, |
| 2370 | <4 22 RK_FUNC_2 &pcfg_pull_none>; |
| 2371 | }; |
| 2372 | }; |
| 2373 | |
| 2374 | pwm0 { |
| 2375 | pwm0_pin: pwm0-pin { |
| 2376 | rockchip,pins = |
| 2377 | <4 18 RK_FUNC_1 &pcfg_pull_none>; |
| 2378 | }; |
| 2379 | |
| 2380 | vop0_pwm_pin: vop0-pwm-pin { |
| 2381 | rockchip,pins = |
| 2382 | <4 18 RK_FUNC_2 &pcfg_pull_none>; |
| 2383 | }; |
| 2384 | }; |
| 2385 | |
| 2386 | pwm1 { |
| 2387 | pwm1_pin: pwm1-pin { |
| 2388 | rockchip,pins = |
| 2389 | <4 22 RK_FUNC_1 &pcfg_pull_none>; |
| 2390 | }; |
| 2391 | |
| 2392 | vop1_pwm_pin: vop1-pwm-pin { |
| 2393 | rockchip,pins = |
| 2394 | <4 18 RK_FUNC_3 &pcfg_pull_none>; |
| 2395 | }; |
| 2396 | }; |
| 2397 | |
| 2398 | pwm2 { |
| 2399 | pwm2_pin: pwm2-pin { |
| 2400 | rockchip,pins = |
| 2401 | <1 19 RK_FUNC_1 &pcfg_pull_none>; |
| 2402 | }; |
| 2403 | }; |
| 2404 | |
| 2405 | pwm3a { |
| 2406 | pwm3a_pin: pwm3a-pin { |
| 2407 | rockchip,pins = |
| 2408 | <0 6 RK_FUNC_1 &pcfg_pull_none>; |
| 2409 | }; |
| 2410 | }; |
| 2411 | |
| 2412 | pwm3b { |
| 2413 | pwm3b_pin: pwm3b-pin { |
| 2414 | rockchip,pins = |
| 2415 | <1 14 RK_FUNC_1 &pcfg_pull_none>; |
| 2416 | }; |
| 2417 | }; |
Shawn Lin | 85aaa57 | 2016-08-19 11:24:28 +0800 | [diff] [blame] | 2418 | |
Kever Yang | b74a2e9 | 2017-04-12 15:10:44 +0800 | [diff] [blame] | 2419 | hdmi { |
| 2420 | hdmi_i2c_xfer: hdmi-i2c-xfer { |
| 2421 | rockchip,pins = |
| 2422 | <4 RK_PC1 RK_FUNC_3 &pcfg_pull_none>, |
| 2423 | <4 RK_PC0 RK_FUNC_3 &pcfg_pull_none>; |
| 2424 | }; |
| 2425 | |
| 2426 | hdmi_cec: hdmi-cec { |
| 2427 | rockchip,pins = |
| 2428 | <4 RK_PC7 RK_FUNC_1 &pcfg_pull_none>; |
| 2429 | }; |
| 2430 | }; |
| 2431 | |
Shawn Lin | 85aaa57 | 2016-08-19 11:24:28 +0800 | [diff] [blame] | 2432 | pcie { |
Kever Yang | b74a2e9 | 2017-04-12 15:10:44 +0800 | [diff] [blame] | 2433 | pcie_clkreqn_cpm: pci-clkreqn-cpm { |
| 2434 | rockchip,pins = |
| 2435 | <2 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>; |
| 2436 | }; |
| 2437 | |
| 2438 | pcie_clkreqnb_cpm: pci-clkreqnb-cpm { |
| 2439 | rockchip,pins = |
| 2440 | <4 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>; |
| 2441 | }; |
Shawn Lin | 85aaa57 | 2016-08-19 11:24:28 +0800 | [diff] [blame] | 2442 | }; |
| 2443 | |
Jianqun Xu | f048b9a | 2016-04-27 15:54:51 +0800 | [diff] [blame] | 2444 | }; |
| 2445 | }; |