From patchwork Fri Jun 16 14:13:22 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 9791807 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 BFC476038E for ; Fri, 16 Jun 2017 14:14:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B8E8B285C2 for ; Fri, 16 Jun 2017 14:14:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AD8E928649; Fri, 16 Jun 2017 14:14:31 +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.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID 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 86E5C285C2 for ; Fri, 16 Jun 2017 14:14:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753991AbdFPOO2 (ORCPT ); Fri, 16 Jun 2017 10:14:28 -0400 Received: from mail-pg0-f46.google.com ([74.125.83.46]:35131 "EHLO mail-pg0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753902AbdFPOO1 (ORCPT ); Fri, 16 Jun 2017 10:14:27 -0400 Received: by mail-pg0-f46.google.com with SMTP id k71so20939771pgd.2 for ; Fri, 16 Jun 2017 07:14:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Ljv6UDiZTbb7mc0R4RfQCh0PB73cfbOFHAzTd8MZNTM=; b=C8rfTmStpRsaZsHaPpNVyrvMkK0KfFxvlwNJBOsHvdWn5FKglmmyA+3STz84kF7bCf F2HshhenAk3HJcdgrGp1A4p9LRSGED6N3E7H5RqZUCO6fBBZidEuf7pTnLU5RjmkJs5Z K+bRP1VmFmgnIbClfuv86hqoh+caOOCMLDziI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Ljv6UDiZTbb7mc0R4RfQCh0PB73cfbOFHAzTd8MZNTM=; b=dQpBW1DPHuZC/sZgwEg1NxLIqplWaAdbSGm5zvjcV8ND01Rr8jYpzv227rrpw59Jpu z+SGkMUu8ydXW/v8uMLMfDXXezDwikJLxVKIfImRf7Q8y/I3Mr4sAREh5bkLnas5JXyX qilJ3zRDIOVGtvoSGAbpuncFwajTiBEnUQD8u7Jv5dN9raBkBLgzLi+xHf84jLg8hmNv G3sGEVX/9dugoZhVNiLcj0UICRTFj9VOKx875UfNm0zrLpoSVSWCNL7IObeyRJ7c2LGk QeCpErRZI0ztqvP6d9hIViYTU/R+1K6f9QXMd0iJLCm5mTYHDQGl3rBqeCM3g3VASwcf b4cw== X-Gm-Message-State: AKS2vOycb39/yFghLP8fC9tRk88FF2A+QHom4ejj7d+5MgIh+mop6NBg zCzcwsK802+ejn10 X-Received: by 10.84.136.129 with SMTP id 1mr12892749pll.213.1497622466377; Fri, 16 Jun 2017 07:14:26 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.187]) by smtp.gmail.com with ESMTPSA id y29sm5093706pff.50.2017.06.16.07.14.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 16 Jun 2017 07:14:25 -0700 (PDT) From: Guodong Xu To: robh+dt@kernel.org, mark.rutland@arm.com, lee.jones@linaro.org, ulf.hansson@linaro.org, bhelgaas@google.com, xuwei5@hisilicon.com, catalin.marinas@arm.com, will.deacon@arm.com, wangkefeng.wang@huawei.com, arnd@arndb.de, xuejiancheng@hisilicon.com, puck.chen@hisilicon.com Cc: zhangfei.gao@linaro.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mmc@vger.kernel.org, linux-pci@vger.kernel.org, Xiaowei Song , Guodong Xu Subject: [PATCH v5 15/20] arm64: dts: hisi: add kirin pcie node Date: Fri, 16 Jun 2017 22:13:22 +0800 Message-Id: <20170616141322.30466-1-guodong.xu@linaro.org> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170615030417.14059-16-guodong.xu@linaro.org> References: <20170615030417.14059-16-guodong.xu@linaro.org> Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Xiaowei Song Add PCIe node for hi3660 Cc: Guodong Xu Signed-off-by: Xiaowei Song Acked-by: Arnd Bergmann Changes in v5: * fix interrupt-map, to conform to gic's #address-cells = <0> * remove redundant status = "ok" --- arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 36 +++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi index e138973..8183d71 100644 --- a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi +++ b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi @@ -754,5 +754,41 @@ cs-gpios = <&gpio18 5 0>; status = "disabled"; }; + + pcie@f4000000 { + compatible = "hisilicon,kirin960-pcie"; + reg = <0x0 0xf4000000 0x0 0x1000>, + <0x0 0xff3fe000 0x0 0x1000>, + <0x0 0xf3f20000 0x0 0x40000>, + <0x0 0xf5000000 0x0 0x2000>; + reg-names = "dbi", "apb", "phy", "config"; + bus-range = <0x0 0x1>; + #address-cells = <3>; + #size-cells = <2>; + device_type = "pci"; + ranges = <0x02000000 0x0 0x00000000 + 0x0 0xf6000000 + 0x0 0x02000000>; + num-lanes = <1>; + #interrupt-cells = <1>; + interrupt-map-mask = <0xf800 0 0 7>; + interrupt-map = <0x0 0 0 1 + &gic GIC_SPI 282 IRQ_TYPE_LEVEL_HIGH>, + <0x0 0 0 2 + &gic GIC_SPI 283 IRQ_TYPE_LEVEL_HIGH>, + <0x0 0 0 3 + &gic GIC_SPI 284 IRQ_TYPE_LEVEL_HIGH>, + <0x0 0 0 4 + &gic GIC_SPI 285 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&crg_ctrl HI3660_PCIEPHY_REF>, + <&crg_ctrl HI3660_CLK_GATE_PCIEAUX>, + <&crg_ctrl HI3660_PCLK_GATE_PCIE_PHY>, + <&crg_ctrl HI3660_PCLK_GATE_PCIE_SYS>, + <&crg_ctrl HI3660_ACLK_GATE_PCIE>; + clock-names = "pcie_phy_ref", "pcie_aux", + "pcie_apb_phy", "pcie_apb_sys", + "pcie_aclk"; + reset-gpios = <&gpio11 1 0 >; + }; }; };