hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/arch/arm/boot/dts/am57xx-idk-common.dtsi
....@@ -1,9 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
2
- * Copyright (C) 2015-2016 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) 2015-2016 Texas Instruments Incorporated - https://www.ti.com/
74 */
85
96 #include "am57xx-industrial-grade.dtsi"
....@@ -12,6 +9,7 @@
129 aliases {
1310 rtc0 = &tps659038_rtc;
1411 rtc1 = &rtc;
12
+ display0 = &hdmi0;
1513 };
1614
1715 chosen {
....@@ -33,6 +31,16 @@
3331 vin-supply = <&smps9_reg>;
3432 regulator-min-microvolt = <3300000>;
3533 regulator-max-microvolt = <3300000>;
34
+ regulator-always-on;
35
+ regulator-boot-on;
36
+ };
37
+
38
+ v1_2d: fixedregulator-v1_2d {
39
+ compatible = "regulator-fixed";
40
+ regulator-name = "V1_2D";
41
+ vin-supply = <&vmain>;
42
+ regulator-min-microvolt = <1200000>;
43
+ regulator-max-microvolt = <1200000>;
3644 regulator-always-on;
3745 regulator-boot-on;
3846 };
....@@ -98,6 +106,54 @@
98106 gpios = <&tpic2810 7 GPIO_ACTIVE_HIGH>;
99107 default-state = "off";
100108 };
109
+ };
110
+
111
+ hdmi0: connector@0 {
112
+ compatible = "hdmi-connector";
113
+ label = "hdmi";
114
+
115
+ type = "a";
116
+
117
+ port {
118
+ hdmi_connector_in: endpoint {
119
+ remote-endpoint = <&tpd12s015_out>;
120
+ };
121
+ };
122
+ };
123
+
124
+ tpd12s015: encoder@0 {
125
+ compatible = "ti,tpd12s016", "ti,tpd12s015";
126
+
127
+ gpios = <0>, /* optional CT_CP_HPD */
128
+ <0>, /* optional LS_OE */
129
+ <&gpio7 12 GPIO_ACTIVE_HIGH>; /* HPD */
130
+
131
+ ports {
132
+ #address-cells = <1>;
133
+ #size-cells = <0>;
134
+
135
+ port@0 {
136
+ reg = <0>;
137
+
138
+ tpd12s015_in: endpoint@0 {
139
+ remote-endpoint = <&hdmi_out>;
140
+ };
141
+ };
142
+
143
+ port@1 {
144
+ reg = <1>;
145
+
146
+ tpd12s015_out: endpoint@0 {
147
+ remote-endpoint = <&hdmi_connector_in>;
148
+ };
149
+ };
150
+ };
151
+ };
152
+
153
+ src_clk_x1: src_clk_x1 {
154
+ #clock-cells = <0>;
155
+ compatible = "fixed-clock";
156
+ clock-frequency = <20000000>;
101157 };
102158 };
103159
....@@ -338,6 +394,32 @@
338394 gpio-controller;
339395 #gpio-cells = <2>;
340396 };
397
+
398
+ dsi_bridge: tc358778@e {
399
+ compatible = "toshiba,tc358778", "toshiba,tc358768";
400
+ reg = <0xe>;
401
+ status = "disabled";
402
+
403
+ clocks = <&src_clk_x1>;
404
+ clock-names = "refclk";
405
+
406
+ vddc-supply = <&v1_2d>;
407
+ vddmipi-supply = <&v1_2d>;
408
+ vddio-supply = <&v3_3d>;
409
+
410
+ dsi_bridge_ports: ports {
411
+ #address-cells = <1>;
412
+ #size-cells = <0>;
413
+
414
+ port@0 {
415
+ reg = <0>;
416
+ rgb_in: endpoint {
417
+ remote-endpoint = <&dpi_out>;
418
+ data-lines = <24>;
419
+ };
420
+ };
421
+ };
422
+ };
341423 };
342424
343425 &mcspi3 {
....@@ -366,21 +448,30 @@
366448 ext-clk-src;
367449 };
368450
369
-&mac {
451
+&mac_sw {
370452 status = "okay";
371
- dual_emac;
372453 };
373454
374
-&cpsw_emac0 {
375
- phy_id = <&davinci_mdio>, <0>;
376
- phy-mode = "rgmii";
377
- dual_emac_res_vlan = <1>;
455
+&cpsw_port1 {
456
+ phy-handle = <&ethphy0>;
457
+ phy-mode = "rgmii-rxid";
458
+ ti,dual-emac-pvid = <1>;
378459 };
379460
380
-&cpsw_emac1 {
381
- phy_id = <&davinci_mdio>, <1>;
382
- phy-mode = "rgmii";
383
- dual_emac_res_vlan = <2>;
461
+&cpsw_port2 {
462
+ phy-handle = <&ethphy1>;
463
+ phy-mode = "rgmii-rxid";
464
+ ti,dual-emac-pvid = <2>;
465
+};
466
+
467
+&davinci_mdio_sw {
468
+ ethphy0: ethernet-phy@0 {
469
+ reg = <0>;
470
+ };
471
+
472
+ ethphy1: ethernet-phy@1 {
473
+ reg = <1>;
474
+ };
384475 };
385476
386477 &usb2_phy1 {
....@@ -479,3 +570,39 @@
479570 };
480571 };
481572 };
573
+
574
+&cpu0 {
575
+ vdd-supply = <&smps12_reg>;
576
+};
577
+
578
+&hdmi {
579
+ status = "okay";
580
+
581
+ vdda-supply = <&ldo4_reg>;
582
+
583
+ port {
584
+ hdmi_out: endpoint {
585
+ remote-endpoint = <&tpd12s015_in>;
586
+ };
587
+ };
588
+};
589
+
590
+&dss {
591
+ status = "okay";
592
+
593
+ vdda_video-supply = <&ldoln_reg>;
594
+
595
+ ports {
596
+ #address-cells = <1>;
597
+ #size-cells = <0>;
598
+
599
+ port@0 {
600
+ reg = <0>;
601
+
602
+ dpi_out: endpoint {
603
+ remote-endpoint = <&rgb_in>;
604
+ data-lines = <24>;
605
+ };
606
+ };
607
+ };
608
+};