Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp9027pxf; Tue, 30 Mar 2021 17:27:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw4CH+1pbU9CvojiftrY/nsGnn0IWpOPC4IBqOXxUrkRQibHK3/iXxf0lloQ7IU15ktNuNf X-Received: by 2002:a05:6402:b48:: with SMTP id bx8mr567190edb.162.1617150474559; Tue, 30 Mar 2021 17:27:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617150474; cv=none; d=google.com; s=arc-20160816; b=uN/uNMY+IPlAM6TKUNo903UiOvA0d0PVYgjgwU5J0LFKJ6Lf7b4RU1mMnfYQKbDsd8 urznKj3D6Je7VvLl3/gE5EqBxcmSER6LmKHCGxffWw20oc4tz6OJfpsVRadIip0Doiis D059ph6qNaWdx8w1XFtaC6UxOPyqYbfeLMhcesL/aicCR2c1a13CiZW9txOUeqdc1hgT IOK2b67bLPJB1MMSwEy6a5PcyerJtA03ZfptYW2prmKKkA3lIgXD0pVzO42W9s24U21u ZKIt66tata6jnSP3IBFE5JhRVjY20E/5a1tXQngjXJF0XQi0uJ+LJXHM46UnsLoOZzOR 5aVA== 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 :message-id:to:from:cc:in-reply-to:subject:date:dkim-signature; bh=ub28FHj/nP801IQO46xUZahOb4byvrwZQUANAPDaSEA=; b=lh2RiUCjL4Bhazz+ikYIs+fiJ9czYUrEe53Nak4DjdtslP1x71fmbS22B6WW8Jo797 Hsa7AyRJRLjt3Nd/6+eUFzih5zM1MBKeSGynl505CbaTheukJXclhTMuPZZmjjYWCf+y mdgohGPOQC2GfUhpWz6seJxsIwfiJhkDP76gM/+HMNyZHiTlh87TPPFNkvxWRXjkFCeK 30+S7g5kWLrXnjk2jBKj/r6s5oFie62izoSDRUBunksEXn1ZZdK2TsdxvmTxcrA+QPoS ukovbgn0eECWcf1R9nlw7Q37VaVaXAu/b6ekIx51lL/l8EAL30xIOwQn/YR+k5SnyrL5 pS0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dabbelt-com.20150623.gappssmtp.com header.s=20150623 header.b="SOcvf/tG"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h1si467365ede.545.2021.03.30.17.27.31; Tue, 30 Mar 2021 17:27:54 -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=pass header.i=@dabbelt-com.20150623.gappssmtp.com header.s=20150623 header.b="SOcvf/tG"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232702AbhCaAZG (ORCPT + 99 others); Tue, 30 Mar 2021 20:25:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232444AbhCaAY2 (ORCPT ); Tue, 30 Mar 2021 20:24:28 -0400 Received: from mail-pg1-x52c.google.com (mail-pg1-x52c.google.com [IPv6:2607:f8b0:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8CE98C061764 for ; Tue, 30 Mar 2021 17:24:28 -0700 (PDT) Received: by mail-pg1-x52c.google.com with SMTP id h25so12933827pgm.3 for ; Tue, 30 Mar 2021 17:24:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dabbelt-com.20150623.gappssmtp.com; s=20150623; h=date:subject:in-reply-to:cc:from:to:message-id:mime-version :content-transfer-encoding; bh=ub28FHj/nP801IQO46xUZahOb4byvrwZQUANAPDaSEA=; b=SOcvf/tGl+Al4KoWwPZq+DDeyAcVz2fMNFsevwb00+4IxVKFLY+T5o5h3mSdiCgM7k yEp5mEg+0He6/AbTRXBrdnSBU4NV3EcOCdNyLAEZvBB8EPDiFZxQtUm+BkcumlwvtIP/ sqDp6BioT6jIx6uD800hvxx44tUtOxEat2QFdqDjEkIRMajE74l1SvLgmtrObxlHts4I X77DrWlnbT5DziL+Kuc6jou+0BVCxNs3Q/+6rUG+LgsZl82QRMYcmKi9cVaH/gyVp7ea Rm+3z87LxjdEc2Onwmr8NVrkPCh07y3jLu3F05NpbZFz3X6urGoDTtoOKgvIlvnV7RO2 BvFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:subject:in-reply-to:cc:from:to:message-id :mime-version:content-transfer-encoding; bh=ub28FHj/nP801IQO46xUZahOb4byvrwZQUANAPDaSEA=; b=PTWj5eIsgwGsgpS9Pc3raIvIC47q1DD4vwfibdeXm8ukhskMOzIH6lx3Y4qXb9yb9f h2WPQ4z0VZCSZ72dyQY4TEE/njegyFctrdUkGeHZKPul2wg2voM6SRQQt8lLjmkg5Cqy 9oz3nneoW1j0jnPyOpQ1Dh8q93UKZI4PbF5QVUme67N7YK6YSFneT1vBuwzCMJfkCQgG RZidFyOd9+98donk9DUtED1HUIQLGkNLOyfN3FQiVzswk6kDlb2MVU1RzdiY2xSe73Tq 4ZdY81/jjsRXC1wI4Zs2tynsYGAhQEy1zCl2719B1K0PWdykh65WIWteuhnRrygQUtQ8 qMOA== X-Gm-Message-State: AOAM533T+dKdOI2FKXKS+TBkbY03rn/n7vb3TCqVZpro/WKLIMCFooMS 3TaMOn0EBLFLtcLsum9HZLcdMg== X-Received: by 2002:a62:8103:0:b029:1ef:26e4:494f with SMTP id t3-20020a6281030000b02901ef26e4494fmr461898pfd.41.1617150267976; Tue, 30 Mar 2021 17:24:27 -0700 (PDT) Received: from localhost (76-210-143-223.lightspeed.sntcca.sbcglobal.net. [76.210.143.223]) by smtp.gmail.com with ESMTPSA id f21sm238126pjj.52.2021.03.30.17.24.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Mar 2021 17:24:27 -0700 (PDT) Date: Tue, 30 Mar 2021 17:24:27 -0700 (PDT) X-Google-Original-Date: Tue, 30 Mar 2021 17:16:56 PDT (-0700) Subject: Re: [PATCH v2 6/6] riscv: dts: Add PCIe support for the SiFive FU740-C000 SoC In-Reply-To: <17994571deaf703e65ece7e44c742f82c988cf39.1615954046.git.greentime.hu@sifive.com> CC: greentime.hu@sifive.com, Paul Walmsley , hes@sifive.com, erik.danie@sifive.com, zong.li@sifive.com, bhelgaas@google.com, robh+dt@kernel.org, aou@eecs.berkeley.edu, mturquette@baylibre.com, sboyd@kernel.org, lorenzo.pieralisi@arm.com, p.zabel@pengutronix.de, alex.dewar90@gmail.com, khilman@baylibre.com, hayashi.kunihiko@socionext.com, vidyas@nvidia.com, jh80.chung@samsung.com, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, helgaas@kernel.org From: Palmer Dabbelt To: greentime.hu@sifive.com Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 17 Mar 2021 23:08:13 PDT (-0700), greentime.hu@sifive.com wrote: > Signed-off-by: Greentime Hu > --- > arch/riscv/boot/dts/sifive/fu740-c000.dtsi | 34 ++++++++++++++++++++++ > 1 file changed, 34 insertions(+) > > diff --git a/arch/riscv/boot/dts/sifive/fu740-c000.dtsi b/arch/riscv/boot/dts/sifive/fu740-c000.dtsi > index d1bb22b11920..d0839739b425 100644 > --- a/arch/riscv/boot/dts/sifive/fu740-c000.dtsi > +++ b/arch/riscv/boot/dts/sifive/fu740-c000.dtsi > @@ -158,6 +158,7 @@ prci: clock-controller@10000000 { > reg = <0x0 0x10000000 0x0 0x1000>; > clocks = <&hfclk>, <&rtcclk>; > #clock-cells = <1>; > + #reset-cells = <1>; > }; > uart0: serial@10010000 { > compatible = "sifive,fu740-c000-uart", "sifive,uart0"; > @@ -288,5 +289,38 @@ gpio: gpio@10060000 { > clocks = <&prci PRCI_CLK_PCLK>; > status = "disabled"; > }; > + pcie@e00000000 { > + #address-cells = <3>; > + #interrupt-cells = <1>; > + #num-lanes = <8>; > + #size-cells = <2>; > + compatible = "sifive,fu740-pcie"; > + reg = <0xe 0x00000000 0x1 0x0 > + 0xd 0xf0000000 0x0 0x10000000 > + 0x0 0x100d0000 0x0 0x1000>; > + reg-names = "dbi", "config", "mgmt"; > + device_type = "pci"; > + dma-coherent; > + bus-range = <0x0 0xff>; > + ranges = <0x81000000 0x0 0x60080000 0x0 0x60080000 0x0 0x10000 /* I/O */ > + 0x82000000 0x0 0x60090000 0x0 0x60090000 0x0 0xff70000 /* mem */ > + 0x82000000 0x0 0x70000000 0x0 0x70000000 0x0 0x1000000 /* mem */ > + 0xc3000000 0x20 0x00000000 0x20 0x00000000 0x20 0x00000000>; /* mem prefetchable */ > + num-lanes = <0x8>; > + interrupts = <56 57 58 59 60 61 62 63 64>; > + interrupt-names = "msi", "inta", "intb", "intc", "intd"; > + interrupt-parent = <&plic0>; > + interrupt-map-mask = <0x0 0x0 0x0 0x7>; > + interrupt-map = <0x0 0x0 0x0 0x1 &plic0 57>, > + <0x0 0x0 0x0 0x2 &plic0 58>, > + <0x0 0x0 0x0 0x3 &plic0 59>, > + <0x0 0x0 0x0 0x4 &plic0 60>; > + clock-names = "pcie_aux"; > + clocks = <&prci PRCI_CLK_PCIE_AUX>; > + pwren-gpios = <&gpio 5 0>; > + perstn-gpios = <&gpio 8 0>; > + resets = <&prci 4>; > + status = "okay"; > + }; > }; > }; Acked-by: Palmer Dabbelt I'm happy to take these all through the RISC-V tree if that helps, but as usual I'd like reviews or acks from the subsystem maintainers. It looks like there are some issues so I'm going to drop this from my inbox.