hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/arch/arm/boot/dts/am437x-sk-evm.dts
....@@ -1,9 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
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/
74 */
85
96 /* AM437x SK EVM */
....@@ -137,22 +134,6 @@
137134
138135 enable-gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
139136
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
-
156137 port {
157138 lcd_in: endpoint {
158139 remote-endpoint = <&dpi_out>;
....@@ -272,6 +253,12 @@
272253 AM4372_IOPAD(0xa1c, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7)
273254 AM4372_IOPAD(0xa20, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7)
274255 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 */
275262 >;
276263 };
277264
....@@ -596,6 +583,25 @@
596583 pinctrl-0 = <&i2c1_pins>;
597584 clock-frequency = <400000>;
598585
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
+
599605 edt-ft5306@38 {
600606 status = "okay";
601607 compatible = "edt,edt-ft5306", "edt,edt-ft5x06";
....@@ -697,7 +703,7 @@
697703 pinctrl-1 = <&mmc3_pins_sleep>;
698704 cap-power-off-card;
699705 keep-power-in-suspend;
700
- ti,non-removable;
706
+ non-removable;
701707
702708 #address-cells = <1>;
703709 #size-cells = <0>;
....@@ -786,31 +792,37 @@
786792 };
787793 };
788794
789
-&mac {
795
+&mac_sw {
790796 pinctrl-names = "default", "sleep";
791797 pinctrl-0 = <&cpsw_default>;
792798 pinctrl-1 = <&cpsw_sleep>;
793
- dual_emac = <1>;
794799 status = "okay";
795800 };
796801
797
-&davinci_mdio {
802
+&davinci_mdio_sw {
798803 pinctrl-names = "default", "sleep";
799804 pinctrl-0 = <&davinci_mdio_default>;
800805 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
+ };
802814 };
803815
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 = <&ethphy0>;
818
+ phy-mode = "rgmii-rxid";
819
+ ti,dual-emac-pvid = <1>;
808820 };
809821
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 = <&ethphy1>;
824
+ phy-mode = "rgmii-rxid";
825
+ ti,dual-emac-pvid = <2>;
814826 };
815827
816828 &elm {
....@@ -872,7 +884,7 @@
872884 /* Camera port */
873885 port {
874886 vpfe0_ep: endpoint {
875
- /* remote-endpoint = <&sensor>; add once we have it */
887
+ remote-endpoint = <&ov2659_1>;
876888 ti,am437x-vpfe-interface = <0>;
877889 bus-width = <8>;
878890 hsync-active = <0>;