From patchwork Wed Dec 28 10:34:54 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jaehoon Chung X-Patchwork-Id: 9490135 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 B6EEE62AB7 for ; Wed, 28 Dec 2016 10:35:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 99226201BC for ; Wed, 28 Dec 2016 10:35:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8AA7A26246; Wed, 28 Dec 2016 10:35:34 +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=unavailable 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 14F482623D for ; Wed, 28 Dec 2016 10:35:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751361AbcL1KfH (ORCPT ); Wed, 28 Dec 2016 05:35:07 -0500 Received: from mailout3.samsung.com ([203.254.224.33]:52468 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751277AbcL1KfA (ORCPT ); Wed, 28 Dec 2016 05:35:00 -0500 Received: from epcas1p1.samsung.com (unknown [182.195.41.45]) by mailout3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OIW00WS55E9ED10@mailout3.samsung.com>; Wed, 28 Dec 2016 19:34:57 +0900 (KST) Received: from epsmges5p3.samsung.com (unknown [182.195.40.66]) by epcas1p4.samsung.com (KnoxPortal) with ESMTP id 20161228103457epcas1p4fbae2bbf36f0cfe7024740d606bd86b1~UZRAn3myk2246122461epcas1p4B; Wed, 28 Dec 2016 10:34:57 +0000 (GMT) Received: from epcas5p2.samsung.com ( [182.195.41.40]) by epsmges5p3.samsung.com (EPCPMTA) with SMTP id 8C.9F.27486.15593685; Wed, 28 Dec 2016 19:34:57 +0900 (KST) Received: from epcpsbgm2new.samsung.com (u27.gpu120.samsung.co.kr [203.254.230.27]) by epcas5p2.samsung.com (KnoxPortal) with ESMTP id 20161228103455epcas5p2cd50c2389ac3dd49eecb3218ff1dbb16~UZQ-TfqLn0183501835epcas5p2a; Wed, 28 Dec 2016 10:34:55 +0000 (GMT) X-AuditID: b6c32a2e-f79b36d000006b5e-01-58639551a939 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2new.samsung.com (EPCPMTA) with SMTP id B2.BD.28332.F4593685; Wed, 28 Dec 2016 19:34:55 +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 <0OIW00D915E6UG10@mmp2.samsung.com>; Wed, 28 Dec 2016 19:34:55 +0900 (KST) From: Jaehoon Chung To: linux-pci@vger.kernel.org Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, bhelgaas@google.com, robh+dt@kernel.org, mark.rutland@arm.com, kgene@kernel.org, krzk@kernel.org, kishon@ti.com, jingoohan1@gmail.com, vivek.gautam@codeaurora.org, pankaj.dubey@samsung.com, alim.akhtar@samsung.com, cpgs@samsung.com, Jaehoon Chung Subject: [PATCH 4/4] ARM: dts: exynos5440: support the phy-pcie node for pcie Date: Wed, 28 Dec 2016 19:34:54 +0900 Message-id: <20161228103454.26467-5-jh80.chung@samsung.com> X-Mailer: git-send-email 2.10.2 In-reply-to: <20161228103454.26467-1-jh80.chung@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAAz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Y8+hhR DCe7ClaXmKN1bT/ad31iQkQTz07D7SL/DyJFt7mOAwAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrGIsWRmVeSWpSXmKPExsVy+t9jQV3/qckRBucXWFg8mLeNzWJJU4bF y0OaFvOPnGO1uPGrjdVixZeZ7Bb9j18zW1x42sNmcf78BnaLy7vmsFmcnXeczWLG+X1MFkuv X2SyWLT1C7tF694j7BYnfu5gdhDwWDNvDaPH5b5eJo+ds+6yeyzYVOqxaVUnm0ffllWMHsdv bGfy+LxJLoAjys0mIzUxJbVIITUvOT8lMy/dVik0xE3XQkkhLzE31VYpQtc3JEhJoSwxpxTI MzJAAw7OAe7BSvp2CW4Zj36cYy94IVbRdHw1UwPjC8EuRk4OCQETiZ0vjjJB2GISF+6tZ+ti 5OIQEpjFKLF273MWCOcHo8Tf812MIFVsAjoS278dB+sQEZCV+Hh5DxuIzSzwi0li6T5TEFtY wFdi8dHZzCA2i4CqxLQtt9lBbF4Ba4nXe+4xQ2yTl1h4/gjYHE4BG4nnFw6BzRECqum6+ZZx AiPvAkaGVYwSqQXJBcVJ6blGeanlesWJucWleel6yfm5mxjBcfRMegfj4V3uhxgFOBiVeHgD riVFCLEmlhVX5h5ilOBgVhLh3T8xOUKINyWxsiq1KD++qDQntfgQoynQYROZpUST84ExnlcS b2hibmJubGBhbmlpYqQkzts4+1m4kEB6YklqdmpqQWoRTB8TB6dUA+OENw+u+2ha3Cw9+rVT XuPhjkvXuHqP7snmZEmMZXSXPcuz4nB/ildCWevNSwc2769VlznYs5j7gKzHlpurPd2XLDi+ a+/Cbw/zAy7f3ZFxsaJmpZHo06JJ/x1u206aYP5ojZtn9kYd3xmx32c4BHW66GalTU/1WJgu Uewc61rWHbPsldnUOXJKLMUZiYZazEXFiQBYJ+JiuQIAAA== X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20161228103455epcas5p2cd50c2389ac3dd49eecb3218ff1dbb16 X-Msg-Generator: CA X-Sender-IP: 203.254.230.27 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: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-HopCount: 7 X-CMS-RootMailID: 20161228103455epcas5p2cd50c2389ac3dd49eecb3218ff1dbb16 X-RootMTR: 20161228103455epcas5p2cd50c2389ac3dd49eecb3218ff1dbb16 References: <20161228103454.26467-1-jh80.chung@samsung.com> 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 phy-pcie node for using Exynos5440 pcie. And some properies are changed to generic usage. Signed-off-by: Jaehoon Chung --- arch/arm/boot/dts/exynos5440.dtsi | 44 ++++++++++++++++++++++++++++++--------- 1 file changed, 34 insertions(+), 10 deletions(-) diff --git a/arch/arm/boot/dts/exynos5440.dtsi b/arch/arm/boot/dts/exynos5440.dtsi index 2a2e570..deb2504 100644 --- a/arch/arm/boot/dts/exynos5440.dtsi +++ b/arch/arm/boot/dts/exynos5440.dtsi @@ -290,11 +290,34 @@ clock-names = "usbhost"; }; + pcie_phy0: pcie-phy@270000 { + #phy-cells = <0>; + compatible = "samsung,exynos5440-pcie-phy"; + reg = <0x270000 0x1000>; + #address-cells = <1>; + #size-cells = <1>; + ranges; + block@271000 { + reg = <0x271000 0x40>; + }; + }; + + pcie_phy1: pcie-phy@272000 { + #phy-cells = <0>; + compatible = "samsung,exynos5440-pcie-phy"; + reg = <0x272000 0x1000>; + #address-cells = <1>; + #size-cells = <1>; + ranges; + block@271040 { + reg = <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 +326,9 @@ #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 */ + pyhs = <&pcie_phy0>; + phys = "pcie-phy"; + 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 +339,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 +349,9 @@ #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 */ + pyhs = <&pcie_phy1>; + phys = "pcie-phy"; + 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>;