From patchwork Tue Nov 13 19:22:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 10681403 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 65EA313B5 for ; Tue, 13 Nov 2018 19:23:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 55AF62B474 for ; Tue, 13 Nov 2018 19:23:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 53C182B532; Tue, 13 Nov 2018 19:23:01 +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=-3.6 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E92762B4D0 for ; Tue, 13 Nov 2018 19:23:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=yHnbadCQHJaBfip/tk0tAMBFUGZpYbgYaOnQvDkpR1c=; b=nQn DI9S6cgIVYYb+oRJk4MRccmqLwTECLRYHuwkbhQz4O5qMKhqGHoKxk3bzToLdsRMUHtnmyNL8qb2P NCDf2KeCGWbXQtSHG+G9rEXa3SIpkFhMIoLa6mqcHgAyqSwUOEnQQRHDLa8bVGRH7lOvhrJlXvzp/ U0gbnRzTPHwoe0U8AIRJrwc71uDcX/JHyN0I5ypgQkB/Kj2XinO2dDh4hq6unDt6EuObPwVtDvSge B6xjNbrjDnJJG8ODrz76NHLzRvq6NrSGyt+jF9w0y3WaL5eE9Vo0OVG1A1lXPfm7c0DU5tnXbwtCm qe6MEOpOZnG+hS0JkkQLNFA/x40lQiA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gMeGz-0002uh-Fx; Tue, 13 Nov 2018 19:22:53 +0000 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gMeGw-0002tZ-41 for linux-arm-kernel@lists.infradead.org; Tue, 13 Nov 2018 19:22:51 +0000 Received: by mail-wr1-x442.google.com with SMTP id y3-v6so14584938wrh.10 for ; Tue, 13 Nov 2018 11:22:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=SySTK+K2cfOzMO5P2cGNKrcg/AnDsmK5EP+Kop7dk0A=; b=MTimaDMcImuL6mdsqq+ycO+GSFAmSHj8vcOIhMXpkfKMnZo/xYw3hV/W9DHavXnhUe rYTi3cFHGWWhDjcxxZuIDYWpLl8R1FdBfuOGaG/Tag5WHVm6I9/GkNnZDpqIJOmMXVEl GJN90M5tc/VWnymZnRX6aPAMjjJTaMvAsySwa+lghzcXyzzgj4FxFvf/cHH2yrJ0AqjE 00MOLUB+29S7gplOmNf8r1hnp8aw/Bq4qhoWSsLwsSEY8EKcNNZbzcY3jOiiuLbNPF3E K24wuOxzUz86c9iKXMQ+gyUvnS/JKIHXXKGfqjCAP0MxfVzXqtxzoFvsivvDuQFGEJzt TSwQ== 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; bh=SySTK+K2cfOzMO5P2cGNKrcg/AnDsmK5EP+Kop7dk0A=; b=JcdjcRXVpfXcy7ubJJCCXzIbYbYw8sZMX/SoHjwbbhOgr4DcRDyCovmPtTn+fIIiJk eInCmg4lrjf6DEcAtwTO8cE5SEuVrHXhQiGn+Bap5VkYojDi0Ff06EzLJIb3tyaKsIm4 EhG955ZWOCqmYL69cNfIuvqGbR4kkgy0+DWhWReE19+QGATYhwYjo7AKvlm2mXvg9m2r MyqLSNwd6Wli8XIl4JFAQQYIneSVlVIH59C3MG1pPmUc8McVDrObamMgVam7UAbrQs22 g+29nQhFbqQ7Coh2QUysomkT74J7OeG1BNnGYzBENN3lQnSl64EzGYQPW6nQcwownE6M 3dOw== X-Gm-Message-State: AGRZ1gLwDQBCUW/2fTcWfdPMBx6qaqblx4H4hvz4HvclaJe0v5DiFhNp 03cELh0XlwvmGfniX7wMQm8= X-Google-Smtp-Source: AJdET5d6nTdChOFSwb5zbkiughipCH/jeyWDPjKnocKM1BpbV83SRwqZsHyw0x+fEIvV0OBZlo1aqw== X-Received: by 2002:adf:c6c3:: with SMTP id c3-v6mr6459274wrh.243.1542136957655; Tue, 13 Nov 2018 11:22:37 -0800 (PST) Received: from kurokawa.lan (ip-86-49-110-70.net.upcbroadband.cz. [86.49.110.70]) by smtp.gmail.com with ESMTPSA id e10-v6sm26220722wrp.56.2018.11.13.11.22.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Nov 2018 11:22:36 -0800 (PST) From: Marek Vasut X-Google-Original-From: Marek Vasut To: devicetree@vger.kernel.org Subject: [PATCH] arm64: dts: renesas: r8a77990: ebisu: Add and enable PCIe device node Date: Tue, 13 Nov 2018 20:22:26 +0100 Message-Id: <20181113192226.17762-1-marek.vasut+renesas@gmail.com> X-Mailer: git-send-email 2.18.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181113_112250_187552_E7B8FC72 X-CRM114-Status: GOOD ( 14.10 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Takeshi Kihara , Geert Uytterhoeven , Wolfram Sang , Yoshihiro Shimoda , linux-renesas-soc@vger.kernel.org, Simon Horman , linux-arm-kernel@lists.infradead.org, Marek Vasut MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Takeshi Kihara This patch adds PCI express channel 0 device node to the R8A77990 SoC and enables PCIEC0 PCI express controller on the Ebisu board. Signed-off-by: Takeshi Kihara Signed-off-by: Marek Vasut Cc: Geert Uytterhoeven Cc: Simon Horman Cc: Wolfram Sang Cc: Yoshihiro Shimoda Cc: linux-renesas-soc@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org To: devicetree@vger.kernel.org --- .../arm64/boot/dts/renesas/r8a77990-ebisu.dts | 8 +++++ arch/arm64/boot/dts/renesas/r8a77990.dtsi | 34 +++++++++++++++++++ 2 files changed, 42 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a77990-ebisu.dts b/arch/arm64/boot/dts/renesas/r8a77990-ebisu.dts index 447e9831104a..2ef9067616ee 100644 --- a/arch/arm64/boot/dts/renesas/r8a77990-ebisu.dts +++ b/arch/arm64/boot/dts/renesas/r8a77990-ebisu.dts @@ -444,6 +444,14 @@ status = "okay"; }; +&pcie_bus_clk { + clock-frequency = <100000000>; +}; + +&pciec0 { + status = "okay"; +}; + &pfc { avb_pins: avb { mux { diff --git a/arch/arm64/boot/dts/renesas/r8a77990.dtsi b/arch/arm64/boot/dts/renesas/r8a77990.dtsi index a2524fc138a2..46868dacbeef 100644 --- a/arch/arm64/boot/dts/renesas/r8a77990.dtsi +++ b/arch/arm64/boot/dts/renesas/r8a77990.dtsi @@ -85,6 +85,13 @@ clock-frequency = <0>; }; + /* External PCIe clock - can be overridden by the board */ + pcie_bus_clk: pcie_bus { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <0>; + }; + pmu_a53 { compatible = "arm,cortex-a53-pmu"; interrupts-extended = <&gic GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>, @@ -1610,6 +1617,33 @@ }; }; + pciec0: pcie@fe000000 { + compatible = "renesas,pcie-r8a77990", + "renesas,pcie-rcar-gen3"; + reg = <0 0xfe000000 0 0x80000>; + #address-cells = <3>; + #size-cells = <2>; + bus-range = <0x00 0xff>; + device_type = "pci"; + ranges = <0x01000000 0 0x00000000 0 0xfe100000 0 0x00100000 + 0x02000000 0 0xfe200000 0 0xfe200000 0 0x00200000 + 0x02000000 0 0x30000000 0 0x30000000 0 0x08000000 + 0x42000000 0 0x38000000 0 0x38000000 0 0x08000000>; + /* Map all possible DDR as inbound ranges */ + dma-ranges = <0x42000000 0 0x40000000 0 0x40000000 0 0x40000000>; + interrupts = , + , + ; + #interrupt-cells = <1>; + interrupt-map-mask = <0 0 0 0>; + interrupt-map = <0 0 0 0 &gic GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 319>, <&pcie_bus_clk>; + clock-names = "pcie", "pcie_bus"; + power-domains = <&sysc R8A77990_PD_ALWAYS_ON>; + resets = <&cpg 319>; + status = "disabled"; + }; + prr: chipid@fff00044 { compatible = "renesas,prr"; reg = <0 0xfff00044 0 4>;