From patchwork Mon Dec 26 05:20:29 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jaehoon Chung X-Patchwork-Id: 9488465 X-Patchwork-Delegate: bhelgaas@google.com 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 18B9C62AAD for ; Mon, 26 Dec 2016 05:21:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0760920144 for ; Mon, 26 Dec 2016 05:21:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EFD4B20265; Mon, 26 Dec 2016 05:21:47 +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 97A28201BD for ; Mon, 26 Dec 2016 05:21:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755016AbcLZFVe (ORCPT ); Mon, 26 Dec 2016 00:21:34 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:53148 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752564AbcLZFUk (ORCPT ); Mon, 26 Dec 2016 00:20:40 -0500 Received: from epcas1p1.samsung.com (unknown [182.195.41.45]) by mailout2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OIS00MU91I8H750@mailout2.samsung.com>; Mon, 26 Dec 2016 14:20:32 +0900 (KST) Received: from epsmges1p5.samsung.com (unknown [182.195.40.67]) by epcas1p1.samsung.com (KnoxPortal) with ESMTP id 20161226052032epcas1p12cf1517dab8b14967463fe8b3c46f343~Ttr6w1CEe1944219442epcas1p1c; Mon, 26 Dec 2016 05:20:32 +0000 (GMT) Received: from epcas1p1.samsung.com ( [182.195.41.45]) by epsmges1p5.samsung.com (Symantec Messaging Gateway) with SMTP id 0F.81.06773.0A8A0685; Mon, 26 Dec 2016 14:20:32 +0900 (KST) Received: from epcpsbgm1new.samsung.com (u26.gpu120.samsung.co.kr [203.254.230.26]) by epcas1p4.samsung.com (KnoxPortal) with ESMTP id 20161226052031epcas1p43a300fe9e59c2af410c48861cd8554d1~Ttr6ArJAL2587625876epcas1p4d; Mon, 26 Dec 2016 05:20:31 +0000 (GMT) X-AuditID: b6c32a39-f79256d000001a75-8b-5860a8a09207 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1new.samsung.com (EPCPMTA) with SMTP id E8.82.28252.F98A0685; Mon, 26 Dec 2016 14:20:31 +0900 (KST) Received: from localhost.localdomain ([10.113.62.216]) by mmp1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OIS0072C1I6BY80@mmp1.samsung.com>; Mon, 26 Dec 2016 14:20:31 +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, javier@osg.samsung.com, kishon@ti.com, will.deacon@arm.com, catalin.marinas@arm.com, cpgs@samsung.com, Jaehoon Chung Subject: [RFC PATCH 6/6] ARM64: exynos: add the pcie node for TM2 Date: Mon, 26 Dec 2016 14:20:29 +0900 Message-id: <20161226052029.10552-7-jh80.chung@samsung.com> X-Mailer: git-send-email 2.10.2 In-reply-to: <20161226052029.10552-1-jh80.chung@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAA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RlAiXs/SS3Arz/4HeHx75YQDAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprLIsWRmVeSWpSXmKPExsVy+t9jAd35KxIiDG7vULVY0pRh8X5ZD6PF y0OaFvOPnGO1ePN2DZPFjV9trBb9j18zW1x42sNmcf78BnaLy7vmsFmcnXeczWLG+X1MFkuv X2SyaN17hN3i5ccTLA78HmvmrWH0WLCp1GPTqk42jy39d9k9+rasYvQ4fmM7k8fnTXIB7FFu NhmpiSmpRQqpecn5KZl56bZKoSFuuhZKCnmJuam2ShG6viFBSgpliTmlQJ6RARpwcA5wD1bS t0twy3j4eiNjwQHJip62Z8wNjI9Euhg5OSQETCQab91ihbDFJC7cW8/WxcjFISSwlFFi1oFm KOcHo8TyY72MIFVsAjoS278dZwKxRQRkJT5e3gNWxCxwi0li+udPzCAJYQFHidlN08DGsgio SjQ+XsoOYvMKWEscPXqZCWKdvMTC80fAbE4BG4nn71rB6oWAap6sPME2gZF3ASPDKkaJ1ILk guKk9FzDvNRyveLE3OLSvHS95PzcTYzgqHkmtYPx4C73Q4wCHIxKPLwG4gkRQqyJZcWVuYcY JTiYlUR4tywBCvGmJFZWpRblxxeV5qQWH2I0BTpsIrOUaHI+MKLzSuINTcxNzI0NLMwtLU2M lMR5G2c/CxcSSE8sSc1OTS1ILYLpY+LglGpgXLg4MNJsci7PpZ7IXQ3fC48xFc2sPfvaxW5O Rf2c/Ytnc0n/ap5X8bInktMj2Idr2pflLtdjynkkP3/7doNtsn7XK6vorjNMvyfwX4+4EH8x QJk5ZMauT+m7V6zdeObspu1xK3g4lJNVk1cUTF8RYs9hN2V/qv/qFkndQxxujF+Kb70Oz5Mt UGIpzkg01GIuKk4EAI+WuuiwAgAA X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20161226052031epcas1p43a300fe9e59c2af410c48861cd8554d1 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: 20161226052031epcas1p43a300fe9e59c2af410c48861cd8554d1 X-RootMTR: 20161226052031epcas1p43a300fe9e59c2af410c48861cd8554d1 References: <20161226052029.10552-1-jh80.chung@samsung.com> Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add the Exxynos5433 pcie node for TM2. This pcie device is used for supporting WiFi. And some gpios are already requested from pinctrl. so it doesn't need to initialize. GPJ2-0 is used for supplying to WiFi PCIe chip. Signed-off-by: Jaehoon Chung --- arch/arm64/boot/dts/exynos/exynos5433-pinctrl.dtsi | 7 +++++++ arch/arm64/boot/dts/exynos/exynos5433-tm2.dts | 11 +++++++++-- arch/arm64/boot/dts/exynos/exynos5433.dtsi | 23 ++++++++++++++++++++++ 3 files changed, 39 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/exynos/exynos5433-pinctrl.dtsi b/arch/arm64/boot/dts/exynos/exynos5433-pinctrl.dtsi index ad71247..3e8b728 100644 --- a/arch/arm64/boot/dts/exynos/exynos5433-pinctrl.dtsi +++ b/arch/arm64/boot/dts/exynos/exynos5433-pinctrl.dtsi @@ -183,6 +183,13 @@ interrupt-controller; #interrupt-cells = <2>; }; + + pcie_wlanen: pcie-wlanen { + samsung,pins = "gpj2-0"; + samsung,pin-function = <0>; + samsung,pin-pud = <3>; + samsung,pin-drv = <3>; + }; }; &pinctrl_finger { diff --git a/arch/arm64/boot/dts/exynos/exynos5433-tm2.dts b/arch/arm64/boot/dts/exynos/exynos5433-tm2.dts index f21bdc2..c84a2ad 100644 --- a/arch/arm64/boot/dts/exynos/exynos5433-tm2.dts +++ b/arch/arm64/boot/dts/exynos/exynos5433-tm2.dts @@ -737,6 +737,15 @@ bus-width = <4>; }; +&pcie { + assigned-clocks = <&cmu_fsys CLK_MOUT_SCLK_PCIE_100_USER>, + <&cmu_top CLK_MOUT_SCLK_PCIE_100>; + assigned-clock-parents = <&cmu_top CLK_SCLK_PCIE_100_FSYS>, + <&cmu_top CLK_MOUT_BUS_PLL_USER>; + assigned-clock-rates = <0>, <100000000>; + status = "okay"; +}; + &pinctrl_alive { pinctrl-names = "default"; pinctrl-0 = <&initial_alive>; @@ -836,7 +845,6 @@ pinctrl-0 = <&initial_ese>; initial_ese: initial-state { - PIN(IN, gpj2-0, DOWN, LV1); PIN(IN, gpj2-1, DOWN, LV1); PIN(IN, gpj2-2, DOWN, LV1); }; @@ -851,7 +859,6 @@ PIN(IN, gpr3-1, DOWN, LV1); PIN(IN, gpr3-2, DOWN, LV1); PIN(IN, gpr3-3, DOWN, LV1); - PIN(IN, gpr3-7, NONE, LV1); }; }; diff --git a/arch/arm64/boot/dts/exynos/exynos5433.dtsi b/arch/arm64/boot/dts/exynos/exynos5433.dtsi index 2a15f18..da287f4 100644 --- a/arch/arm64/boot/dts/exynos/exynos5433.dtsi +++ b/arch/arm64/boot/dts/exynos/exynos5433.dtsi @@ -1457,6 +1457,29 @@ samsung,fsys-sysreg = <&syscon_fsys>; status = "okay"; }; + + pcie: pcie@15700000 { + compatible = "samsung,exynos5433-pcie", "snps,dw-pcie"; + #address-cells = <3>; + #size-cells = <2>; + device_type = "pci"; + interrupts = ; + interrupt-names = "intr"; + clocks = <&cmu_fsys CLK_PCIE>, + <&cmu_fsys CLK_PCLK_PCIE_PHY>; + clock-names = "pcie", "pcie_bus"; + num-lanes = <1>; + pinctrl-names = "default"; + phys = <&pcie_phy>; + phy-names = "pcie-phy"; + pinctrl-0 = <&pcie_bus &pcie_wlanen>; + reg = <0x156b0000 0x1000>, <0x15700000 0x1000>, + <0x0c000000 0x1000>; + reg-names = "elbi", "dbi", "config"; + ranges = <0x81000000 0 0 0x0c001000 0 0x00010000 + 0x82000000 0 0x0c011000 0x0c011000 0 0x3feefff>; + status = "disabled"; + }; }; timer: timer {