Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp1550685ybc; Sun, 17 Nov 2019 02:25:50 -0800 (PST) X-Google-Smtp-Source: APXvYqwWR1V/UeZD0rIk50Gjx2xUtSu+Y4Smt9B2vXoqnXj3ilWY1NK7m03C3UulsjZuhhXp5riW X-Received: by 2002:a17:906:b80f:: with SMTP id dv15mr17594719ejb.188.1573986350100; Sun, 17 Nov 2019 02:25:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573986350; cv=none; d=google.com; s=arc-20160816; b=Fs5XAu3Y77ByJVIDNJb+/nGH0+ypYJwQT1aYcKrrx+LVSH8h5y49k8LkwVo6umrSIO nlvVY8lnP4QosQSlBb/M0bwqZVWGw7FBzmzUNIyj+OxG1A9nPzRYh5ciXqpkGWELUVTG H33bmzP/ko0rbeS7tEr8kZyy6V9FtR2Cho4yXZTWdhk+/IXCTbBLRvkh0MwOhu6h32mZ oq5YqGHlwjvdagZwU456Pogq19p4MQswyMyp4dNQgMaGouKeJatMZmBznrVoOrBOGp9o SEgJqslmCQn7g6GtuhtTNH2DAERjFu3Qu7CnmbljnXyVbJQsswtSYuzlS+ktcca8mN2N VVmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=yxyp6MlN30UJ6T1kwfdS+ij8Ozr7ziL5ApKCipYg9nY=; b=DX5uhywQxpJiD6PiQMoZ2fGeR8NMPbeSWO5/FzSxl5HRBPH1B5rcTx50zf6IGgWXSg fJmLo0HnivvJeXHXWPyqZgrUX5k9TvtubkTvlZO1yEEC6AHmeo6cnIC0YQuHa610mDzK Gqhg9dgQnBT+qcHu5RwLxPpdAZMXeNYjWL/5kE7cQnyRHCnLNDEIx2nj/p3X5WZeImaC C3GaGbUMjKN5KjE8pCzUFr2G5hjdm9ja2nr/LEN9k5ei36gt3Ht37s2b4S0+m4fkD77h +Fw0yPqcO58EXgMn/YjpNQdk1GHcwLGnCNQxlCFi/79OEDlbbyHalDF6cJPraiL2//+2 WV3w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e15si10742817eda.106.2019.11.17.02.24.50; Sun, 17 Nov 2019 02:25:50 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726043AbfKQKQ4 (ORCPT + 99 others); Sun, 17 Nov 2019 05:16:56 -0500 Received: from lnfm1.sai.msu.ru ([93.180.26.255]:44716 "EHLO lnfm1.sai.msu.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726007AbfKQKQ4 (ORCPT ); Sun, 17 Nov 2019 05:16:56 -0500 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 xAHAFqoA011611; Sun, 17 Nov 2019 13:15:57 +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 335C137923; Sun, 17 Nov 2019 13:15:53 +0300 (MSK) From: "Matwey V. Kornilov" To: Rob Herring , Mark Rutland , Heiko Stuebner , Ezequiel Garcia , Akash Gajjar , "Matwey V. Kornilov" , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-arm-kernel@lists.infradead.org (moderated list:ARM/Rockchip SoC support), linux-rockchip@lists.infradead.org (open list:ARM/Rockchip SoC support), linux-kernel@vger.kernel.org (open list) Cc: matwey.kornilov@gmail.com, devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-arm-kernel@lists.infradead.org (moderated list:ARM/Rockchip SoC support), linux-rockchip@lists.infradead.org (open list:ARM/Rockchip SoC support), linux-kernel@vger.kernel.org (open list) Subject: [PATCH v2] arm64: dts: rockchip: Enable PCIe for Radxa Rock Pi 4 board Date: Sun, 17 Nov 2019 13:15:37 +0300 Message-Id: <20191117101545.6406-1-matwey@sai.msu.ru> X-Mailer: git-send-email 2.16.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 --- Changes since v1: - add vpcie3v3-supply arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dts | 15 +++++++++++++++ 1 file changed, 15 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..01f8effd8206 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,21 @@ pmu1830-supply = <&vcc_3v0>; }; +&pcie_phy { + status = "okay"; +}; + +&pcie0 { + status = "okay"; + + ep-gpios = <&gpio4 RK_PD3 GPIO_ACTIVE_HIGH>; + max-link-speed = <2>; + num-lanes = <4>; + pinctrl-0 = <&pcie_clkreqnb_cpm>; + pinctrl-names = "default"; + vpcie3v3-supply = <&vcc3v3_pcie>; +}; + &pinctrl { bt { bt_enable_h: bt-enable-h { -- 2.16.4