From patchwork Tue Feb 28 07:00:26 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jaehoon Chung X-Patchwork-Id: 9594867 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 35F5F600CB for ; Tue, 28 Feb 2017 07:02:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 24E1B284DA for ; Tue, 28 Feb 2017 07:02:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 17D4C284EC; Tue, 28 Feb 2017 07:02:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 00C95284DA for ; Tue, 28 Feb 2017 07:02:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751719AbdB1HCm (ORCPT ); Tue, 28 Feb 2017 02:02:42 -0500 Received: from mailout4.samsung.com ([203.254.224.34]:46417 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751356AbdB1HB0 (ORCPT ); Tue, 28 Feb 2017 02:01:26 -0500 Received: from epcas1p1.samsung.com (unknown [182.195.41.45]) by mailout4.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OM2034ISOSTJM70@mailout4.samsung.com>; Tue, 28 Feb 2017 16:00:29 +0900 (KST) Received: from epsmges1p5.samsung.com (unknown [182.195.40.70]) by epcas1p4.samsung.com (KnoxPortal) with ESMTP id 20170228070028epcas1p4eb4ff2c37b82358d3182dd707e269364~nYVch_hqo1658416584epcas1p4W; Tue, 28 Feb 2017 07:00:28 +0000 (GMT) Received: from epcas1p1.samsung.com ( [182.195.41.45]) by epsmges1p5.samsung.com (Symantec Messaging Gateway) with SMTP id 86.42.06710.C0025B85; Tue, 28 Feb 2017 16:00:28 +0900 (KST) Received: from epcpsbgm1new.samsung.com (u26.gpu120.samsung.co.kr [203.254.230.26]) by epcas1p1.samsung.com (KnoxPortal) with ESMTP id 20170228070028epcas1p1dba363a5f02d2a6fd412679190f17139~nYVcT3ajW3249832498epcas1p1y; Tue, 28 Feb 2017 07:00:28 +0000 (GMT) X-AuditID: b6c32a39-f799f6d000001a36-d7-58b5200c9ce1 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1new.samsung.com (EPCPMTA) with SMTP id BB.BA.06425.C0025B85; Tue, 28 Feb 2017 16:00:28 +0900 (KST) Received: from localhost.localdomain ([10.113.62.216]) by mmp2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OM2007V3OSS8HC0@mmp2.samsung.com>; Tue, 28 Feb 2017 16:00:28 +0900 (KST) From: Jaehoon Chung To: linux-samsung-soc@vger.kernel.org Cc: linux-kernel@vger.kernel.org, krzk@kernel.org, kgene@kernel.org, robh+dt@kernel.org, javier@osg.samsung.com, niyas.ahmed@samsung.com, alim.akhtar@samsung.com, pankaj.dubey@samsung.com, Jaehoon Chung Subject: [PATCH V3] ARM: dts: exynos5440: support the phy-pcie node for pcie Date: Tue, 28 Feb 2017 16:00:26 +0900 Message-id: <20170228070026.8725-1-jh80.chung@samsung.com> X-Mailer: git-send-email 2.10.2 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrLKsWRmVeSWpSXmKPExsWy7bCmri6PwtYIg76tmhYP5m1js3jzdg2T xY1fbawW/Y9fM1ucP7+B3eLyrjlsFjPO72OyeDLlEavFoq1f2C1a9x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LY9OqTjaPLf13 2T36tqxi9Pi8SS6AJcrNJiM1MSW1SCE1Lzk/JTMv3VYpNMRN10JJIS8xN9VWKULXNyRISaEs MacUyDMyQAMOzgHuwUr6dgluGf/vdDEVrJWs2LD1DFMDY7tIFyMnh4SAicTKtn9sELaYxIV7 64FsLg4hgVmMEt23P7NCOD8YJU7ePQpWxSagI7H923EmEFtEQFXic9sCdpAiZoGXjBKHLl9j BUkIC/hIXDp2BaiIg4MFqKj5lgVImFfASuLc3m5miG3yEgvPH2GawMi9gJFhFaNEakFyQXFS eq5hXmq5XnFibnFpXrpecn7uJkZw4D6T2sF4cJf7IUYBDkYlHl4L4y0RQqyJZcWVuYcYJTiY lUR4O34ChXhTEiurUovy44tKc1KLDzGaAu2fyCwlmpwPjKq8knhDE3MTc2MDC3NLSxMjJXHe xtnPwoUE0hNLUrNTUwtSi2D6mDg4pRoYgwvkLBmjz7Q2zmEI3fw1tcatT8V6R/sN12+bjq0/ cDfym60W41alkj8n3FObQ7JT265NUm3m4etUXdvN2ffmGktr/uqEY42p+k7tZralqr+e5mx8 oDOxe2la1O9bbRxqq6bbtsp38py64fPqyN1pc98lcYnk+IRO8bzGeZdjm7SipuaXL1uVWIoz Eg21mIuKEwEp/xb4cgIAAA== X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170228070028epcas1p1dba363a5f02d2a6fd412679190f17139 X-Msg-Generator: CA X-Sender-IP: 203.254.230.26 X-Local-Sender: =?UTF-8?B?7KCV7J6s7ZuIG1RpemVuIFBsYXRmb3JtIExhYihTL1fshLw=?= =?UTF-8?B?7YSwKRvsgrzshLHsoITsnpAbUzUo7LGF7J6EKS/ssYXsnoQ=?= X-Global-Sender: =?UTF-8?B?SmFlaG9vbiBDaHVuZxtUaXplbiBQbGF0Zm9ybSBMYWIuG1Nh?= =?UTF-8?B?bXN1bmcgRWxlY3Ryb25pY3MbUzUvU2VuaW9yIEVuZ2luZWVy?= X-Sender-Code: =?UTF-8?B?QzEwG1NUQUYbQzEwVjgxMTE=?= CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-HopCount: 7 X-CMS-RootMailID: 20170228070028epcas1p1dba363a5f02d2a6fd412679190f17139 X-RootMTR: 20170228070028epcas1p1dba363a5f02d2a6fd412679190f17139 References: Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add pcie-phy node for using phy-exynos-pcie. There are some modifications. 1. Remove the configuration space values in "ranges" property. - The getting configuration space from ranges is old way. - Instead, It can be got from "config" 2. Use the reg-names as "elbi", "config". - Can know the purpose of use with reg-names. Signed-off-by: Jaehoon Chung Reviewed-by: Pankaj Dubey --- Changelog on V3: - Split from the patches relevant to pcie - Modify the commit-message - Keep the original comment in dt-file - Send this patch after applying the other patches Changelog on V2: - Removes the child-node - Fixes the typo - Removes the unnecessary comments arch/arm/boot/dts/exynos5440.dtsi | 30 ++++++++++++++++++++---------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/arch/arm/boot/dts/exynos5440.dtsi b/arch/arm/boot/dts/exynos5440.dtsi index 2a2e570..a7165b5 100644 --- a/arch/arm/boot/dts/exynos5440.dtsi +++ b/arch/arm/boot/dts/exynos5440.dtsi @@ -290,11 +290,22 @@ clock-names = "usbhost"; }; + pcie_phy0: pcie-phy@270000 { + #phy-cells = <0>; + compatible = "samsung,exynos5440-pcie-phy"; + reg = <0x270000 0x1000>, <0x271000 0x40>; + }; + + pcie_phy1: pcie-phy@272000 { + #phy-cells = <0>; + compatible = "samsung,exynos5440-pcie-phy"; + reg = <0x272000 0x1000>, <0x271040 0x40>; + }; + pcie_0: pcie@290000 { compatible = "samsung,exynos5440-pcie", "snps,dw-pcie"; - reg = <0x290000 0x1000 - 0x270000 0x1000 - 0x271000 0x40>; + reg = <0x290000 0x1000>, <0x40000000 0x1000>; + reg-names = "elbi", "config"; interrupts = , , ; @@ -303,8 +314,8 @@ #address-cells = <3>; #size-cells = <2>; device_type = "pci"; - ranges = <0x00000800 0 0x40000000 0x40000000 0 0x00001000 /* configuration space */ - 0x81000000 0 0 0x40001000 0 0x00010000 /* downstream I/O */ + phys = <&pcie_phy0>; + ranges = <0x81000000 0 0 0x40001000 0 0x00010000 /* downstream I/O */ 0x82000000 0 0x40011000 0x40011000 0 0x1ffef000>; /* non-prefetchable memory */ #interrupt-cells = <1>; interrupt-map-mask = <0 0 0 0>; @@ -315,9 +326,8 @@ pcie_1: pcie@2a0000 { compatible = "samsung,exynos5440-pcie", "snps,dw-pcie"; - reg = <0x2a0000 0x1000 - 0x272000 0x1000 - 0x271040 0x40>; + reg = <0x2a0000 0x1000>, <0x60000000 0x1000>; + reg-names = "elbi", "config"; interrupts = , , ; @@ -326,8 +336,8 @@ #address-cells = <3>; #size-cells = <2>; device_type = "pci"; - ranges = <0x00000800 0 0x60000000 0x60000000 0 0x00001000 /* configuration space */ - 0x81000000 0 0 0x60001000 0 0x00010000 /* downstream I/O */ + phys = <&pcie_phy1>; + ranges = <0x81000000 0 0 0x60001000 0 0x00010000 /* downstream I/O */ 0x82000000 0 0x60011000 0x60011000 0 0x1ffef000>; /* non-prefetchable memory */ #interrupt-cells = <1>; interrupt-map-mask = <0 0 0 0>;