| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | | - * Copyright (C) 2014 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) 2014 Texas Instruments Incorporated - https://www.ti.com/ |
|---|
| 7 | 4 | */ |
|---|
| 8 | 5 | |
|---|
| 9 | 6 | /* AM437x SK EVM */ |
|---|
| .. | .. |
|---|
| 137 | 134 | |
|---|
| 138 | 135 | enable-gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>; |
|---|
| 139 | 136 | |
|---|
| 140 | | - panel-timing { |
|---|
| 141 | | - clock-frequency = <9000000>; |
|---|
| 142 | | - hactive = <480>; |
|---|
| 143 | | - vactive = <272>; |
|---|
| 144 | | - hfront-porch = <2>; |
|---|
| 145 | | - hback-porch = <2>; |
|---|
| 146 | | - hsync-len = <41>; |
|---|
| 147 | | - vfront-porch = <2>; |
|---|
| 148 | | - vback-porch = <2>; |
|---|
| 149 | | - vsync-len = <10>; |
|---|
| 150 | | - hsync-active = <0>; |
|---|
| 151 | | - vsync-active = <0>; |
|---|
| 152 | | - de-active = <1>; |
|---|
| 153 | | - pixelclk-active = <1>; |
|---|
| 154 | | - }; |
|---|
| 155 | | - |
|---|
| 156 | 137 | port { |
|---|
| 157 | 138 | lcd_in: endpoint { |
|---|
| 158 | 139 | remote-endpoint = <&dpi_out>; |
|---|
| .. | .. |
|---|
| 272 | 253 | AM4372_IOPAD(0xa1c, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) |
|---|
| 273 | 254 | AM4372_IOPAD(0xa20, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) |
|---|
| 274 | 255 | AM4372_IOPAD(0xa24, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) |
|---|
| 256 | + >; |
|---|
| 257 | + }; |
|---|
| 258 | + |
|---|
| 259 | + clkout1_pin: pinmux_clkout1_pin { |
|---|
| 260 | + pinctrl-single,pins = < |
|---|
| 261 | + 0x270 (PIN_OUTPUT_PULLDOWN | MUX_MODE3) /* XDMA_EVENT_INTR0/CLKOUT1 */ |
|---|
| 275 | 262 | >; |
|---|
| 276 | 263 | }; |
|---|
| 277 | 264 | |
|---|
| .. | .. |
|---|
| 596 | 583 | pinctrl-0 = <&i2c1_pins>; |
|---|
| 597 | 584 | clock-frequency = <400000>; |
|---|
| 598 | 585 | |
|---|
| 586 | + ov2659@30 { |
|---|
| 587 | + compatible = "ovti,ov2659"; |
|---|
| 588 | + reg = <0x30>; |
|---|
| 589 | + pinctrl-names = "default"; |
|---|
| 590 | + pinctrl-0 = <&clkout1_pin>; |
|---|
| 591 | + |
|---|
| 592 | + clocks = <&clkout1_mux_ck>; |
|---|
| 593 | + clock-names = "xvclk"; |
|---|
| 594 | + assigned-clocks = <&clkout1_mux_ck>; |
|---|
| 595 | + assigned-clock-parents = <&clkout1_osc_div_ck>; |
|---|
| 596 | + |
|---|
| 597 | + port { |
|---|
| 598 | + ov2659_1: endpoint { |
|---|
| 599 | + remote-endpoint = <&vpfe0_ep>; |
|---|
| 600 | + link-frequencies = /bits/ 64 <70000000>; |
|---|
| 601 | + }; |
|---|
| 602 | + }; |
|---|
| 603 | + }; |
|---|
| 604 | + |
|---|
| 599 | 605 | edt-ft5306@38 { |
|---|
| 600 | 606 | status = "okay"; |
|---|
| 601 | 607 | compatible = "edt,edt-ft5306", "edt,edt-ft5x06"; |
|---|
| .. | .. |
|---|
| 697 | 703 | pinctrl-1 = <&mmc3_pins_sleep>; |
|---|
| 698 | 704 | cap-power-off-card; |
|---|
| 699 | 705 | keep-power-in-suspend; |
|---|
| 700 | | - ti,non-removable; |
|---|
| 706 | + non-removable; |
|---|
| 701 | 707 | |
|---|
| 702 | 708 | #address-cells = <1>; |
|---|
| 703 | 709 | #size-cells = <0>; |
|---|
| .. | .. |
|---|
| 786 | 792 | }; |
|---|
| 787 | 793 | }; |
|---|
| 788 | 794 | |
|---|
| 789 | | -&mac { |
|---|
| 795 | +&mac_sw { |
|---|
| 790 | 796 | pinctrl-names = "default", "sleep"; |
|---|
| 791 | 797 | pinctrl-0 = <&cpsw_default>; |
|---|
| 792 | 798 | pinctrl-1 = <&cpsw_sleep>; |
|---|
| 793 | | - dual_emac = <1>; |
|---|
| 794 | 799 | status = "okay"; |
|---|
| 795 | 800 | }; |
|---|
| 796 | 801 | |
|---|
| 797 | | -&davinci_mdio { |
|---|
| 802 | +&davinci_mdio_sw { |
|---|
| 798 | 803 | pinctrl-names = "default", "sleep"; |
|---|
| 799 | 804 | pinctrl-0 = <&davinci_mdio_default>; |
|---|
| 800 | 805 | pinctrl-1 = <&davinci_mdio_sleep>; |
|---|
| 801 | | - status = "okay"; |
|---|
| 806 | + |
|---|
| 807 | + ethphy0: ethernet-phy@4 { |
|---|
| 808 | + reg = <4>; |
|---|
| 809 | + }; |
|---|
| 810 | + |
|---|
| 811 | + ethphy1: ethernet-phy@5 { |
|---|
| 812 | + reg = <5>; |
|---|
| 813 | + }; |
|---|
| 802 | 814 | }; |
|---|
| 803 | 815 | |
|---|
| 804 | | -&cpsw_emac0 { |
|---|
| 805 | | - phy_id = <&davinci_mdio>, <4>; |
|---|
| 806 | | - phy-mode = "rgmii"; |
|---|
| 807 | | - dual_emac_res_vlan = <1>; |
|---|
| 816 | +&cpsw_port1 { |
|---|
| 817 | + phy-handle = <ðphy0>; |
|---|
| 818 | + phy-mode = "rgmii-rxid"; |
|---|
| 819 | + ti,dual-emac-pvid = <1>; |
|---|
| 808 | 820 | }; |
|---|
| 809 | 821 | |
|---|
| 810 | | -&cpsw_emac1 { |
|---|
| 811 | | - phy_id = <&davinci_mdio>, <5>; |
|---|
| 812 | | - phy-mode = "rgmii"; |
|---|
| 813 | | - dual_emac_res_vlan = <2>; |
|---|
| 822 | +&cpsw_port2 { |
|---|
| 823 | + phy-handle = <ðphy1>; |
|---|
| 824 | + phy-mode = "rgmii-rxid"; |
|---|
| 825 | + ti,dual-emac-pvid = <2>; |
|---|
| 814 | 826 | }; |
|---|
| 815 | 827 | |
|---|
| 816 | 828 | &elm { |
|---|
| .. | .. |
|---|
| 872 | 884 | /* Camera port */ |
|---|
| 873 | 885 | port { |
|---|
| 874 | 886 | vpfe0_ep: endpoint { |
|---|
| 875 | | - /* remote-endpoint = <&sensor>; add once we have it */ |
|---|
| 887 | + remote-endpoint = <&ov2659_1>; |
|---|
| 876 | 888 | ti,am437x-vpfe-interface = <0>; |
|---|
| 877 | 889 | bus-width = <8>; |
|---|
| 878 | 890 | hsync-active = <0>; |
|---|