From patchwork Sun Feb 13 14:16:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sui Jingfeng <15330273260@189.cn> X-Patchwork-Id: 12744618 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D2B9DC433EF for ; Sun, 13 Feb 2022 14:17:19 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 73D5C10E631; Sun, 13 Feb 2022 14:17:14 +0000 (UTC) Received: from 189.cn (ptr.189.cn [183.61.185.101]) by gabe.freedesktop.org (Postfix) with ESMTP id 67C6E10E4A3 for ; Sun, 13 Feb 2022 14:17:04 +0000 (UTC) HMM_SOURCE_IP: 10.64.8.41:34274.536114013 HMM_ATTACHE_NUM: 0000 HMM_SOURCE_TYPE: SMTP Received: from clientip-114.242.206.180 (unknown [10.64.8.41]) by 189.cn (HERMES) with SMTP id B6FA21002B3; Sun, 13 Feb 2022 22:17:02 +0800 (CST) Received: from ([114.242.206.180]) by gateway-151646-dep-b7fbf7d79-9vctg with ESMTP id be66858997da4a03ade58a24083bc740 for mripard@kernel.org; Sun, 13 Feb 2022 22:17:03 CST X-Transaction-ID: be66858997da4a03ade58a24083bc740 X-Real-From: 15330273260@189.cn X-Receive-IP: 114.242.206.180 X-MEDUSA-Status: 0 From: Sui Jingfeng <15330273260@189.cn> To: Maxime Ripard , Thomas Zimmermann , Roland Scheidegger , Zack Rusin , Christian Gmeiner , David Airlie , Daniel Vetter , Rob Herring , Thomas Bogendoerfer , Dan Carpenter , Krzysztof Kozlowski , Andrey Zhizhikin , Sam Ravnborg , "David S . Miller" , Jiaxun Yang , Lucas Stach , Maarten Lankhorst , Ilia Mirkin , Qing Zhang , Li Yi , suijingfeng Subject: [PATCH v7 6/7] MIPS: Loongson: Add dts for ls2k1000 pai evaluation board Date: Sun, 13 Feb 2022 22:16:48 +0800 Message-Id: <20220213141649.1115987-7-15330273260@189.cn> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220213141649.1115987-1-15330273260@189.cn> References: <20220213141649.1115987-1-15330273260@189.cn> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-mips@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: suijingfeng ___________________ ____________________ | -------| | | | 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 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 --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"; + }; +};