Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp4848468pxu; Wed, 21 Oct 2020 06:55:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyii3TWQWl4EnSQ2qPQX6pMusgcmPVRIL9E+spqIjrCZZqQMhha1pM9Cz5Vq7/Xv3PBjf/E X-Received: by 2002:a50:e887:: with SMTP id f7mr3169210edn.276.1603288502521; Wed, 21 Oct 2020 06:55:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603288502; cv=none; d=google.com; s=arc-20160816; b=bR8lZ8Pib8iFBrHOEOaTP8v+ZpFa4gsSjJW8W0WZJ+f99sNBpSvMQVLp0W678hLLHk ewoNnHRsqapMRhDsJOc9eNEBwQ5S0jrzY+4wn/1fv1+M51Z6iqF8WWj6yZM9nkpF0OYO Gx0DtGNMCGBKdJVhfgg6s/EAUfYAbi0RCaCZfvMgkyIxvBjQDOl7gi7WXr54jFHTaqdP PQbrUQWvJnLL38ZzRs43raqi2EDpoYnS4rAtBl7po5nKRUzunzMaLMy/mZQfRh24C6Rb uwV8NaqZTKVs8O8FggRdtFvF1tSBHsez5/PQLzRKSp0KYkiAgvCt2IQGJLfiMPPprD33 uRSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:cms-type:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:cc:to:subject:dkim-signature:dkim-filter; bh=X3kWCN2insXbfhyivHExtQ0c0hScyZQ29grQTMC6Jd4=; b=dd5iS64DSAEZy/pSh+xBT42anb/DQgv3KzDpAHJerlL8GHIfY85udvCeOP61FI8+Zp Ed6fvXewaC6q/nx4qgFdEwtB0VfPIX5DM5RlV4hc+ZCTLru4XPHQP+EUegRkQP3axVvY NXbMp/1OufV0z1/rpK1as6vuSgo8FgnmlrXWmID3VBEWVNEaar/Ux15bqno4il1+waDI gj0BH+eIkD2Jkhu6gQiRGrf3Kb7xBy1iUlB1fhXmhrxd6eu2HfYmJLCQFDPIeezFdnVX OyDCJLrZfllW2lxBog+Pidm066hf1GWxGIzK0BDwiW/oSNAdT1BPGdvljr5oSX2+Bp8f r+nA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b="aOViI/kk"; 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=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z24si1441148edl.8.2020.10.21.06.54.40; Wed, 21 Oct 2020 06:55:02 -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=@samsung.com header.s=mail20170921 header.b="aOViI/kk"; 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=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2442101AbgJUMGN (ORCPT + 99 others); Wed, 21 Oct 2020 08:06:13 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:54838 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2439997AbgJUMGN (ORCPT ); Wed, 21 Oct 2020 08:06:13 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20201021120555euoutp027607d090b4fb1fc831d47416b982f712~AAHGycnIB2687726877euoutp02L for ; Wed, 21 Oct 2020 12:05:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20201021120555euoutp027607d090b4fb1fc831d47416b982f712~AAHGycnIB2687726877euoutp02L DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1603281955; bh=X3kWCN2insXbfhyivHExtQ0c0hScyZQ29grQTMC6Jd4=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=aOViI/kkTaT+jTJcQIuMumypOe+Wg6z860rGnh25YkPjkTfmtqJ19Xm0ZTa4pkz0O SXRZ5guRZEFLHPKQzvjLZ+bggHQVFer/K5GLq3XeLdz0sB/FqLVIMVd2m+ia6G3qqg fn+KnF0ydNrJ/gG99Vt2tUr/YuMzblGbQ8Woaoxs= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20201021120543eucas1p223b9fc6bcdd09141054312b4a0db507f~AAG7YIkMY1838718387eucas1p2b; Wed, 21 Oct 2020 12:05:43 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id A8.95.06318.714209F5; Wed, 21 Oct 2020 13:05:43 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20201021120543eucas1p29d4affba97d6143a9e2f725c2f561ed9~AAG7A7ABU2093620936eucas1p2C; Wed, 21 Oct 2020 12:05:43 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20201021120542eusmtrp12cb67e97e361efc4e23c768176845e2c~AAG690Bso0226702267eusmtrp1J; Wed, 21 Oct 2020 12:05:42 +0000 (GMT) X-AuditID: cbfec7f5-38bff700000018ae-52-5f9024171eeb Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 5A.9C.06314.314209F5; Wed, 21 Oct 2020 13:05:39 +0100 (BST) Received: from [106.210.88.143] (unknown [106.210.88.143]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20201021120538eusmtip2e5d03d4cb5af5004b03051d7e7d31960~AAG2mj0ma0530205302eusmtip2d; Wed, 21 Oct 2020 12:05:38 +0000 (GMT) Subject: Re: [PATCH 2/6] Documetation: dt-bindings: add the samsung,exynos-pcie binding To: Rob Herring 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 From: Marek Szyprowski Message-ID: Date: Wed, 21 Oct 2020 14:05:37 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.3.3 MIME-Version: 1.0 In-Reply-To: Content-Transfer-Encoding: 7bit Content-Language: en-US X-Brightmail-Tracker: H4sIAAAAAAAAA01SbUhTYRTm3b279youXpexg33R0r5IrezHhaIs+nFJotJILMpm3lTUJbta OYLWSrMxdBiVLUuRKFtqtkalqeiyVgw3MxbDTAlWaTaLZkVfVvNq+e+c54PnPHAYQu6URjLZ 6gJeo1blKqlQ8s6jb+4YRZQpbYWvV8Fe0Wex1V0uKev9XiJl68Yu0GzPayPFut1NNPuspYpi uy87KLbS3S5h3/8Yotniti6abe5/TCSEcfWX6xHXbH5JczXWQs5qOU1xZTYL4hzeuxIuYJ23 jd4VujaDz80+xGvi1u0LzfKUj9P5ZxcduXErWYea5hpQCAN4NQx8O0MbUCgjx3UIfIGPlLiM IbC57k0uAQQPbg/QU5YObx0pEtcQ3O+4Kg0ScvwBwZBxpwExzEycCn0Ps4NwBI6Cprd9RFBP YBcBrZ9GyCBB4ZVg8Buo4CzD6+DHb89EAImjwT/SMKGZhdOhd1BPi5pweHLBN4GH4O0w6NRN eAk8H+76qwhxVkCfr1oSDAM8TMMlkx6JV2+C3hEbJc4z4Z3DNtlmDjjPGEnRcALBK1cDLS5G BM/0lZPuNdDv+k4FqxF4KdxsiRPhDV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5q8SFGU6DnJjJLiSbnA1NKXkm8oamhuYWlobmxubGZhZI4b4fAwRghgfTEktTs1NSC1CKY PiYOTqkGxmkPDBe+P5xprPnV9kjuuxUct85td+rJuCl3vz+2POSuoeyN60xqc5SO26yb9XH/ za3Ht0e6c0aqd7ZPvX5g72yfLSr8B5eyMn5bct5838LaG2YC76TXPLCeup7VdKFSTse35mQ+ HTV+s8PzHnLdZ38ketf0wTQvvoVaOltWPT0qtmiRc2mGWYwSS3FGoqEWc1FxIgASbYMc8QIA AA== X-CMS-MailID: 20201021120543eucas1p29d4affba97d6143a9e2f725c2f561ed9 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20201019094739eucas1p18cd4c7e5a0197393d2e7c5c6fcc2777d X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20201019094739eucas1p18cd4c7e5a0197393d2e7c5c6fcc2777d References: <20201019094715.15343-1-m.szyprowski@samsung.com> <20201019094715.15343-3-m.szyprowski@samsung.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob, On 19.10.2020 15:38, Rob Herring wrote: > 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: https://protect2.fireeye.com/v1/url?k=3dfd0348-6067aaeb-3dfc8807-002590f5b904-a68fd848316a7cc4&q=1&e=261ae2d1-4457-43b7-8727-35f3cfbc45c0&u=http%3A%2F%2Fdevicetree.org%2Fschemas%2Fpci%2Fsamsung%2Cexynos-pcie.yaml%23 >> +$schema: https://protect2.fireeye.com/v1/url?k=ab825ba1-f618f202-ab83d0ee-002590f5b904-4aba44c12cb70753&q=1&e=261ae2d1-4457-43b7-8727-35f3cfbc45c0&u=http%3A%2F%2Fdevicetree.org%2Fmeta-schemas%2Fcore.yaml%23 >> + >> +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. Most of the other PCI(e) drivers uses such: # git grep "phy-names =" Documentation/devicetree/bindings/pci/ Do you want me to change it to simple "pcie"? >> + >> + 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 >> Best regards -- Marek Szyprowski, PhD Samsung R&D Institute Poland