Jeffy Chen | 9848ebe | 2015-12-11 09:30:51 +0800 | [diff] [blame] | 1 | /* |
| 2 | * This file is dual-licensed: you can use it either under the terms |
| 3 | * of the GPL or the X11 license, at your option. Note that this dual |
| 4 | * licensing only applies to this file, and not this project as a |
| 5 | * whole. |
| 6 | * |
| 7 | * a) This file is free software; you can redistribute it and/or |
| 8 | * modify it under the terms of the GNU General Public License as |
| 9 | * published by the Free Software Foundation; either version 2 of the |
| 10 | * License, or (at your option) any later version. |
| 11 | * |
| 12 | * This file is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 | * GNU General Public License for more details. |
| 16 | * |
| 17 | * Or, alternatively, |
| 18 | * |
| 19 | * b) Permission is hereby granted, free of charge, to any person |
| 20 | * obtaining a copy of this software and associated documentation |
| 21 | * files (the "Software"), to deal in the Software without |
| 22 | * restriction, including without limitation the rights to use, |
| 23 | * copy, modify, merge, publish, distribute, sublicense, and/or |
| 24 | * sell copies of the Software, and to permit persons to whom the |
| 25 | * Software is furnished to do so, subject to the following |
| 26 | * conditions: |
| 27 | * |
| 28 | * The above copyright notice and this permission notice shall be |
| 29 | * included in all copies or substantial portions of the Software. |
| 30 | * |
| 31 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
| 32 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
| 33 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
| 34 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
| 35 | * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
| 36 | * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
| 37 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
| 38 | * OTHER DEALINGS IN THE SOFTWARE. |
| 39 | */ |
| 40 | |
| 41 | #include <dt-bindings/gpio/gpio.h> |
| 42 | #include <dt-bindings/interrupt-controller/irq.h> |
| 43 | #include <dt-bindings/interrupt-controller/arm-gic.h> |
| 44 | #include <dt-bindings/pinctrl/rockchip.h> |
| 45 | #include <dt-bindings/clock/rk3228-cru.h> |
Caesar Wang | 7796031 | 2016-02-15 15:33:32 +0800 | [diff] [blame] | 46 | #include <dt-bindings/thermal/thermal.h> |
Jeffy Chen | 9848ebe | 2015-12-11 09:30:51 +0800 | [diff] [blame] | 47 | |
| 48 | / { |
Javier Martinez Canillas | 0193273 | 2016-09-09 10:01:03 -0400 | [diff] [blame] | 49 | #address-cells = <1>; |
| 50 | #size-cells = <1>; |
| 51 | |
Jeffy Chen | 9848ebe | 2015-12-11 09:30:51 +0800 | [diff] [blame] | 52 | interrupt-parent = <&gic>; |
| 53 | |
| 54 | aliases { |
| 55 | serial0 = &uart0; |
| 56 | serial1 = &uart1; |
| 57 | serial2 = &uart2; |
Huibin Hong | febdf63 | 2017-08-03 10:36:49 +0800 | [diff] [blame] | 58 | spi0 = &spi0; |
Jeffy Chen | 9848ebe | 2015-12-11 09:30:51 +0800 | [diff] [blame] | 59 | }; |
| 60 | |
| 61 | cpus { |
| 62 | #address-cells = <1>; |
| 63 | #size-cells = <0>; |
| 64 | |
| 65 | cpu0: cpu@f00 { |
| 66 | device_type = "cpu"; |
| 67 | compatible = "arm,cortex-a7"; |
| 68 | reg = <0xf00>; |
| 69 | resets = <&cru SRST_CORE0>; |
Finley Xiao | 9f12da4 | 2017-05-17 18:16:15 +0800 | [diff] [blame] | 70 | operating-points-v2 = <&cpu0_opp_table>; |
Caesar Wang | 7796031 | 2016-02-15 15:33:32 +0800 | [diff] [blame] | 71 | #cooling-cells = <2>; /* min followed by max */ |
Jeffy Chen | 9848ebe | 2015-12-11 09:30:51 +0800 | [diff] [blame] | 72 | clock-latency = <40000>; |
| 73 | clocks = <&cru ARMCLK>; |
Frank Wang | 0ae9214 | 2017-06-22 18:29:56 +0800 | [diff] [blame] | 74 | enable-method = "psci"; |
Jeffy Chen | 9848ebe | 2015-12-11 09:30:51 +0800 | [diff] [blame] | 75 | }; |
| 76 | |
| 77 | cpu1: cpu@f01 { |
| 78 | device_type = "cpu"; |
| 79 | compatible = "arm,cortex-a7"; |
| 80 | reg = <0xf01>; |
| 81 | resets = <&cru SRST_CORE1>; |
Finley Xiao | 9f12da4 | 2017-05-17 18:16:15 +0800 | [diff] [blame] | 82 | operating-points-v2 = <&cpu0_opp_table>; |
Frank Wang | 0ae9214 | 2017-06-22 18:29:56 +0800 | [diff] [blame] | 83 | enable-method = "psci"; |
Jeffy Chen | 9848ebe | 2015-12-11 09:30:51 +0800 | [diff] [blame] | 84 | }; |
| 85 | |
| 86 | cpu2: cpu@f02 { |
| 87 | device_type = "cpu"; |
| 88 | compatible = "arm,cortex-a7"; |
| 89 | reg = <0xf02>; |
| 90 | resets = <&cru SRST_CORE2>; |
Finley Xiao | 9f12da4 | 2017-05-17 18:16:15 +0800 | [diff] [blame] | 91 | operating-points-v2 = <&cpu0_opp_table>; |
Frank Wang | 0ae9214 | 2017-06-22 18:29:56 +0800 | [diff] [blame] | 92 | enable-method = "psci"; |
Jeffy Chen | 9848ebe | 2015-12-11 09:30:51 +0800 | [diff] [blame] | 93 | }; |
| 94 | |
| 95 | cpu3: cpu@f03 { |
| 96 | device_type = "cpu"; |
| 97 | compatible = "arm,cortex-a7"; |
| 98 | reg = <0xf03>; |
| 99 | resets = <&cru SRST_CORE3>; |
Finley Xiao | 9f12da4 | 2017-05-17 18:16:15 +0800 | [diff] [blame] | 100 | operating-points-v2 = <&cpu0_opp_table>; |
Frank Wang | 0ae9214 | 2017-06-22 18:29:56 +0800 | [diff] [blame] | 101 | enable-method = "psci"; |
Finley Xiao | 9f12da4 | 2017-05-17 18:16:15 +0800 | [diff] [blame] | 102 | }; |
| 103 | }; |
| 104 | |
| 105 | cpu0_opp_table: opp_table0 { |
| 106 | compatible = "operating-points-v2"; |
| 107 | opp-shared; |
| 108 | |
| 109 | opp-408000000 { |
| 110 | opp-hz = /bits/ 64 <408000000>; |
| 111 | opp-microvolt = <950000>; |
| 112 | clock-latency-ns = <40000>; |
| 113 | opp-suspend; |
| 114 | }; |
| 115 | opp-600000000 { |
| 116 | opp-hz = /bits/ 64 <600000000>; |
| 117 | opp-microvolt = <975000>; |
| 118 | }; |
| 119 | opp-816000000 { |
| 120 | opp-hz = /bits/ 64 <816000000>; |
| 121 | opp-microvolt = <1000000>; |
| 122 | }; |
| 123 | opp-1008000000 { |
| 124 | opp-hz = /bits/ 64 <1008000000>; |
| 125 | opp-microvolt = <1175000>; |
| 126 | }; |
| 127 | opp-1200000000 { |
| 128 | opp-hz = /bits/ 64 <1200000000>; |
| 129 | opp-microvolt = <1275000>; |
Jeffy Chen | 9848ebe | 2015-12-11 09:30:51 +0800 | [diff] [blame] | 130 | }; |
| 131 | }; |
| 132 | |
| 133 | amba { |
Masahiro Yamada | 2ef7d5f | 2016-03-09 13:26:45 +0900 | [diff] [blame] | 134 | compatible = "simple-bus"; |
Jeffy Chen | 9848ebe | 2015-12-11 09:30:51 +0800 | [diff] [blame] | 135 | #address-cells = <1>; |
| 136 | #size-cells = <1>; |
| 137 | ranges; |
| 138 | |
| 139 | pdma: pdma@110f0000 { |
| 140 | compatible = "arm,pl330", "arm,primecell"; |
| 141 | reg = <0x110f0000 0x4000>; |
| 142 | interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>, |
| 143 | <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>; |
| 144 | #dma-cells = <1>; |
| 145 | clocks = <&cru ACLK_DMAC>; |
| 146 | clock-names = "apb_pclk"; |
| 147 | }; |
| 148 | }; |
| 149 | |
| 150 | arm-pmu { |
| 151 | compatible = "arm,cortex-a7-pmu"; |
| 152 | interrupts = <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>, |
| 153 | <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>, |
| 154 | <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>, |
| 155 | <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>; |
| 156 | interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>; |
| 157 | }; |
| 158 | |
Frank Wang | 0ae9214 | 2017-06-22 18:29:56 +0800 | [diff] [blame] | 159 | psci { |
| 160 | compatible = "arm,psci-1.0", "arm,psci-0.2"; |
| 161 | method = "smc"; |
| 162 | }; |
| 163 | |
Jeffy Chen | 9848ebe | 2015-12-11 09:30:51 +0800 | [diff] [blame] | 164 | timer { |
| 165 | compatible = "arm,armv7-timer"; |
| 166 | arm,cpu-registers-not-fw-configured; |
| 167 | interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>, |
| 168 | <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>, |
| 169 | <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>, |
| 170 | <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>; |
| 171 | clock-frequency = <24000000>; |
| 172 | }; |
| 173 | |
| 174 | xin24m: oscillator { |
| 175 | compatible = "fixed-clock"; |
| 176 | clock-frequency = <24000000>; |
| 177 | clock-output-names = "xin24m"; |
| 178 | #clock-cells = <0>; |
| 179 | }; |
| 180 | |
Xing Zheng | ccada24 | 2016-06-22 11:16:51 +0800 | [diff] [blame] | 181 | i2s1: i2s1@100b0000 { |
| 182 | compatible = "rockchip,rk3228-i2s", "rockchip,rk3066-i2s"; |
| 183 | reg = <0x100b0000 0x4000>; |
| 184 | interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>; |
| 185 | #address-cells = <1>; |
| 186 | #size-cells = <0>; |
| 187 | clock-names = "i2s_clk", "i2s_hclk"; |
| 188 | clocks = <&cru SCLK_I2S1>, <&cru HCLK_I2S1_8CH>; |
| 189 | dmas = <&pdma 14>, <&pdma 15>; |
| 190 | dma-names = "tx", "rx"; |
| 191 | pinctrl-names = "default"; |
| 192 | pinctrl-0 = <&i2s1_bus>; |
| 193 | status = "disabled"; |
| 194 | }; |
| 195 | |
| 196 | i2s0: i2s0@100c0000 { |
| 197 | compatible = "rockchip,rk3228-i2s", "rockchip,rk3066-i2s"; |
| 198 | reg = <0x100c0000 0x4000>; |
| 199 | interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>; |
| 200 | #address-cells = <1>; |
| 201 | #size-cells = <0>; |
| 202 | clock-names = "i2s_clk", "i2s_hclk"; |
| 203 | clocks = <&cru SCLK_I2S0>, <&cru HCLK_I2S0_8CH>; |
| 204 | dmas = <&pdma 11>, <&pdma 12>; |
| 205 | dma-names = "tx", "rx"; |
| 206 | status = "disabled"; |
| 207 | }; |
| 208 | |
Sugar Zhang | 4b456d2 | 2017-06-09 15:59:33 +0800 | [diff] [blame] | 209 | spdif: spdif@100d0000 { |
| 210 | compatible = "rockchip,rk3228-spdif"; |
| 211 | reg = <0x100d0000 0x1000>; |
| 212 | interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>; |
| 213 | clocks = <&cru SCLK_SPDIF>, <&cru HCLK_SPDIF_8CH>; |
| 214 | clock-names = "mclk", "hclk"; |
| 215 | dmas = <&pdma 10>; |
| 216 | dma-names = "tx"; |
| 217 | pinctrl-names = "default"; |
| 218 | pinctrl-0 = <&spdif_tx>; |
| 219 | status = "disabled"; |
| 220 | }; |
| 221 | |
Xing Zheng | ccada24 | 2016-06-22 11:16:51 +0800 | [diff] [blame] | 222 | i2s2: i2s2@100e0000 { |
| 223 | compatible = "rockchip,rk3228-i2s", "rockchip,rk3066-i2s"; |
| 224 | reg = <0x100e0000 0x4000>; |
| 225 | interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>; |
| 226 | #address-cells = <1>; |
| 227 | #size-cells = <0>; |
| 228 | clock-names = "i2s_clk", "i2s_hclk"; |
| 229 | clocks = <&cru SCLK_I2S2>, <&cru HCLK_I2S2_2CH>; |
| 230 | dmas = <&pdma 0>, <&pdma 1>; |
| 231 | dma-names = "tx", "rx"; |
| 232 | status = "disabled"; |
| 233 | }; |
| 234 | |
Jeffy Chen | 9848ebe | 2015-12-11 09:30:51 +0800 | [diff] [blame] | 235 | grf: syscon@11000000 { |
Shawn Lin | 692f492 | 2018-02-07 14:20:02 +0800 | [diff] [blame] | 236 | compatible = "rockchip,rk3228-grf", "syscon", "simple-mfd"; |
Jeffy Chen | 9848ebe | 2015-12-11 09:30:51 +0800 | [diff] [blame] | 237 | reg = <0x11000000 0x1000>; |
William Wu | 3880af4 | 2017-06-02 15:04:24 +0800 | [diff] [blame] | 238 | #address-cells = <1>; |
| 239 | #size-cells = <1>; |
| 240 | |
David Wu | 83086ad | 2017-06-22 18:32:23 +0800 | [diff] [blame] | 241 | io_domains: io-domains { |
| 242 | compatible = "rockchip,rk3228-io-voltage-domain"; |
| 243 | status = "disabled"; |
| 244 | }; |
| 245 | |
William Wu | 3880af4 | 2017-06-02 15:04:24 +0800 | [diff] [blame] | 246 | u2phy0: usb2-phy@760 { |
| 247 | compatible = "rockchip,rk3228-usb2phy"; |
| 248 | reg = <0x0760 0x0c>; |
| 249 | clocks = <&cru SCLK_OTGPHY0>; |
| 250 | clock-names = "phyclk"; |
| 251 | clock-output-names = "usb480m_phy0"; |
| 252 | #clock-cells = <0>; |
| 253 | status = "disabled"; |
| 254 | |
| 255 | u2phy0_otg: otg-port { |
| 256 | interrupts = <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>, |
| 257 | <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>, |
| 258 | <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>; |
| 259 | interrupt-names = "otg-bvalid", "otg-id", |
| 260 | "linestate"; |
| 261 | #phy-cells = <0>; |
| 262 | status = "disabled"; |
| 263 | }; |
| 264 | |
| 265 | u2phy0_host: host-port { |
| 266 | interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>; |
| 267 | interrupt-names = "linestate"; |
| 268 | #phy-cells = <0>; |
| 269 | status = "disabled"; |
| 270 | }; |
| 271 | }; |
| 272 | |
| 273 | u2phy1: usb2-phy@800 { |
| 274 | compatible = "rockchip,rk3228-usb2phy"; |
| 275 | reg = <0x0800 0x0c>; |
| 276 | clocks = <&cru SCLK_OTGPHY1>; |
| 277 | clock-names = "phyclk"; |
| 278 | clock-output-names = "usb480m_phy1"; |
| 279 | #clock-cells = <0>; |
| 280 | status = "disabled"; |
| 281 | |
| 282 | u2phy1_otg: otg-port { |
| 283 | interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>; |
| 284 | interrupt-names = "linestate"; |
| 285 | #phy-cells = <0>; |
| 286 | status = "disabled"; |
| 287 | }; |
| 288 | |
| 289 | u2phy1_host: host-port { |
| 290 | interrupts = <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>; |
| 291 | interrupt-names = "linestate"; |
| 292 | #phy-cells = <0>; |
| 293 | status = "disabled"; |
| 294 | }; |
| 295 | }; |
Jeffy Chen | 9848ebe | 2015-12-11 09:30:51 +0800 | [diff] [blame] | 296 | }; |
| 297 | |
| 298 | uart0: serial@11010000 { |
| 299 | compatible = "snps,dw-apb-uart"; |
| 300 | reg = <0x11010000 0x100>; |
| 301 | interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>; |
| 302 | clock-frequency = <24000000>; |
| 303 | clocks = <&cru SCLK_UART0>, <&cru PCLK_UART0>; |
| 304 | clock-names = "baudclk", "apb_pclk"; |
| 305 | pinctrl-names = "default"; |
| 306 | pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>; |
| 307 | reg-shift = <2>; |
| 308 | reg-io-width = <4>; |
| 309 | status = "disabled"; |
| 310 | }; |
| 311 | |
| 312 | uart1: serial@11020000 { |
| 313 | compatible = "snps,dw-apb-uart"; |
| 314 | reg = <0x11020000 0x100>; |
| 315 | interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>; |
| 316 | clock-frequency = <24000000>; |
| 317 | clocks = <&cru SCLK_UART1>, <&cru PCLK_UART1>; |
| 318 | clock-names = "baudclk", "apb_pclk"; |
| 319 | pinctrl-names = "default"; |
| 320 | pinctrl-0 = <&uart1_xfer>; |
| 321 | reg-shift = <2>; |
| 322 | reg-io-width = <4>; |
| 323 | status = "disabled"; |
| 324 | }; |
| 325 | |
| 326 | uart2: serial@11030000 { |
| 327 | compatible = "snps,dw-apb-uart"; |
| 328 | reg = <0x11030000 0x100>; |
| 329 | interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>; |
| 330 | clock-frequency = <24000000>; |
| 331 | clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>; |
| 332 | clock-names = "baudclk", "apb_pclk"; |
| 333 | pinctrl-names = "default"; |
| 334 | pinctrl-0 = <&uart2_xfer>; |
| 335 | reg-shift = <2>; |
| 336 | reg-io-width = <4>; |
| 337 | status = "disabled"; |
| 338 | }; |
| 339 | |
Finley Xiao | 9098be6 | 2017-06-22 18:32:40 +0800 | [diff] [blame] | 340 | efuse: efuse@11040000 { |
| 341 | compatible = "rockchip,rk3228-efuse"; |
| 342 | reg = <0x11040000 0x20>; |
| 343 | clocks = <&cru PCLK_EFUSE_256>; |
| 344 | clock-names = "pclk_efuse"; |
| 345 | #address-cells = <1>; |
| 346 | #size-cells = <1>; |
| 347 | |
| 348 | /* Data cells */ |
| 349 | efuse_id: id@7 { |
| 350 | reg = <0x7 0x10>; |
| 351 | }; |
| 352 | cpu_leakage: cpu_leakage@17 { |
| 353 | reg = <0x17 0x1>; |
| 354 | }; |
| 355 | }; |
| 356 | |
Yakir Yang | d549df4 | 2016-03-14 11:11:42 +0800 | [diff] [blame] | 357 | i2c0: i2c@11050000 { |
| 358 | compatible = "rockchip,rk3228-i2c"; |
| 359 | reg = <0x11050000 0x1000>; |
| 360 | interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>; |
| 361 | #address-cells = <1>; |
| 362 | #size-cells = <0>; |
| 363 | clock-names = "i2c"; |
| 364 | clocks = <&cru PCLK_I2C0>; |
| 365 | pinctrl-names = "default"; |
| 366 | pinctrl-0 = <&i2c0_xfer>; |
| 367 | status = "disabled"; |
| 368 | }; |
| 369 | |
| 370 | i2c1: i2c@11060000 { |
| 371 | compatible = "rockchip,rk3228-i2c"; |
| 372 | reg = <0x11060000 0x1000>; |
| 373 | interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>; |
| 374 | #address-cells = <1>; |
| 375 | #size-cells = <0>; |
| 376 | clock-names = "i2c"; |
| 377 | clocks = <&cru PCLK_I2C1>; |
| 378 | pinctrl-names = "default"; |
| 379 | pinctrl-0 = <&i2c1_xfer>; |
| 380 | status = "disabled"; |
| 381 | }; |
| 382 | |
| 383 | i2c2: i2c@11070000 { |
| 384 | compatible = "rockchip,rk3228-i2c"; |
| 385 | reg = <0x11070000 0x1000>; |
| 386 | interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>; |
| 387 | #address-cells = <1>; |
| 388 | #size-cells = <0>; |
| 389 | clock-names = "i2c"; |
| 390 | clocks = <&cru PCLK_I2C2>; |
| 391 | pinctrl-names = "default"; |
| 392 | pinctrl-0 = <&i2c2_xfer>; |
| 393 | status = "disabled"; |
| 394 | }; |
| 395 | |
| 396 | i2c3: i2c@11080000 { |
| 397 | compatible = "rockchip,rk3228-i2c"; |
| 398 | reg = <0x11080000 0x1000>; |
| 399 | interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>; |
| 400 | #address-cells = <1>; |
| 401 | #size-cells = <0>; |
| 402 | clock-names = "i2c"; |
| 403 | clocks = <&cru PCLK_I2C3>; |
| 404 | pinctrl-names = "default"; |
| 405 | pinctrl-0 = <&i2c3_xfer>; |
| 406 | status = "disabled"; |
| 407 | }; |
| 408 | |
Huibin Hong | febdf63 | 2017-08-03 10:36:49 +0800 | [diff] [blame] | 409 | spi0: spi@11090000 { |
| 410 | compatible = "rockchip,rk3228-spi"; |
| 411 | reg = <0x11090000 0x1000>; |
| 412 | interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>; |
| 413 | #address-cells = <1>; |
| 414 | #size-cells = <0>; |
| 415 | clocks = <&cru SCLK_SPI0>, <&cru PCLK_SPI0>; |
| 416 | clock-names = "spiclk", "apb_pclk"; |
| 417 | pinctrl-names = "default"; |
| 418 | pinctrl-0 = <&spi0_clk &spi0_tx &spi0_rx &spi0_cs0 &spi0_cs1>; |
| 419 | status = "disabled"; |
| 420 | }; |
| 421 | |
Frank Wang | fa20698 | 2017-05-17 17:52:26 +0800 | [diff] [blame] | 422 | wdt: watchdog@110a0000 { |
| 423 | compatible = "snps,dw-wdt"; |
| 424 | reg = <0x110a0000 0x100>; |
| 425 | interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>; |
| 426 | clocks = <&cru PCLK_CPU>; |
| 427 | status = "disabled"; |
| 428 | }; |
| 429 | |
Jeffy Chen | 9848ebe | 2015-12-11 09:30:51 +0800 | [diff] [blame] | 430 | pwm0: pwm@110b0000 { |
| 431 | compatible = "rockchip,rk3288-pwm"; |
| 432 | reg = <0x110b0000 0x10>; |
| 433 | #pwm-cells = <3>; |
| 434 | clocks = <&cru PCLK_PWM>; |
| 435 | clock-names = "pwm"; |
| 436 | pinctrl-names = "default"; |
| 437 | pinctrl-0 = <&pwm0_pin>; |
| 438 | status = "disabled"; |
| 439 | }; |
| 440 | |
| 441 | pwm1: pwm@110b0010 { |
| 442 | compatible = "rockchip,rk3288-pwm"; |
| 443 | reg = <0x110b0010 0x10>; |
| 444 | #pwm-cells = <3>; |
| 445 | clocks = <&cru PCLK_PWM>; |
| 446 | clock-names = "pwm"; |
| 447 | pinctrl-names = "default"; |
| 448 | pinctrl-0 = <&pwm1_pin>; |
| 449 | status = "disabled"; |
| 450 | }; |
| 451 | |
| 452 | pwm2: pwm@110b0020 { |
| 453 | compatible = "rockchip,rk3288-pwm"; |
| 454 | reg = <0x110b0020 0x10>; |
| 455 | #pwm-cells = <3>; |
| 456 | clocks = <&cru PCLK_PWM>; |
| 457 | clock-names = "pwm"; |
| 458 | pinctrl-names = "default"; |
| 459 | pinctrl-0 = <&pwm2_pin>; |
| 460 | status = "disabled"; |
| 461 | }; |
| 462 | |
| 463 | pwm3: pwm@110b0030 { |
| 464 | compatible = "rockchip,rk3288-pwm"; |
| 465 | reg = <0x110b0030 0x10>; |
| 466 | #pwm-cells = <2>; |
| 467 | clocks = <&cru PCLK_PWM>; |
| 468 | clock-names = "pwm"; |
| 469 | pinctrl-names = "default"; |
| 470 | pinctrl-0 = <&pwm3_pin>; |
| 471 | status = "disabled"; |
| 472 | }; |
| 473 | |
| 474 | timer: timer@110c0000 { |
Alexander Kochetkov | b72af34 | 2017-01-31 15:43:13 +0300 | [diff] [blame] | 475 | compatible = "rockchip,rk3228-timer", "rockchip,rk3288-timer"; |
Jeffy Chen | 9848ebe | 2015-12-11 09:30:51 +0800 | [diff] [blame] | 476 | reg = <0x110c0000 0x20>; |
| 477 | interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>; |
| 478 | clocks = <&xin24m>, <&cru PCLK_TIMER>; |
| 479 | clock-names = "timer", "pclk"; |
| 480 | }; |
| 481 | |
| 482 | cru: clock-controller@110e0000 { |
| 483 | compatible = "rockchip,rk3228-cru"; |
| 484 | reg = <0x110e0000 0x1000>; |
| 485 | rockchip,grf = <&grf>; |
| 486 | #clock-cells = <1>; |
| 487 | #reset-cells = <1>; |
Elaine Zhang | 30ee581 | 2017-05-17 18:16:14 +0800 | [diff] [blame] | 488 | assigned-clocks = |
| 489 | <&cru PLL_GPLL>, <&cru ARMCLK>, |
| 490 | <&cru PLL_CPLL>, <&cru ACLK_PERI>, |
| 491 | <&cru HCLK_PERI>, <&cru PCLK_PERI>, |
| 492 | <&cru ACLK_CPU>, <&cru HCLK_CPU>, |
| 493 | <&cru PCLK_CPU>; |
| 494 | assigned-clock-rates = |
| 495 | <594000000>, <816000000>, |
| 496 | <500000000>, <150000000>, |
| 497 | <150000000>, <75000000>, |
| 498 | <150000000>, <150000000>, |
| 499 | <75000000>; |
Jeffy Chen | 9848ebe | 2015-12-11 09:30:51 +0800 | [diff] [blame] | 500 | }; |
| 501 | |
Caesar Wang | 7796031 | 2016-02-15 15:33:32 +0800 | [diff] [blame] | 502 | thermal-zones { |
| 503 | cpu_thermal: cpu-thermal { |
| 504 | polling-delay-passive = <100>; /* milliseconds */ |
| 505 | polling-delay = <5000>; /* milliseconds */ |
| 506 | |
| 507 | thermal-sensors = <&tsadc 0>; |
| 508 | |
| 509 | trips { |
| 510 | cpu_alert0: cpu_alert0 { |
| 511 | temperature = <70000>; /* millicelsius */ |
| 512 | hysteresis = <2000>; /* millicelsius */ |
| 513 | type = "passive"; |
| 514 | }; |
| 515 | cpu_alert1: cpu_alert1 { |
| 516 | temperature = <75000>; /* millicelsius */ |
| 517 | hysteresis = <2000>; /* millicelsius */ |
| 518 | type = "passive"; |
| 519 | }; |
| 520 | cpu_crit: cpu_crit { |
| 521 | temperature = <90000>; /* millicelsius */ |
| 522 | hysteresis = <2000>; /* millicelsius */ |
| 523 | type = "critical"; |
| 524 | }; |
| 525 | }; |
| 526 | |
| 527 | cooling-maps { |
| 528 | map0 { |
| 529 | trip = <&cpu_alert0>; |
| 530 | cooling-device = |
| 531 | <&cpu0 THERMAL_NO_LIMIT 6>; |
| 532 | }; |
| 533 | map1 { |
| 534 | trip = <&cpu_alert1>; |
| 535 | cooling-device = |
| 536 | <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; |
| 537 | }; |
| 538 | }; |
| 539 | }; |
| 540 | }; |
| 541 | |
| 542 | tsadc: tsadc@11150000 { |
| 543 | compatible = "rockchip,rk3228-tsadc"; |
| 544 | reg = <0x11150000 0x100>; |
| 545 | interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>; |
| 546 | clocks = <&cru SCLK_TSADC>, <&cru PCLK_TSADC>; |
| 547 | clock-names = "tsadc", "apb_pclk"; |
Rocky Hao | 2b3f2f3 | 2017-05-17 18:16:17 +0800 | [diff] [blame] | 548 | assigned-clocks = <&cru SCLK_TSADC>; |
| 549 | assigned-clock-rates = <32768>; |
Caesar Wang | 7796031 | 2016-02-15 15:33:32 +0800 | [diff] [blame] | 550 | resets = <&cru SRST_TSADC>; |
| 551 | reset-names = "tsadc-apb"; |
| 552 | pinctrl-names = "init", "default", "sleep"; |
| 553 | pinctrl-0 = <&otp_gpio>; |
| 554 | pinctrl-1 = <&otp_out>; |
| 555 | pinctrl-2 = <&otp_gpio>; |
| 556 | #thermal-sensor-cells = <0>; |
| 557 | rockchip,hw-tshut-temp = <95000>; |
| 558 | status = "disabled"; |
| 559 | }; |
| 560 | |
Heiko Stuebner | 451ef43 | 2017-07-12 19:07:05 +0200 | [diff] [blame] | 561 | gpu: gpu@20000000 { |
| 562 | compatible = "rockchip,rk3228-mali", "arm,mali-400"; |
| 563 | reg = <0x20000000 0x10000>; |
| 564 | interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>, |
| 565 | <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>, |
| 566 | <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>, |
| 567 | <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>, |
| 568 | <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>, |
| 569 | <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>; |
| 570 | interrupt-names = "gp", |
| 571 | "gpmmu", |
| 572 | "pp0", |
Heiko Stuebner | 0133c49 | 2017-10-10 11:04:33 +0200 | [diff] [blame] | 573 | "ppmmu0", |
Heiko Stuebner | 451ef43 | 2017-07-12 19:07:05 +0200 | [diff] [blame] | 574 | "pp1", |
Heiko Stuebner | 0133c49 | 2017-10-10 11:04:33 +0200 | [diff] [blame] | 575 | "ppmmu1"; |
Heiko Stuebner | 451ef43 | 2017-07-12 19:07:05 +0200 | [diff] [blame] | 576 | clocks = <&cru ACLK_GPU>, <&cru ACLK_GPU>; |
| 577 | clock-names = "core", "bus"; |
| 578 | resets = <&cru SRST_GPU_A>; |
| 579 | status = "disabled"; |
| 580 | }; |
| 581 | |
Simon Xue | 4e1b222 | 2017-07-24 10:32:08 +0800 | [diff] [blame] | 582 | vpu_mmu: iommu@20020800 { |
| 583 | compatible = "rockchip,iommu"; |
| 584 | reg = <0x20020800 0x100>; |
| 585 | interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>; |
| 586 | interrupt-names = "vpu_mmu"; |
Jeffy Chen | c78751f | 2018-03-23 15:38:07 +0800 | [diff] [blame] | 587 | clocks = <&cru ACLK_VPU>, <&cru HCLK_VPU>; |
| 588 | clock-names = "aclk", "iface"; |
Simon Xue | 4e1b222 | 2017-07-24 10:32:08 +0800 | [diff] [blame] | 589 | iommu-cells = <0>; |
| 590 | status = "disabled"; |
| 591 | }; |
| 592 | |
| 593 | vdec_mmu: iommu@20030480 { |
| 594 | compatible = "rockchip,iommu"; |
| 595 | reg = <0x20030480 0x40>, <0x200304c0 0x40>; |
| 596 | interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>; |
| 597 | interrupt-names = "vdec_mmu"; |
Jeffy Chen | c78751f | 2018-03-23 15:38:07 +0800 | [diff] [blame] | 598 | clocks = <&cru ACLK_RKVDEC>, <&cru HCLK_RKVDEC>; |
| 599 | clock-names = "aclk", "iface"; |
Simon Xue | 4e1b222 | 2017-07-24 10:32:08 +0800 | [diff] [blame] | 600 | iommu-cells = <0>; |
| 601 | status = "disabled"; |
| 602 | }; |
| 603 | |
| 604 | vop_mmu: iommu@20053f00 { |
| 605 | compatible = "rockchip,iommu"; |
| 606 | reg = <0x20053f00 0x100>; |
| 607 | interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>; |
| 608 | interrupt-names = "vop_mmu"; |
Jeffy Chen | c78751f | 2018-03-23 15:38:07 +0800 | [diff] [blame] | 609 | clocks = <&cru ACLK_VOP>, <&cru HCLK_VOP>; |
| 610 | clock-names = "aclk", "iface"; |
Simon Xue | 4e1b222 | 2017-07-24 10:32:08 +0800 | [diff] [blame] | 611 | iommu-cells = <0>; |
| 612 | status = "disabled"; |
| 613 | }; |
| 614 | |
| 615 | iep_mmu: iommu@20070800 { |
| 616 | compatible = "rockchip,iommu"; |
| 617 | reg = <0x20070800 0x100>; |
| 618 | interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>; |
| 619 | interrupt-names = "iep_mmu"; |
Jeffy Chen | c78751f | 2018-03-23 15:38:07 +0800 | [diff] [blame] | 620 | clocks = <&cru ACLK_IEP>, <&cru HCLK_IEP>; |
| 621 | clock-names = "aclk", "iface"; |
Simon Xue | 4e1b222 | 2017-07-24 10:32:08 +0800 | [diff] [blame] | 622 | iommu-cells = <0>; |
| 623 | status = "disabled"; |
| 624 | }; |
| 625 | |
Shawn Lin | e409fc3 | 2017-06-22 18:32:04 +0800 | [diff] [blame] | 626 | sdmmc: dwmmc@30000000 { |
| 627 | compatible = "rockchip,rk3228-dw-mshc", "rockchip,rk3288-dw-mshc"; |
| 628 | reg = <0x30000000 0x4000>; |
| 629 | interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>; |
| 630 | clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>, |
| 631 | <&cru SCLK_SDMMC_DRV>, <&cru SCLK_SDMMC_SAMPLE>; |
Robin Murphy | e78c637 | 2018-02-15 14:05:54 +0000 | [diff] [blame] | 632 | clock-names = "biu", "ciu", "ciu-drive", "ciu-sample"; |
Shawn Lin | e409fc3 | 2017-06-22 18:32:04 +0800 | [diff] [blame] | 633 | fifo-depth = <0x100>; |
| 634 | pinctrl-names = "default"; |
| 635 | pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_bus4>; |
| 636 | status = "disabled"; |
| 637 | }; |
| 638 | |
| 639 | sdio: dwmmc@30010000 { |
| 640 | compatible = "rockchip,rk3228-dw-mshc", "rockchip,rk3288-dw-mshc"; |
| 641 | reg = <0x30010000 0x4000>; |
| 642 | interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>; |
| 643 | clocks = <&cru HCLK_SDIO>, <&cru SCLK_SDIO>, |
| 644 | <&cru SCLK_SDIO_DRV>, <&cru SCLK_SDIO_SAMPLE>; |
Robin Murphy | e78c637 | 2018-02-15 14:05:54 +0000 | [diff] [blame] | 645 | clock-names = "biu", "ciu", "ciu-drive", "ciu-sample"; |
Shawn Lin | e409fc3 | 2017-06-22 18:32:04 +0800 | [diff] [blame] | 646 | fifo-depth = <0x100>; |
| 647 | pinctrl-names = "default"; |
| 648 | pinctrl-0 = <&sdio_clk &sdio_cmd &sdio_bus4>; |
| 649 | status = "disabled"; |
| 650 | }; |
| 651 | |
Jeffy Chen | 9848ebe | 2015-12-11 09:30:51 +0800 | [diff] [blame] | 652 | emmc: dwmmc@30020000 { |
Shawn Lin | 0d6a01f | 2017-06-22 18:29:59 +0800 | [diff] [blame] | 653 | compatible = "rockchip,rk3228-dw-mshc", "rockchip,rk3288-dw-mshc"; |
Jeffy Chen | 9848ebe | 2015-12-11 09:30:51 +0800 | [diff] [blame] | 654 | reg = <0x30020000 0x4000>; |
| 655 | interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>; |
| 656 | clock-frequency = <37500000>; |
Jaehoon Chung | 6a8883d | 2016-11-03 15:21:33 +0900 | [diff] [blame] | 657 | max-frequency = <37500000>; |
Jeffy Chen | 9848ebe | 2015-12-11 09:30:51 +0800 | [diff] [blame] | 658 | clocks = <&cru HCLK_EMMC>, <&cru SCLK_EMMC>, |
| 659 | <&cru SCLK_EMMC_DRV>, <&cru SCLK_EMMC_SAMPLE>; |
Robin Murphy | e78c637 | 2018-02-15 14:05:54 +0000 | [diff] [blame] | 660 | clock-names = "biu", "ciu", "ciu-drive", "ciu-sample"; |
Jeffy Chen | 9848ebe | 2015-12-11 09:30:51 +0800 | [diff] [blame] | 661 | bus-width = <8>; |
| 662 | default-sample-phase = <158>; |
Jeffy Chen | 9848ebe | 2015-12-11 09:30:51 +0800 | [diff] [blame] | 663 | fifo-depth = <0x100>; |
| 664 | pinctrl-names = "default"; |
| 665 | pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_bus8>; |
Heiko Stuebner | 2d1f1d4 | 2017-03-02 00:50:39 +0100 | [diff] [blame] | 666 | resets = <&cru SRST_EMMC>; |
| 667 | reset-names = "reset"; |
Jeffy Chen | 9848ebe | 2015-12-11 09:30:51 +0800 | [diff] [blame] | 668 | status = "disabled"; |
| 669 | }; |
| 670 | |
William Wu | 3880af4 | 2017-06-02 15:04:24 +0800 | [diff] [blame] | 671 | usb_otg: usb@30040000 { |
| 672 | compatible = "rockchip,rk3228-usb", "rockchip,rk3066-usb", |
| 673 | "snps,dwc2"; |
| 674 | reg = <0x30040000 0x40000>; |
| 675 | interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>; |
| 676 | clocks = <&cru HCLK_OTG>; |
| 677 | clock-names = "otg"; |
| 678 | dr_mode = "otg"; |
| 679 | g-np-tx-fifo-size = <16>; |
| 680 | g-rx-fifo-size = <280>; |
| 681 | g-tx-fifo-size = <256 128 128 64 32 16>; |
| 682 | g-use-dma; |
| 683 | phys = <&u2phy0_otg>; |
| 684 | phy-names = "usb2-phy"; |
| 685 | status = "disabled"; |
| 686 | }; |
| 687 | |
| 688 | usb_host0_ehci: usb@30080000 { |
| 689 | compatible = "generic-ehci"; |
| 690 | reg = <0x30080000 0x20000>; |
| 691 | interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>; |
| 692 | clocks = <&cru HCLK_HOST0>, <&u2phy0>; |
| 693 | clock-names = "usbhost", "utmi"; |
| 694 | phys = <&u2phy0_host>; |
| 695 | phy-names = "usb"; |
| 696 | status = "disabled"; |
| 697 | }; |
| 698 | |
| 699 | usb_host0_ohci: usb@300a0000 { |
| 700 | compatible = "generic-ohci"; |
| 701 | reg = <0x300a0000 0x20000>; |
| 702 | interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>; |
| 703 | clocks = <&cru HCLK_HOST0>, <&u2phy0>; |
| 704 | clock-names = "usbhost", "utmi"; |
| 705 | phys = <&u2phy0_host>; |
| 706 | phy-names = "usb"; |
| 707 | status = "disabled"; |
| 708 | }; |
| 709 | |
| 710 | usb_host1_ehci: usb@300c0000 { |
| 711 | compatible = "generic-ehci"; |
| 712 | reg = <0x300c0000 0x20000>; |
| 713 | interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>; |
| 714 | clocks = <&cru HCLK_HOST1>, <&u2phy1>; |
| 715 | clock-names = "usbhost", "utmi"; |
| 716 | phys = <&u2phy1_otg>; |
| 717 | phy-names = "usb"; |
| 718 | status = "disabled"; |
| 719 | }; |
| 720 | |
| 721 | usb_host1_ohci: usb@300e0000 { |
| 722 | compatible = "generic-ohci"; |
| 723 | reg = <0x300e0000 0x20000>; |
| 724 | interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>; |
| 725 | clocks = <&cru HCLK_HOST1>, <&u2phy1>; |
| 726 | clock-names = "usbhost", "utmi"; |
| 727 | phys = <&u2phy1_otg>; |
| 728 | phy-names = "usb"; |
| 729 | status = "disabled"; |
| 730 | }; |
| 731 | |
| 732 | usb_host2_ehci: usb@30100000 { |
| 733 | compatible = "generic-ehci"; |
| 734 | reg = <0x30100000 0x20000>; |
| 735 | interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>; |
| 736 | clocks = <&cru HCLK_HOST2>, <&u2phy1>; |
| 737 | phys = <&u2phy1_host>; |
| 738 | phy-names = "usb"; |
| 739 | clock-names = "usbhost", "utmi"; |
| 740 | status = "disabled"; |
| 741 | }; |
| 742 | |
| 743 | usb_host2_ohci: usb@30120000 { |
| 744 | compatible = "generic-ohci"; |
| 745 | reg = <0x30120000 0x20000>; |
| 746 | interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>; |
| 747 | clocks = <&cru HCLK_HOST2>, <&u2phy1>; |
| 748 | clock-names = "usbhost", "utmi"; |
| 749 | phys = <&u2phy1_host>; |
| 750 | phy-names = "usb"; |
| 751 | status = "disabled"; |
| 752 | }; |
| 753 | |
Xing Zheng | 5d3d7c7 | 2016-06-22 11:16:52 +0800 | [diff] [blame] | 754 | gmac: ethernet@30200000 { |
| 755 | compatible = "rockchip,rk3228-gmac"; |
| 756 | reg = <0x30200000 0x10000>; |
| 757 | interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>; |
| 758 | interrupt-names = "macirq"; |
| 759 | clocks = <&cru SCLK_MAC>, <&cru SCLK_MAC_RX>, |
| 760 | <&cru SCLK_MAC_TX>, <&cru SCLK_MAC_REF>, |
| 761 | <&cru SCLK_MAC_REFOUT>, <&cru ACLK_GMAC>, |
| 762 | <&cru PCLK_GMAC>; |
| 763 | clock-names = "stmmaceth", "mac_clk_rx", |
| 764 | "mac_clk_tx", "clk_mac_ref", |
| 765 | "clk_mac_refout", "aclk_mac", |
| 766 | "pclk_mac"; |
| 767 | resets = <&cru SRST_GMAC>; |
| 768 | reset-names = "stmmaceth"; |
| 769 | rockchip,grf = <&grf>; |
| 770 | status = "disabled"; |
| 771 | }; |
| 772 | |
Jeffy Chen | 9848ebe | 2015-12-11 09:30:51 +0800 | [diff] [blame] | 773 | gic: interrupt-controller@32010000 { |
| 774 | compatible = "arm,gic-400"; |
| 775 | interrupt-controller; |
| 776 | #interrupt-cells = <3>; |
| 777 | #address-cells = <0>; |
| 778 | |
| 779 | reg = <0x32011000 0x1000>, |
Marc Zyngier | 387720c | 2017-01-18 09:27:28 +0000 | [diff] [blame] | 780 | <0x32012000 0x2000>, |
Jeffy Chen | 9848ebe | 2015-12-11 09:30:51 +0800 | [diff] [blame] | 781 | <0x32014000 0x2000>, |
| 782 | <0x32016000 0x2000>; |
| 783 | interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>; |
| 784 | }; |
| 785 | |
| 786 | pinctrl: pinctrl { |
| 787 | compatible = "rockchip,rk3228-pinctrl"; |
| 788 | rockchip,grf = <&grf>; |
| 789 | #address-cells = <1>; |
| 790 | #size-cells = <1>; |
| 791 | ranges; |
| 792 | |
| 793 | gpio0: gpio0@11110000 { |
| 794 | compatible = "rockchip,gpio-bank"; |
| 795 | reg = <0x11110000 0x100>; |
| 796 | interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>; |
| 797 | clocks = <&cru PCLK_GPIO0>; |
| 798 | |
| 799 | gpio-controller; |
| 800 | #gpio-cells = <2>; |
| 801 | |
| 802 | interrupt-controller; |
| 803 | #interrupt-cells = <2>; |
| 804 | }; |
| 805 | |
| 806 | gpio1: gpio1@11120000 { |
| 807 | compatible = "rockchip,gpio-bank"; |
| 808 | reg = <0x11120000 0x100>; |
| 809 | interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>; |
| 810 | clocks = <&cru PCLK_GPIO1>; |
| 811 | |
| 812 | gpio-controller; |
| 813 | #gpio-cells = <2>; |
| 814 | |
| 815 | interrupt-controller; |
| 816 | #interrupt-cells = <2>; |
| 817 | }; |
| 818 | |
| 819 | gpio2: gpio2@11130000 { |
| 820 | compatible = "rockchip,gpio-bank"; |
| 821 | reg = <0x11130000 0x100>; |
| 822 | interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>; |
| 823 | clocks = <&cru PCLK_GPIO2>; |
| 824 | |
| 825 | gpio-controller; |
| 826 | #gpio-cells = <2>; |
| 827 | |
| 828 | interrupt-controller; |
| 829 | #interrupt-cells = <2>; |
| 830 | }; |
| 831 | |
| 832 | gpio3: gpio3@11140000 { |
| 833 | compatible = "rockchip,gpio-bank"; |
| 834 | reg = <0x11140000 0x100>; |
| 835 | interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>; |
| 836 | clocks = <&cru PCLK_GPIO3>; |
| 837 | |
| 838 | gpio-controller; |
| 839 | #gpio-cells = <2>; |
| 840 | |
| 841 | interrupt-controller; |
| 842 | #interrupt-cells = <2>; |
| 843 | }; |
| 844 | |
| 845 | pcfg_pull_up: pcfg-pull-up { |
| 846 | bias-pull-up; |
| 847 | }; |
| 848 | |
| 849 | pcfg_pull_down: pcfg-pull-down { |
| 850 | bias-pull-down; |
| 851 | }; |
| 852 | |
| 853 | pcfg_pull_none: pcfg-pull-none { |
| 854 | bias-disable; |
| 855 | }; |
| 856 | |
Xing Zheng | 5d3d7c7 | 2016-06-22 11:16:52 +0800 | [diff] [blame] | 857 | pcfg_pull_none_drv_12ma: pcfg-pull-none-drv-12ma { |
| 858 | drive-strength = <12>; |
| 859 | }; |
| 860 | |
Shawn Lin | e409fc3 | 2017-06-22 18:32:04 +0800 | [diff] [blame] | 861 | sdmmc { |
| 862 | sdmmc_clk: sdmmc-clk { |
| 863 | rockchip,pins = <1 RK_PC0 1 &pcfg_pull_none_drv_12ma>; |
| 864 | }; |
| 865 | |
| 866 | sdmmc_cmd: sdmmc-cmd { |
| 867 | rockchip,pins = <1 RK_PB7 1 &pcfg_pull_none_drv_12ma>; |
| 868 | }; |
| 869 | |
| 870 | sdmmc_bus4: sdmmc-bus4 { |
| 871 | rockchip,pins = <1 RK_PC2 1 &pcfg_pull_none_drv_12ma>, |
| 872 | <1 RK_PC3 1 &pcfg_pull_none_drv_12ma>, |
| 873 | <1 RK_PC4 1 &pcfg_pull_none_drv_12ma>, |
| 874 | <1 RK_PC5 1 &pcfg_pull_none_drv_12ma>; |
| 875 | }; |
| 876 | }; |
| 877 | |
| 878 | sdio { |
| 879 | sdio_clk: sdio-clk { |
| 880 | rockchip,pins = <3 RK_PA0 1 &pcfg_pull_none_drv_12ma>; |
| 881 | }; |
| 882 | |
| 883 | sdio_cmd: sdio-cmd { |
| 884 | rockchip,pins = <3 RK_PA1 1 &pcfg_pull_none_drv_12ma>; |
| 885 | }; |
| 886 | |
| 887 | sdio_bus4: sdio-bus4 { |
| 888 | rockchip,pins = <3 RK_PA2 1 &pcfg_pull_none_drv_12ma>, |
| 889 | <3 RK_PA3 1 &pcfg_pull_none_drv_12ma>, |
| 890 | <3 RK_PA4 1 &pcfg_pull_none_drv_12ma>, |
| 891 | <3 RK_PA5 1 &pcfg_pull_none_drv_12ma>; |
| 892 | }; |
| 893 | }; |
| 894 | |
Jeffy Chen | 9848ebe | 2015-12-11 09:30:51 +0800 | [diff] [blame] | 895 | emmc { |
| 896 | emmc_clk: emmc-clk { |
| 897 | rockchip,pins = <2 7 RK_FUNC_2 &pcfg_pull_none>; |
| 898 | }; |
| 899 | |
| 900 | emmc_cmd: emmc-cmd { |
| 901 | rockchip,pins = <1 22 RK_FUNC_2 &pcfg_pull_none>; |
| 902 | }; |
| 903 | |
| 904 | emmc_bus8: emmc-bus8 { |
| 905 | rockchip,pins = <1 24 RK_FUNC_2 &pcfg_pull_none>, |
| 906 | <1 25 RK_FUNC_2 &pcfg_pull_none>, |
| 907 | <1 26 RK_FUNC_2 &pcfg_pull_none>, |
| 908 | <1 27 RK_FUNC_2 &pcfg_pull_none>, |
| 909 | <1 28 RK_FUNC_2 &pcfg_pull_none>, |
| 910 | <1 29 RK_FUNC_2 &pcfg_pull_none>, |
| 911 | <1 30 RK_FUNC_2 &pcfg_pull_none>, |
| 912 | <1 31 RK_FUNC_2 &pcfg_pull_none>; |
| 913 | }; |
| 914 | }; |
| 915 | |
Xing Zheng | 5d3d7c7 | 2016-06-22 11:16:52 +0800 | [diff] [blame] | 916 | gmac { |
| 917 | rgmii_pins: rgmii-pins { |
| 918 | rockchip,pins = <2 14 RK_FUNC_1 &pcfg_pull_none>, |
| 919 | <2 12 RK_FUNC_1 &pcfg_pull_none>, |
| 920 | <2 25 RK_FUNC_1 &pcfg_pull_none>, |
| 921 | <2 19 RK_FUNC_1 &pcfg_pull_none_drv_12ma>, |
| 922 | <2 18 RK_FUNC_1 &pcfg_pull_none_drv_12ma>, |
| 923 | <2 22 RK_FUNC_1 &pcfg_pull_none_drv_12ma>, |
| 924 | <2 23 RK_FUNC_1 &pcfg_pull_none_drv_12ma>, |
| 925 | <2 9 RK_FUNC_1 &pcfg_pull_none_drv_12ma>, |
| 926 | <2 13 RK_FUNC_1 &pcfg_pull_none_drv_12ma>, |
| 927 | <2 17 RK_FUNC_1 &pcfg_pull_none>, |
| 928 | <2 16 RK_FUNC_1 &pcfg_pull_none>, |
| 929 | <2 21 RK_FUNC_2 &pcfg_pull_none>, |
| 930 | <2 20 RK_FUNC_2 &pcfg_pull_none>, |
| 931 | <2 11 RK_FUNC_1 &pcfg_pull_none>, |
| 932 | <2 8 RK_FUNC_1 &pcfg_pull_none>; |
| 933 | }; |
| 934 | |
| 935 | rmii_pins: rmii-pins { |
| 936 | rockchip,pins = <2 14 RK_FUNC_1 &pcfg_pull_none>, |
| 937 | <2 12 RK_FUNC_1 &pcfg_pull_none>, |
| 938 | <2 25 RK_FUNC_1 &pcfg_pull_none>, |
| 939 | <2 19 RK_FUNC_1 &pcfg_pull_none_drv_12ma>, |
| 940 | <2 18 RK_FUNC_1 &pcfg_pull_none_drv_12ma>, |
| 941 | <2 13 RK_FUNC_1 &pcfg_pull_none_drv_12ma>, |
| 942 | <2 17 RK_FUNC_1 &pcfg_pull_none>, |
| 943 | <2 16 RK_FUNC_1 &pcfg_pull_none>, |
| 944 | <2 8 RK_FUNC_1 &pcfg_pull_none>, |
| 945 | <2 15 RK_FUNC_1 &pcfg_pull_none>; |
| 946 | }; |
| 947 | |
| 948 | phy_pins: phy-pins { |
| 949 | rockchip,pins = <2 14 RK_FUNC_2 &pcfg_pull_none>, |
| 950 | <2 8 RK_FUNC_2 &pcfg_pull_none>; |
| 951 | }; |
| 952 | }; |
| 953 | |
Yakir Yang | d549df4 | 2016-03-14 11:11:42 +0800 | [diff] [blame] | 954 | i2c0 { |
| 955 | i2c0_xfer: i2c0-xfer { |
| 956 | rockchip,pins = <0 0 RK_FUNC_1 &pcfg_pull_none>, |
| 957 | <0 1 RK_FUNC_1 &pcfg_pull_none>; |
| 958 | }; |
| 959 | }; |
| 960 | |
| 961 | i2c1 { |
| 962 | i2c1_xfer: i2c1-xfer { |
| 963 | rockchip,pins = <0 2 RK_FUNC_1 &pcfg_pull_none>, |
| 964 | <0 3 RK_FUNC_1 &pcfg_pull_none>; |
| 965 | }; |
| 966 | }; |
| 967 | |
| 968 | i2c2 { |
| 969 | i2c2_xfer: i2c2-xfer { |
| 970 | rockchip,pins = <2 20 RK_FUNC_1 &pcfg_pull_none>, |
| 971 | <2 21 RK_FUNC_1 &pcfg_pull_none>; |
| 972 | }; |
| 973 | }; |
| 974 | |
| 975 | i2c3 { |
| 976 | i2c3_xfer: i2c3-xfer { |
| 977 | rockchip,pins = <0 6 RK_FUNC_1 &pcfg_pull_none>, |
| 978 | <0 7 RK_FUNC_1 &pcfg_pull_none>; |
| 979 | }; |
| 980 | }; |
| 981 | |
Huibin Hong | febdf63 | 2017-08-03 10:36:49 +0800 | [diff] [blame] | 982 | spi-0 { |
| 983 | spi0_clk: spi0-clk { |
| 984 | rockchip,pins = <0 9 RK_FUNC_2 &pcfg_pull_up>; |
| 985 | }; |
| 986 | spi0_cs0: spi0-cs0 { |
| 987 | rockchip,pins = <0 14 RK_FUNC_2 &pcfg_pull_up>; |
| 988 | }; |
| 989 | spi0_tx: spi0-tx { |
| 990 | rockchip,pins = <0 11 RK_FUNC_2 &pcfg_pull_up>; |
| 991 | }; |
| 992 | spi0_rx: spi0-rx { |
| 993 | rockchip,pins = <0 13 RK_FUNC_2 &pcfg_pull_up>; |
| 994 | }; |
| 995 | spi0_cs1: spi0-cs1 { |
| 996 | rockchip,pins = <1 12 RK_FUNC_1 &pcfg_pull_up>; |
| 997 | }; |
| 998 | }; |
| 999 | |
| 1000 | spi-1 { |
| 1001 | spi1_clk: spi1-clk { |
| 1002 | rockchip,pins = <0 23 RK_FUNC_2 &pcfg_pull_up>; |
| 1003 | }; |
| 1004 | spi1_cs0: spi1-cs0 { |
| 1005 | rockchip,pins = <2 2 RK_FUNC_2 &pcfg_pull_up>; |
| 1006 | }; |
| 1007 | spi1_rx: spi1-rx { |
| 1008 | rockchip,pins = <2 0 RK_FUNC_2 &pcfg_pull_up>; |
| 1009 | }; |
| 1010 | spi1_tx: spi1-tx { |
| 1011 | rockchip,pins = <2 1 RK_FUNC_2 &pcfg_pull_up>; |
| 1012 | }; |
| 1013 | spi1_cs1: spi1-cs1 { |
| 1014 | rockchip,pins = <2 3 RK_FUNC_2 &pcfg_pull_up>; |
| 1015 | }; |
| 1016 | }; |
| 1017 | |
Xing Zheng | ccada24 | 2016-06-22 11:16:51 +0800 | [diff] [blame] | 1018 | i2s1 { |
| 1019 | i2s1_bus: i2s1-bus { |
| 1020 | rockchip,pins = <0 8 RK_FUNC_1 &pcfg_pull_none>, |
| 1021 | <0 9 RK_FUNC_1 &pcfg_pull_none>, |
| 1022 | <0 11 RK_FUNC_1 &pcfg_pull_none>, |
| 1023 | <0 12 RK_FUNC_1 &pcfg_pull_none>, |
| 1024 | <0 13 RK_FUNC_1 &pcfg_pull_none>, |
| 1025 | <0 14 RK_FUNC_1 &pcfg_pull_none>, |
Sugar Zhang | 9d420e9 | 2017-05-17 17:52:24 +0800 | [diff] [blame] | 1026 | <1 2 RK_FUNC_2 &pcfg_pull_none>, |
| 1027 | <1 4 RK_FUNC_2 &pcfg_pull_none>, |
| 1028 | <1 5 RK_FUNC_2 &pcfg_pull_none>; |
Xing Zheng | ccada24 | 2016-06-22 11:16:51 +0800 | [diff] [blame] | 1029 | }; |
| 1030 | }; |
| 1031 | |
Jeffy Chen | 9848ebe | 2015-12-11 09:30:51 +0800 | [diff] [blame] | 1032 | pwm0 { |
| 1033 | pwm0_pin: pwm0-pin { |
| 1034 | rockchip,pins = <3 21 RK_FUNC_1 &pcfg_pull_none>; |
| 1035 | }; |
| 1036 | }; |
| 1037 | |
| 1038 | pwm1 { |
| 1039 | pwm1_pin: pwm1-pin { |
| 1040 | rockchip,pins = <0 30 RK_FUNC_2 &pcfg_pull_none>; |
| 1041 | }; |
| 1042 | }; |
| 1043 | |
| 1044 | pwm2 { |
| 1045 | pwm2_pin: pwm2-pin { |
| 1046 | rockchip,pins = <1 12 RK_FUNC_2 &pcfg_pull_none>; |
| 1047 | }; |
| 1048 | }; |
| 1049 | |
| 1050 | pwm3 { |
| 1051 | pwm3_pin: pwm3-pin { |
| 1052 | rockchip,pins = <1 11 RK_FUNC_2 &pcfg_pull_none>; |
| 1053 | }; |
| 1054 | }; |
| 1055 | |
Sugar Zhang | 4b456d2 | 2017-06-09 15:59:33 +0800 | [diff] [blame] | 1056 | spdif { |
| 1057 | spdif_tx: spdif-tx { |
| 1058 | rockchip,pins = <3 31 RK_FUNC_2 &pcfg_pull_none>; |
| 1059 | }; |
| 1060 | }; |
| 1061 | |
Caesar Wang | 7796031 | 2016-02-15 15:33:32 +0800 | [diff] [blame] | 1062 | tsadc { |
| 1063 | otp_gpio: otp-gpio { |
| 1064 | rockchip,pins = <0 24 RK_FUNC_GPIO &pcfg_pull_none>; |
| 1065 | }; |
| 1066 | |
| 1067 | otp_out: otp-out { |
| 1068 | rockchip,pins = <0 24 RK_FUNC_2 &pcfg_pull_none>; |
| 1069 | }; |
| 1070 | }; |
| 1071 | |
Jeffy Chen | 9848ebe | 2015-12-11 09:30:51 +0800 | [diff] [blame] | 1072 | uart0 { |
| 1073 | uart0_xfer: uart0-xfer { |
| 1074 | rockchip,pins = <2 26 RK_FUNC_1 &pcfg_pull_none>, |
| 1075 | <2 27 RK_FUNC_1 &pcfg_pull_none>; |
| 1076 | }; |
| 1077 | |
| 1078 | uart0_cts: uart0-cts { |
| 1079 | rockchip,pins = <2 29 RK_FUNC_1 &pcfg_pull_none>; |
| 1080 | }; |
| 1081 | |
| 1082 | uart0_rts: uart0-rts { |
| 1083 | rockchip,pins = <0 17 RK_FUNC_1 &pcfg_pull_none>; |
| 1084 | }; |
| 1085 | }; |
| 1086 | |
| 1087 | uart1 { |
| 1088 | uart1_xfer: uart1-xfer { |
| 1089 | rockchip,pins = <1 9 RK_FUNC_1 &pcfg_pull_none>, |
| 1090 | <1 10 RK_FUNC_1 &pcfg_pull_none>; |
| 1091 | }; |
| 1092 | |
| 1093 | uart1_cts: uart1-cts { |
| 1094 | rockchip,pins = <1 8 RK_FUNC_1 &pcfg_pull_none>; |
| 1095 | }; |
| 1096 | |
| 1097 | uart1_rts: uart1-rts { |
| 1098 | rockchip,pins = <1 11 RK_FUNC_1 &pcfg_pull_none>; |
| 1099 | }; |
| 1100 | }; |
| 1101 | |
| 1102 | uart2 { |
| 1103 | uart2_xfer: uart2-xfer { |
Frank Wang | 0213147 | 2017-05-17 17:52:25 +0800 | [diff] [blame] | 1104 | rockchip,pins = <1 18 RK_FUNC_2 &pcfg_pull_up>, |
Jeffy Chen | 9848ebe | 2015-12-11 09:30:51 +0800 | [diff] [blame] | 1105 | <1 19 RK_FUNC_2 &pcfg_pull_none>; |
| 1106 | }; |
| 1107 | |
Frank Wang | 738e451 | 2017-05-17 17:52:25 +0800 | [diff] [blame] | 1108 | uart21_xfer: uart21-xfer { |
| 1109 | rockchip,pins = <1 10 RK_FUNC_2 &pcfg_pull_up>, |
| 1110 | <1 9 RK_FUNC_2 &pcfg_pull_none>; |
| 1111 | }; |
| 1112 | |
Jeffy Chen | 9848ebe | 2015-12-11 09:30:51 +0800 | [diff] [blame] | 1113 | uart2_cts: uart2-cts { |
| 1114 | rockchip,pins = <0 25 RK_FUNC_1 &pcfg_pull_none>; |
| 1115 | }; |
| 1116 | |
| 1117 | uart2_rts: uart2-rts { |
| 1118 | rockchip,pins = <0 24 RK_FUNC_1 &pcfg_pull_none>; |
| 1119 | }; |
| 1120 | }; |
| 1121 | }; |
| 1122 | }; |