Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2530030rwl; Thu, 6 Apr 2023 11:31:06 -0700 (PDT) X-Google-Smtp-Source: AKy350YTOolNxC9L29jgLl+x6Gd99FIPF4e4ye7Zx1APpFBqRj0NDvwK1Kr1XFi0++mFC3e+uW+U X-Received: by 2002:aa7:c257:0:b0:502:3ea4:7f95 with SMTP id y23-20020aa7c257000000b005023ea47f95mr482126edo.35.1680805866699; Thu, 06 Apr 2023 11:31:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680805866; cv=none; d=google.com; s=arc-20160816; b=c2P2tTIx99f0GwXkqqrNjtEYSGtTVC1LGJkezHL6iyWv/S3G3puEieui/TaBHUl0I4 o9Cs3IO/LNANsqZQKmVj737T548+lGt4fl9S/qhMA1K+gS8b7tVZSXPZO6OlCcnEMV/4 mgtFg4mjK9saeUcOMVqUe/PnJfnqa6tU1X0v+TqDK6ci2sYrW+naOFec1/WsWPJzFjll Gfna7CgOdXsvT46dmllNKNQpzQZZw+Wz1L/7tyWLdmHxEFtCsnr7XrvJmYWnKb3Ml/+2 GDQT99bXlM7JzHwSGYf0oMKZaJKhIl7s3yDa9Ga8qkxuJUVzfaj2VTKGFVMrvABNINiG n5TA== 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; bh=j7Q2Y5PSxjfNuuYETIJE0tc7Nl05PML4hPeE9FZ3t1U=; b=cd5WOyHMmudWUigqbp9T0tkDt/Eye6nmH+yr1GS1BucZxEZxmQNM+ZG+xdzN79CHmY u9lO8hj3317M6RXzOevoLvk9SiI3xWH4fZo1gfUmexC43ABwaydo7NmjfGT8W7kOgLSv QvvtSobqZ+64YIQoasGmQ0jyadU8AJrjQpR/7sj0/AA1U7sXqAvrMnXJcpB8Nw6hhAtd 5a0hHeW9Z7jMyLDvs887RQVsWr8pU9uNEtPH7qPWpOhegYAAvdKNdbPlLWP2mtDQCXsa agXCe3znlBWwAdbQ7Xhucgy+tXahHAKE2Hevrz6arWTfy/MYXfgaRtvDjLBrkIJEfM/T PVHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LyZ0MroW; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k22-20020a05640212d600b004af7e6911d1si1666534edx.110.2023.04.06.11.30.41; Thu, 06 Apr 2023 11:31:06 -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=@linaro.org header.s=google header.b=LyZ0MroW; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238918AbjDFS0B (ORCPT + 99 others); Thu, 6 Apr 2023 14:26:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239445AbjDFSZ7 (ORCPT ); Thu, 6 Apr 2023 14:25:59 -0400 Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2FAED6581 for ; Thu, 6 Apr 2023 11:25:58 -0700 (PDT) Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-944bbbb17f7so159007566b.0 for ; Thu, 06 Apr 2023 11:25:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680805556; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=j7Q2Y5PSxjfNuuYETIJE0tc7Nl05PML4hPeE9FZ3t1U=; b=LyZ0MroWIx7yQATTWi7dnR72e4lHzBaxVKcXKV8E0fOBtt5cs33Bxj0rkLYm1qvpjt 71iqLmw6M1SjavFuptr1hBspndmbtGClUbMoef355RRW6Kjj64Vfjzch8aDKLvoitFbU 2iacdF2BOo8dFbpfDl0fCQgD7CUTVlNKhJ0IGbFt6oeJ/i1t27Dw2UbjcONJ6coEyzYO gDo7HDb1tVCN12jaKk6KhYoL0Jn8wtZsjFhCOh34qTKOwIGIzbHMgFLvenMjg/RvpxV4 X6ZxgN4fsN7VPwD5qbKOC47UKOeC4fGrgg+04Pkgm1xqJfUvV6SlB6vTN00qA+YH+n7d 3QJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680805556; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=j7Q2Y5PSxjfNuuYETIJE0tc7Nl05PML4hPeE9FZ3t1U=; b=x9fEexRsEQjRjJkKcnZnDME4e2hr5yerkcKM6JnTVRUKwc2F6PZbnZWU/9DbUxDXc3 V9A4ZyEqNHF8oahM42+VN1SXoCQe/NUBfS+XkdbwnE6ywbmqHdYY8AwJy+qQngMz1uWa mAEx2b4Lji2oUZknSaZGQKE7rWv9+LCMpkFmEVipxNcRABkioRoZq/bd0nWs2lD9j9QJ iCJQJqqlI1S1E1TbL5RJcKcy3kZ9SNsRgSZYuEe9aIzY5WnzOPp8L5VJ99ZOOy7N3hck xP16+lZ1B/h8P53bM3Bf0Da/ONHuaZB2kwm3G6SJGDbvgijuxtuN0hUsUX0L4ALQvvpR te3A== X-Gm-Message-State: AAQBX9fxq+imVv7heix+sB0S1M9otflNOT+N+/xeB+FEHr8uLMleIK5S l7mrePYaiUVdepfyIJ1XqhyWnw== X-Received: by 2002:aa7:c647:0:b0:4fc:6475:d249 with SMTP id z7-20020aa7c647000000b004fc6475d249mr434834edr.3.1680805556612; Thu, 06 Apr 2023 11:25:56 -0700 (PDT) Received: from ?IPV6:2a02:810d:15c0:828:49e6:bb8c:a05b:c4ed? ([2a02:810d:15c0:828:49e6:bb8c:a05b:c4ed]) by smtp.gmail.com with ESMTPSA id a29-20020a509b5d000000b004fd204d180dsm1029128edj.64.2023.04.06.11.25.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 06 Apr 2023 11:25:56 -0700 (PDT) Message-ID: <56e47e45-b3c0-4d32-923c-88023faef827@linaro.org> Date: Thu, 6 Apr 2023 20:25:54 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH v1 3/3] riscv: dts: starfive: add PCIe dts configuration for JH7110 Content-Language: en-US To: Minda Chen , Emil Renner Berthing , Conor Dooley , Rob Herring , Bjorn Helgaas , Krzysztof Kozlowski , Lorenzo Pieralisi , =?UTF-8?Q?Krzysztof_Wilczy=c5=84ski?= Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-pci@vger.kernel.org, Paul Walmsley , Palmer Dabbelt , Albert Ou , Philipp Zabel , Mason Huo , Leyfoon Tan , Kevin Xie References: <20230406111142.74410-1-minda.chen@starfivetech.com> <20230406111142.74410-4-minda.chen@starfivetech.com> From: Krzysztof Kozlowski In-Reply-To: <20230406111142.74410-4-minda.chen@starfivetech.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 On 06/04/2023 13:11, Minda Chen wrote: > The PCIe is a PCIe2, single lane PCIe compliant controller. > > Signed-off-by: Minda Chen > --- > .../jh7110-starfive-visionfive-2.dtsi | 58 ++++++++++++ > arch/riscv/boot/dts/starfive/jh7110.dtsi | 88 +++++++++++++++++++ > 2 files changed, 146 insertions(+) > > diff --git a/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi b/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi > index cf0a66faf5d3..4552919e69b0 100644 > --- a/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi > +++ b/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi > @@ -191,6 +191,50 @@ > }; > }; > > + pcie0_wake_default: pcie0_wake_default { No underscores in node names. Test your patches against bindings before sending. > uart0_pins: uart0-0 { > tx-pins { > pinmux = @@ -228,3 +272,17 @@ > dr_mode = "peripheral"; > status = "okay"; > }; > + > +&pcie0 { > + pinctrl-names = "default"; > + reset-gpios = <&sysgpio 26 GPIO_ACTIVE_LOW>; > + phys = <&pciephy0>; > + status = "okay"; > +}; > + > +&pcie1 { > + pinctrl-names = "default"; > + reset-gpios = <&sysgpio 28 GPIO_ACTIVE_LOW>; > + phys = <&pciephy1>; > + status = "okay"; > +}; > diff --git a/arch/riscv/boot/dts/starfive/jh7110.dtsi b/arch/riscv/boot/dts/starfive/jh7110.dtsi > index 2f67196ffac0..c309ec550ba7 100644 > --- a/arch/riscv/boot/dts/starfive/jh7110.dtsi > +++ b/arch/riscv/boot/dts/starfive/jh7110.dtsi > @@ -642,5 +642,93 @@ > #reset-cells = <1>; > power-domains = <&pwrc JH7110_PD_VOUT>; > }; > + > + pcie0: pcie@2B000000 { Lower case hex. > + compatible = "starfive,jh7110-pcie"; > + #address-cells = <3>; > + #size-cells = <2>; > + #interrupt-cells = <1>; Why reg is not second property? > + reg = <0x0 0x2B000000 0x0 0x1000000 > + 0x9 0x40000000 0x0 0x10000000>; > + reg-names = "reg", "config"; > + device_type = "pci"; > + starfive,stg-syscon = <&stg_syscon 0xc0 0xc4 0x130 0x1b8>; > + bus-range = <0x0 0xff>; > + ranges = <0x82000000 0x0 0x30000000 0x0 0x30000000 0x0 0x08000000>, > + <0xc3000000 0x9 0x00000000 0x9 0x00000000 0x0 0x40000000>; > + interrupts = <56>; Your binding requires cells, so I am pretty sure you did not test what you wrote. Best regards, Krzysztof