| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | | - * Copyright (C) 2013 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) 2013 Texas Instruments Incorporated - https://www.ti.com/ |
|---|
| 7 | 4 | */ |
|---|
| 8 | 5 | |
|---|
| 9 | 6 | /* AM43x EPOS EVM */ |
|---|
| .. | .. |
|---|
| 50 | 47 | |
|---|
| 51 | 48 | backlight = <&lcd_bl>; |
|---|
| 52 | 49 | |
|---|
| 53 | | - panel-timing { |
|---|
| 54 | | - clock-frequency = <33000000>; |
|---|
| 55 | | - hactive = <800>; |
|---|
| 56 | | - vactive = <480>; |
|---|
| 57 | | - hfront-porch = <210>; |
|---|
| 58 | | - hback-porch = <16>; |
|---|
| 59 | | - hsync-len = <30>; |
|---|
| 60 | | - vback-porch = <10>; |
|---|
| 61 | | - vfront-porch = <22>; |
|---|
| 62 | | - vsync-len = <13>; |
|---|
| 63 | | - hsync-active = <0>; |
|---|
| 64 | | - vsync-active = <0>; |
|---|
| 65 | | - de-active = <1>; |
|---|
| 66 | | - pixelclk-active = <1>; |
|---|
| 67 | | - }; |
|---|
| 68 | | - |
|---|
| 69 | 50 | port { |
|---|
| 70 | 51 | lcd_in: endpoint { |
|---|
| 71 | 52 | remote-endpoint = <&dpi_out>; |
|---|
| .. | .. |
|---|
| 80 | 61 | pinctrl-names = "default", "sleep"; |
|---|
| 81 | 62 | pinctrl-0 = <&matrix_keypad_default>; |
|---|
| 82 | 63 | pinctrl-1 = <&matrix_keypad_sleep>; |
|---|
| 64 | + wakeup-source; |
|---|
| 83 | 65 | |
|---|
| 84 | 66 | row-gpios = <&gpio0 12 GPIO_ACTIVE_HIGH /* Bank0, pin12 */ |
|---|
| 85 | 67 | &gpio0 13 GPIO_ACTIVE_HIGH /* Bank0, pin13 */ |
|---|
| .. | .. |
|---|
| 146 | 128 | sound-dai = <&tlv320aic3111>; |
|---|
| 147 | 129 | system-clock-frequency = <12000000>; |
|---|
| 148 | 130 | }; |
|---|
| 131 | + }; |
|---|
| 132 | + |
|---|
| 133 | + audio_mstrclk: clock { |
|---|
| 134 | + compatible = "fixed-clock"; |
|---|
| 135 | + #clock-cells = <0>; |
|---|
| 136 | + clock-frequency = <12000000>; |
|---|
| 149 | 137 | }; |
|---|
| 150 | 138 | }; |
|---|
| 151 | 139 | |
|---|
| .. | .. |
|---|
| 562 | 550 | cd-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>; |
|---|
| 563 | 551 | }; |
|---|
| 564 | 552 | |
|---|
| 565 | | -&mac { |
|---|
| 553 | +&mac_sw { |
|---|
| 566 | 554 | pinctrl-names = "default", "sleep"; |
|---|
| 567 | 555 | pinctrl-0 = <&cpsw_default>; |
|---|
| 568 | 556 | pinctrl-1 = <&cpsw_sleep>; |
|---|
| 569 | 557 | status = "okay"; |
|---|
| 570 | | - slaves = <1>; |
|---|
| 571 | 558 | }; |
|---|
| 572 | 559 | |
|---|
| 573 | | -&davinci_mdio { |
|---|
| 560 | +&davinci_mdio_sw { |
|---|
| 574 | 561 | pinctrl-names = "default", "sleep"; |
|---|
| 575 | 562 | pinctrl-0 = <&davinci_mdio_default>; |
|---|
| 576 | 563 | pinctrl-1 = <&davinci_mdio_sleep>; |
|---|
| 577 | | - status = "okay"; |
|---|
| 564 | + |
|---|
| 565 | + ethphy0: ethernet-phy@16 { |
|---|
| 566 | + reg = <16>; |
|---|
| 567 | + }; |
|---|
| 578 | 568 | }; |
|---|
| 579 | 569 | |
|---|
| 580 | | -&cpsw_emac0 { |
|---|
| 581 | | - phy_id = <&davinci_mdio>, <16>; |
|---|
| 570 | +&cpsw_port1 { |
|---|
| 571 | + phy-handle = <ðphy0>; |
|---|
| 582 | 572 | phy-mode = "rmii"; |
|---|
| 573 | + phys = <&phy_gmii_sel 1 1>; |
|---|
| 574 | + ti,dual-emac-pvid = <1>; |
|---|
| 583 | 575 | }; |
|---|
| 584 | 576 | |
|---|
| 585 | | -&phy_sel { |
|---|
| 586 | | - rmii-clock-ext; |
|---|
| 577 | +&cpsw_port2 { |
|---|
| 578 | + status = "disabled"; |
|---|
| 587 | 579 | }; |
|---|
| 588 | 580 | |
|---|
| 589 | 581 | &i2c0 { |
|---|
| .. | .. |
|---|
| 619 | 611 | regulator-name = "vdcdc3"; |
|---|
| 620 | 612 | regulator-boot-on; |
|---|
| 621 | 613 | regulator-always-on; |
|---|
| 614 | + regulator-state-mem { |
|---|
| 615 | + regulator-on-in-suspend; |
|---|
| 616 | + }; |
|---|
| 617 | + regulator-state-disk { |
|---|
| 618 | + regulator-off-in-suspend; |
|---|
| 619 | + }; |
|---|
| 622 | 620 | }; |
|---|
| 623 | 621 | |
|---|
| 624 | 622 | dcdc4: regulator-dcdc4 { |
|---|
| .. | .. |
|---|
| 633 | 631 | regulator-name = "v1_0bat"; |
|---|
| 634 | 632 | regulator-min-microvolt = <1000000>; |
|---|
| 635 | 633 | regulator-max-microvolt = <1000000>; |
|---|
| 634 | + regulator-boot-on; |
|---|
| 635 | + regulator-always-on; |
|---|
| 636 | 636 | }; |
|---|
| 637 | 637 | |
|---|
| 638 | 638 | dcdc6: regulator-dcdc6 { |
|---|
| 639 | 639 | regulator-name = "v1_8bat"; |
|---|
| 640 | 640 | regulator-min-microvolt = <1800000>; |
|---|
| 641 | 641 | regulator-max-microvolt = <1800000>; |
|---|
| 642 | + regulator-boot-on; |
|---|
| 643 | + regulator-always-on; |
|---|
| 642 | 644 | }; |
|---|
| 643 | 645 | |
|---|
| 644 | 646 | ldo1: regulator-ldo1 { |
|---|
| .. | .. |
|---|
| 686 | 688 | AVDD-supply = <&dcdc4>; /* v3_3AUD -> V3_3D -> DCDC4 */ |
|---|
| 687 | 689 | IOVDD-supply = <&dcdc4>; /* V3_3D -> DCDC4 */ |
|---|
| 688 | 690 | DVDD-supply = <&ldo1>; /* V1_8AUD -> V1_8D -> LDO1 */ |
|---|
| 691 | + }; |
|---|
| 692 | + |
|---|
| 693 | + ov2659@30 { |
|---|
| 694 | + compatible = "ovti,ov2659"; |
|---|
| 695 | + reg = <0x30>; |
|---|
| 696 | + |
|---|
| 697 | + clocks = <&audio_mstrclk>; |
|---|
| 698 | + clock-names = "xvclk"; |
|---|
| 699 | + |
|---|
| 700 | + port { |
|---|
| 701 | + ov2659_1: endpoint { |
|---|
| 702 | + remote-endpoint = <&vpfe1_ep>; |
|---|
| 703 | + link-frequencies = /bits/ 64 <70000000>; |
|---|
| 704 | + }; |
|---|
| 705 | + }; |
|---|
| 689 | 706 | }; |
|---|
| 690 | 707 | }; |
|---|
| 691 | 708 | |
|---|
| .. | .. |
|---|
| 819 | 836 | status = "okay"; |
|---|
| 820 | 837 | }; |
|---|
| 821 | 838 | |
|---|
| 839 | +&rtc_target { |
|---|
| 840 | + status = "disabled"; |
|---|
| 841 | +}; |
|---|
| 842 | + |
|---|
| 822 | 843 | &tscadc { |
|---|
| 823 | 844 | status = "okay"; |
|---|
| 824 | 845 | |
|---|
| .. | .. |
|---|
| 934 | 955 | }; |
|---|
| 935 | 956 | |
|---|
| 936 | 957 | &dss { |
|---|
| 937 | | - status = "ok"; |
|---|
| 958 | + status = "okay"; |
|---|
| 938 | 959 | |
|---|
| 939 | 960 | pinctrl-names = "default"; |
|---|
| 940 | 961 | pinctrl-0 = <&dss_pins>; |
|---|
| .. | .. |
|---|
| 955 | 976 | |
|---|
| 956 | 977 | port { |
|---|
| 957 | 978 | vpfe1_ep: endpoint { |
|---|
| 958 | | - /* remote-endpoint = <&sensor>; add once we have it */ |
|---|
| 979 | + remote-endpoint = <&ov2659_1>; |
|---|
| 959 | 980 | ti,am437x-vpfe-interface = <0>; |
|---|
| 960 | 981 | bus-width = <8>; |
|---|
| 961 | 982 | hsync-active = <0>; |
|---|