Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3549524ybz; Mon, 27 Apr 2020 18:20:22 -0700 (PDT) X-Google-Smtp-Source: APiQypJLKlOey0iRX6lIfgCHRUZbxwGVb6Gxkydy2pU3YFn/EmGFvqwz3n47ltSY85/gD2uyMHAR X-Received: by 2002:a05:6402:95e:: with SMTP id h30mr20654479edz.117.1588036822309; Mon, 27 Apr 2020 18:20:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588036822; cv=none; d=google.com; s=arc-20160816; b=afrm/GW2kUf324di7l0D/wF7wd8xk4vmJMjr1nx+Gbw0ijG3arDnCMR3rzj39yjB3z XuR9tRQOoAhyta3kqLLHMb/mfg0L5BnhgQkT/7Grto+p+t1whZCP2/Fvt7t1fKwy0T9T vwGNSK1twBSuZiWpKICRTCNp/18IHtReAoRCJYNLV80K7yL76z5fWdxBqhbX+NJ0umWz iZX1WhGihCOpYftoxRNjjP9luyNXvT0xxsCQyGpqI3hh2uDq56UF69eYkqgrIPL/ihvb o2NzpDdEWKr23JkTCV+ptctr0q0gdCAK3fyJBCY3BAwKxZ59hzT+uhXef41Lu1DT+Frn d7rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=5lo6UXwkjhzHr9SFX+NYtoUzYLqEbPtIkixzFSwmJTU=; b=KZg5Kd0zOw7msi+BRNeoPMd3v17Yamtrx8kxiSUnPFTtYnxLiqw7Xn/9AYhQvJVUkq snl4ajtRczEIC2dMI7CU5Ygo7LvbTpTISn0mC+4Ftey1S0qLcw3NYx3Wejmr0k+qVoFL 3qAwGuWSjPR+OW2EcXXMKGlNI/sjgSIkW9mHI3vnLGPlEgI5dURgZMEzkNBZ/PnsrmPg 8uGi082c4fRveKLvz4JPzYPLIeISGSSOsjwSqCH/RfsfhC0EfzPaW+Ej3rmbHnYEA29w MoksjE7OQE0STfvZYR2W0GuxZfWoHfVO8FGjkxC12kWx6fCbI8UcDLMGJS2W3q3ZDXaZ LBEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@flygoat.com header.s=vultr header.b=t8IGLYhu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o3si844968edb.156.2020.04.27.18.19.58; Mon, 27 Apr 2020 18:20:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@flygoat.com header.s=vultr header.b=t8IGLYhu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726436AbgD1BRJ (ORCPT + 99 others); Mon, 27 Apr 2020 21:17:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51034 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726233AbgD1BRI (ORCPT ); Mon, 27 Apr 2020 21:17:08 -0400 Received: from vultr.net.flygoat.com (vultr.net.flygoat.com [IPv6:2001:19f0:6001:3633:5400:2ff:fe8c:553]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CCE86C03C1A8; Mon, 27 Apr 2020 18:17:08 -0700 (PDT) Received: from localhost.localdomain (unknown [IPv6:2001:da8:20f:4430:250:56ff:fe9a:7470]) by vultr.net.flygoat.com (Postfix) with ESMTPSA id A491C2049F; Tue, 28 Apr 2020 01:17:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=flygoat.com; s=vultr; t=1588036628; bh=ptIrjRV6wytJTzJh0v2VHcepHCoZWy78gw12J6zfuKY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=t8IGLYhugMu63Ai1aSSZPAYdrPe3ev0ncSH18WGEeUpneeYLuVT0CEuQ5wMTmlqNP spqcJH7QKjNZUc5tsKXetqchSc49Z1mleqKPD8u6P/dwzwUCL+Az2C0LAh5IO0zRtJ qff87vJC6LDoloK0rhLG9oNd3xc8ptz6461vuGD/DQUoJNTrV6Jwa6LjT7aUz4c83X JQp7TTfR0K7GBrr/jeLxCbSoVtZ0Ept37/qmjy3BqeY0CihaNGsym+9CMOEmMwMp58 phFO+DnLdJbor2uqtWQI32d7Rcf1+2kBRcWu8sRv4+46cCtfLb3nNhGIYfhmK/2Ahl y3u/geNK4DjzA== From: Jiaxun Yang To: linux-mips@vger.kernel.org Cc: Jiaxun Yang , Bjorn Helgaas , Rob Herring , Thomas Bogendoerfer , Huacai Chen , Lorenzo Pieralisi , Paul Burton , linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v7 4/5] MIPS: DTS: Loongson64: Add PCI Controller Node Date: Tue, 28 Apr 2020 09:14:19 +0800 Message-Id: <20200428011429.1852081-5-jiaxun.yang@flygoat.com> X-Mailer: git-send-email 2.26.0.rc2 In-Reply-To: <20200428011429.1852081-1-jiaxun.yang@flygoat.com> References: <20200428011429.1852081-1-jiaxun.yang@flygoat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add PCI Host controller node for Loongson64 with RS780E PCH dts. Note that PCI interrupts are probed via legacy way, as different machine have different interrupt arrangement, we can't cover all of them in dt. Signed-off-by: Jiaxun Yang --- v7: Drop bus-range, correct I/O ports address. --- arch/mips/boot/dts/loongson/rs780e-pch.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/mips/boot/dts/loongson/rs780e-pch.dtsi b/arch/mips/boot/dts/loongson/rs780e-pch.dtsi index 8687c4f7370a..d0d5d60a8697 100644 --- a/arch/mips/boot/dts/loongson/rs780e-pch.dtsi +++ b/arch/mips/boot/dts/loongson/rs780e-pch.dtsi @@ -9,6 +9,18 @@ bus@10000000 { 0 0x40000000 0 0x40000000 0 0x40000000 0xfd 0xfe000000 0xfd 0xfe000000 0 0x2000000 /* PCI Config Space */>; + pci@1a000000 { + compatible = "loongson,rs780e-pci"; + device_type = "pci"; + #address-cells = <3>; + #size-cells = <2>; + + reg = <0 0x1a000000 0 0x02000000>; + + ranges = <0x01000000 0 0x00004000 0 0x18004000 0 0x00004000>, + <0x02000000 0 0x40000000 0 0x40000000 0 0x40000000>; + }; + isa { compatible = "isa"; #address-cells = <2>; -- 2.26.0.rc2