From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ed1-f47.google.com (mail-ed1-f47.google.com [209.85.208.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A176B1FF7DC for ; Mon, 5 May 2025 11:28:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746444512; cv=none; b=JcNlK0mbli+ciMjoPYqv0tmVsngh/DzBfEZVnOmkEjL/B/dDkCBjL+U90gQvBMwK+Q+GaZNeHLxKoM4Tc4KEsrh9Q/5WTrcOecGLKrYYkQYx0ztGVkzX9W+7HD+nqYVekbTlHiCMFOqTEQIsyEY8tOQ06+ejHljQKfgRc9ycOMM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746444512; c=relaxed/simple; bh=fozcw/cPzDCRQYDoH/cphECQbWBs/UYkwW7QVUbB8js=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=g9aEanY/fD1fFJBOjhVz/vhc5iGn4Wh9PAnBO8IDClEEs3OwNGfhVjVdHty5WGOPZCyReAyAIad4q/l/gcsW92vwYQLW6tFaPrNLr04DMB0qSfxGKtWrNKqLdSV+gheLwtYjanE+/1uRyIqm+yWjt74glXNE1g+xOqi9pWGWkfA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tuxon.dev; spf=pass smtp.mailfrom=tuxon.dev; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b=eTZJc3OQ; arc=none smtp.client-ip=209.85.208.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tuxon.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=tuxon.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b="eTZJc3OQ" Received: by mail-ed1-f47.google.com with SMTP id 4fb4d7f45d1cf-5ed43460d6bso6495669a12.0 for ; Mon, 05 May 2025 04:28:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1746444509; x=1747049309; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=aB3cMr3JDp0nKZr8OwsHEx3We5XLotlduuz1352Eao4=; b=eTZJc3OQPMj7DocRX3Tt8i2/6sbj6z2miUhjFkXj04/Om61jg2DT7Zr6Jg2jf++EZe kWMz9+OtS/v02i1chVzzI3i8/K52U+txzz5cJGKgtVRv/3AnSkPNuBcjzYTo5nJqD7dy dBSm9p3iFS8Krq2nW5TzhYOFTPckgYX2yguj4fY9DZs27MuKc8fp8+SpqJwgz+JJSHeu tyCLBcMecAgOfybpELIL2+vkdYN/BFQieuBKnnTYeXzNj7BRGCZCuQRE+8fEC5y+aDXB LKH/IK6cVeGe0krbIu3e21nj7SBGRcvllDZmS4AeujDYeN4ddvnzTEtIf/6pMk4MZL51 +mXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1746444509; x=1747049309; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=aB3cMr3JDp0nKZr8OwsHEx3We5XLotlduuz1352Eao4=; b=Rlve++47otL64yUXuAzZw+2dG/95Cy/mhn0Nz3I0bshpdMeEJeH9lBJdsgkBVlue3N D9Y24kyErSPMx96YyQ83tax4CvoiHyWj6QAYRKXZkaSm8p6hxlkjxcaY5VKglRSkqqsL w7wYQt/+z8pvWzAVsl9Ewa36sjpJrsL5aQuqbsTTNcWmrNZ1nPTDjH6YtUngsBXwR6kn C952eaKJ5MRid9qUiO1eeAitFD+HmiLKC8gdiYyztaS0ecwH+iQ5Pogxo748m4sBvxmJ T8pEdMD0lvRaWtxxIKpnNyy2Muqmy/StX3OQWo/O3yJxgHSKKcd5OUAAlXVRy3KGPvlw rNkA== X-Forwarded-Encrypted: i=1; AJvYcCUYckG3DUzzDJ5RovWLrkDpMyA5PRcLCU3GtT13aj7kRI4CBeovxgqr7IqiVM84eOgzBunnTQ3XIS4=@vger.kernel.org X-Gm-Message-State: AOJu0YyGHUJUD25He1Zu7Pr/FDwjxhSp+ObrxSL3SFbPEqsNne7lRotu BF7u3fVmYF5o4aDdLV3jUsupTuCG5xROtbjPFbNZcKcvocIxYrbRXDANsSzLGI8= X-Gm-Gg: ASbGncs0bahXfbLTOKYDSnHthKSjtisROsuT5IZ2Tx8qbR6ZFexkPZr+U36xIjgL6Sy Jg/Jl4oCsEQO2X2+Hwzj9g2wZ8PIUCER14L4ZsF221UcVi4Nwdeb45yKMs/85qrzS/GbgfiUMh3 df6CXBngUFoqlYJ0B01XbAGHjrya4yxUih2QxFjDN8OTEL7po7wIZ6LwTIfylk0ABM746tM+IUe Pkw6O6VzFdV2R8takmmB/ZTT7E5bXx4VJw+ATBx3++UK74odl/eIVeUBRGAiEhLdDuLJHt9kkWI rcuBjUDH4Gc2athDvvM9mf15mgi1uG+qRK3oFwxL5yfou5uZOK46DebJXfEO X-Google-Smtp-Source: AGHT+IGvEp3fdacUme4FWMSlQbtpUEv8ay4IyBgw8S68wSBoAmf9cWSX9tpMSyCX12ZWHunmUEvARQ== X-Received: by 2002:a17:907:3e09:b0:ace:c43a:63e9 with SMTP id a640c23a62f3a-ad1a4a8d7dfmr571983666b.42.1746444508643; Mon, 05 May 2025 04:28:28 -0700 (PDT) Received: from [192.168.50.4] ([82.78.167.166]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-ad18914733esm476716866b.33.2025.05.05.04.28.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 05 May 2025 04:28:28 -0700 (PDT) Message-ID: <542674b6-bdcf-4149-99b4-a5568745eabd@tuxon.dev> Date: Mon, 5 May 2025 14:28:26 +0300 Precedence: bulk X-Mailing-List: linux-clk@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 4/8] dt-bindings: PCI: renesas,r9a08g045s33-pcie: Add documentation for the PCIe IP on Renesas RZ/G3S To: Bjorn Helgaas Cc: bhelgaas@google.com, lpieralisi@kernel.org, kw@linux.com, manivannan.sadhasivam@linaro.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, geert+renesas@glider.be, magnus.damm@gmail.com, mturquette@baylibre.com, sboyd@kernel.org, saravanak@google.com, p.zabel@pengutronix.de, linux-pci@vger.kernel.org, linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, Claudiu Beznea References: <20250501201636.GA776341@bhelgaas> From: Claudiu Beznea Content-Language: en-US In-Reply-To: <20250501201636.GA776341@bhelgaas> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi, Bjorn, On 01.05.2025 23:16, Bjorn Helgaas wrote: > On Wed, Apr 30, 2025 at 01:32:32PM +0300, Claudiu wrote: >> From: Claudiu Beznea >> >> The PCIe IP available on the Renesas RZ/G3S complies with the PCI Express >> Base Specification 4.0. It is designed for root complex applications and >> features a single-lane (x1) implementation. Add documentation for it. >> The interrupts, interrupt-names, resets, reset-names, clocks, clock-names >> description were obtained from the hardware manual. > >> + pcie@11e40000 { >> + compatible = "renesas,r9a08g045s33-pcie"; >> + reg = <0 0x11e40000 0 0x10000>; >> + ranges = <0x03000000 0 0x30000000 0 0x30000000 0 0x8000000>; >> + dma-ranges = <0x42000000 0 0x48000000 0 0x48000000 0 0x8000000>; >> + bus-range = <0x0 0xff>; >> + clocks = <&cpg CPG_MOD R9A08G045_PCI_ACLK>, >> + <&cpg CPG_MOD R9A08G045_PCI_CLKL1PM>; >> + clock-names = "aclk", "clkl1pm"; >> + resets = <&cpg R9A08G045_PCI_ARESETN>, >> + <&cpg R9A08G045_PCI_RST_B>, >> + <&cpg R9A08G045_PCI_RST_GP_B>, >> + <&cpg R9A08G045_PCI_RST_PS_B>, >> + <&cpg R9A08G045_PCI_RST_RSM_B>, >> + <&cpg R9A08G045_PCI_RST_CFG_B>, >> + <&cpg R9A08G045_PCI_RST_LOAD_B>; >> + reset-names = "aresetn", "rst_b", "rst_gp_b", "rst_ps_b", >> + "rst_rsm_b", "rst_cfg_b", "rst_load_b"; > > Could this be structured in a way that separates the shared Root > Complex properties from the ones that are specific to the Root Port? > I know the current hardware only supports a single Root Port, but I > think we should plan to be able to support multiple Root Ports. I'm not sure how should I do this. These are just the reset signals as the manual describes them. Can you, please, point me an example driver/device tree that I could check? Thank you for your review, Claudiu > >> + interrupts = , >> + , >> + , >> + , >> + , >> + , >> + , >> + , >> + , >> + , >> + , >> + , >> + , >> + , >> + , >> + ; >> + interrupt-names = "int_serr", "int_serr_cor", "int_serr_nonfatal", >> + "int_serr_fatal", "axi_err_int", "inta_rc", >> + "intb_rc", "intc_rc", "intd_rc", >> + "intmsi_rc", "int_link_bandwidth", "int_pm_pme", >> + "dma_int", "pcie_evt_int", "msg_int", >> + "int_all"; >> + #interrupt-cells = <1>; >> + interrupt-map-mask = <0 0 0 7>; >> + interrupt-map = <0 0 0 1 &pcie_intx 0>, /* INT A */ >> + <0 0 0 2 &pcie_intx 1>, /* INT B */ >> + <0 0 0 3 &pcie_intx 2>, /* INT C */ >> + <0 0 0 4 &pcie_intx 3>; /* INT D */ >> + device_type = "pci"; >> + num-lanes = <1>; >> + #address-cells = <3>; >> + #size-cells = <2>; >> + power-domains = <&cpg>; >> + renesas,sysc = <&sysc>; >> + vendor-id = <0x1912>; >> + device-id = <0x0033>; >> + >> + pcie_intx: legacy-interrupt-controller { >> + interrupt-controller; >> + #interrupt-cells = <1>; >> + #address-cells = <0>; >> + interrupt-parent = <&gic>; >> + interrupts = , >> + , >> + , >> + ; >> + }; >> + }; >> + }; >> + >> +... >> -- >> 2.43.0 >>