Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2851851pxp; Tue, 22 Mar 2022 07:15:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwuDj66gIq4Jvf3DVSnhZReloTmQz0Td6zm4laXQBEupWAuKMhJZtt+sw5e36xTdVMpjLmC X-Received: by 2002:a17:903:11cf:b0:153:4723:61de with SMTP id q15-20020a17090311cf00b00153472361demr18047324plh.50.1647958528695; Tue, 22 Mar 2022 07:15:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647958528; cv=none; d=google.com; s=arc-20160816; b=y75gkSWcA++C44sftWUe/EGAm+axaai6pTfRGayvWiVkd0OEpNWKV8h9ItNPrKAH3Q bABV1WXwJgMr7M4etVPM6yM5fHR872RIWuI1kgEYBiJX9hQYmAVsQdV7qqN4gl1wCWAp hhDY1Ab44X5j96gXyV6K+3T+Nx97twaSHbrAujiJ0htLfLWl0ierY1hZC/PURbs4cMT7 cjABrYkOwnIFo4FZdgzfMBmucbVa6gXAvhkqGG90UYz/bynAvcl2OxhCrCJzn9aCPeHz KTwBqFUK7sieqUmg+gCXLO8XxB4r66sfUxOi3iwZUodOW0vuHKtPsxErXAyFv105AS22 Wphw== 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:dkim-signature:dkim-signature; bh=YFGZ0UJuUFoy2R6hhsX/1jZvEN7I+WIffxGBRVSniZc=; b=0WFBwwoI21Nec4WaajwAAE5RgMsudw/iNMKR8oZztDD4X5yt5zquDL5s2Un8srbxxE +LWEwMRF9sapWGxbJvNiePGBv5XZEroOnWohi4K4LidMfJ/wwY6FEyG7eOAQrSt2D/EA bavdwP8iPVEwrJ/WjY7uEMo7AdGdoOdgxZ4l9MMI/AjZFekdNrir6Kp5n4HHthE2pqTJ abxA8BSzBnTaLXj1V7ZEhMnums3FZn87uLMPzC+gl6Kg6oK9Hd/96g1yuZOLMKJ3MziL y6iUzhhU+HxX3gWIQIwWcU4wscfTGQXkCvtSBsmZL7u1GiyaTMHxEbzqL2AsJCY5DQlt BcpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm2 header.b="hQ/5JLJd"; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=lKZswkSG; 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 c5-20020a170902d90500b00153b2d164cdsi12917978plz.213.2022.03.22.07.15.11; Tue, 22 Mar 2022 07:15:28 -0700 (PDT) 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; dkim=pass header.i=@flygoat.com header.s=fm2 header.b="hQ/5JLJd"; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=lKZswkSG; 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 S235252AbiCVNH3 (ORCPT + 99 others); Tue, 22 Mar 2022 09:07:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233341AbiCVNH1 (ORCPT ); Tue, 22 Mar 2022 09:07:27 -0400 Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09DB085BD4; Tue, 22 Mar 2022 06:05:59 -0700 (PDT) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id F103D3200D30; Tue, 22 Mar 2022 09:05:55 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Tue, 22 Mar 2022 09:05:57 -0400 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=fm2; bh=YFGZ0UJuUFoy2R 6hhsX/1jZvEN7I+WIffxGBRVSniZc=; b=hQ/5JLJdtnCNVSb/1H4FXnO5xcGjec 75gOTaaI/Dn5wgvnEF9B931gR8GWvkLg2rFu0a4n086sA9ReMwZdXkPh6Ccc/Mcd tLfleZzlYlPBDC1UTvXhZnzADMNtIwZgWcV7OLy8EusZsRUh2D77q+1GwTyFQ0Am kMTeJNjp51sobmD0uz6/WxtemcJQxNFCwrZJ8yxHGwbB8qJikHBW1CPaMaOInehL kAAk0+90GojUVZWwtaB2vOBvA1IOE1Butt0Oc5QDyygt4juYTXlhXQ2PJMwk0lNo VhUGZuSKSKASk3qBSSZHCEkyyNOD4nV1dIC+jVaD/wF7MgAjbbMXbF5w== 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=fm3; bh=YFGZ0UJuUFoy2R6hhsX/1jZvEN7I+WIffxGBRVSni Zc=; b=lKZswkSGeVQ3b82Yrj1LkL4vCSpyZ1a3QAN2ISS8QVQQV+chCiJnfLGM6 rjCTRuaHF6QuapiQ6ncLgSiLexVsWXELGzwHJA/YfC9gVDR5JlANa5oXL/QU65Bz wsE7pFSDUDSr2FYNEeFb1uC5Z112eo/KqMwcWxcDA9w5Cax3nedYZYKIqF4dJVUD F4pJIsBZmI4/ZXYqq4tBF+5auQ5Xpl9acy6DBsztJsHQ04d1Mqwin6bYldpik6X5 PoRA07el9EOCM9Gsod/8cnF8jfRbG4OdN353/MriiX88/bJgH/rVHra8bEuxTntH iKH3wehjfar3uDUQ7T+80z78uLDDw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrudeghedggeeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvfhfhjggtgfesthekredttdefjeenucfhrhhomheplfhirgig uhhnucgjrghnghcuoehjihgrgihunhdrhigrnhhgsehflhihghhorghtrdgtohhmqeenuc ggtffrrghtthgvrhhnpeehieduvdevhfekjeeftddtkeeitefhudekvdeiueeulefgleei jeeghedvkeduleenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehjihgrgihunhdrhigrnhhgsehflhihghhorghtrdgtohhm X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 22 Mar 2022 09:05:31 -0400 (EDT) Message-ID: <2644866a-8db2-923e-4227-2aa6d8e375fe@flygoat.com> Date: Tue, 22 Mar 2022 13:05:29 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH v11 2/7] MIPS: Loongson64: dts: introduce ls3A4000 evaluation board Content-Language: en-GB 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 , suijingfeng Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org References: <20220321162916.1116541-1-15330273260@189.cn> <20220321162916.1116541-3-15330273260@189.cn> From: Jiaxun Yang In-Reply-To: <20220321162916.1116541-3-15330273260@189.cn> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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/3/21 16:29, Sui Jingfeng 写道: > From: suijingfeng > > The board name is LS3A4000_7A1000_EVB_BOARD_V1.4, it consist of 1.8Ghz > mips64r5 4-core CPU and LS7A1000 bridge chip. It has PCIe GEN2 x8 slot, > therefore can play with discrete graphics card. Hi Jingfeng, As we've discussed before if you are going to introduce new dts then you *MUST* include it in makefile and wire it up in code. A dts file doing nothing lying in the tree is just suspicious. Thanks. - Jiaxun > > While the integrated display copntroller is equipped with a VGA output > and a DVI output, the VGA is connect to the DVO0 output port of the > display controller, the DVI is connected to DVO1 output port of the > display controller. > > +------+ +-----------------------------------+ > | DDR4 | | +-------------------+ | > +------+ | | PCIe Root complex | LS7A1000 | > || MC0 | +--++---------++----+ | > +----------+ HT 3.0 | || || | > | LS3A4000 |<-------->| +---++---+ +--++--+ +---------+ +------+ > | CPU |<-------->| | GC1000 | | LSDC |<-->| DDR3 MC |<->| VRAM | > +----------+ | +--------+ +-+--+-+ +---------+ +------+ > || MC1 +---------------|--|----------------+ > +------+ | | > | DDR4 | +-------+ DVO0 | | DVO1 +------+ > +------+ VGA <--|ADV7125|<--------+ +-------->|TFP410|--> DVI/HDMI > +-------+ +------+ > > Signed-off-by: suijingfeng > Signed-off-by: Sui Jingfeng <15330273260@189.cn> > --- > .../boot/dts/loongson/ls3a4000_7a1000_evb.dts | 136 ++++++++++++++++++ > 1 file changed, 136 insertions(+) > create mode 100644 arch/mips/boot/dts/loongson/ls3a4000_7a1000_evb.dts > > diff --git a/arch/mips/boot/dts/loongson/ls3a4000_7a1000_evb.dts b/arch/mips/boot/dts/loongson/ls3a4000_7a1000_evb.dts > new file mode 100644 > index 000000000000..f467eddccdac > --- /dev/null > +++ b/arch/mips/boot/dts/loongson/ls3a4000_7a1000_evb.dts > @@ -0,0 +1,136 @@ > +// SPDX-License-Identifier: GPL-2.0 > + > +/dts-v1/; > + > +#include "loongson64g-package.dtsi" > +#include "ls7a-pch.dtsi" > + > +/ { > + compatible = "loongson,loongson64g-4core-ls7a"; > + model = "LS3A4000_7A1000_EVB_BOARD_V1.4"; > + > + vga-encoder { > + compatible = "adi,adv7123", "dumb-vga-dac"; > + > + ports { > + #address-cells = <1>; > + #size-cells = <0>; > + > + port@0 { > + reg = <0>; > + adv7123_in: endpoint { > + remote-endpoint = <&dc_out_rgb0>; > + }; > + }; > + > + port@1 { > + reg = <1>; > + adv7123_out: endpoint { > + remote-endpoint = <&vga_connector_in>; > + }; > + }; > + }; > + }; > + > + vga-connector { > + compatible = "vga-connector"; > + label = "vga"; > + > + ddc-i2c-bus = <&i2c6>; > + > + port { > + vga_connector_in: endpoint { > + remote-endpoint = <&adv7123_out>; > + }; > + }; > + }; > + > + tfp410: dvi-encoder { > + compatible = "ti,tfp410"; > + > + ports { > + #address-cells = <1>; > + #size-cells = <0>; > + > + port@0 { > + reg = <0>; > + tfp410_in: endpoint { > + pclk-sample = <1>; > + bus-width = <24>; > + remote-endpoint = <&dc_out_rgb1>; > + }; > + }; > + > + port@1 { > + reg = <1>; > + tfp410_out: endpoint { > + remote-endpoint = <&dvi_connector_in>; > + }; > + }; > + }; > + }; > + > + dvi-connector { > + compatible = "dvi-connector"; > + label = "dvi"; > + digital; > + > + ddc-i2c-bus = <&i2c7>; > + > + port { > + dvi_connector_in: endpoint { > + remote-endpoint = <&tfp410_out>; > + }; > + }; > + }; > +}; > + > +&package0 { > + htvec: interrupt-controller@efdfb000080 { > + compatible = "loongson,htvec-1.0"; > + reg = <0xefd 0xfb000080 0x40>; > + interrupt-controller; > + #interrupt-cells = <1>; > + > + interrupt-parent = <&liointc>; > + interrupts = <24 IRQ_TYPE_LEVEL_HIGH>, > + <25 IRQ_TYPE_LEVEL_HIGH>, > + <26 IRQ_TYPE_LEVEL_HIGH>, > + <27 IRQ_TYPE_LEVEL_HIGH>, > + <28 IRQ_TYPE_LEVEL_HIGH>, > + <29 IRQ_TYPE_LEVEL_HIGH>, > + <30 IRQ_TYPE_LEVEL_HIGH>, > + <31 IRQ_TYPE_LEVEL_HIGH>; > + }; > +}; > + > +&pch { > + msi: msi-controller@2ff00000 { > + compatible = "loongson,pch-msi-1.0"; > + reg = <0 0x2ff00000 0 0x8>; > + interrupt-controller; > + msi-controller; > + loongson,msi-base-vec = <64>; > + loongson,msi-num-vecs = <192>; > + interrupt-parent = <&htvec>; > + }; > +}; > + > +&lsdc { > + ports { > + #address-cells = <1>; > + #size-cells = <0>; > + > + port@0 { > + endpoint { > + remote-endpoint = <&adv7123_in>; > + }; > + }; > + > + port@1 { > + endpoint { > + remote-endpoint = <&tfp410_in>; > + }; > + }; > + }; > +};