From patchwork Fri Nov 15 18:08:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Matwey V. Kornilov" X-Patchwork-Id: 11246927 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id EE02B1393 for ; Fri, 15 Nov 2019 18:09:25 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CCF042073C for ; Fri, 15 Nov 2019 18:09:25 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="rWCEyZMg" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CCF042073C Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=sai.msu.ru Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org 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=mBSwrq++dMjmZd0k1uIrKuF2MJbEXhIr7HNHCaaofeU=; b=rWC EyZMgx86M4STIChit84Z1EgPBePzJK+6UDJYheJA1dr7EaICX2H8vqIOjE1nUQEvvBlvShBRnmUS6 RTGa5XvORR/1eBfUoh0vE/f31iInblcQ0nY2S534dtJweqTBuuMSLyNUKhgnM4aYTsgI/q9t2AnKE /YZAXuMMvvg1tIv5+ep4Q+l+5rE4Djw1PjSdgbC2IkS8EjI63BB8TlJCw/qTNaCIMvFcUlX8qOTZx IgZZVf4GmMyPNwS/Xe3ZqmbDADxBSOtHEwBHxPkQyjX3pXUSUau+ZxdHfPxjPVnYQLzm5YCjsXXkE BNPeQZB8t8sVOJKchM48r+YSBKcbCWQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iVg24-0007ix-Ko; Fri, 15 Nov 2019 18:09:20 +0000 Received: from lnfm1.sai.msu.ru ([93.180.26.255]) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iVg20-0007hx-NI; Fri, 15 Nov 2019 18:09:18 +0000 Received: from dragon.sai.msu.ru (dragon.sai.msu.ru [93.180.26.172]) by lnfm1.sai.msu.ru (8.14.1/8.12.8) with ESMTP id xAFI8deG030971; Fri, 15 Nov 2019 21:08:44 +0300 Received: from oak.local (unknown [92.243.181.209]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by dragon.sai.msu.ru (Postfix) with ESMTPSA id 40A977B2D; Fri, 15 Nov 2019 21:08:40 +0300 (MSK) From: "Matwey V. Kornilov" To: Subject: [PATCH] arm64: dts: rockchip: Enable PCIe for Radxa Rock Pi 4 board Date: Fri, 15 Nov 2019 21:08:21 +0300 Message-Id: <20191115180825.10526-1-matwey@sai.msu.ru> X-Mailer: git-send-email 2.16.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191115_100917_126920_970C9934 X-CRM114-Status: UNSURE ( 8.57 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [93.180.26.255 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 SPF_NONE SPF: sender does not publish an SPF Record X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Heiko Stuebner , open list , Rob Herring , "Matwey V. Kornilov" , "open list:ARM/Rockchip SoC support" , matwey.kornilov@gmail.com, Akash Gajjar , Ezequiel Garcia , "moderated list:ARM/Rockchip SoC support" MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org Radxa Rock Pi 4 is equipped with M.2 PCIe slot, so enable PCIe for the board. The changes has been tested with Intel SSD 660p series device. 01:00.0 Class 0108: Device 8086:f1a8 (rev 03) Signed-off-by: Matwey V. Kornilov --- arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dts b/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dts index 1ae1ebd4efdd..9c2927faba41 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dts @@ -463,6 +463,20 @@ pmu1830-supply = <&vcc_3v0>; }; +&pcie_phy { + status = "okay"; +}; + +&pcie0 { + status = "okay"; + + ep-gpios = <&gpio4 RK_PD3 GPIO_ACTIVE_HIGH>; + num-lanes = <4>; + pinctrl-names = "default"; + pinctrl-0 = <&pcie_clkreqnb_cpm>; + max-link-speed = <2>; +}; + &pinctrl { bt { bt_enable_h: bt-enable-h {