Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp3205128pxu; Mon, 19 Oct 2020 06:42:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyPFsI/+phYGNNOsnu8+ceXiaGTDk/kPq9onXgBxTQyxEtBKfdeXeF14kq1PqE2WDkyLyiu X-Received: by 2002:a17:906:82ce:: with SMTP id a14mr17143384ejy.84.1603114953651; Mon, 19 Oct 2020 06:42:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603114953; cv=none; d=google.com; s=arc-20160816; b=xn7achu784tpQvwBKJBmCyOPEp6AU4OLyb9fcRikn8ErZanrlO3jju7FR5gQ3Nfm21 goZ2jiOnCzrH5eR4NihPQpCUtIlPUJHvd2/Bw66edhGwyxjq7dOyNEp93Yz4Uf7WgeQM kQv069dOz55M3Enej1/OTQrerzWJMV/3PoqkZaN0onuB0B4vcbyx7ecKFSoamZI1OauR Xb3LqQSxVgntd6a2vRqnGfVJDhIu3Lx6AI8P4MAWSHzTZdYN+yHBFVxuMZjmCYMAlgvj agIZ0CfqWkSmMlKrWovOfJRnK3fNZ/Th8XDQ9wMK21Ztc87D4GkHdLwkY0lCoP9iMApm zIaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=vM2CHXqLxMvamMpObXwwreoTJ/073p/hDWCJ5waKzcE=; b=jVI0cO3mSizNe5jccbb1Fco7CuBmwXdb2Ky6pH/bxae8Sfin/7UmZll7rJSX3kI/PK mmQnCD9dQiSfZhve79+BGIm2fmgV4daipHntV3GaDfGYHNIgGCqGy005zPQV76SLipTX QpgC/6/FgWoy9r4JbdJ3tRVQ791zv5bUgzxIc75dnswZSHTnLyAbZ2lG6y0leLST0s/a LpaGiQQlqayI4wfZKgOKVH4deez9Da6QoFgCsUwHzN3mbXkcDZGe08zzQKHlxRUu978A mfYIBR3FWpbF9bsiOEiMJLV/Hw+lsqYFQQemUeRdXQpUNZAI+0zfh5Pd16ZDWVjcw4qQ 6h3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ZJ0UeatY; 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 t9si8029732edr.349.2020.10.19.06.42.10; Mon, 19 Oct 2020 06:42:33 -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; dkim=pass header.i=@kernel.org header.s=default header.b=ZJ0UeatY; 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 S1728359AbgJSNiz (ORCPT + 99 others); Mon, 19 Oct 2020 09:38:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:53872 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728275AbgJSNiy (ORCPT ); Mon, 19 Oct 2020 09:38:54 -0400 Received: from mail-ot1-f44.google.com (mail-ot1-f44.google.com [209.85.210.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8CDF42223C; Mon, 19 Oct 2020 13:38:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603114733; bh=QLl//rSYnpjI4XjsLivmaRA2q702aMuao3NMwW0AZCU=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=ZJ0UeatYQoCfuwjODgSFqcdGke2T/VzdRlInpmZ8BW5LGWfYNWT6Us7AD7LSvghAw ovGl1TIHvNQ1Sik3JLTWfyDAndg1U+svVh3VWmUaKrDtjgiTDSyC7LZJHgri7Y4Lum sBVeb1uXisrOJIxuAsOY6PKTBBO7RZkwfiv/NJgs= Received: by mail-ot1-f44.google.com with SMTP id e20so10432464otj.11; Mon, 19 Oct 2020 06:38:53 -0700 (PDT) X-Gm-Message-State: AOAM530TEX2PGRION19xoUwOSsLg6yhtDxFyg4kuwTBINxxZoPXRgCbB zw+jg7fyyOYnANSDZ8amaF+RjCOhH5R/jHvdug== X-Received: by 2002:a9d:7993:: with SMTP id h19mr10559otm.129.1603114732682; Mon, 19 Oct 2020 06:38:52 -0700 (PDT) MIME-Version: 1.0 References: <20201019094715.15343-1-m.szyprowski@samsung.com> <20201019094715.15343-3-m.szyprowski@samsung.com> In-Reply-To: <20201019094715.15343-3-m.szyprowski@samsung.com> From: Rob Herring Date: Mon, 19 Oct 2020 08:38:40 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 2/6] Documetation: dt-bindings: add the samsung,exynos-pcie binding To: Marek Szyprowski Cc: linux-samsung-soc , PCI , 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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 19, 2020 at 4:47 AM Marek Szyprowski wrote: > > From: Jaehoon Chung > > Add dt-bindings for the Samsung Exynos PCIe controller (Exynos5433 > variant). > > Signed-off-by: Jaehoon Chung > [mszyprow: updated the binding to latest driver changes, rewrote it in yaml, > rewrote commit message] > Signed-off-by: Marek Szyprowski > --- > .../bindings/pci/samsung,exynos-pcie.yaml | 106 ++++++++++++++++++ > 1 file changed, 106 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..48fb569c238c > --- /dev/null > +++ b/Documentation/devicetree/bindings/pci/samsung,exynos-pcie.yaml > @@ -0,0 +1,104 @@ > +# 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: > + - 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: > + enum: > + - samsung,exynos5433-pcie > + > + reg: > + items: > + - description: External Local Bus interface (ELBI) registers. > + - description: Data Bus Interface (DBI) registers. > + - description: PCIe configuration space region. > + > + reg-names: > + items: > + - const: elbi > + - const: bdi dbi > + - 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 > + > + phy-names: > + const: pcie-phy Kind of a pointless name. > + > + 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. > + > +required: > + - reg > + - reg-names > + - interrupts > + - interrupt-names > + - clocks > + - clock-names > + - phys > + - phy-names > + - vdd10-supply > + > +examples: > + - | > + #include > + #include > + #include > + > + pcie: pcie@15700000 { > + compatible = "samsung,exynos5433-pcie"; > + reg = <0x156b0000 0x1000>, <0x15700000 0x1000>, <0x0c000000 0x1000>; > + reg-names = "elbi", "dbi", "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>; > + phy-names = "pcie-phy"; > + pinctrl-names = "default"; > + pinctrl-0 = <&pcie_bus &pcie_wlanen>; > + num-lanes = <1>; > + 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>; > + iterrupt-map-mask = <0 0 0 0>; typo > + interrupt-map = <0 0 0 0 &gic GIC_SPI 245 IRQ_TYPE_LEVEL_HIGH>; > + }; > -- > 2.17.1 >