Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CFCE5C001E0 for ; Wed, 2 Aug 2023 19:49:52 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D79638685D; Wed, 2 Aug 2023 21:49:50 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kwiboo.se Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=kwiboo.se header.i=@kwiboo.se header.b="ZEfppckM"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 17945868EE; Wed, 2 Aug 2023 21:49:49 +0200 (CEST) Received: from wfbtzhsw.outbound-mail.sendgrid.net (wfbtzhsw.outbound-mail.sendgrid.net [159.183.224.105]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 42B9286A8C for ; Wed, 2 Aug 2023 21:49:46 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kwiboo.se Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=bounces+31435339-7456-u-boot=lists.denx.de@em2124.kwiboo.se DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kwiboo.se; h=from:subject:mime-version:to:cc:content-transfer-encoding: content-type:cc:content-type:from:subject:to; s=s1; bh=NiWKltSkXDDrvxsiKYW3G7SoUb9SKehYkCeZqZrln2o=; b=ZEfppckM5eCa5fMMXN621dus81ihfQxeMXduwaDZu8dLjGbEpgZYTc7BXrCbJSfr5HEp y6AV/jAdef+wMMC58qk9Rotc/wsObv2brEtwGRTAL174VQLWPliz1xpKFfgWR0iU3mqBfv Jtu2zIWpfxP44TWDmPP/xoSUDYbFO2sbMSSSP2Th+dkdmJVCnT9FobrZ3DqoFDX1kxm3Gn 2eo3UZiLfJO51oFvvm2xQRPV58ko/DbkJAQQw4R0Fvmfz/oGrQdZLiNF8ghFEkWWW6i39k UeXYps5GpGhtT87R1vdVsdAgm7mDaQaftqG1CkAUsHGhSbR8i5oAAvBlfNjDTDMw== Received: by filterdrecv-77869f68cc-lcgp6 with SMTP id filterdrecv-77869f68cc-lcgp6-1-64CAB358-3C 2023-08-02 19:49:44.823554176 +0000 UTC m=+7244027.016960634 Received: from bionic.localdomain (unknown) by geopod-ismtpd-1 (SG) with ESMTP id AwicpraDRV29Bz-GWm702w Wed, 02 Aug 2023 19:49:44.569 +0000 (UTC) From: Jonas Karlman Subject: [PATCH 0/2] rockchip: rk3568-nanopi-r5: Add missing PCIe options Date: Wed, 02 Aug 2023 19:49:44 +0000 (UTC) Message-ID: <20230802194940.2974158-1-jonas@kwiboo.se> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-SG-EID: =?us-ascii?Q?TdbjyGynYnRZWhH+7lKUQJL+ZxmxpowvO2O9SQF5CwCVrYgcwUXgU5DKUU3QxA?= =?us-ascii?Q?fZekEeQsTe+RrMu3cja6a0h6S1GKZ8HYEEFYkE+?= =?us-ascii?Q?eBCXpziWFLU6=2F=2FfdIqm+nj0JsngVHwl+Rd+HfaC?= =?us-ascii?Q?tD8PFF4rDXdzGpwhC9rM2TvbcDYR8Qdc73zlXPf?= =?us-ascii?Q?JOEPtYOErH3W=2FpTNKJdRXLQqBRHXb+xTdGdrzan?= =?us-ascii?Q?ftwdh4Ith5fkScdN9Jygq3euJsnxHmzYr2YWjg?= To: Kever Yang , Tianling Shen , Simon Glass , Philipp Tomsich Cc: u-boot@lists.denx.de, Jonas Karlman X-Entity-ID: P7KYpSJvGCELWjBME/J5tg== Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean With PCIe bifurcation fixed on RK3568 it is now safe to add the missing PCIe Kconfig options to make use of the two on-board RTL8125B and the M.2 slot on NanoPi R5C and NanoPi R5S. First patch clean up and sync some generic Kconfig options with other RK3568 boards. Second patch add the missing PCIe Kconfig options. Boot log from NanoPi R5C (RTL8822CE in M.2 slot): U-Boot 2023.10-rc1 (Aug 01 2023 - 21:03:01 +0000) Model: FriendlyElec NanoPi R5C DRAM: 4 GiB (effective 3.7 GiB) PMIC: RK8090 (on=0x40, off=0x00) Core: 316 devices, 26 uclasses, devicetree: separate MMC: mmc@fe2b0000: 1, mmc@fe310000: 0 Loading Environment from nowhere... OK In: serial@fe660000 Out: serial@fe660000 Err: serial@fe660000 Model: FriendlyElec NanoPi R5C Net: No ethernet found. Hit any key to stop autoboot: 0 => pci enum => pci BusDevFun VendorId DeviceId Device Class Sub-Class 00.00.00 0x1d87 0x3566 Bridge device 0x04 01.00.00 0x10ec 0xc822 Network controller 0x80 02.00.00 0x1d87 0x3566 Bridge device 0x04 03.00.00 0x10ec 0x8125 Network controller 0x00 04.00.00 0x1d87 0x3566 Bridge device 0x04 05.00.00 0x10ec 0x8125 Network controller 0x00 => net list eth0 : eth_rtl8169 9e:7d:5d:d6:8f:02 active eth1 : eth_rtl8169 9e:7d:5d:d6:8f:03 => Boot log from NanoPi R5S (NVMe in M.2 slot): U-Boot 2023.10-rc1 (Aug 01 2023 - 21:42:51 +0000) Model: FriendlyElec NanoPi R5S DRAM: 4 GiB (effective 3.7 GiB) PMIC: RK8090 (on=0x40, off=0x00) Core: 318 devices, 26 uclasses, devicetree: separate MMC: mmc@fe2b0000: 1, mmc@fe310000: 0 Loading Environment from nowhere... OK In: serial@fe660000 Out: serial@fe660000 Err: serial@fe660000 Model: FriendlyElec NanoPi R5S Net: No ethernet found. Hit any key to stop autoboot: 0 => pci enum => pci BusDevFun VendorId DeviceId Device Class Sub-Class 00.00.00 0x1d87 0x3566 Bridge device 0x04 01.00.00 0x10ec 0x8125 Network controller 0x00 02.00.00 0x1d87 0x3566 Bridge device 0x04 03.00.00 0x10ec 0x8125 Network controller 0x00 04.00.00 0x1d87 0x3566 Bridge device 0x04 05.00.00 0x1d79 0x2263 Mass storage controller 0x08 => nvme scan => nvme info Device 0: Vendor: 0x1d79 Rev: V0804S3 Prod: H786090037 Type: Hard Disk Capacity: 244198.3 MB = 238.4 GB (500118192 x 512) => net list eth1 : eth_rtl8169 9a:cb:a2:72:4c:c6 active eth2 : eth_rtl8169 00:00:00:00:00:00 => This series depends on the series "rockchip: rk3568: Fix use of PCIe bifurcation" v2 [1]. Patches in this series is also aviliable at [2]. [1] https://patchwork.ozlabs.org/project/uboot/list/?series=366997 [2] https://github.com/Kwiboo/u-boot-rockchip/commits/rk35xx-pcie-bifurcation-v2 Jonas Karlman (2): rockchip: rk3568-nanopi-r5: Update defconfig for NanoPi R5C and R5S rockchip: rk3568-nanopi-r5: Enable PCIe on NanoPi R5C and R5S arch/arm/dts/rk3568-nanopi-r5c-u-boot.dtsi | 4 ++++ arch/arm/dts/rk3568-nanopi-r5c.dts | 2 +- arch/arm/dts/rk3568-nanopi-r5s-u-boot.dtsi | 10 +++++++++- configs/nanopi-r5c-rk3568_defconfig | 18 ++++++++++++------ configs/nanopi-r5s-rk3568_defconfig | 19 +++++++++++++------ 5 files changed, 39 insertions(+), 14 deletions(-) -- 2.41.0