Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp5983279pxb; Mon, 14 Feb 2022 12:19:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJxdCYOydmaESIk9Oa6iopHfgRVafM/mdC/15ksyvAh8gJQYvWAK5MOFGjZ0Ous8AqjsjyH1 X-Received: by 2002:a17:902:c652:: with SMTP id s18mr745903pls.104.1644869986057; Mon, 14 Feb 2022 12:19:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644869986; cv=none; d=google.com; s=arc-20160816; b=Gr1aawSfb78c0he9O3gsBI5JD2xymLMjBu9G3CdKQfYyrM8AOaA4JLS1dl5jgPEiWr hWz80uaZ11ltlsTNlbA+wHhvtH+SlJLWydYGwtkjBX1xmwq0MiK10uJzUmLW3p+tDEr/ pBOATX8EoaF+KRs/Vb/x4+uiFSWf/cuFKxxzxZ8bxbjuK6mojrSHRLVX1m8iVWUNvFyr zmUmHDxcO3/5goOJ0nV3qyf4239VhTEH9riYNfN3zYLWfTm/d9dsff52CoG2Ag3puhP5 xySssII3d5HRqmMF1gnmP+58UaroijgKimsdwQGwrln8trMNRxaOYZK/TX7T4hLK2PXK 7vVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:user-agent:mime-version:date:message-id :dkim-signature:dkim-signature; bh=7G1lu+Rs8krLJ/ey20PWYfJYeLvb+/uRN91S0nKBhFA=; b=KZFJz9nQ+mzWjKMB2utUqp+NR54Pm1MSGDwI6eHU/wlGx+pKo6xiA+9UhnCsZsc08W 3OmyilUPQZ7GKmhDgOY0yuX1D1BtR0UVmX0txJ1amqs2RgNkYiN10Q6XXGaobgu4BLII wl+fZ1ll8HaJf/NlmLaM/kISpaPI8hRQyt8WQDFIJ8NTkrEIAqqX7tiDLq0BqYQiHMjj 3LYnh17XDZ3aaPHZkmrAJDyonOn28AWTTc4I6zniY+ClhW9dNIRuFnMyuVMeDOpwn930 P5GSwrG39d4oetrBpa4FXSRZ8U3hi9YIm0059xPkYXLf1o7UQVw1dD8REOq20zdG5gY3 6Gfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm1 header.b=zJHdmFpN; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=Cvwydq+w; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id n20si6958628pfa.160.2022.02.14.12.19.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Feb 2022 12:19:46 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm1 header.b=zJHdmFpN; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=Cvwydq+w; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 62389173B28; Mon, 14 Feb 2022 11:53:33 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240579AbiBNFyW (ORCPT + 99 others); Mon, 14 Feb 2022 00:54:22 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:44858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232505AbiBNFyT (ORCPT ); Mon, 14 Feb 2022 00:54:19 -0500 Received: from new1-smtp.messagingengine.com (new1-smtp.messagingengine.com [66.111.4.221]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 724F95005C; Sun, 13 Feb 2022 21:54:12 -0800 (PST) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.nyi.internal (Postfix) with ESMTP id C8E14580250; Mon, 14 Feb 2022 00:54:09 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Mon, 14 Feb 2022 00:54:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flygoat.com; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm1; bh=7G1lu+Rs8krLJ/ ey20PWYfJYeLvb+/uRN91S0nKBhFA=; b=zJHdmFpN/e/OJdqwKifAMyFVTpteDm Okgo/yjwGIcpIo3hy4N2PRAolI2CJWLdxdobtD6LAUfY7NAgxy63NcyNJJSu49gv 220erR8Q6vPwDG3K5oIzw4Hi75qhds8OG4BE6+EMMU9SO4y4sGyjxnvlE6QIC1oN Rcmcc7KdBcUqHDphMWsnzYiCCPFsWdXZdufoDgE6jfwIzgrB3kbsdbWJlaz+1Dnp fL8tst1uzkVNYFPsdsi6fZqmLQIhHmcRnm2TidDbdPks9ENOGt5yD0qwDGR22aAv UG9EBDFHwBBWZwZLqjSYEY4TLcq0B+uU7W48akP8N5CQoLyUzu7lfEQg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=7G1lu+Rs8krLJ/ey20PWYfJYeLvb+/uRN91S0nKBh FA=; b=Cvwydq+wnq3Hzm9BrFnHlgK86hB8Cl7f6wb90EbKyok6ldYahY5HCKYI+ mocig9T8pQ2IRMMcHgkm2Drt3c4BYugPmw++Ykm2o2/7UN7o2KPD8eruLmrQ2nUQ vGvsJV4fr/0jLpwwgSrit13XJpRmwe9dwcNmfl7nm65Wzi21psfwJTbApOSxLVwz q9QQg84BiawRIAykblueIWmrBUVYGZx/NjGUI494P1pDVbRmrY6P+sQaJ8GdK5Ve X0Aeu3f3w4QN3WnVfisqQa3nAAjdDChHUJfGzxj2i9efa9DtInCzGgiAbrLEMTsz QXWyfdQvdf6LqOkSiup8EyaC8URLA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrjedugdekkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkffggfgfuvfhfhfgjtgfgsehtkeertddtfeejnecuhfhrohhmpeflihgrgihu nhcujggrnhhguceojhhirgiguhhnrdihrghnghesfhhlhihgohgrthdrtghomheqnecugg ftrfgrthhtvghrnhepheeiuddvvefhkeejfedttdekieethfdukedvieeuueelgfelieej geehvdekudelnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homhepjhhirgiguhhnrdihrghnghesfhhlhihgohgrthdrtghomh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 14 Feb 2022 00:54:05 -0500 (EST) Message-ID: <380d93a4-6f36-00d2-6cd3-e4428534cbb1@flygoat.com> Date: Mon, 14 Feb 2022 05:54:03 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.0 Subject: Re: [PATCH v7 0/7] drm/lsdc: add drm driver for loongson display controller To: Sui Jingfeng <15330273260@189.cn>, 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" , Lucas Stach , Maarten Lankhorst , Ilia Mirkin , Qing Zhang , Li Yi , suijingfeng Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org References: <20220213141649.1115987-1-15330273260@189.cn> From: Jiaxun Yang In-Reply-To: <20220213141649.1115987-1-15330273260@189.cn> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 在 2022/2/13 14:16, Sui Jingfeng 写道: > There is a display controller in loongson's LS2K1000 SoC and LS7A1000 > bridge chip, the DC is a PCI device in those chips. It has two display > pipes but with only one hardware cursor. Each way has a DVO interface > which provide RGB888 signals, vertical & horizontal synchronisations, > data enable and the pixel clock. Each CRTC is able to scanout from > 1920x1080 resolution at 60Hz. The maxmium resolution is 2048x2048 > according to the hardware spec. Hi Jiangfeng, I see you added dts for those boards, but I didn't see you wire up them in Makefile and code? How can you use them in present systems? I guess to make those dts work for general all-in-one kernel, what you need to do is, for example Lemota A1901: 1. Add __dtb_lemote_a1901 to builtin_dtbs.h 2. Wire up with something like: if (!strcmp("LEMOTE-/LS3A4000/-7A1000-1w-V01-pc", eboard->name)     loongson_fdt_blob = __dtb_lemote_a1901 In arch/mips/loongson64/env.c. Thanks. - Jiaxun