diff mbox series

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

Message ID 20220213141649.1115987-7-15330273260@189.cn (mailing list archive)
State New, archived
Headers show
Series drm/lsdc: add drm driver for loongson display controller | expand

Commit Message

Sui Jingfeng Feb. 13, 2022, 2:16 p.m. UTC
From: suijingfeng <suijingfeng@loongson.cn>

   ___________________                           ____________________
  |            -------|                         |                    |
  |  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@loongson.cn>
Signed-off-by: Sui Jingfeng <15330273260@189.cn>
---
 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 mbox series

Patch

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";
+	};
+};