forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f9004dbfff8a3fbbd7e2a88c8a4327c7f2f8e5b2
kernel/arch/arm/boot/dts/am43x-epos-evm.dts
....@@ -1,9 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
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/
74 */
85
96 /* AM43x EPOS EVM */
....@@ -50,22 +47,6 @@
5047
5148 backlight = <&lcd_bl>;
5249
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
-
6950 port {
7051 lcd_in: endpoint {
7152 remote-endpoint = <&dpi_out>;
....@@ -80,6 +61,7 @@
8061 pinctrl-names = "default", "sleep";
8162 pinctrl-0 = <&matrix_keypad_default>;
8263 pinctrl-1 = <&matrix_keypad_sleep>;
64
+ wakeup-source;
8365
8466 row-gpios = <&gpio0 12 GPIO_ACTIVE_HIGH /* Bank0, pin12 */
8567 &gpio0 13 GPIO_ACTIVE_HIGH /* Bank0, pin13 */
....@@ -146,6 +128,12 @@
146128 sound-dai = <&tlv320aic3111>;
147129 system-clock-frequency = <12000000>;
148130 };
131
+ };
132
+
133
+ audio_mstrclk: clock {
134
+ compatible = "fixed-clock";
135
+ #clock-cells = <0>;
136
+ clock-frequency = <12000000>;
149137 };
150138 };
151139
....@@ -562,28 +550,32 @@
562550 cd-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
563551 };
564552
565
-&mac {
553
+&mac_sw {
566554 pinctrl-names = "default", "sleep";
567555 pinctrl-0 = <&cpsw_default>;
568556 pinctrl-1 = <&cpsw_sleep>;
569557 status = "okay";
570
- slaves = <1>;
571558 };
572559
573
-&davinci_mdio {
560
+&davinci_mdio_sw {
574561 pinctrl-names = "default", "sleep";
575562 pinctrl-0 = <&davinci_mdio_default>;
576563 pinctrl-1 = <&davinci_mdio_sleep>;
577
- status = "okay";
564
+
565
+ ethphy0: ethernet-phy@16 {
566
+ reg = <16>;
567
+ };
578568 };
579569
580
-&cpsw_emac0 {
581
- phy_id = <&davinci_mdio>, <16>;
570
+&cpsw_port1 {
571
+ phy-handle = <&ethphy0>;
582572 phy-mode = "rmii";
573
+ phys = <&phy_gmii_sel 1 1>;
574
+ ti,dual-emac-pvid = <1>;
583575 };
584576
585
-&phy_sel {
586
- rmii-clock-ext;
577
+&cpsw_port2 {
578
+ status = "disabled";
587579 };
588580
589581 &i2c0 {
....@@ -619,6 +611,12 @@
619611 regulator-name = "vdcdc3";
620612 regulator-boot-on;
621613 regulator-always-on;
614
+ regulator-state-mem {
615
+ regulator-on-in-suspend;
616
+ };
617
+ regulator-state-disk {
618
+ regulator-off-in-suspend;
619
+ };
622620 };
623621
624622 dcdc4: regulator-dcdc4 {
....@@ -633,12 +631,16 @@
633631 regulator-name = "v1_0bat";
634632 regulator-min-microvolt = <1000000>;
635633 regulator-max-microvolt = <1000000>;
634
+ regulator-boot-on;
635
+ regulator-always-on;
636636 };
637637
638638 dcdc6: regulator-dcdc6 {
639639 regulator-name = "v1_8bat";
640640 regulator-min-microvolt = <1800000>;
641641 regulator-max-microvolt = <1800000>;
642
+ regulator-boot-on;
643
+ regulator-always-on;
642644 };
643645
644646 ldo1: regulator-ldo1 {
....@@ -686,6 +688,21 @@
686688 AVDD-supply = <&dcdc4>; /* v3_3AUD -> V3_3D -> DCDC4 */
687689 IOVDD-supply = <&dcdc4>; /* V3_3D -> DCDC4 */
688690 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
+ };
689706 };
690707 };
691708
....@@ -819,6 +836,10 @@
819836 status = "okay";
820837 };
821838
839
+&rtc_target {
840
+ status = "disabled";
841
+};
842
+
822843 &tscadc {
823844 status = "okay";
824845
....@@ -934,7 +955,7 @@
934955 };
935956
936957 &dss {
937
- status = "ok";
958
+ status = "okay";
938959
939960 pinctrl-names = "default";
940961 pinctrl-0 = <&dss_pins>;
....@@ -955,7 +976,7 @@
955976
956977 port {
957978 vpfe1_ep: endpoint {
958
- /* remote-endpoint = <&sensor>; add once we have it */
979
+ remote-endpoint = <&ov2659_1>;
959980 ti,am437x-vpfe-interface = <0>;
960981 bus-width = <8>;
961982 hsync-active = <0>;