Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp3025429pxb; Sun, 20 Feb 2022 07:15:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJwZ80sjoZpdbpkvHnBYTZ+DHkzbahEvpZAwy4v+v3/PxQuZMIVhQTUfNV5KytZfzf8s/mgn X-Received: by 2002:a05:6a02:184:b0:373:a24e:5ab with SMTP id bj4-20020a056a02018400b00373a24e05abmr13200218pgb.400.1645370123655; Sun, 20 Feb 2022 07:15:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645370123; cv=none; d=google.com; s=arc-20160816; b=PHa4Wb3cFH3oW1ONwESXI3xqNpW8XFeN65Q8FjQcOZwnc9mK9EUL0QH5plSmu75Epr 7CE1Do5qZfvJw6olPfHaVWoYK4I5dYV7Poy5meHAT1DjZtBBoMjQ/VCJnhVFNFnhlgHz KQimg/iZekgmqlwC9JFeneUW6GLCB9/KngLgETntUhAtXKE+REBkh+va7wWf6+AS0CHK Wj47h8ufvBJ3Md6U+ksE1E8Zum6/zDZn4/ffwXImYviO9HoVRs1AODBV5Y99g080Za49 s3qU0ge94YB0hR4AQ7Bi0FMfyyxXu+YiddDZVQjUXv0uTkrNq09PtZkMP9WZ3V7AoGcz 7/ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from:sender :hmm_source_type:hmm_attache_num:hmm_source_ip; bh=6Stq/nQjwZ6lOR+gd7Y1GTFW6pUUq2rNVHCRu3/3fPs=; b=oW9DylbKKKc3bbIaxY/+D/MEyrWCeX4KMjjgbAuN3KPIzqKg3W9pbxpXZdWwTNwokx mRv8vfd0nNLKoRo3TkDZAaBgummh0NrJJV0LIrxjPOoMZ3krFBj9q6/9uTo2frnRGzrx rK7PZ1I5sBEG4Lx1ShFZ3lBt6tb6Zwe/kgJG3bqsyY3hkW6qkKQ/zUwM/W9NG4OIkOwS Gk/53gkpxjuw4f5Sby23kQaz+nOYyLRxGjaFS+t8bHf7xOVbXjQu3+aE0MdjXpl1Uqep Aifj+Ah4kxYHTSe7voHiiKhKDm0VMVkbvHWJ0wcEbDiop9bXK9YYSOvo08jRi8z4k8bJ HGGA== 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 q12si9231698plh.296.2022.02.20.07.15.05; Sun, 20 Feb 2022 07:15:23 -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 S244054AbiBTO4b (ORCPT + 99 others); Sun, 20 Feb 2022 09:56:31 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:40820 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244038AbiBTO41 (ORCPT ); Sun, 20 Feb 2022 09:56:27 -0500 Received: from 189.cn (ptr.189.cn [183.61.185.102]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 417F645ADB; Sun, 20 Feb 2022 06:56:05 -0800 (PST) HMM_SOURCE_IP: 10.64.8.41:45934.2136022094 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 0532A1002A7; Sun, 20 Feb 2022 22:56:01 +0800 (CST) Received: from ([114.242.206.180]) by gateway-151646-dep-b7fbf7d79-9vctg with ESMTP id b9bf6fb33c7c432097ca9a721bf57921 for mripard@kernel.org; Sun, 20 Feb 2022 22:56:04 CST X-Transaction-ID: b9bf6fb33c7c432097ca9a721bf57921 X-Real-From: 15330273260@189.cn X-Receive-IP: 114.242.206.180 X-MEDUSA-Status: 0 Sender: 15330273260@189.cn 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 , suijingfeng Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: [PATCH v10 1/4] MIPS: Loongson64: dts: update the display controller device node Date: Sun, 20 Feb 2022 22:55:51 +0800 Message-Id: <20220220145554.117854-2-15330273260@189.cn> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220220145554.117854-1-15330273260@189.cn> References: <20220220145554.117854-1-15330273260@189.cn> MIME-Version: 1.0 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,RCVD_IN_MSPIKE_H2,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 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 { + compatible = "loongson,ls2k1000-dc"; + + reg = <0x3000 0x0 0x0 0x0 0x0>; + interrupts = <28 IRQ_TYPE_LEVEL_LOW>; + interrupt-parent = <&liointc0>; + }; + pci_bridge@9,0 { compatible = "pci0014,7a19.0", "pci0014,7a19", 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 { + compatible = "loongson,ls7a1000-dc"; reg = <0x3100 0x0 0x0 0x0 0x0>; interrupts = <28 IRQ_TYPE_LEVEL_HIGH>; -- 2.25.1