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 16FCFC433F5 for ; Mon, 21 Feb 2022 09:19:41 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 35D6110E839; Mon, 21 Feb 2022 09:19:40 +0000 (UTC) Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) by gabe.freedesktop.org (Postfix) with ESMTPS id D7D0310E8CA for ; Mon, 21 Feb 2022 09:19:38 +0000 (UTC) Received: by mail-lj1-x22d.google.com with SMTP id o6so13654273ljp.3 for ; Mon, 21 Feb 2022 01:19:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=huPIGDsJDWnlkYGD8RjgTidc2vJbYvfd2l32RF6F7ME=; b=XHq3QluY2NVKJBoPyZ5hC8E9kHQvOAPPb8ZhyHDx1zhlAkNeBSQDU9oDMYEo9kLtj1 9cXg34dwfdzJeRIGaVXIq3srnStQKw3QDXKQ1thq0Uc6l1XFZg/mZzpv6moP6tyl8vZ1 gr+nNuiwanMDAssVdkEgx9KaXjFFvMWdGLLBJSOQYy2hv1mgqQLmpbD2vThAYB6uxphS gY3TtaGTMtam7ba1xHPA893XpvlEeTFewfs2YkAyUdpAH1Pp1SqlJ4GI/2fZMzRRvfX9 gWdHZxniM+CkrZLLtz10wy918bnMFilflVU3jK9GI8aVxImTznpEv+nO78UKn11BNPWF 8Szg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=huPIGDsJDWnlkYGD8RjgTidc2vJbYvfd2l32RF6F7ME=; b=c5FBlfX9yAORoHHfH5tdJM90F/v2wBNyME91Ubpo/xGvMiJOJzqwY5z4dWRSCthUC2 1eUwiBDOo4N17TRwJrMmu9Bw3nVIoNz5zG6E5QsY5TZ6C/CnN4wTklMzBp/uVQcroG4C aCPxyh71NaQ3lYbF4F6O5BY2+FlOB1FhaISSYDgUp9VsJTYOQPPeacrwmK66EOj+IlUD lgMKs7EfdDQw6fVsWesULw2tR9oKWxOeNjGcVBq7gyTEFgUI7PM6lE1CUaiNH0aLN+WO 2SuqMhmcr4dKwgGq8zrg+mJj4NqC82sMUpRd4IOYjC8CTQQyWz6JqR5ezOFIn0DAnJKM 5n6g== X-Gm-Message-State: AOAM5315AzdpGJOLrP72w2mGQsQOJ8T8JpBY62DEZwf5aZva0HdlPG4l RVrR8qzz32G8agW2G5bYpyZFS6pVipc= X-Google-Smtp-Source: ABdhPJxx4DFd3v22H/QNGr758lj+rOXO8wtuMl5kY/nQQ9qHtifRlgmAIpdT7UoX8ouAj3ynnDz2BA== X-Received: by 2002:a2e:bd82:0:b0:241:130d:90b3 with SMTP id o2-20020a2ebd82000000b00241130d90b3mr13798892ljq.383.1645435176659; Mon, 21 Feb 2022 01:19:36 -0800 (PST) Received: from [192.168.1.103] ([178.176.73.51]) by smtp.gmail.com with ESMTPSA id a9sm795218lfl.180.2022.02.21.01.19.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 21 Feb 2022 01:19:35 -0800 (PST) Subject: Re: [PATCH v10 1/4] MIPS: Loongson64: dts: update the display controller device node 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" , Jiaxun Yang , Lucas Stach , Maarten Lankhorst , Ilia Mirkin , Qing Zhang , suijingfeng References: <20220220145554.117854-1-15330273260@189.cn> <20220220145554.117854-2-15330273260@189.cn> From: Sergei Shtylyov Message-ID: <08abcb14-f1f6-8be5-6309-cd16e0578c05@gmail.com> Date: Mon, 21 Feb 2022 12:19:34 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <20220220145554.117854-2-15330273260@189.cn> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit 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" On 2/20/22 5:55 PM, Sui Jingfeng wrote: > From: suijingfeng > > The display controller is a pci device, its PCI vendor id is 0x0014 > its PCI device id is 0x7a06. > > 1) In order to let the driver to know which chip the DC is contained > in, the compatible string of the display controller is updated > according to the chip's name. > > 2) Add display controller device node for ls2k1000 SoC > > Reported-by: Krzysztof Kozlowski > Signed-off-by: suijingfeng > Signed-off-by: Sui Jingfeng <15330273260@189.cn> > --- > arch/mips/boot/dts/loongson/loongson64-2k1000.dtsi | 8 ++++++++ > arch/mips/boot/dts/loongson/ls7a-pch.dtsi | 7 ++----- > 2 files changed, 10 insertions(+), 5 deletions(-) > > diff --git a/arch/mips/boot/dts/loongson/loongson64-2k1000.dtsi b/arch/mips/boot/dts/loongson/loongson64-2k1000.dtsi > index 768cf2abcea3..af9cda540f9e 100644 > --- a/arch/mips/boot/dts/loongson/loongson64-2k1000.dtsi > +++ b/arch/mips/boot/dts/loongson/loongson64-2k1000.dtsi > @@ -209,6 +209,14 @@ gpu@5,0 { > interrupt-parent = <&liointc0>; > }; > > + lsdc: display-controller@6,0 { Shouldn't the node name just be "display", according to the section 2.2.2 of the DT spec? [...] > diff --git a/arch/mips/boot/dts/loongson/ls7a-pch.dtsi b/arch/mips/boot/dts/loongson/ls7a-pch.dtsi > index 2f45fce2cdc4..ec35ea9b2fe8 100644 > --- a/arch/mips/boot/dts/loongson/ls7a-pch.dtsi > +++ b/arch/mips/boot/dts/loongson/ls7a-pch.dtsi > @@ -160,11 +160,8 @@ gpu@6,0 { > interrupt-parent = <&pic>; > }; > > - dc@6,1 { > - compatible = "pci0014,7a06.0", > - "pci0014,7a06", > - "pciclass030000", > - "pciclass0300"; > + lsdc: display-controller@6,1 { Same here... [...] MBR, Sergey