Heiko Stuebner | 2ab557b | 2014-07-15 20:16:19 +0200 | [diff] [blame] | 1 | /* |
| 2 | * This program is free software; you can redistribute it and/or modify |
| 3 | * it under the terms of the GNU General Public License as published by |
| 4 | * the Free Software Foundation; either version 2 of the License, or |
| 5 | * (at your option) any later version. |
| 6 | * |
| 7 | * This program is distributed in the hope that it will be useful, |
| 8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 10 | * GNU General Public License for more details. |
| 11 | */ |
| 12 | |
| 13 | #include <dt-bindings/gpio/gpio.h> |
| 14 | #include <dt-bindings/interrupt-controller/irq.h> |
| 15 | #include <dt-bindings/interrupt-controller/arm-gic.h> |
| 16 | #include <dt-bindings/pinctrl/rockchip.h> |
| 17 | #include <dt-bindings/clock/rk3288-cru.h> |
| 18 | #include "skeleton.dtsi" |
| 19 | |
| 20 | / { |
| 21 | compatible = "rockchip,rk3288"; |
| 22 | |
| 23 | interrupt-parent = <&gic>; |
| 24 | |
| 25 | aliases { |
| 26 | i2c0 = &i2c0; |
| 27 | i2c1 = &i2c1; |
| 28 | i2c2 = &i2c2; |
| 29 | i2c3 = &i2c3; |
| 30 | i2c4 = &i2c4; |
| 31 | i2c5 = &i2c5; |
| 32 | serial0 = &uart0; |
| 33 | serial1 = &uart1; |
| 34 | serial2 = &uart2; |
| 35 | serial3 = &uart3; |
| 36 | serial4 = &uart4; |
| 37 | }; |
| 38 | |
| 39 | cpus { |
| 40 | #address-cells = <1>; |
| 41 | #size-cells = <0>; |
| 42 | |
| 43 | cpu@500 { |
| 44 | device_type = "cpu"; |
| 45 | compatible = "arm,cortex-a12"; |
| 46 | reg = <0x500>; |
| 47 | }; |
| 48 | cpu@501 { |
| 49 | device_type = "cpu"; |
| 50 | compatible = "arm,cortex-a12"; |
| 51 | reg = <0x501>; |
| 52 | }; |
| 53 | cpu@502 { |
| 54 | device_type = "cpu"; |
| 55 | compatible = "arm,cortex-a12"; |
| 56 | reg = <0x502>; |
| 57 | }; |
| 58 | cpu@503 { |
| 59 | device_type = "cpu"; |
| 60 | compatible = "arm,cortex-a12"; |
| 61 | reg = <0x503>; |
| 62 | }; |
| 63 | }; |
| 64 | |
| 65 | xin24m: oscillator { |
| 66 | compatible = "fixed-clock"; |
| 67 | clock-frequency = <24000000>; |
| 68 | clock-output-names = "xin24m"; |
| 69 | #clock-cells = <0>; |
| 70 | }; |
| 71 | |
| 72 | timer { |
| 73 | compatible = "arm,armv7-timer"; |
| 74 | interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>, |
| 75 | <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>, |
| 76 | <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>, |
| 77 | <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>; |
| 78 | clock-frequency = <24000000>; |
| 79 | }; |
| 80 | |
Doug Anderson | 85095bf | 2014-08-12 16:21:13 -0700 | [diff] [blame] | 81 | sdmmc: dwmmc@ff0c0000 { |
| 82 | compatible = "rockchip,rk3288-dw-mshc"; |
| 83 | clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>; |
| 84 | clock-names = "biu", "ciu"; |
| 85 | fifo-depth = <0x100>; |
| 86 | interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>; |
| 87 | reg = <0xff0c0000 0x4000>; |
| 88 | status = "disabled"; |
| 89 | }; |
| 90 | |
| 91 | emmc: dwmmc@ff0f0000 { |
| 92 | compatible = "rockchip,rk3288-dw-mshc"; |
| 93 | clocks = <&cru HCLK_EMMC>, <&cru SCLK_EMMC>; |
| 94 | clock-names = "biu", "ciu"; |
| 95 | fifo-depth = <0x100>; |
| 96 | interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>; |
| 97 | reg = <0xff0f0000 0x4000>; |
| 98 | status = "disabled"; |
| 99 | }; |
| 100 | |
Heiko Stuebner | 2ab557b | 2014-07-15 20:16:19 +0200 | [diff] [blame] | 101 | i2c1: i2c@ff140000 { |
| 102 | compatible = "rockchip,rk3288-i2c"; |
| 103 | reg = <0xff140000 0x1000>; |
| 104 | interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>; |
| 105 | #address-cells = <1>; |
| 106 | #size-cells = <0>; |
| 107 | clock-names = "i2c"; |
| 108 | clocks = <&cru PCLK_I2C1>; |
| 109 | pinctrl-names = "default"; |
| 110 | pinctrl-0 = <&i2c1_xfer>; |
| 111 | status = "disabled"; |
| 112 | }; |
| 113 | |
| 114 | i2c3: i2c@ff150000 { |
| 115 | compatible = "rockchip,rk3288-i2c"; |
| 116 | reg = <0xff150000 0x1000>; |
| 117 | interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>; |
| 118 | #address-cells = <1>; |
| 119 | #size-cells = <0>; |
| 120 | clock-names = "i2c"; |
| 121 | clocks = <&cru PCLK_I2C3>; |
| 122 | pinctrl-names = "default"; |
| 123 | pinctrl-0 = <&i2c3_xfer>; |
| 124 | status = "disabled"; |
| 125 | }; |
| 126 | |
| 127 | i2c4: i2c@ff160000 { |
| 128 | compatible = "rockchip,rk3288-i2c"; |
| 129 | reg = <0xff160000 0x1000>; |
| 130 | interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>; |
| 131 | #address-cells = <1>; |
| 132 | #size-cells = <0>; |
| 133 | clock-names = "i2c"; |
| 134 | clocks = <&cru PCLK_I2C4>; |
| 135 | pinctrl-names = "default"; |
| 136 | pinctrl-0 = <&i2c4_xfer>; |
| 137 | status = "disabled"; |
| 138 | }; |
| 139 | |
| 140 | i2c5: i2c@ff170000 { |
| 141 | compatible = "rockchip,rk3288-i2c"; |
| 142 | reg = <0xff170000 0x1000>; |
| 143 | interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>; |
| 144 | #address-cells = <1>; |
| 145 | #size-cells = <0>; |
| 146 | clock-names = "i2c"; |
| 147 | clocks = <&cru PCLK_I2C5>; |
| 148 | pinctrl-names = "default"; |
| 149 | pinctrl-0 = <&i2c5_xfer>; |
| 150 | status = "disabled"; |
| 151 | }; |
| 152 | |
| 153 | uart0: serial@ff180000 { |
| 154 | compatible = "rockchip,rk3288-uart", "snps,dw-apb-uart"; |
| 155 | reg = <0xff180000 0x100>; |
| 156 | interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>; |
| 157 | reg-shift = <2>; |
| 158 | reg-io-width = <4>; |
| 159 | clocks = <&cru SCLK_UART0>, <&cru PCLK_UART0>; |
| 160 | clock-names = "baudclk", "apb_pclk"; |
| 161 | pinctrl-names = "default"; |
| 162 | pinctrl-0 = <&uart0_xfer>; |
| 163 | status = "disabled"; |
| 164 | }; |
| 165 | |
| 166 | uart1: serial@ff190000 { |
| 167 | compatible = "rockchip,rk3288-uart", "snps,dw-apb-uart"; |
| 168 | reg = <0xff190000 0x100>; |
| 169 | interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>; |
| 170 | reg-shift = <2>; |
| 171 | reg-io-width = <4>; |
| 172 | clocks = <&cru SCLK_UART1>, <&cru PCLK_UART1>; |
| 173 | clock-names = "baudclk", "apb_pclk"; |
| 174 | pinctrl-names = "default"; |
| 175 | pinctrl-0 = <&uart1_xfer>; |
| 176 | status = "disabled"; |
| 177 | }; |
| 178 | |
| 179 | uart2: serial@ff690000 { |
| 180 | compatible = "rockchip,rk3288-uart", "snps,dw-apb-uart"; |
| 181 | reg = <0xff690000 0x100>; |
| 182 | interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>; |
| 183 | reg-shift = <2>; |
| 184 | reg-io-width = <4>; |
| 185 | clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>; |
| 186 | clock-names = "baudclk", "apb_pclk"; |
| 187 | pinctrl-names = "default"; |
| 188 | pinctrl-0 = <&uart2_xfer>; |
| 189 | status = "disabled"; |
| 190 | }; |
| 191 | |
| 192 | uart3: serial@ff1b0000 { |
| 193 | compatible = "rockchip,rk3288-uart", "snps,dw-apb-uart"; |
| 194 | reg = <0xff1b0000 0x100>; |
| 195 | interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>; |
| 196 | reg-shift = <2>; |
| 197 | reg-io-width = <4>; |
| 198 | clocks = <&cru SCLK_UART3>, <&cru PCLK_UART3>; |
| 199 | clock-names = "baudclk", "apb_pclk"; |
| 200 | pinctrl-names = "default"; |
| 201 | pinctrl-0 = <&uart3_xfer>; |
| 202 | status = "disabled"; |
| 203 | }; |
| 204 | |
| 205 | uart4: serial@ff1c0000 { |
| 206 | compatible = "rockchip,rk3288-uart", "snps,dw-apb-uart"; |
| 207 | reg = <0xff1c0000 0x100>; |
| 208 | interrupts = <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>; |
| 209 | reg-shift = <2>; |
| 210 | reg-io-width = <4>; |
| 211 | clocks = <&cru SCLK_UART4>, <&cru PCLK_UART4>; |
| 212 | clock-names = "baudclk", "apb_pclk"; |
| 213 | pinctrl-names = "default"; |
| 214 | pinctrl-0 = <&uart4_xfer>; |
| 215 | status = "disabled"; |
| 216 | }; |
| 217 | |
Doug Anderson | c9c32c5 | 2014-08-07 17:44:19 +0200 | [diff] [blame] | 218 | usb_host0_ehci: usb@ff500000 { |
| 219 | compatible = "generic-ehci"; |
| 220 | reg = <0xff500000 0x100>; |
| 221 | interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>; |
| 222 | clocks = <&cru HCLK_USBHOST0>; |
| 223 | clock-names = "usbhost"; |
| 224 | status = "disabled"; |
| 225 | }; |
| 226 | |
| 227 | /* NOTE: ohci@ff520000 doesn't actually work on hardware */ |
| 228 | |
| 229 | usb_hsic: usb@ff5c0000 { |
| 230 | compatible = "generic-ehci"; |
| 231 | reg = <0xff5c0000 0x100>; |
| 232 | interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>; |
| 233 | clocks = <&cru HCLK_HSIC>; |
| 234 | clock-names = "usbhost"; |
| 235 | status = "disabled"; |
| 236 | }; |
| 237 | |
Heiko Stuebner | 2ab557b | 2014-07-15 20:16:19 +0200 | [diff] [blame] | 238 | i2c0: i2c@ff650000 { |
| 239 | compatible = "rockchip,rk3288-i2c"; |
| 240 | reg = <0xff650000 0x1000>; |
| 241 | interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>; |
| 242 | #address-cells = <1>; |
| 243 | #size-cells = <0>; |
| 244 | clock-names = "i2c"; |
| 245 | clocks = <&cru PCLK_I2C0>; |
| 246 | pinctrl-names = "default"; |
| 247 | pinctrl-0 = <&i2c0_xfer>; |
| 248 | status = "disabled"; |
| 249 | }; |
| 250 | |
| 251 | i2c2: i2c@ff660000 { |
| 252 | compatible = "rockchip,rk3288-i2c"; |
| 253 | reg = <0xff660000 0x1000>; |
| 254 | interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>; |
| 255 | #address-cells = <1>; |
| 256 | #size-cells = <0>; |
| 257 | clock-names = "i2c"; |
| 258 | clocks = <&cru PCLK_I2C2>; |
| 259 | pinctrl-names = "default"; |
| 260 | pinctrl-0 = <&i2c2_xfer>; |
| 261 | status = "disabled"; |
| 262 | }; |
| 263 | |
Doug Anderson | df542df | 2014-08-25 15:59:26 -0700 | [diff] [blame^] | 264 | pwm0: pwm@ff680000 { |
| 265 | compatible = "rockchip,rk3288-pwm"; |
| 266 | reg = <0xff680000 0x10>; |
| 267 | #pwm-cells = <3>; |
| 268 | pinctrl-names = "default"; |
| 269 | pinctrl-0 = <&pwm0_pin>; |
| 270 | clocks = <&cru PCLK_PWM>; |
| 271 | clock-names = "pwm"; |
| 272 | status = "disabled"; |
| 273 | }; |
| 274 | |
| 275 | pwm1: pwm@ff680010 { |
| 276 | compatible = "rockchip,rk3288-pwm"; |
| 277 | reg = <0xff680010 0x10>; |
| 278 | #pwm-cells = <3>; |
| 279 | pinctrl-names = "default"; |
| 280 | pinctrl-0 = <&pwm1_pin>; |
| 281 | clocks = <&cru PCLK_PWM>; |
| 282 | clock-names = "pwm"; |
| 283 | status = "disabled"; |
| 284 | }; |
| 285 | |
| 286 | pwm2: pwm@ff680020 { |
| 287 | compatible = "rockchip,rk3288-pwm"; |
| 288 | reg = <0xff680020 0x10>; |
| 289 | #pwm-cells = <3>; |
| 290 | pinctrl-names = "default"; |
| 291 | pinctrl-0 = <&pwm2_pin>; |
| 292 | clocks = <&cru PCLK_PWM>; |
| 293 | clock-names = "pwm"; |
| 294 | status = "disabled"; |
| 295 | }; |
| 296 | |
| 297 | pwm3: pwm@ff680030 { |
| 298 | compatible = "rockchip,rk3288-pwm"; |
| 299 | reg = <0xff680030 0x10>; |
| 300 | #pwm-cells = <2>; |
| 301 | pinctrl-names = "default"; |
| 302 | pinctrl-0 = <&pwm3_pin>; |
| 303 | clocks = <&cru PCLK_PWM>; |
| 304 | clock-names = "pwm"; |
| 305 | status = "disabled"; |
| 306 | }; |
| 307 | |
Heiko Stuebner | 2ab557b | 2014-07-15 20:16:19 +0200 | [diff] [blame] | 308 | pmu: power-management@ff730000 { |
| 309 | compatible = "rockchip,rk3288-pmu", "syscon"; |
| 310 | reg = <0xff730000 0x100>; |
| 311 | }; |
| 312 | |
| 313 | sgrf: syscon@ff740000 { |
| 314 | compatible = "rockchip,rk3288-sgrf", "syscon"; |
| 315 | reg = <0xff740000 0x1000>; |
| 316 | }; |
| 317 | |
| 318 | cru: clock-controller@ff760000 { |
| 319 | compatible = "rockchip,rk3288-cru"; |
| 320 | reg = <0xff760000 0x1000>; |
| 321 | rockchip,grf = <&grf>; |
| 322 | #clock-cells = <1>; |
| 323 | #reset-cells = <1>; |
| 324 | }; |
| 325 | |
| 326 | grf: syscon@ff770000 { |
| 327 | compatible = "rockchip,rk3288-grf", "syscon"; |
| 328 | reg = <0xff770000 0x1000>; |
| 329 | }; |
| 330 | |
| 331 | wdt: watchdog@ff800000 { |
| 332 | compatible = "rockchip,rk3288-wdt", "snps,dw-wdt"; |
| 333 | reg = <0xff800000 0x100>; |
| 334 | interrupts = <GIC_SPI 111 IRQ_TYPE_LEVEL_HIGH>; |
| 335 | status = "disabled"; |
| 336 | }; |
| 337 | |
Heiko Stuebner | 2ab557b | 2014-07-15 20:16:19 +0200 | [diff] [blame] | 338 | gic: interrupt-controller@ffc01000 { |
| 339 | compatible = "arm,gic-400"; |
| 340 | interrupt-controller; |
| 341 | #interrupt-cells = <3>; |
| 342 | #address-cells = <0>; |
| 343 | |
| 344 | reg = <0xffc01000 0x1000>, |
| 345 | <0xffc02000 0x1000>, |
| 346 | <0xffc04000 0x2000>, |
| 347 | <0xffc06000 0x2000>; |
| 348 | interrupts = <GIC_PPI 9 0xf04>; |
| 349 | }; |
| 350 | |
| 351 | pinctrl: pinctrl { |
| 352 | compatible = "rockchip,rk3288-pinctrl"; |
| 353 | rockchip,grf = <&grf>; |
| 354 | rockchip,pmu = <&pmu>; |
| 355 | #address-cells = <1>; |
| 356 | #size-cells = <1>; |
| 357 | ranges; |
| 358 | |
| 359 | gpio0: gpio0@ff750000 { |
| 360 | compatible = "rockchip,gpio-bank"; |
| 361 | reg = <0xff750000 0x100>; |
| 362 | interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>; |
| 363 | clocks = <&cru PCLK_GPIO0>; |
| 364 | |
| 365 | gpio-controller; |
| 366 | #gpio-cells = <2>; |
| 367 | |
| 368 | interrupt-controller; |
| 369 | #interrupt-cells = <2>; |
| 370 | }; |
| 371 | |
| 372 | gpio1: gpio1@ff780000 { |
| 373 | compatible = "rockchip,gpio-bank"; |
| 374 | reg = <0xff780000 0x100>; |
| 375 | interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>; |
| 376 | clocks = <&cru PCLK_GPIO1>; |
| 377 | |
| 378 | gpio-controller; |
| 379 | #gpio-cells = <2>; |
| 380 | |
| 381 | interrupt-controller; |
| 382 | #interrupt-cells = <2>; |
| 383 | }; |
| 384 | |
| 385 | gpio2: gpio2@ff790000 { |
| 386 | compatible = "rockchip,gpio-bank"; |
| 387 | reg = <0xff790000 0x100>; |
| 388 | interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>; |
| 389 | clocks = <&cru PCLK_GPIO2>; |
| 390 | |
| 391 | gpio-controller; |
| 392 | #gpio-cells = <2>; |
| 393 | |
| 394 | interrupt-controller; |
| 395 | #interrupt-cells = <2>; |
| 396 | }; |
| 397 | |
| 398 | gpio3: gpio3@ff7a0000 { |
| 399 | compatible = "rockchip,gpio-bank"; |
| 400 | reg = <0xff7a0000 0x100>; |
| 401 | interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>; |
| 402 | clocks = <&cru PCLK_GPIO3>; |
| 403 | |
| 404 | gpio-controller; |
| 405 | #gpio-cells = <2>; |
| 406 | |
| 407 | interrupt-controller; |
| 408 | #interrupt-cells = <2>; |
| 409 | }; |
| 410 | |
| 411 | gpio4: gpio4@ff7b0000 { |
| 412 | compatible = "rockchip,gpio-bank"; |
| 413 | reg = <0xff7b0000 0x100>; |
| 414 | interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>; |
| 415 | clocks = <&cru PCLK_GPIO4>; |
| 416 | |
| 417 | gpio-controller; |
| 418 | #gpio-cells = <2>; |
| 419 | |
| 420 | interrupt-controller; |
| 421 | #interrupt-cells = <2>; |
| 422 | }; |
| 423 | |
| 424 | gpio5: gpio5@ff7c0000 { |
| 425 | compatible = "rockchip,gpio-bank"; |
| 426 | reg = <0xff7c0000 0x100>; |
| 427 | interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>; |
| 428 | clocks = <&cru PCLK_GPIO5>; |
| 429 | |
| 430 | gpio-controller; |
| 431 | #gpio-cells = <2>; |
| 432 | |
| 433 | interrupt-controller; |
| 434 | #interrupt-cells = <2>; |
| 435 | }; |
| 436 | |
| 437 | gpio6: gpio6@ff7d0000 { |
| 438 | compatible = "rockchip,gpio-bank"; |
| 439 | reg = <0xff7d0000 0x100>; |
| 440 | interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>; |
| 441 | clocks = <&cru PCLK_GPIO6>; |
| 442 | |
| 443 | gpio-controller; |
| 444 | #gpio-cells = <2>; |
| 445 | |
| 446 | interrupt-controller; |
| 447 | #interrupt-cells = <2>; |
| 448 | }; |
| 449 | |
| 450 | gpio7: gpio7@ff7e0000 { |
| 451 | compatible = "rockchip,gpio-bank"; |
| 452 | reg = <0xff7e0000 0x100>; |
| 453 | interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>; |
| 454 | clocks = <&cru PCLK_GPIO7>; |
| 455 | |
| 456 | gpio-controller; |
| 457 | #gpio-cells = <2>; |
| 458 | |
| 459 | interrupt-controller; |
| 460 | #interrupt-cells = <2>; |
| 461 | }; |
| 462 | |
| 463 | gpio8: gpio8@ff7f0000 { |
| 464 | compatible = "rockchip,gpio-bank"; |
| 465 | reg = <0xff7f0000 0x100>; |
| 466 | interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>; |
| 467 | clocks = <&cru PCLK_GPIO8>; |
| 468 | |
| 469 | gpio-controller; |
| 470 | #gpio-cells = <2>; |
| 471 | |
| 472 | interrupt-controller; |
| 473 | #interrupt-cells = <2>; |
| 474 | }; |
| 475 | |
| 476 | pcfg_pull_up: pcfg-pull-up { |
| 477 | bias-pull-up; |
| 478 | }; |
| 479 | |
| 480 | pcfg_pull_down: pcfg-pull-down { |
| 481 | bias-pull-down; |
| 482 | }; |
| 483 | |
| 484 | pcfg_pull_none: pcfg-pull-none { |
| 485 | bias-disable; |
| 486 | }; |
| 487 | |
| 488 | i2c0 { |
| 489 | i2c0_xfer: i2c0-xfer { |
| 490 | rockchip,pins = <0 15 RK_FUNC_1 &pcfg_pull_none>, |
| 491 | <0 16 RK_FUNC_1 &pcfg_pull_none>; |
| 492 | }; |
| 493 | }; |
| 494 | |
| 495 | i2c1 { |
| 496 | i2c1_xfer: i2c1-xfer { |
| 497 | rockchip,pins = <8 4 RK_FUNC_1 &pcfg_pull_none>, |
| 498 | <8 5 RK_FUNC_1 &pcfg_pull_none>; |
| 499 | }; |
| 500 | }; |
| 501 | |
| 502 | i2c2 { |
| 503 | i2c2_xfer: i2c2-xfer { |
| 504 | rockchip,pins = <6 9 RK_FUNC_1 &pcfg_pull_none>, |
| 505 | <6 10 RK_FUNC_1 &pcfg_pull_none>; |
| 506 | }; |
| 507 | }; |
| 508 | |
| 509 | i2c3 { |
| 510 | i2c3_xfer: i2c3-xfer { |
| 511 | rockchip,pins = <2 16 RK_FUNC_1 &pcfg_pull_none>, |
| 512 | <2 17 RK_FUNC_1 &pcfg_pull_none>; |
| 513 | }; |
| 514 | }; |
| 515 | |
| 516 | i2c4 { |
| 517 | i2c4_xfer: i2c4-xfer { |
| 518 | rockchip,pins = <7 17 RK_FUNC_1 &pcfg_pull_none>, |
| 519 | <7 18 RK_FUNC_1 &pcfg_pull_none>; |
| 520 | }; |
| 521 | }; |
| 522 | |
| 523 | i2c5 { |
| 524 | i2c5_xfer: i2c5-xfer { |
| 525 | rockchip,pins = <7 19 RK_FUNC_1 &pcfg_pull_none>, |
| 526 | <7 20 RK_FUNC_1 &pcfg_pull_none>; |
| 527 | }; |
| 528 | }; |
| 529 | |
| 530 | sdmmc { |
| 531 | sdmmc_clk: sdmmc-clk { |
| 532 | rockchip,pins = <6 20 RK_FUNC_1 &pcfg_pull_none>; |
| 533 | }; |
| 534 | |
| 535 | sdmmc_cmd: sdmmc-cmd { |
| 536 | rockchip,pins = <6 21 RK_FUNC_1 &pcfg_pull_up>; |
| 537 | }; |
| 538 | |
| 539 | sdmmc_cd: sdmcc-cd { |
| 540 | rockchip,pins = <6 22 RK_FUNC_1 &pcfg_pull_up>; |
| 541 | }; |
| 542 | |
| 543 | sdmmc_bus1: sdmmc-bus1 { |
| 544 | rockchip,pins = <6 16 RK_FUNC_1 &pcfg_pull_up>; |
| 545 | }; |
| 546 | |
| 547 | sdmmc_bus4: sdmmc-bus4 { |
| 548 | rockchip,pins = <6 16 RK_FUNC_1 &pcfg_pull_up>, |
| 549 | <6 17 RK_FUNC_1 &pcfg_pull_up>, |
| 550 | <6 18 RK_FUNC_1 &pcfg_pull_up>, |
| 551 | <6 19 RK_FUNC_1 &pcfg_pull_up>; |
| 552 | }; |
| 553 | }; |
| 554 | |
| 555 | emmc { |
| 556 | emmc_clk: emmc-clk { |
| 557 | rockchip,pins = <3 18 RK_FUNC_2 &pcfg_pull_none>; |
| 558 | }; |
| 559 | |
| 560 | emmc_cmd: emmc-cmd { |
| 561 | rockchip,pins = <3 16 RK_FUNC_2 &pcfg_pull_up>; |
| 562 | }; |
| 563 | |
| 564 | emmc_pwr: emmc-pwr { |
| 565 | rockchip,pins = <3 9 RK_FUNC_2 &pcfg_pull_up>; |
| 566 | }; |
| 567 | |
| 568 | emmc_bus1: emmc-bus1 { |
| 569 | rockchip,pins = <3 0 RK_FUNC_2 &pcfg_pull_up>; |
| 570 | }; |
| 571 | |
| 572 | emmc_bus4: emmc-bus4 { |
| 573 | rockchip,pins = <3 0 RK_FUNC_2 &pcfg_pull_up>, |
| 574 | <3 1 RK_FUNC_2 &pcfg_pull_up>, |
| 575 | <3 2 RK_FUNC_2 &pcfg_pull_up>, |
| 576 | <3 3 RK_FUNC_2 &pcfg_pull_up>; |
| 577 | }; |
| 578 | |
| 579 | emmc_bus8: emmc-bus8 { |
| 580 | rockchip,pins = <3 0 RK_FUNC_2 &pcfg_pull_up>, |
| 581 | <3 1 RK_FUNC_2 &pcfg_pull_up>, |
| 582 | <3 2 RK_FUNC_2 &pcfg_pull_up>, |
| 583 | <3 3 RK_FUNC_2 &pcfg_pull_up>, |
| 584 | <3 4 RK_FUNC_2 &pcfg_pull_up>, |
| 585 | <3 5 RK_FUNC_2 &pcfg_pull_up>, |
| 586 | <3 6 RK_FUNC_2 &pcfg_pull_up>, |
| 587 | <3 7 RK_FUNC_2 &pcfg_pull_up>; |
| 588 | }; |
| 589 | }; |
| 590 | |
| 591 | uart0 { |
| 592 | uart0_xfer: uart0-xfer { |
| 593 | rockchip,pins = <4 16 RK_FUNC_1 &pcfg_pull_up>, |
| 594 | <4 17 RK_FUNC_1 &pcfg_pull_none>; |
| 595 | }; |
| 596 | |
| 597 | uart0_cts: uart0-cts { |
| 598 | rockchip,pins = <4 18 RK_FUNC_1 &pcfg_pull_none>; |
| 599 | }; |
| 600 | |
| 601 | uart0_rts: uart0-rts { |
| 602 | rockchip,pins = <4 19 RK_FUNC_1 &pcfg_pull_none>; |
| 603 | }; |
| 604 | }; |
| 605 | |
| 606 | uart1 { |
| 607 | uart1_xfer: uart1-xfer { |
| 608 | rockchip,pins = <5 8 RK_FUNC_1 &pcfg_pull_up>, |
| 609 | <5 9 RK_FUNC_1 &pcfg_pull_none>; |
| 610 | }; |
| 611 | |
| 612 | uart1_cts: uart1-cts { |
| 613 | rockchip,pins = <5 10 RK_FUNC_1 &pcfg_pull_none>; |
| 614 | }; |
| 615 | |
| 616 | uart1_rts: uart1-rts { |
| 617 | rockchip,pins = <5 11 RK_FUNC_1 &pcfg_pull_none>; |
| 618 | }; |
| 619 | }; |
| 620 | |
| 621 | uart2 { |
| 622 | uart2_xfer: uart2-xfer { |
| 623 | rockchip,pins = <7 22 RK_FUNC_1 &pcfg_pull_up>, |
| 624 | <7 23 RK_FUNC_1 &pcfg_pull_none>; |
| 625 | }; |
| 626 | /* no rts / cts for uart2 */ |
| 627 | }; |
| 628 | |
| 629 | uart3 { |
| 630 | uart3_xfer: uart3-xfer { |
| 631 | rockchip,pins = <7 7 RK_FUNC_1 &pcfg_pull_up>, |
| 632 | <7 8 RK_FUNC_1 &pcfg_pull_none>; |
| 633 | }; |
| 634 | |
| 635 | uart3_cts: uart3-cts { |
| 636 | rockchip,pins = <7 9 RK_FUNC_1 &pcfg_pull_none>; |
| 637 | }; |
| 638 | |
| 639 | uart3_rts: uart3-rts { |
| 640 | rockchip,pins = <7 10 RK_FUNC_1 &pcfg_pull_none>; |
| 641 | }; |
| 642 | }; |
| 643 | |
| 644 | uart4 { |
| 645 | uart4_xfer: uart4-xfer { |
| 646 | rockchip,pins = <5 12 3 &pcfg_pull_up>, |
| 647 | <5 13 3 &pcfg_pull_none>; |
| 648 | }; |
| 649 | |
| 650 | uart4_cts: uart4-cts { |
| 651 | rockchip,pins = <5 14 3 &pcfg_pull_none>; |
| 652 | }; |
| 653 | |
| 654 | uart4_rts: uart4-rts { |
| 655 | rockchip,pins = <5 15 3 &pcfg_pull_none>; |
| 656 | }; |
| 657 | }; |
Doug Anderson | df542df | 2014-08-25 15:59:26 -0700 | [diff] [blame^] | 658 | |
| 659 | pwm0 { |
| 660 | pwm0_pin: pwm0-pin { |
| 661 | rockchip,pins = <7 0 RK_FUNC_1 &pcfg_pull_none>; |
| 662 | }; |
| 663 | }; |
| 664 | |
| 665 | pwm1 { |
| 666 | pwm1_pin: pwm1-pin { |
| 667 | rockchip,pins = <7 1 RK_FUNC_1 &pcfg_pull_none>; |
| 668 | }; |
| 669 | }; |
| 670 | |
| 671 | pwm2 { |
| 672 | pwm2_pin: pwm2-pin { |
| 673 | rockchip,pins = <7 22 3 &pcfg_pull_none>; |
| 674 | }; |
| 675 | }; |
| 676 | |
| 677 | pwm3 { |
| 678 | pwm3_pin: pwm3-pin { |
| 679 | rockchip,pins = <7 23 3 &pcfg_pull_none>; |
| 680 | }; |
| 681 | }; |
Heiko Stuebner | 2ab557b | 2014-07-15 20:16:19 +0200 | [diff] [blame] | 682 | }; |
| 683 | }; |