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: 105749 Delivered-To: patch@linaro.org Received: by 10.140.91.77 with SMTP id y71csp1325981qgd; Fri, 16 Jun 2017 07:14:29 -0700 (PDT) X-Received: by 10.99.173.12 with SMTP id g12mr11774583pgf.1.1497622469743; Fri, 16 Jun 2017 07:14:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1497622469; cv=none; d=google.com; s=arc-20160816; b=cA1rf7UdQAeKbiQRno0PWdw5Y+LR69nGkMrYVJhzeyr4Xc3FolihQlIezT46B05M+V N/uGczdUgGnipmM5JzoVBg/oyE5OL1pR/uvS2dlRFn/Sssg2ieUTNqgv67OBRJ3vTUao S3TBZUycI448cmd5Lssyg4hFTNGu6hHaSc2SSKzL/Y5E6IpTyivA60NSZgeDYAUpfAhv 5VnMoWunZ/KyeUlOyBjqAueLBdPi8ET58vIsjiVLN394zAVvZ8YcXaNll++oy4QvJpK4 HQTwHc4Ji941nMwh29TasR8Gur+sbTWmGKNlKHPuKYwWaRZAPtedlEV0227wjjN9/pBz az2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=1ul6KJpjU4y/A9kcazhWXcR6zF5HHFXMkSGt+bBQ0b0=; b=HoJqu6/vPHurc0UFKH8ABqcDV28b8+mkEVUU84bOX9zjCEw1+r3Ps+bQI/kkzCQ6pJ qmEXFhYhbYNs8SqjBgCUmOWTfJ0A/VEq40lUY5qNWqYUXmZaW11BnV3Gm9g5emdKPCQy ERA6h3Pum/of9uLL4flE7SyrWIq7MgLqBQ+cGPzJZ2l+Q/jkGAFNO6pnnTDXGEg6nWtF ghil0JXDBgx2Ixj9w6dav3HJfDmuJQl/q13vene36ikKycy31Yz2IrAK79Mx/87GWVlg Q9htlECfnM5x9d8epQFIKzCQgISgg1YITIeuAg2t7DsMIe3WysfLPrNnd7iwRHKs227z ehqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.b=C8rfTmSt; spf=pass (google.com: best guess record for domain of linux-mmc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-mmc-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s125si967637pgc.219.2017.06.16.07.14.29; Fri, 16 Jun 2017 07:14:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-mmc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.b=C8rfTmSt; spf=pass (google.com: best guess record for domain of linux-mmc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-mmc-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753991AbdFPOO2 (ORCPT + 6 others); 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 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(+) -- 2.10.2 -- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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 >; + }; }; };