Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2118593pxb; Sun, 18 Apr 2021 19:44:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyQYH/dJQ7Ci9WcXnQa7qNReAmTPlwCgzwXd8GYiTWZJ+2Y6DIpraYecNkQY8li8oTh4adA X-Received: by 2002:a17:906:cb1:: with SMTP id k17mr19526039ejh.307.1618800292656; Sun, 18 Apr 2021 19:44:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618800292; cv=none; d=google.com; s=arc-20160816; b=DiOkxsdJQhokfnC2/DWS/hMZplKtO7AGjfkM55qk5HHoOrSShrELiAhpwmPHLw8915 X3CLk3nLq3azwWs1HWJ4weVUTj+ZVRxj3EGJknXbiqZStsOgkdK3j4khIkGIgzbOIta8 RviA01WhVWUQNoKHBEcSLiUIO2fSpm+5AlM849XI7FMl/plGC/UcIod5RINEvLVZ8y+a Vhd4RWBKAYv2gPmVxpvhuRUzk3u0pW/TktSOwN6PVjhSVZdW4GKRERyptyi2EIPKWKju 1C0E/VCgp767kecCKQR3rWP8Ky/m4P+6FNf4r9VlbGdBs9OjYiGvoJDqGH67BP57gT3+ CedQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=Sx7h0f2GZxD3nAjPPDDUPLWWYJCyRbQKUNjPW59daPo=; b=A99f3kHKO0IjryV92jGvFBCMOUz6L2a81jjGjUtZvRR5gHnWuEMWmfg6x51axTf8LW 6jfaYmPqFUf+oGPK1iQMsaxEjyKXOS8m0UuPK57MiqfFvVLhs09Wx/2V/N7ZPmVp6eG8 0ppCgi980UHD5OWvgbyQgZ6O/aFme4EPBOU8kNFcf5keAlaCHoOki5uHJjW0vZl+LCph 763RVxXk617pwjmIA4ua50QagKvmpAeMqkU9gKV52cgVbn4RbJx0Q/p1VLfdLdAdnewo 2/++fxPC6+Hf23k1tSTZN6H9AnnQxBKsycOEgFysvYanjF9lhJ2mcrzqUFx5/injzFPX 6n+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=KwlvFeQW; 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 z13si11512720edd.128.2021.04.18.19.44.28; Sun, 18 Apr 2021 19:44:52 -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=@sifive.com header.s=google header.b=KwlvFeQW; 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 S233156AbhDSCoJ (ORCPT + 99 others); Sun, 18 Apr 2021 22:44:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232596AbhDSCoG (ORCPT ); Sun, 18 Apr 2021 22:44:06 -0400 Received: from mail-qt1-x82d.google.com (mail-qt1-x82d.google.com [IPv6:2607:f8b0:4864:20::82d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6ADEC06174A for ; Sun, 18 Apr 2021 19:43:37 -0700 (PDT) Received: by mail-qt1-x82d.google.com with SMTP id j7so25091228qtx.5 for ; Sun, 18 Apr 2021 19:43:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=Sx7h0f2GZxD3nAjPPDDUPLWWYJCyRbQKUNjPW59daPo=; b=KwlvFeQWVR/uxKtcJ2SY+8qVoqs3VJGOGaLKPkos/++5xUzVOq/KPh47X/sAZdvj/V qCDBiJXTvRK8f8nGQTtHqW8pYwwukQRknOp5cT93YwADCUUwAIephISjfWzAhpvwbSl5 6hcWmhf0MkhR4HYPV2vAZIQ6MUOZ+UOpPvqCJoIc3v+5fOLmHzvZRmh3GV9TrKQ4SWLW j8dBgB4u63HgjaiJjP8X6ExOJRPEGZTQflnt3uKdk5Dwec9k3FrdBC3b9vfyXEjNN55Y +9GeDymJGoZS9Uanohn4SD7WUaR6sazddH9qZtPcwasUI0t40lW6UyAeGBtiduaEikWx ElSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=Sx7h0f2GZxD3nAjPPDDUPLWWYJCyRbQKUNjPW59daPo=; b=UHwOOA9hrez63rM0i9Qzh8rojHU4Wb8CpVF05aV/s509TpfLv1Xa+z2qImtXfReQs+ 4XFXULLj1pKzfuA2OGEQEiXIvy0L2sHlf5ZMR14Sx3xcRPN7lRoQc07nsPGgvRTAQp9i UsSqNtEQAzXUYW0Cdea99Nhjcl4kSj3gO6u6b78ZLPXwwlK1fnjyvReNQyuoG9dx+F8k tLTRHgEYidupV0huhU33j26iOITnvr9mbFriJmK+kxqJ5qA4RkCV4Nz4DcUwXmzAEpUc yVWWSkePd85j+nmr4c4xUHhmnXv+ZiibLNxWlhj5Z9SGOJqYh+OTmEnt8XmojkmN70bH kQxw== X-Gm-Message-State: AOAM530tcs1w3TJWrz0r3vXmt/JO5wNb8B7QRwwDEXyuqIeGdzGJXk9H 7Q9QqaAFlWqQVqeS4qhxKhjVcgD7StjucmhM3rQitg== X-Received: by 2002:ac8:502:: with SMTP id u2mr9576775qtg.218.1618800216887; Sun, 18 Apr 2021 19:43:36 -0700 (PDT) MIME-Version: 1.0 References: <17994571deaf703e65ece7e44c742f82c988cf39.1615954046.git.greentime.hu@sifive.com> In-Reply-To: From: Greentime Hu Date: Mon, 19 Apr 2021 10:43:28 +0800 Message-ID: Subject: Re: [PATCH v2 6/6] riscv: dts: Add PCIe support for the SiFive FU740-C000 SoC To: Palmer Dabbelt Cc: Paul Walmsley , hes@sifive.com, Erik Danie , Zong Li , Bjorn Helgaas , robh+dt@kernel.org, Albert Ou , Michael Turquette , Stephen Boyd , Lorenzo Pieralisi , Philipp Zabel , 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 , Linux Kernel Mailing List , linux-clk@vger.kernel.org, Bjorn Helgaas Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Palmer Dabbelt =E6=96=BC 2021=E5=B9=B43=E6=9C=8831=E6= =97=A5 =E9=80=B1=E4=B8=89 =E4=B8=8A=E5=8D=888:24=E5=AF=AB=E9=81=93=EF=BC=9A > > 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/bo= ot/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 =3D <0x0 0x10000000 0x0 0x1000>; > > clocks =3D <&hfclk>, <&rtcclk>; > > #clock-cells =3D <1>; > > + #reset-cells =3D <1>; > > }; > > uart0: serial@10010000 { > > compatible =3D "sifive,fu740-c000-uart", "sifive,= uart0"; > > @@ -288,5 +289,38 @@ gpio: gpio@10060000 { > > clocks =3D <&prci PRCI_CLK_PCLK>; > > status =3D "disabled"; > > }; > > + pcie@e00000000 { > > + #address-cells =3D <3>; > > + #interrupt-cells =3D <1>; > > + #num-lanes =3D <8>; > > + #size-cells =3D <2>; > > + compatible =3D "sifive,fu740-pcie"; > > + reg =3D <0xe 0x00000000 0x1 0x0 > > + 0xd 0xf0000000 0x0 0x10000000 > > + 0x0 0x100d0000 0x0 0x1000>; > > + reg-names =3D "dbi", "config", "mgmt"; > > + device_type =3D "pci"; > > + dma-coherent; > > + bus-range =3D <0x0 0xff>; > > + ranges =3D <0x81000000 0x0 0x60080000 0x0 0x600= 80000 0x0 0x10000 /* I/O */ > > + 0x82000000 0x0 0x60090000 0x0 0x60090= 000 0x0 0xff70000 /* mem */ > > + 0x82000000 0x0 0x70000000 0x0 0x70000= 000 0x0 0x1000000 /* mem */ > > + 0xc3000000 0x20 0x00000000 0x20 0x00000= 000 0x20 0x00000000>; /* mem prefetchable */ > > + num-lanes =3D <0x8>; > > + interrupts =3D <56 57 58 59 60 61 62 63 64>; > > + interrupt-names =3D "msi", "inta", "intb", "intc"= , "intd"; > > + interrupt-parent =3D <&plic0>; > > + interrupt-map-mask =3D <0x0 0x0 0x0 0x7>; > > + interrupt-map =3D <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 =3D "pcie_aux"; > > + clocks =3D <&prci PRCI_CLK_PCIE_AUX>; > > + pwren-gpios =3D <&gpio 5 0>; > > + perstn-gpios =3D <&gpio 8 0>; > > + resets =3D <&prci 4>; > > + status =3D "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. Hi Palmer, Since the subsystem maintainer has pick the first 5 patches to his branch, would you please help to pick the 6th patch of version 6? Thank you. :) https://www.spinics.net/lists/linux-clk/msg57213.html https://patchwork.kernel.org/project/linux-riscv/patch/20210406092634.50465= -7-greentime.hu@sifive.com/