Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp33658pxb; Wed, 4 Nov 2020 13:39:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJwQb6KxBZ14Fh+BMINnKS9K5pnMPBUZo3QKjHqyTtGq6wB2jC3AQ7lF0sC0aier60w7RcvL X-Received: by 2002:a05:6402:88d:: with SMTP id e13mr14083544edy.366.1604525959363; Wed, 04 Nov 2020 13:39:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604525959; cv=none; d=google.com; s=arc-20160816; b=aP0J9qu0vT4oeUhgd1HALkJJxTgs44h+bg7k1Qnx/EQyVOcwQJVs9ykfqA67+Vq2sD WmhWOtwI8N4dJUny6F4zw/akC4lWBobVGrqfOQnAPPEQlzXzQw3jUF5TS4VqlZHxvxs8 +7gDTXyIyLrb1X2O05Qf4A3i5qM83gTUpHYNvVPJaQ8mW5Kfk4CFFEyaRFqUX7GUvAcj MaKaFaTr2eVsW25RITvYXAblvW2MFUd8qd0SOQ7XfyTpeKhezolq24BrpDizsLyvTxft kCKIe/AusUr131RGhHPfrJmIHoDwJXUxzSGNmUZMBc+UGYsAaw3vuiheClMVkBZKFhju saRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=XsTIGAagzOnMRm7sMHojCYBN2wI108e8FrvxB5eYOtQ=; b=jtmxbEUGCGYzwEcPp6GDNfbQzLrGI/1Hfvn43JuGFcCMzenjZn8GODyGf99mv0Im4g KsWyXl+PoN4oHxiBi9lvmkCPtNPBLShVSdC83WQSEl8dh6X/UNUuoJyq40ceTjo1+da4 nWmoW7vqZrU/mJlnvHGL4RSyTykfly5Ov03DlxtNsJms9WNcHtV65igcLnNK0YWPMsrZ iB+GWQL67orHuO08RpfASHLGfbjphriI3neI20ep4ceYrJZ4fCZ4EwO3EZfQZYoXzgyW 2levngoa/lp+rfWRWS8Q5ZWIFToHOeC2vkM95Hn8+SXlD4r61EU77yF8Zmb6EkwMUCP2 /8UQ== 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gb4si2061639ejc.216.2020.11.04.13.38.56; Wed, 04 Nov 2020 13:39:19 -0800 (PST) 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730774AbgKDVfm (ORCPT + 99 others); Wed, 4 Nov 2020 16:35:42 -0500 Received: from mail-oi1-f193.google.com ([209.85.167.193]:44392 "EHLO mail-oi1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726434AbgKDVfm (ORCPT ); Wed, 4 Nov 2020 16:35:42 -0500 Received: by mail-oi1-f193.google.com with SMTP id t16so6418451oie.11; Wed, 04 Nov 2020 13:35:41 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=XsTIGAagzOnMRm7sMHojCYBN2wI108e8FrvxB5eYOtQ=; b=hPpUyyjscPGGM2LvgcZ/VaZBiN4cLDDSM02uc9jUYG1jP+SePWZbSQq/wl05D5Osve JTJ+pMNy1O5V129ItJO3BPdnqTTPWSV6GICI8a3ja40KPFJfyDIZyTJRZxviJ7UHPOkM 9GWjpIkl/1pjXXXIzE6/BDAqojvxpit+165Dxuy9mWRtGOUWkBePYe0NAbVZIyqGscls xmlUiIn4siZ1GH7qKmutt5nJriNWh3Q4mX7mA8PlueAdaUC7sFHebcv//wFQNj7YvDJ1 Rlv8wGYkCX3oPVlYlfhtRo96Lmel39wo24HY1Ro1xUtiRiC8hUVJ/xwfsc5ep2FZ0EGo 876g== X-Gm-Message-State: AOAM531RVb13hU3FcTb2yvxCLhxzxyx0HHl3d4DBRpVrw1muRA4VSKXh +pGt4T9VsKhacZ5TdYvifA== X-Received: by 2002:aca:2111:: with SMTP id 17mr3648355oiz.139.1604525740674; Wed, 04 Nov 2020 13:35:40 -0800 (PST) Received: from xps15 (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id m65sm769596otc.36.2020.11.04.13.35.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Nov 2020 13:35:40 -0800 (PST) Received: (nullmailer pid 4163321 invoked by uid 1000); Wed, 04 Nov 2020 21:35:39 -0000 Date: Wed, 4 Nov 2020 15:35:39 -0600 From: Rob Herring To: Marek Szyprowski Cc: linux-samsung-soc@vger.kernel.org, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Jaehoon Chung , Jingoo Han , Krzysztof Kozlowski , Bjorn Helgaas , Lorenzo Pieralisi , Vinod Koul , Kishon Vijay Abraham I Subject: Re: [PATCH v3 2/6] dt-bindings: pci: add the samsung,exynos-pcie binding Message-ID: <20201104213539.GA4144654@bogus> References: <20201029134017.27400-1-m.szyprowski@samsung.com> <20201029134017.27400-3-m.szyprowski@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201029134017.27400-3-m.szyprowski@samsung.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 29, 2020 at 02:40:13PM +0100, Marek Szyprowski wrote: > Add dt-bindings for the Samsung Exynos PCIe controller (Exynos5433 > variant). Based on the text dt-binding posted by Jaehoon Chung. > > Signed-off-by: Marek Szyprowski > Reviewed-by: Krzysztof Kozlowski > --- > .../bindings/pci/samsung,exynos-pcie.yaml | 119 ++++++++++++++++++ > 1 file changed, 119 insertions(+) > create mode 100644 Documentation/devicetree/bindings/pci/samsung,exynos-pcie.yaml > > diff --git a/Documentation/devicetree/bindings/pci/samsung,exynos-pcie.yaml b/Documentation/devicetree/bindings/pci/samsung,exynos-pcie.yaml > new file mode 100644 > index 000000000000..1810bf722350 > --- /dev/null > +++ b/Documentation/devicetree/bindings/pci/samsung,exynos-pcie.yaml > @@ -0,0 +1,119 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/pci/samsung,exynos-pcie.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Samsung SoC series PCIe Host Controller Device Tree Bindings > + > +maintainers: > + - Marek Szyprowski > + - Jaehoon Chung > + > +description: |+ > + Exynos5433 SoC PCIe host controller is based on the Synopsys DesignWare > + PCIe IP and thus inherits all the common properties defined in > + designware-pcie.txt. > + > +allOf: > + - $ref: /schemas/pci/pci-bus.yaml# > + > +properties: > + compatible: > + const: samsung,exynos5433-pcie > + > + reg: > + items: > + - description: Data Bus Interface (DBI) registers. > + - description: External Local Bus interface (ELBI) registers. > + - description: PCIe configuration space region. > + > + reg-names: > + items: > + - const: dbi > + - const: elbi > + - const: config > + > + interrupts: > + maxItems: 1 > + > + clocks: > + items: > + - description: PCIe bridge clock > + - description: PCIe bus clock > + > + clock-names: > + items: > + - const: pcie > + - const: pcie_bus > + > + phys: > + maxItems: 1 > + > + vdd10-supply: > + description: > + Phandle to a regulator that provides 1.0V power to the PCIe block. > + > + vdd18-supply: > + description: > + Phandle to a regulator that provides 1.8V power to the PCIe block. > + > + num-lanes: > + const: 1 > + > + num-viewport: > + const: 3 I'm confused why you need this. This is only used with the iATU except for keystone. Platforms like Exynos with their own child bus config space accessors don't have an iATU. BTW, for cases with an iATU, I'm working on making the number of viewports runtime detected. > + > +required: > + - reg > + - reg-names > + - interrupts > + - "#address-cells" > + - "#size-cells" > + - "#interrupt-cells" > + - interrupt-map > + - interrupt-map-mask > + - ranges > + - bus-range > + - device_type > + - num-lanes > + - num-viewport > + - clocks > + - clock-names > + - phys > + - vdd10-supply > + - vdd18-supply > + > +unevaluatedProperties: false > + > +examples: > + - | > + #include > + #include > + #include > + > + pcie: pcie@15700000 { > + compatible = "samsung,exynos5433-pcie"; > + reg = <0x15700000 0x1000>, <0x156b0000 0x1000>, <0x0c000000 0x1000>; > + reg-names = "dbi", "elbi", "config"; > + #address-cells = <3>; > + #size-cells = <2>; > + #interrupt-cells = <1>; > + device_type = "pci"; > + interrupts = ; > + clocks = <&cmu_fsys CLK_PCIE>, <&cmu_fsys CLK_PCLK_PCIE_PHY>; > + clock-names = "pcie", "pcie_bus"; > + phys = <&pcie_phy>; > + pinctrl-0 = <&pcie_bus &pcie_wlanen>; > + pinctrl-names = "default"; > + num-lanes = <1>; > + num-viewport = <3>; > + bus-range = <0x00 0xff>; > + ranges = <0x81000000 0 0 0x0c001000 0 0x00010000>, > + <0x82000000 0 0x0c011000 0x0c011000 0 0x03feefff>; > + vdd10-supply = <&ldo6_reg>; > + vdd18-supply = <&ldo7_reg>; > + interrupt-map-mask = <0 0 0 0>; > + interrupt-map = <0 0 0 0 &gic GIC_SPI 245 IRQ_TYPE_LEVEL_HIGH>; > + }; > +... > -- > 2.17.1 >