Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp697158ybj; Thu, 7 May 2020 05:39:54 -0700 (PDT) X-Google-Smtp-Source: APiQypIcJHMs5r75gwm5b07BhjqxMwOysCc6GmsKfmg92Tffqcr/wKLH7AljTMUF05qI9szS6s64 X-Received: by 2002:aa7:ce0f:: with SMTP id d15mr11070921edv.290.1588855194730; Thu, 07 May 2020 05:39:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588855194; cv=none; d=google.com; s=arc-20160816; b=nR1T+iPzVIHS+rSRpaDO8tb5b7WIj46AEnMJrBysRYaafcQzjJD50mV138ebaN7acT Kut4+STm1gIZq2qeEh22ajx21A8TCg87126Qkc1p/pAEGrNJQDUZvDHiXGDPufnXpVIy aim8Y7C6KvCO4pz/0hcY6854DvkTVZ+2BcM1qngrVVK5OVlP6A4nKFC2ZHDTp4qklAh1 4rpzEajQiEQicT/Ckgn0zL9/h7CY4eD1R3Wmqj2fnKIyzvR3EpbD3i8Ky7sKE+Nong2w u4dIB18biexZkY+5qt+4UlZKXC20KXrLpfhWNCI91GsxKn8Ac2aXYR2n0WIom64B63ys k+hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=k5tfZ2A2WWNmU4zdXwLoONjAAGvKm5xutW5MVcsvZlo=; b=CDB4C5sMZwmg5KORNKmQ34OJSDtdeaixBprDTKsK38pjTnTQXmhhqSYsW3Rk0X7mye qMSIcBxkZ6ZAXiFTmrR53FwiPSi7GHwDc/0lfmj8WTPBac0gnyV3u5vrkcO/aeD7xlPc oeMIX1GjZmZWrxq0OGJtYVIIvRmuubPuxMIhmO+Mgr7CdMDEmcBNcMXzUun2/nbsrKa2 yLvRqmRSkoJ2JrBg+z/iEyZ3um4wUnnua6F4uj93F5iSs3LUJiJ5gVwRs9cOlYW8VW5C AUUqwDtq0e0A8BlcrG64GBEnXyYMSO7iCz4oLXmB91s/eXVwAjW1ABm1/G/TZw3UF07j 3i2Q== ARC-Authentication-Results: i=1; mx.google.com; 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 a7si794683ejx.279.2020.05.07.05.39.29; Thu, 07 May 2020 05:39: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; 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 S1727795AbgEGMfX (ORCPT + 99 others); Thu, 7 May 2020 08:35:23 -0400 Received: from relmlor1.renesas.com ([210.160.252.171]:32475 "EHLO relmlie5.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725939AbgEGMfW (ORCPT ); Thu, 7 May 2020 08:35:22 -0400 X-IronPort-AV: E=Sophos;i="5.73,363,1583161200"; d="scan'208";a="46498190" Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie5.idc.renesas.com with ESMTP; 07 May 2020 21:35:20 +0900 Received: from localhost.localdomain (unknown [10.226.36.204]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id 5361F4004D0E; Thu, 7 May 2020 21:35:16 +0900 (JST) From: Lad Prabhakar To: Lorenzo Pieralisi Cc: Rob Herring , Tom Joseph , Jingoo Han , Bjorn Helgaas , Gustavo Pimentel , Marek Vasut , Yoshihiro Shimoda , Shawn Lin , Heiko Stuebner , Kishon Vijay Abraham I , Geert Uytterhoeven , linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Prabhakar , Lad Prabhakar Subject: [PATCH v10 6/8] dt-bindings: PCI: rcar: Add bindings for R-Car PCIe endpoint controller Date: Thu, 7 May 2020 13:33:17 +0100 Message-Id: <1588854799-13710-7-git-send-email-prabhakar.mahadev-lad.rj@bp.renesas.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1588854799-13710-1-git-send-email-prabhakar.mahadev-lad.rj@bp.renesas.com> References: <1588854799-13710-1-git-send-email-prabhakar.mahadev-lad.rj@bp.renesas.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds the bindings for the R-Car PCIe endpoint driver. Signed-off-by: Lad Prabhakar Reviewed-by: Rob Herring Reviewed-by: Yoshihiro Shimoda --- .../devicetree/bindings/pci/rcar-pci-ep.yaml | 77 +++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 Documentation/devicetree/bindings/pci/rcar-pci-ep.yaml diff --git a/Documentation/devicetree/bindings/pci/rcar-pci-ep.yaml b/Documentation/devicetree/bindings/pci/rcar-pci-ep.yaml new file mode 100644 index 000000000000..aa483c7f27fd --- /dev/null +++ b/Documentation/devicetree/bindings/pci/rcar-pci-ep.yaml @@ -0,0 +1,77 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +# Copyright (C) 2020 Renesas Electronics Europe GmbH - https://www.renesas.com/eu/en/ +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pci/rcar-pci-ep.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Renesas R-Car PCIe Endpoint + +maintainers: + - Lad Prabhakar + - Yoshihiro Shimoda + +properties: + compatible: + items: + - const: renesas,r8a774c0-pcie-ep + - const: renesas,rcar-gen3-pcie-ep + + reg: + maxItems: 5 + + reg-names: + items: + - const: apb-base + - const: memory0 + - const: memory1 + - const: memory2 + - const: memory3 + + power-domains: + maxItems: 1 + + resets: + maxItems: 1 + + clocks: + maxItems: 1 + + clock-names: + items: + - const: pcie + + max-functions: + minimum: 1 + maximum: 1 + +required: + - compatible + - reg + - reg-names + - resets + - power-domains + - clocks + - clock-names + - max-functions + +examples: + - | + #include + #include + + pcie0_ep: pcie-ep@fe000000 { + compatible = "renesas,r8a774c0-pcie-ep", + "renesas,rcar-gen3-pcie-ep"; + reg = <0xfe000000 0x80000>, + <0xfe100000 0x100000>, + <0xfe200000 0x200000>, + <0x30000000 0x8000000>, + <0x38000000 0x8000000>; + reg-names = "apb-base", "memory0", "memory1", "memory2", "memory3"; + resets = <&cpg 319>; + power-domains = <&sysc R8A774C0_PD_ALWAYS_ON>; + clocks = <&cpg CPG_MOD 319>; + clock-names = "pcie"; + max-functions = /bits/ 8 <1>; + }; -- 2.17.1