Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp5888377pxb; Mon, 14 Feb 2022 09:52:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJxdzWw2tse1JSNSstx3Pi69Xvr6Sbxli9k+X4dOJ9eDt1E5MMsWIfB4UaD6sSTQQX7Jwvq9 X-Received: by 2002:a17:90a:d78e:: with SMTP id z14mr15886325pju.68.1644861169217; Mon, 14 Feb 2022 09:52:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644861169; cv=none; d=google.com; s=arc-20160816; b=dCgQlvgdH8nAhOgQwKEkDZLqLwZuyW3LWhgfw9jDB7bs6yGAA+G9W7GFgTrNd6lNtv a9ITgEmiWLeL3yuQe6EBh2lD1sUx83ZTOawS19fiqE38vvbf2bSCPPtIJMDG70Xq+m77 6fgi2O+40tYB2xr7LDPhzkyRmDcaYfE82gq2i1Bf2CJeKNI2VqzJkAtfi26F5Ph9FUg/ ID3Q9wRR233re345b5960uPavaS+KnkVYvXmEhkBWbJ1fvLlmbZplFf6tT0XqjAiHrXa IO/BlW59EAj/ugVaPYOfNKAWHDDhkZ4vZIHULo5JNv4flTYXkBhVZQ3VpQu+oHIeHnzi Lupw== 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:content-language:subject:user-agent:mime-version :date:message-id:sender:hmm_source_type:hmm_attache_num :hmm_source_ip; bh=cIOpejUKYHXNe9O0sk3qcqMCnAaFuzqLwneIuAwFlGQ=; b=Xk/MC1TQw5aVXIv5INgPZKbJJaB7FZI23tkujdOtQ1LBN3ghcXWlLxSlBhlewozwpW 0h+V7NAzkQvknQ6JmnSgUKgJcEoOj0HctBmiuN/o6XOU2owRtVPkNOePDQmQVdtZTfWx oCcHtaEw5ToBZ1Jj1m/dmu6HmJi7/gOD6++lHCCO5tT+CDDz869cFse2WaaxF6vY2mHG vsJiK65XquCISHDOTGoey6EOAkQ1bfRRK2qcEmHRZPSnUZqVmdFslWsNjyhXiG7kTszj m1mUyK4+No+I8aJdoph3P9dYN3BtZUZWMZ2XD5TaFiiV3nKTabSKs9u/HN2H+rdtXZxQ 8D6A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b7si762905plh.330.2022.02.14.09.52.33; Mon, 14 Feb 2022 09:52:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233870AbiBNKpH (ORCPT + 99 others); Mon, 14 Feb 2022 05:45:07 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:59920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348656AbiBNKo4 (ORCPT ); Mon, 14 Feb 2022 05:44:56 -0500 Received: from 189.cn (ptr.189.cn [183.61.185.103]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1998AB86A; Mon, 14 Feb 2022 02:07:30 -0800 (PST) HMM_SOURCE_IP: 10.64.8.43:35964.414113341 HMM_ATTACHE_NUM: 0000 HMM_SOURCE_TYPE: SMTP Received: from clientip-114.242.206.180 (unknown [10.64.8.43]) by 189.cn (HERMES) with SMTP id CD6CD10029D; Mon, 14 Feb 2022 18:07:27 +0800 (CST) Received: from ([114.242.206.180]) by gateway-151646-dep-b7fbf7d79-vjdjk with ESMTP id 2ce5d89c9d2b4751bf53523b557ba63b for jiaxun.yang@flygoat.com; Mon, 14 Feb 2022 18:07:29 CST X-Transaction-ID: 2ce5d89c9d2b4751bf53523b557ba63b X-Real-From: 15330273260@189.cn X-Receive-IP: 114.242.206.180 X-MEDUSA-Status: 0 Sender: 15330273260@189.cn Message-ID: <79f30dcb-48f5-e8b4-7cdd-770dd30d4896@189.cn> Date: Mon, 14 Feb 2022 18:07:26 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH v7 0/7] drm/lsdc: add drm driver for loongson display controller Content-Language: en-US To: Jiaxun Yang , 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> <380d93a4-6f36-00d2-6cd3-e4428534cbb1@flygoat.com> From: Sui Jingfeng <15330273260@189.cn> In-Reply-To: <380d93a4-6f36-00d2-6cd3-e4428534cbb1@flygoat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,FROM_LOCAL_DIGITS, FROM_LOCAL_HEX,NICE_REPLY_A,SPF_HELO_PASS,SPF_PASS, 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 On 2022/2/14 13:54, Jiaxun Yang wrote: > > > 在 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 For most board, this driver is ready to be use out of box. Device tree is for supplement purpose.