From patchwork Fri Sep 1 13:17:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoshihiro Shimoda X-Patchwork-Id: 13372625 X-Patchwork-Delegate: kw@linux.com Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 588A2CA0FF0 for ; Fri, 1 Sep 2023 13:17:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349714AbjIANRb (ORCPT ); Fri, 1 Sep 2023 09:17:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349710AbjIANRb (ORCPT ); Fri, 1 Sep 2023 09:17:31 -0400 Received: from relmlie6.idc.renesas.com (relmlor2.renesas.com [210.160.252.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EF9C010E0; Fri, 1 Sep 2023 06:17:27 -0700 (PDT) X-IronPort-AV: E=Sophos;i="6.02,219,1688396400"; d="scan'208";a="178442171" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie6.idc.renesas.com with ESMTP; 01 Sep 2023 22:17:26 +0900 Received: from localhost.localdomain (unknown [10.166.15.32]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id EC03741D31CC; Fri, 1 Sep 2023 22:17:25 +0900 (JST) From: Yoshihiro Shimoda To: lpieralisi@kernel.org, kw@linux.com, robh@kernel.org, bhelgaas@google.com, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, jingoohan1@gmail.com, gustavo.pimentel@synopsys.com, mani@kernel.org Cc: marek.vasut+renesas@gmail.com, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Yoshihiro Shimoda Subject: [PATCH 1/3] dt-bindings: PCI: dwc: Update maxItems of reg and reg-names take 2 Date: Fri, 1 Sep 2023 22:17:09 +0900 Message-Id: <20230901131711.2861283-2-yoshihiro.shimoda.uh@renesas.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230901131711.2861283-1-yoshihiro.shimoda.uh@renesas.com> References: <20230901131711.2861283-1-yoshihiro.shimoda.uh@renesas.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org Update maxItems of reg and reg-names on both host and endpoint for supporting Renesas R-Car Gen4 PCIe controllers later. Signed-off-by: Yoshihiro Shimoda --- This patch will be squashed into the following commit on the pci.git / controller/rcar branch so that the subject / description are almost the same: dt-bindings: PCI: dwc: Update maxItems of reg and reg-names https://git.kernel.org/pub/scm/linux/kernel/git/pci/pci.git/commit/?h=controller/rcar&id=5ca157f7d36cddc305bee7b89942c86f5af0a534 --- .../devicetree/bindings/pci/snps,dw-pcie-common.yaml | 4 ++-- Documentation/devicetree/bindings/pci/snps,dw-pcie-ep.yaml | 4 ++-- Documentation/devicetree/bindings/pci/snps,dw-pcie.yaml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Documentation/devicetree/bindings/pci/snps,dw-pcie-common.yaml b/Documentation/devicetree/bindings/pci/snps,dw-pcie-common.yaml index d87e13496834..dc05761c5cf9 100644 --- a/Documentation/devicetree/bindings/pci/snps,dw-pcie-common.yaml +++ b/Documentation/devicetree/bindings/pci/snps,dw-pcie-common.yaml @@ -33,11 +33,11 @@ properties: specific for each activated function, while the rest of the sub-spaces are common for all of them (if there are more than one). minItems: 2 - maxItems: 6 + maxItems: 7 reg-names: minItems: 2 - maxItems: 6 + maxItems: 7 interrupts: description: diff --git a/Documentation/devicetree/bindings/pci/snps,dw-pcie-ep.yaml b/Documentation/devicetree/bindings/pci/snps,dw-pcie-ep.yaml index cb727f60be0b..bbdb01d22848 100644 --- a/Documentation/devicetree/bindings/pci/snps,dw-pcie-ep.yaml +++ b/Documentation/devicetree/bindings/pci/snps,dw-pcie-ep.yaml @@ -33,11 +33,11 @@ properties: normal controller functioning. iATU memory IO region is also required if the space is unrolled (IP-core version >= 4.80a). minItems: 2 - maxItems: 6 + maxItems: 7 reg-names: minItems: 2 - maxItems: 6 + maxItems: 7 items: oneOf: - description: diff --git a/Documentation/devicetree/bindings/pci/snps,dw-pcie.yaml b/Documentation/devicetree/bindings/pci/snps,dw-pcie.yaml index 0bfcfd6ccb5f..a4cab63fe838 100644 --- a/Documentation/devicetree/bindings/pci/snps,dw-pcie.yaml +++ b/Documentation/devicetree/bindings/pci/snps,dw-pcie.yaml @@ -33,11 +33,11 @@ properties: are required for the normal controller work. iATU memory IO region is also required if the space is unrolled (IP-core version >= 4.80a). minItems: 2 - maxItems: 6 + maxItems: 7 reg-names: minItems: 2 - maxItems: 6 + maxItems: 7 items: oneOf: - description: From patchwork Fri Sep 1 13:17:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoshihiro Shimoda X-Patchwork-Id: 13372624 X-Patchwork-Delegate: kw@linux.com Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4875FCA0FED for ; Fri, 1 Sep 2023 13:17:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349713AbjIANRb (ORCPT ); Fri, 1 Sep 2023 09:17:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229472AbjIANRa (ORCPT ); Fri, 1 Sep 2023 09:17:30 -0400 Received: from relmlie5.idc.renesas.com (relmlor1.renesas.com [210.160.252.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id AFD57E7E; Fri, 1 Sep 2023 06:17:27 -0700 (PDT) X-IronPort-AV: E=Sophos;i="6.02,219,1688396400"; d="scan'208";a="174734873" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie5.idc.renesas.com with ESMTP; 01 Sep 2023 22:17:26 +0900 Received: from localhost.localdomain (unknown [10.166.15.32]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id 18812420FDB4; Fri, 1 Sep 2023 22:17:26 +0900 (JST) From: Yoshihiro Shimoda To: lpieralisi@kernel.org, kw@linux.com, robh@kernel.org, bhelgaas@google.com, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, jingoohan1@gmail.com, gustavo.pimentel@synopsys.com, mani@kernel.org Cc: marek.vasut+renesas@gmail.com, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Yoshihiro Shimoda Subject: [PATCH 2/3] dt-bindings: PCI: rcar-gen4-pcie: Fix minor issues Date: Fri, 1 Sep 2023 22:17:10 +0900 Message-Id: <20230901131711.2861283-3-yoshihiro.shimoda.uh@renesas.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230901131711.2861283-1-yoshihiro.shimoda.uh@renesas.com> References: <20230901131711.2861283-1-yoshihiro.shimoda.uh@renesas.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org Fix minor issues of rcar-gen4-pci-host.yaml. Signed-off-by: Yoshihiro Shimoda Reviewed-by: Geert Uytterhoeven --- This patch will be squashed into the following commit on the pci.git / controller/rcar branch so that many fixes into a patch: dt-bindings: PCI: renesas: Add R-Car Gen4 PCIe Host https://git.kernel.org/pub/scm/linux/kernel/git/pci/pci.git/commit/?h=controller/rcar&id=af285bc39885eaeed434c607a977d664916681a7 --- .../bindings/pci/rcar-gen4-pci-host.yaml | 36 ++++++++++--------- 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/Documentation/devicetree/bindings/pci/rcar-gen4-pci-host.yaml b/Documentation/devicetree/bindings/pci/rcar-gen4-pci-host.yaml index 513a3416dd8e..ffb34339b637 100644 --- a/Documentation/devicetree/bindings/pci/rcar-gen4-pci-host.yaml +++ b/Documentation/devicetree/bindings/pci/rcar-gen4-pci-host.yaml @@ -20,7 +20,7 @@ properties: - const: renesas,rcar-gen4-pcie # R-Car Gen4 reg: - maxItems: 6 + maxItems: 7 reg-names: items: @@ -29,6 +29,7 @@ properties: - const: atu - const: dma - const: app + - const: phy - const: config interrupts: @@ -55,7 +56,7 @@ properties: resets: maxItems: 1 - resets-names: + reset-names: items: - const: pwr @@ -68,7 +69,9 @@ properties: required: - compatible - reg + - reg-names - interrupts + - interrupt-names - clocks - clock-names - power-domains @@ -91,8 +94,21 @@ examples: compatible = "renesas,r8a779f0-pcie", "renesas,rcar-gen4-pcie"; reg = <0 0xe65d0000 0 0x1000>, <0 0xe65d2000 0 0x0800>, <0 0xe65d3000 0 0x2000>, <0 0xe65d5000 0 0x1200>, - <0 0xe65d6200 0 0x0e00>, <0 0xfe000000 0 0x400000>; - reg-names = "dbi", "dbi2", "atu", "dma", "app", "config"; + <0 0xe65d6200 0 0x0e00>, <0 0xe65d7000 0 0x0400>, + <0 0xfe000000 0 0x400000>; + reg-names = "dbi", "dbi2", "atu", "dma", "app", "phy", "config"; + interrupts = , + , + , + ; + interrupt-names = "msi", "dma", "sft_ce", "app"; + clocks = <&cpg CPG_MOD 624>, <&pcie0_clkref>; + clock-names = "core", "ref"; + power-domains = <&sysc R8A779F0_PD_ALWAYS_ON>; + resets = <&cpg 624>; + reset-names = "pwr"; + max-link-speed = <4>; + num-lanes = <2>; #address-cells = <3>; #size-cells = <2>; bus-range = <0x00 0xff>; @@ -100,24 +116,12 @@ examples: ranges = <0x01000000 0 0x00000000 0 0xfe000000 0 0x00400000>, <0x02000000 0 0x30000000 0 0x30000000 0 0x10000000>; dma-ranges = <0x42000000 0 0x00000000 0 0x00000000 1 0x00000000>; - interrupts = , - , - , - ; - interrupt-names = "msi", "dma", "sft_ce", "app"; #interrupt-cells = <1>; interrupt-map-mask = <0 0 0 7>; interrupt-map = <0 0 0 1 &gic GIC_SPI 416 IRQ_TYPE_LEVEL_HIGH>, <0 0 0 2 &gic GIC_SPI 416 IRQ_TYPE_LEVEL_HIGH>, <0 0 0 3 &gic GIC_SPI 416 IRQ_TYPE_LEVEL_HIGH>, <0 0 0 4 &gic GIC_SPI 416 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&cpg CPG_MOD 624>, <&clkref>; - clock-names = "core", "ref"; - power-domains = <&sysc R8A779F0_PD_ALWAYS_ON>; - resets = <&cpg 624>; - reset-names = "pwr"; - num-lanes = <2>; snps,enable-cdm-check; - max-link-speed = <4>; }; }; From patchwork Fri Sep 1 13:17:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoshihiro Shimoda X-Patchwork-Id: 13372626 X-Patchwork-Delegate: kw@linux.com Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 81CB5CA0FF1 for ; Fri, 1 Sep 2023 13:17:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349718AbjIANRc (ORCPT ); Fri, 1 Sep 2023 09:17:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56568 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349710AbjIANRc (ORCPT ); Fri, 1 Sep 2023 09:17:32 -0400 Received: from relmlie6.idc.renesas.com (relmlor2.renesas.com [210.160.252.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 593ACE7E; Fri, 1 Sep 2023 06:17:29 -0700 (PDT) X-IronPort-AV: E=Sophos;i="6.02,219,1688396400"; d="scan'208";a="178442172" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie6.idc.renesas.com with ESMTP; 01 Sep 2023 22:17:26 +0900 Received: from localhost.localdomain (unknown [10.166.15.32]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id 396F9421CCBF; Fri, 1 Sep 2023 22:17:26 +0900 (JST) From: Yoshihiro Shimoda To: lpieralisi@kernel.org, kw@linux.com, robh@kernel.org, bhelgaas@google.com, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, jingoohan1@gmail.com, gustavo.pimentel@synopsys.com, mani@kernel.org Cc: marek.vasut+renesas@gmail.com, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Yoshihiro Shimoda Subject: [PATCH 3/3] dt-bindings: PCI: rcar-gen4-pcie-ep: Fix minor issues Date: Fri, 1 Sep 2023 22:17:11 +0900 Message-Id: <20230901131711.2861283-4-yoshihiro.shimoda.uh@renesas.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230901131711.2861283-1-yoshihiro.shimoda.uh@renesas.com> References: <20230901131711.2861283-1-yoshihiro.shimoda.uh@renesas.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org Fix minor issues of rcar-gen4-pci-ep.yaml. Signed-off-by: Yoshihiro Shimoda Reviewed-by: Geert Uytterhoeven --- This patch will be squashed into the following commit on the pci.git / controller/rcar branch so that many fixes into a patch: dt-bindings: PCI: renesas: Add R-Car Gen4 PCIe Endpoint https://git.kernel.org/pub/scm/linux/kernel/git/pci/pci.git/commit/?h=controller/rcar&id=738bded11aaa3a9717e415197cd6b833dc439cb3 --- .../bindings/pci/rcar-gen4-pci-ep.yaml | 39 ++++++++++++------- 1 file changed, 24 insertions(+), 15 deletions(-) diff --git a/Documentation/devicetree/bindings/pci/rcar-gen4-pci-ep.yaml b/Documentation/devicetree/bindings/pci/rcar-gen4-pci-ep.yaml index 4e6be856104c..fe38f62da066 100644 --- a/Documentation/devicetree/bindings/pci/rcar-gen4-pci-ep.yaml +++ b/Documentation/devicetree/bindings/pci/rcar-gen4-pci-ep.yaml @@ -20,7 +20,7 @@ properties: - const: renesas,rcar-gen4-pcie-ep # R-Car Gen4 reg: - maxItems: 6 + maxItems: 7 reg-names: items: @@ -29,6 +29,7 @@ properties: - const: atu - const: dma - const: app + - const: phy - const: addr_space interrupts: @@ -40,12 +41,6 @@ properties: - const: sft_ce - const: app - power-domains: - maxItems: 1 - - resets: - maxItems: 1 - clocks: maxItems: 2 @@ -54,8 +49,15 @@ properties: - const: core - const: ref - max-functions: - maximum: 2 + power-domains: + maxItems: 1 + + resets: + maxItems: 1 + + reset-names: + items: + - const: pwr max-link-speed: maximum: 4 @@ -63,15 +65,20 @@ properties: num-lanes: maximum: 4 + max-functions: + maximum: 2 + required: - compatible - reg - reg-names - interrupts - - resets - - power-domains + - interrupt-names - clocks - clock-names + - power-domains + - resets + - reset-names unevaluatedProperties: false @@ -87,10 +94,11 @@ examples: pcie0_ep: pcie-ep@e65d0000 { compatible = "renesas,r8a779f0-pcie-ep", "renesas,rcar-gen4-pcie-ep"; - reg = <0 0xe65d0000 0 0x2000>, <0 0xe65d2800 0 0x0800>, + reg = <0 0xe65d0000 0 0x2000>, <0 0xe65d2000 0 0x1000>, <0 0xe65d3000 0 0x2000>, <0 0xe65d5000 0 0x1200>, - <0 0xe65d6200 0 0x0e00>, <0 0xfe000000 0 0x400000>; - reg-names = "dbi", "dbi2", "atu", "dma", "app", "addr_space"; + <0 0xe65d6200 0 0x0e00>, <0 0xe65d7000 0 0x0400>, + <0 0xfe000000 0 0x400000>; + reg-names = "dbi", "dbi2", "atu", "dma", "app", "phy", "addr_space"; interrupts = , , ; @@ -99,8 +107,9 @@ examples: clock-names = "core", "ref"; power-domains = <&sysc R8A779F0_PD_ALWAYS_ON>; resets = <&cpg 624>; - num-lanes = <2>; + reset-names = "pwr"; max-link-speed = <4>; + num-lanes = <2>; max-functions = /bits/ 8 <2>; }; };