[PATCH v7 6/7] MIPS: Loongson: Add dts for ls2k1000 pai evaluation board

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: suijingfeng <suijingfeng@xxxxxxxxxxx>

   ___________________                           ____________________
  |            -------|                         |                    |
  |  CRTC0 --> | DVO0 ------------------------> | 1024x600 DPI Panel |
  |  _   _     -------|                         |____________________|
  | | | | |           |  i2c0 is not get used
  | |_| |_|           |     +------+
  |                   <---->| i2c0 |
  |          LSDC     |     +------+
  |  _   _            |     +------+
  | | | | |           <---->| i2c1 |-----------+
  | |_| |_|           |     +------+           |
  |                   |        |               |               _________
  |            -------|    +---------+         |              |         |
  |  CRTC1 --> | DVO1 ---> | sii9022 | --> hdmi connector --> | Monitor |
  |            -------|    +---------+                        |_________|
  |___________________|

The sii9022 tranmnitter working in tramsparent mode, that is the edid
is read from the monitor directly, not through sil9022's ddc channel.
The PMON firmware is responsible for consigure the sii9022 at boot time.

[1] https://wiki.debian.org/InstallingDebianOn/Lemote/Loongson2K1000

Signed-off-by: suijingfeng <suijingfeng@xxxxxxxxxxx>
Signed-off-by: Sui Jingfeng <15330273260@xxxxxx>
---
 arch/mips/boot/dts/loongson/ls2k1000_pai.dts | 69 ++++++++++++++++++++
 1 file changed, 69 insertions(+)
 create mode 100644 arch/mips/boot/dts/loongson/ls2k1000_pai.dts

diff --git a/arch/mips/boot/dts/loongson/ls2k1000_pai.dts b/arch/mips/boot/dts/loongson/ls2k1000_pai.dts
new file mode 100644
index 000000000000..6c18280d2129
--- /dev/null
+++ b/arch/mips/boot/dts/loongson/ls2k1000_pai.dts
@@ -0,0 +1,69 @@
+// SPDX-License-Identifier: GPL-2.0
+
+/dts-v1/;
+
+#include "loongson64-2k1000.dtsi"
+
+/ {
+	model = "LS2K1000_PAI_UDB_V1.5";
+
+	memory@200000 {
+		compatible = "memory";
+		device_type = "memory";
+		// 238 MB at 2 MB
+		// 2GB - 512 MB at 2GB + 512 MB
+		// total 2 GB
+		reg = <0x00000000 0x00200000 0x00000000 0x0EE00000
+		       0x00000000 0xA0000000 0x00000000 0x60000000
+		       0x00000001 0x10000000 0x00000000 0x10000000>;
+	};
+};
+
+&lsdc {
+	output-ports = <&dvo0 &dvo1>;
+
+	#address-cells = <1>;
+	#size-cells = <0>;
+
+	dvo0: dvo@0 {
+		/* 0 for connector 0 (DVO0) */
+		reg = <0>;
+		connector = "dpi-connector";
+		status = "ok";
+
+		display-timings {
+			native-mode = <&mode_0_1024x600_60>;
+
+			mode_0_1024x600_60: panel-timing@0 {
+				clock-frequency = <51200000>;
+				hactive = <1024>;
+				vactive = <600>;
+				hsync-len = <4>;
+				hfront-porch = <160>;
+				hback-porch = <156>;
+				vfront-porch = <11>;
+				vback-porch = <23>;
+				vsync-len = <1>;
+			};
+
+			mode_1_800x480_60: panel-timing@1 {
+				clock-frequency = <30066000>;
+				hactive = <800>;
+				vactive = <480>;
+				hfront-porch = <50>;
+				hback-porch = <70>;
+				hsync-len = <50>;
+				vback-porch = <0>;
+				vfront-porch = <0>;
+				vsync-len = <50>;
+			};
+		};
+	};
+
+	dvo1: dvo@1 {
+		/* 1 for connector 1 (DVO1) */
+		reg = <1>;
+		connector = "virtual-connector";
+		status = "ok";
+	};
+};
-- 
2.25.1




[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux