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