| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | | - * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/ |
|---|
| 3 | | - * |
|---|
| 4 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 5 | | - * it under the terms of the GNU General Public License version 2 as |
|---|
| 6 | | - * published by the Free Software Foundation. |
|---|
| 3 | + * Copyright (C) 2011 Texas Instruments Incorporated - https://www.ti.com/ |
|---|
| 7 | 4 | */ |
|---|
| 8 | 5 | /dts-v1/; |
|---|
| 9 | 6 | |
|---|
| 10 | 7 | #include "omap443x.dtsi" |
|---|
| 11 | 8 | #include "elpida_ecb240abacn.dtsi" |
|---|
| 9 | +#include "omap4-mcpdm.dtsi" |
|---|
| 12 | 10 | |
|---|
| 13 | 11 | / { |
|---|
| 14 | 12 | model = "TI OMAP4 SDP board"; |
|---|
| .. | .. |
|---|
| 26 | 24 | }; |
|---|
| 27 | 25 | |
|---|
| 28 | 26 | vdd_eth: fixedregulator-vdd-eth { |
|---|
| 27 | + pinctrl-names = "default"; |
|---|
| 28 | + pinctrl-0 = <&enet_enable_gpio>; |
|---|
| 29 | + |
|---|
| 29 | 30 | compatible = "regulator-fixed"; |
|---|
| 30 | 31 | regulator-name = "VDD_ETH"; |
|---|
| 31 | 32 | regulator-min-microvolt = <3300000>; |
|---|
| .. | .. |
|---|
| 243 | 244 | >; |
|---|
| 244 | 245 | }; |
|---|
| 245 | 246 | |
|---|
| 246 | | - mcpdm_pins: pinmux_mcpdm_pins { |
|---|
| 247 | | - pinctrl-single,pins = < |
|---|
| 248 | | - OMAP4_IOPAD(0x106, PIN_INPUT_PULLDOWN | MUX_MODE0) /* abe_pdm_ul_data.abe_pdm_ul_data */ |
|---|
| 249 | | - OMAP4_IOPAD(0x108, PIN_INPUT_PULLDOWN | MUX_MODE0) /* abe_pdm_dl_data.abe_pdm_dl_data */ |
|---|
| 250 | | - OMAP4_IOPAD(0x10a, PIN_INPUT_PULLUP | MUX_MODE0) /* abe_pdm_frame.abe_pdm_frame */ |
|---|
| 251 | | - OMAP4_IOPAD(0x10c, PIN_INPUT_PULLDOWN | MUX_MODE0) /* abe_pdm_lb_clk.abe_pdm_lb_clk */ |
|---|
| 252 | | - OMAP4_IOPAD(0x10e, PIN_INPUT_PULLDOWN | MUX_MODE0) /* abe_clks.abe_clks */ |
|---|
| 253 | | - >; |
|---|
| 254 | | - }; |
|---|
| 255 | | - |
|---|
| 256 | 247 | dmic_pins: pinmux_dmic_pins { |
|---|
| 257 | 248 | pinctrl-single,pins = < |
|---|
| 258 | 249 | OMAP4_IOPAD(0x110, PIN_OUTPUT | MUX_MODE0) /* abe_dmic_clk1.abe_dmic_clk1 */ |
|---|
| .. | .. |
|---|
| 352 | 343 | OMAP4_IOPAD(0x152, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc5_dat3.sdmmc5_dat3 */ |
|---|
| 353 | 344 | >; |
|---|
| 354 | 345 | }; |
|---|
| 346 | + |
|---|
| 347 | + /* gpio_48 for ENET_ENABLE */ |
|---|
| 348 | + enet_enable_gpio: pinmux_enet_enable_gpio { |
|---|
| 349 | + pinctrl-single,pins = < |
|---|
| 350 | + OMAP4_IOPAD(0x070, PIN_OUTPUT_PULLDOWN | MUX_MODE3) /* gpmc_a24.gpio_48 */ |
|---|
| 351 | + >; |
|---|
| 352 | + }; |
|---|
| 353 | + |
|---|
| 354 | + ks8851_pins: pinmux_ks8851_pins { |
|---|
| 355 | + pinctrl-single,pins = < |
|---|
| 356 | + /* ENET_INT */ |
|---|
| 357 | + OMAP4_IOPAD(0x054, PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_ad10.gpio_34 */ |
|---|
| 358 | + /* |
|---|
| 359 | + * Misterious pin which makes the ethernet working |
|---|
| 360 | + * The legacy board file requested this pin on boot |
|---|
| 361 | + * (ETH_KS8851_QUART) and set it to high, similarly to |
|---|
| 362 | + * the ENET_ENABLE pin. |
|---|
| 363 | + * We could use gpio-hog to keep it high, but let's use |
|---|
| 364 | + * it as a reset GPIO for ks8851. |
|---|
| 365 | + */ |
|---|
| 366 | + OMAP4_IOPAD(0x13a, PIN_OUTPUT_PULLUP | MUX_MODE3) /* mcspi1_cs1.gpio_138 */ |
|---|
| 367 | + >; |
|---|
| 368 | + }; |
|---|
| 355 | 369 | }; |
|---|
| 356 | 370 | |
|---|
| 357 | 371 | &i2c1 { |
|---|
| .. | .. |
|---|
| 414 | 428 | |
|---|
| 415 | 429 | /* |
|---|
| 416 | 430 | * Temperature Sensor |
|---|
| 417 | | - * http://www.ti.com/lit/ds/symlink/tmp105.pdf |
|---|
| 431 | + * https://www.ti.com/lit/ds/symlink/tmp105.pdf |
|---|
| 418 | 432 | */ |
|---|
| 419 | 433 | tmp105@48 { |
|---|
| 420 | 434 | compatible = "ti,tmp105"; |
|---|
| .. | .. |
|---|
| 439 | 453 | |
|---|
| 440 | 454 | /* |
|---|
| 441 | 455 | * 3-Axis Digital Compass |
|---|
| 442 | | - * http://www.sparkfun.com/datasheets/Sensors/Magneto/HMC5843.pdf |
|---|
| 456 | + * https://www.sparkfun.com/datasheets/Sensors/Magneto/HMC5843.pdf |
|---|
| 443 | 457 | */ |
|---|
| 444 | 458 | hmc5843@1e { |
|---|
| 445 | 459 | compatible = "honeywell,hmc5843"; |
|---|
| .. | .. |
|---|
| 452 | 466 | pinctrl-0 = <&mcspi1_pins>; |
|---|
| 453 | 467 | |
|---|
| 454 | 468 | eth@0 { |
|---|
| 469 | + pinctrl-names = "default"; |
|---|
| 470 | + pinctrl-0 = <&ks8851_pins>; |
|---|
| 471 | + |
|---|
| 455 | 472 | compatible = "ks8851"; |
|---|
| 456 | 473 | spi-max-frequency = <24000000>; |
|---|
| 457 | 474 | reg = <0>; |
|---|
| 458 | 475 | interrupt-parent = <&gpio2>; |
|---|
| 459 | 476 | interrupts = <2 IRQ_TYPE_LEVEL_LOW>; /* gpio line 34 */ |
|---|
| 460 | 477 | vdd-supply = <&vdd_eth>; |
|---|
| 478 | + reset-gpios = <&gpio5 10 GPIO_ACTIVE_HIGH>; |
|---|
| 461 | 479 | }; |
|---|
| 462 | 480 | }; |
|---|
| 463 | 481 | |
|---|
| .. | .. |
|---|
| 494 | 512 | compatible = "ti,wl1281"; |
|---|
| 495 | 513 | reg = <2>; |
|---|
| 496 | 514 | interrupt-parent = <&gpio1>; |
|---|
| 497 | | - interrupts = <21 IRQ_TYPE_EDGE_RISING>; /* gpio 53 */ |
|---|
| 515 | + interrupts = <21 IRQ_TYPE_LEVEL_HIGH>; /* gpio 53 */ |
|---|
| 498 | 516 | ref-clock-frequency = <26000000>; |
|---|
| 499 | 517 | tcxo-clock-frequency = <26000000>; |
|---|
| 500 | 518 | }; |
|---|
| .. | .. |
|---|
| 619 | 637 | status = "okay"; |
|---|
| 620 | 638 | }; |
|---|
| 621 | 639 | |
|---|
| 622 | | -&mcpdm { |
|---|
| 623 | | - pinctrl-names = "default"; |
|---|
| 624 | | - pinctrl-0 = <&mcpdm_pins>; |
|---|
| 625 | | - |
|---|
| 626 | | - clocks = <&twl6040>; |
|---|
| 627 | | - clock-names = "pdmclk"; |
|---|
| 628 | | - |
|---|
| 629 | | - status = "okay"; |
|---|
| 630 | | -}; |
|---|
| 631 | | - |
|---|
| 632 | 640 | &twl_usb_comparator { |
|---|
| 633 | 641 | usb-supply = <&vusb>; |
|---|
| 634 | 642 | }; |
|---|
| .. | .. |
|---|
| 640 | 648 | }; |
|---|
| 641 | 649 | |
|---|
| 642 | 650 | &dss { |
|---|
| 643 | | - status = "ok"; |
|---|
| 651 | + status = "okay"; |
|---|
| 644 | 652 | }; |
|---|
| 645 | 653 | |
|---|
| 646 | 654 | &dsi1 { |
|---|
| 647 | | - status = "ok"; |
|---|
| 655 | + status = "okay"; |
|---|
| 648 | 656 | vdd-supply = <&vcxio>; |
|---|
| 649 | 657 | |
|---|
| 650 | 658 | port { |
|---|
| .. | .. |
|---|
| 654 | 662 | }; |
|---|
| 655 | 663 | }; |
|---|
| 656 | 664 | |
|---|
| 657 | | - lcd0: display { |
|---|
| 665 | + lcd0: panel@0 { |
|---|
| 658 | 666 | compatible = "tpo,taal", "panel-dsi-cm"; |
|---|
| 667 | + reg = <0>; |
|---|
| 659 | 668 | label = "lcd0"; |
|---|
| 660 | 669 | |
|---|
| 661 | 670 | reset-gpios = <&gpio4 6 GPIO_ACTIVE_HIGH>; /* 102 */ |
|---|
| .. | .. |
|---|
| 669 | 678 | }; |
|---|
| 670 | 679 | |
|---|
| 671 | 680 | &dsi2 { |
|---|
| 672 | | - status = "ok"; |
|---|
| 681 | + status = "okay"; |
|---|
| 673 | 682 | vdd-supply = <&vcxio>; |
|---|
| 674 | 683 | |
|---|
| 675 | 684 | port { |
|---|
| .. | .. |
|---|
| 679 | 688 | }; |
|---|
| 680 | 689 | }; |
|---|
| 681 | 690 | |
|---|
| 682 | | - lcd1: display { |
|---|
| 691 | + lcd1: panel@0 { |
|---|
| 683 | 692 | compatible = "tpo,taal", "panel-dsi-cm"; |
|---|
| 693 | + reg = <0>; |
|---|
| 684 | 694 | label = "lcd1"; |
|---|
| 685 | 695 | |
|---|
| 686 | 696 | reset-gpios = <&gpio4 8 GPIO_ACTIVE_HIGH>; /* 104 */ |
|---|
| .. | .. |
|---|
| 694 | 704 | }; |
|---|
| 695 | 705 | |
|---|
| 696 | 706 | &hdmi { |
|---|
| 697 | | - status = "ok"; |
|---|
| 707 | + status = "okay"; |
|---|
| 698 | 708 | vdda-supply = <&vdac>; |
|---|
| 699 | 709 | |
|---|
| 700 | 710 | port { |
|---|