1 // SPDX-License-Identifier: GPL-2.0 2 /* 3 * Device Tree Source for the Draak board 4 * 5 * Copyright (C) 2016-2018 Renesas Electronics 6 * Copyright (C) 2017 Glider bvba 7 */ 8 9 #include <dt-bindings/gpio/gpio.h> 10 #include <dt-bindings/input/input.h> 11 12 / { 13 model = "Renesas Draak board"; 14 compatible = "renesas,draak"; 15 16 aliases { 17 serial0 = &scif2; 18 ethernet0 = &avb; 19 }; 20 21 audio_clkout: audio-clkout { 22 /* 23 * This is same as <&rcar_soun 24 * but needed to avoid cs2000/ 25 */ 26 compatible = "fixed-clock"; 27 #clock-cells = <0>; 28 clock-frequency = <12288000>; 29 }; 30 31 backlight: backlight { 32 compatible = "pwm-backlight"; 33 pwms = <&pwm1 0 50000>; 34 35 brightness-levels = <512 511 5 36 default-brightness-level = <10 37 38 power-supply = <®_12p0v>; 39 enable-gpios = <&gpio4 0 GPIO_ 40 }; 41 42 chosen { 43 bootargs = "ignore_loglevel rw 44 stdout-path = "serial0:115200n 45 }; 46 47 composite-in { 48 compatible = "composite-video- 49 50 port { 51 composite_con_in: endp 52 remote-endpoin 53 }; 54 }; 55 }; 56 57 hdmi-in { 58 compatible = "hdmi-connector"; 59 type = "a"; 60 61 port { 62 hdmi_con_in: endpoint 63 remote-endpoin 64 }; 65 }; 66 }; 67 68 hdmi-out { 69 compatible = "hdmi-connector"; 70 type = "a"; 71 72 port { 73 hdmi_con_out: endpoint 74 remote-endpoin 75 }; 76 }; 77 }; 78 79 keys { 80 compatible = "gpio-keys"; 81 82 pinctrl-0 = <&keys_pins>; 83 pinctrl-names = "default"; 84 85 key-1 { 86 gpios = <&gpio4 12 GPI 87 linux,code = <KEY_1>; 88 label = "SW56-1"; 89 wakeup-source; 90 debounce-interval = <2 91 }; 92 key-2 { 93 gpios = <&gpio4 13 GPI 94 linux,code = <KEY_2>; 95 label = "SW56-2"; 96 wakeup-source; 97 debounce-interval = <2 98 }; 99 key-3 { 100 gpios = <&gpio4 14 GPI 101 linux,code = <KEY_3>; 102 label = "SW56-3"; 103 wakeup-source; 104 debounce-interval = <2 105 }; 106 key-4 { 107 gpios = <&gpio4 15 GPI 108 linux,code = <KEY_4>; 109 label = "SW56-4"; 110 wakeup-source; 111 debounce-interval = <2 112 }; 113 }; 114 115 lvds-decoder { 116 compatible = "thine,thc63lvd10 117 vcc-supply = <®_3p3v>; 118 119 ports { 120 #address-cells = <1>; 121 #size-cells = <0>; 122 123 port@0 { 124 reg = <0>; 125 thc63lvd1024_i 126 remote 127 }; 128 }; 129 130 port@2 { 131 reg = <2>; 132 thc63lvd1024_o 133 remote 134 }; 135 }; 136 }; 137 }; 138 139 memory@48000000 { 140 device_type = "memory"; 141 /* first 128MB is reserved for 142 reg = <0x0 0x48000000 0x0 0x18 143 }; 144 145 reg_1p8v: regulator-1p8v { 146 compatible = "regulator-fixed" 147 regulator-name = "fixed-1.8V"; 148 regulator-min-microvolt = <180 149 regulator-max-microvolt = <180 150 regulator-boot-on; 151 regulator-always-on; 152 }; 153 154 reg_3p3v: regulator-3p3v { 155 compatible = "regulator-fixed" 156 regulator-name = "fixed-3.3V"; 157 regulator-min-microvolt = <330 158 regulator-max-microvolt = <330 159 regulator-boot-on; 160 regulator-always-on; 161 }; 162 163 reg_12p0v: regulator-12p0v { 164 compatible = "regulator-fixed" 165 regulator-name = "D12.0V"; 166 regulator-min-microvolt = <120 167 regulator-max-microvolt = <120 168 regulator-boot-on; 169 regulator-always-on; 170 }; 171 172 sound_card: sound { 173 compatible = "audio-graph-card 174 175 dais = <&rsnd_port0 /* ak4 176 /* HDMI is not yet sup 177 >; 178 }; 179 180 vga { 181 compatible = "vga-connector"; 182 183 port { 184 vga_in: endpoint { 185 remote-endpoin 186 }; 187 }; 188 }; 189 190 vga-encoder { 191 compatible = "adi,adv7123"; 192 193 ports { 194 #address-cells = <1>; 195 #size-cells = <0>; 196 197 port@0 { 198 reg = <0>; 199 adv7123_in: en 200 remote 201 }; 202 }; 203 port@1 { 204 reg = <1>; 205 adv7123_out: e 206 remote 207 }; 208 }; 209 }; 210 }; 211 212 x12_clk: x12 { 213 compatible = "fixed-clock"; 214 #clock-cells = <0>; 215 clock-frequency = <74250000>; 216 }; 217 218 x19_clk: x19 { 219 compatible = "fixed-clock"; 220 #clock-cells = <0>; 221 clock-frequency = <24576000>; 222 }; 223 }; 224 225 &audio_clk_b { 226 /* 227 * X11 is connected to VI4_FIELD/SCIF_ 228 * and R-Car Sound uses AUDIO_CLKB. 229 * Note is that schematic indicates VI 230 * not AUDIO_CLKB at SoC page. 231 * And this VI4_FIELD/SCIF_CLK/AUDIO_C 232 * SW60 should be 1-2. 233 */ 234 235 clock-frequency = <22579200>; 236 }; 237 238 &avb { 239 pinctrl-0 = <&avb0_pins>; 240 pinctrl-names = "default"; 241 renesas,no-ether-link; 242 phy-handle = <&phy0>; 243 status = "okay"; 244 245 phy0: ethernet-phy@0 { 246 compatible = "ethernet-phy-id0 247 "ethernet-phy-iee 248 rxc-skew-ps = <1500>; 249 reg = <0>; 250 interrupt-parent = <&gpio5>; 251 interrupts = <19 IRQ_TYPE_LEVE 252 reset-gpios = <&gpio5 18 GPIO_ 253 /* 254 * TX clock internal delay mod 255 * 1Gbps communication using t 256 * the Draak board, however, T 257 * isn't supported on R-Car D3 258 * 100Mbps for reliable commun 259 */ 260 max-speed = <100>; 261 }; 262 }; 263 264 &can0 { 265 pinctrl-0 = <&can0_pins>; 266 pinctrl-names = "default"; 267 status = "okay"; 268 }; 269 270 &can1 { 271 pinctrl-0 = <&can1_pins>; 272 pinctrl-names = "default"; 273 status = "okay"; 274 }; 275 276 &du { 277 pinctrl-0 = <&du_pins>; 278 pinctrl-names = "default"; 279 status = "okay"; 280 281 clocks = <&cpg CPG_MOD 724>, 282 <&cpg CPG_MOD 723>, 283 <&x12_clk>; 284 clock-names = "du.0", "du.1", "dclkin. 285 286 ports { 287 port@0 { 288 du_out_rgb: endpoint { 289 remote-endpoin 290 }; 291 }; 292 }; 293 }; 294 295 &ehci0 { 296 dr_mode = "host"; 297 status = "okay"; 298 }; 299 300 &extal_clk { 301 clock-frequency = <48000000>; 302 }; 303 304 &hsusb { 305 dr_mode = "host"; 306 status = "okay"; 307 }; 308 309 &i2c0 { 310 pinctrl-0 = <&i2c0_pins>; 311 pinctrl-names = "default"; 312 status = "okay"; 313 314 ak4613: codec@10 { 315 compatible = "asahi-kasei,ak46 316 #sound-dai-cells = <0>; 317 reg = <0x10>; 318 clocks = <&rcar_sound 0>; /* a 319 320 asahi-kasei,in1-single-end; 321 asahi-kasei,in2-single-end; 322 asahi-kasei,out1-single-end; 323 asahi-kasei,out2-single-end; 324 asahi-kasei,out3-single-end; 325 asahi-kasei,out4-single-end; 326 asahi-kasei,out5-single-end; 327 asahi-kasei,out6-single-end; 328 329 port { 330 ak4613_endpoint: endpo 331 remote-endpoin 332 }; 333 }; 334 }; 335 336 composite-in@20 { 337 compatible = "adi,adv7180cp"; 338 reg = <0x20>; 339 340 ports { 341 #address-cells = <1>; 342 #size-cells = <0>; 343 344 port@0 { 345 reg = <0>; 346 adv7180_in: en 347 remote 348 }; 349 }; 350 351 port@3 { 352 reg = <3>; 353 354 /* 355 * The VIN4 vi 356 * CVBS and HD 357 * switches. 358 * 359 * HDMI is the 360 * not connect 361 */ 362 }; 363 }; 364 365 }; 366 367 hdmi-encoder@39 { 368 compatible = "adi,adv7511w"; 369 reg = <0x39>, <0x3f>, <0x3c>, 370 reg-names = "main", "edid", "c 371 interrupt-parent = <&gpio1>; 372 interrupts = <28 IRQ_TYPE_LEVE 373 374 avdd-supply = <®_1p8v>; 375 dvdd-supply = <®_1p8v>; 376 pvdd-supply = <®_1p8v>; 377 dvdd-3v-supply = <®_3p3v>; 378 bgvdd-supply = <®_1p8v>; 379 380 adi,input-depth = <8>; 381 adi,input-colorspace = "rgb"; 382 adi,input-clock = "1x"; 383 384 ports { 385 #address-cells = <1>; 386 #size-cells = <0>; 387 388 port@0 { 389 reg = <0>; 390 adv7511_in: en 391 remote 392 }; 393 }; 394 395 port@1 { 396 reg = <1>; 397 adv7511_out: e 398 remote 399 }; 400 }; 401 }; 402 }; 403 404 hdmi-decoder@4c { 405 compatible = "adi,adv7612"; 406 reg = <0x4c>; 407 default-input = <0>; 408 409 ports { 410 #address-cells = <1>; 411 #size-cells = <0>; 412 413 port@0 { 414 reg = <0>; 415 416 adv7612_in: en 417 remote 418 }; 419 }; 420 421 port@2 { 422 reg = <2>; 423 424 /* 425 * The VIN4 vi 426 * CVBS and HD 427 * switches. 428 * 429 * HDMI is the 430 * VIN4 here. 431 */ 432 adv7612_out: e 433 remote 434 }; 435 }; 436 }; 437 }; 438 439 cs2000: clk-multiplier@4f { 440 #clock-cells = <0>; 441 compatible = "cirrus,cs2000-cp 442 reg = <0x4f>; 443 clocks = <&audio_clkout>, <&x1 444 clock-names = "clk_in", "ref_c 445 446 assigned-clocks = <&cs2000>; 447 assigned-clock-rates = <245760 448 }; 449 450 eeprom@50 { 451 compatible = "rohm,br24t01", " 452 reg = <0x50>; 453 pagesize = <8>; 454 }; 455 }; 456 457 &i2c1 { 458 pinctrl-0 = <&i2c1_pins>; 459 pinctrl-names = "default"; 460 status = "okay"; 461 }; 462 463 &lvds0 { 464 status = "okay"; 465 466 clocks = <&cpg CPG_MOD 727>, 467 <&x12_clk>, 468 <&extal_clk>; 469 clock-names = "fck", "dclkin.0", "exta 470 471 ports { 472 port@1 { 473 lvds0_out: endpoint { 474 remote-endpoin 475 }; 476 }; 477 }; 478 }; 479 480 &lvds1 { 481 /* 482 * Even though the LVDS1 output is not 483 * enabled to supply a pixel clock to 484 * LVDS0 is in use. 485 */ 486 status = "okay"; 487 488 clocks = <&cpg CPG_MOD 727>, 489 <&x12_clk>, 490 <&extal_clk>; 491 clock-names = "fck", "dclkin.0", "exta 492 }; 493 494 &ohci0 { 495 dr_mode = "host"; 496 status = "okay"; 497 }; 498 499 &pfc { 500 avb0_pins: avb { 501 groups = "avb0_link", "avb0_md 502 function = "avb0"; 503 }; 504 505 can0_pins: can0 { 506 groups = "can0_data_a"; 507 function = "can0"; 508 }; 509 510 can1_pins: can1 { 511 groups = "can1_data_a"; 512 function = "can1"; 513 }; 514 515 du_pins: du { 516 groups = "du_rgb888", "du_sync 517 function = "du"; 518 }; 519 520 i2c0_pins: i2c0 { 521 groups = "i2c0"; 522 function = "i2c0"; 523 }; 524 525 i2c1_pins: i2c1 { 526 groups = "i2c1"; 527 function = "i2c1"; 528 }; 529 530 keys_pins: keys { 531 pins = "GP_4_12", "GP_4_13", " 532 bias-pull-up; 533 }; 534 535 pwm0_pins: pwm0 { 536 groups = "pwm0_c"; 537 function = "pwm0"; 538 }; 539 540 pwm1_pins: pwm1 { 541 groups = "pwm1_c"; 542 function = "pwm1"; 543 }; 544 545 rpc_pins: rpc { 546 groups = "rpc_clk2", "rpc_ctrl 547 "rpc_int"; 548 function = "rpc"; 549 }; 550 551 scif2_pins: scif2 { 552 groups = "scif2_data"; 553 function = "scif2"; 554 }; 555 556 sdhi2_pins: sd2 { 557 groups = "mmc_data8", "mmc_ctr 558 function = "mmc"; 559 power-source = <1800>; 560 }; 561 562 sdhi2_pins_uhs: sd2_uhs { 563 groups = "mmc_data8", "mmc_ctr 564 function = "mmc"; 565 power-source = <1800>; 566 }; 567 568 sound_pins: sound { 569 groups = "ssi34_ctrl", "ssi3_d 570 function = "ssi"; 571 }; 572 573 sound_clk_pins: sound-clk { 574 groups = "audio_clk_a", "audio 575 "audio_clkout", "audi 576 function = "audio_clk"; 577 }; 578 579 usb0_pins: usb0 { 580 groups = "usb0"; 581 function = "usb0"; 582 }; 583 584 vin4_pins: vin4 { 585 groups = "vin4_data24", "vin4_ 586 function = "vin4"; 587 }; 588 }; 589 590 &pwm0 { 591 pinctrl-0 = <&pwm0_pins>; 592 pinctrl-names = "default"; 593 594 status = "okay"; 595 }; 596 597 &pwm1 { 598 pinctrl-0 = <&pwm1_pins>; 599 pinctrl-names = "default"; 600 601 status = "okay"; 602 }; 603 604 &rcar_sound { 605 pinctrl-0 = <&sound_pins>, <&sound_clk 606 pinctrl-names = "default"; 607 608 /* Single DAI */ 609 #sound-dai-cells = <0>; 610 611 /* audio_clkout0/1 */ 612 #clock-cells = <1>; 613 clock-frequency = <12288000 11289600>; 614 615 status = "okay"; 616 617 clocks = <&cpg CPG_MOD 1005>, 618 <&cpg CPG_MOD 1011>, <&cpg CP 619 <&cpg CPG_MOD 1025>, <&cpg CP 620 <&cpg CPG_MOD 1020>, <&cpg CP 621 <&cpg CPG_MOD 1020>, <&cpg CP 622 <&cpg CPG_MOD 1019>, <&cpg CP 623 <&cs2000>, <&audio_clk_b>, 624 <&cpg CPG_CORE R8A77995_CLK_Z 625 626 ports { 627 rsnd_port0: port { 628 rsnd_for_ak4613: endpo 629 remote-endpoin 630 dai-format = " 631 bitclock-maste 632 frame-master = 633 playback = <&s 634 capture = <&ss 635 }; 636 }; 637 }; 638 }; 639 640 &rpc { 641 pinctrl-0 = <&rpc_pins>; 642 pinctrl-names = "default"; 643 644 /* Left disabled. To be enabled by fi 645 646 flash@0 { 647 compatible = "cypress,hyperfla 648 reg = <0>; 649 650 partitions { 651 compatible = "fixed-pa 652 #address-cells = <1>; 653 #size-cells = <1>; 654 655 bootparam@0 { 656 reg = <0x00000 657 read-only; 658 }; 659 bl2@40000 { 660 reg = <0x00040 661 read-only; 662 }; 663 cert_header_sa6@180000 664 reg = <0x00180 665 read-only; 666 }; 667 bl31@1c0000 { 668 reg = <0x001c0 669 read-only; 670 }; 671 tee@200000 { 672 reg = <0x00200 673 read-only; 674 }; 675 uboot@640000 { 676 reg = <0x00640 677 read-only; 678 }; 679 dtb@740000 { 680 reg = <0x00740 681 }; 682 kernel@7c0000 { 683 reg = <0x007c0 684 }; 685 user@1bc0000 { 686 reg = <0x01bc0 687 }; 688 }; 689 }; 690 }; 691 692 &rwdt { 693 timeout-sec = <60>; 694 status = "okay"; 695 }; 696 697 &scif2 { 698 pinctrl-0 = <&scif2_pins>; 699 pinctrl-names = "default"; 700 701 status = "okay"; 702 }; 703 704 &sdhi2 { 705 /* used for on-board eMMC */ 706 pinctrl-0 = <&sdhi2_pins>; 707 pinctrl-1 = <&sdhi2_pins_uhs>; 708 pinctrl-names = "default", "state_uhs" 709 710 vmmc-supply = <®_3p3v>; 711 vqmmc-supply = <®_1p8v>; 712 bus-width = <8>; 713 mmc-hs200-1_8v; 714 no-sd; 715 no-sdio; 716 non-removable; 717 status = "okay"; 718 }; 719 720 &ssi4 { 721 shared-pin; 722 }; 723 724 &usb2_phy0 { 725 pinctrl-0 = <&usb0_pins>; 726 pinctrl-names = "default"; 727 728 renesas,no-otg-pins; 729 status = "okay"; 730 }; 731 732 &vin4 { 733 pinctrl-0 = <&vin4_pins>; 734 pinctrl-names = "default"; 735 736 status = "okay"; 737 738 ports { 739 port { 740 vin4_in: endpoint { 741 pclk-sample = 742 hsync-active = 743 vsync-active = 744 remote-endpoin 745 }; 746 }; 747 }; 748 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.