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 2A5B6C001DF for ; Fri, 4 Aug 2023 19:03:10 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6E19B8694E; Fri, 4 Aug 2023 21:03:08 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com 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=gmail.com header.i=@gmail.com header.b="RNX5SMlE"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E65308694E; Fri, 4 Aug 2023 21:03:06 +0200 (CEST) Received: from mail-yw1-x112b.google.com (mail-yw1-x112b.google.com [IPv6:2607:f8b0:4864:20::112b]) (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 5F265868C0 for ; Fri, 4 Aug 2023 21:03:04 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=inindev@gmail.com Received: by mail-yw1-x112b.google.com with SMTP id 00721157ae682-58653c9bed3so27780697b3.2 for ; Fri, 04 Aug 2023 12:03:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691175783; x=1691780583; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=LPYSiT0d+kceRBl3BuCfKY+vpMhtaFOm31dSP6Aa/sY=; b=RNX5SMlE6XHypelcsRRGq4GNc4SlzvDuw7MFjcORhtEl2UoA11DJYnBPxvNTC9l581 XjwpM0ZGsB2nqTMM9WJ76sWRVoDZo4DgOKlrQbwQU2ZtaY5JFprrNJRKYdrLSwbnee49 jKeNoRh2dARy4NF3q4h87zul3T8g769gfplcIqMFkQZH6XHGLbWketqJSc0jUmAD2PIW 04ghdIRiYT3VZKYrPCkNUFU4EJgEG3mQ2+sgdpINM0g6mrlNTKpeFKvcNG7c/+B3HdAd ggh9xuiucNbRhLjLCxzzDZMImHuIqdxS7wkq9oMEg0RvX30fNWyer2qEMn1FfVFOnDrv Tg2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691175783; x=1691780583; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=LPYSiT0d+kceRBl3BuCfKY+vpMhtaFOm31dSP6Aa/sY=; b=G88NvPLZ+I8t/HTUAOblnnKI0IQAnFWmxx+781pWEj308hAHg4XrFatkApgJa+/Y2r fDc2diBav6RY7zYj8Ghyr90f7wrg9Sp7ElHOu/p9nzg29NJygDD4UyDpEHuwo09MmEKs I4UV8WFQPigituFF3+a+vaNOcxttg85Uh1YKCTmY4+GTQG4vmrBl/Y35X1d9yew9aZds 58Pul1aQsDz7sY5xUztS8t+zFLlL69/jvkAXPFHIBxw5sYVyNSCgQQLDxdo/uED1aKPc gcskxO+l7j8xIHL/c4sa7ThrM1C9nODx05HLuWRmmf9U0+LIQYZv6TBCKaHmFc0rtgHW 1M6g== X-Gm-Message-State: AOJu0YzoWvHx0rYe9CROG5/L4b/2phyGOCMsbTjIKzNc1oHYtcmt5Yuz MnWwyzYB0MxrAafB8pePjYQ= X-Google-Smtp-Source: AGHT+IGfKiyUymwQ9I0gKh7yVD36OK7rBb3VcP80Am01Sr4JOIRj1w6b+kWIZMK2Y95MredcedwALw== X-Received: by 2002:a25:558b:0:b0:d06:22aa:529e with SMTP id j133-20020a25558b000000b00d0622aa529emr2121264ybb.5.1691175782911; Fri, 04 Aug 2023 12:03:02 -0700 (PDT) Received: from [192.168.121.234] ([192.34.165.40]) by smtp.gmail.com with ESMTPSA id y10-20020a25b9ca000000b00d3f67db6cfcsm781276ybj.15.2023.08.04.12.03.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 04 Aug 2023 12:03:02 -0700 (PDT) Message-ID: Date: Fri, 4 Aug 2023 15:03:01 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH v2 0/7] rockchip: rk3568: Fix use of PCIe bifurcation Content-Language: en-US To: FUKAUMI Naoki , Jonas Karlman , Kever Yang , Simon Glass , Philipp Tomsich Cc: Eugen Hristev , Jon Lin , u-boot@lists.denx.de References: <20230802190424.2963185-1-jonas@kwiboo.se> <57A229D0D2770D3E+fb4323b3-043a-131b-3a7b-3747ec95fb3a@radxa.com> From: John Clark In-Reply-To: <57A229D0D2770D3E+fb4323b3-043a-131b-3a7b-3747ec95fb3a@radxa.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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 1) Tested rk3568 NanpPi-R5s with Samsung 980 NVMe using linux 6.4.7 device tree. MMC boot media. 2) Tested rk3588 ROCK 5B with Samsung 980 and Samsung 970 EVO Plus NVMe using Sebastian Reichel's rk3588 device tree: https://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-misc.git/log/?h=rk3588 Both MMC and SPI boot media were tested. Tested-by: John Clark On 8/3/23 2:29 AM, FUKAUMI Naoki wrote: > hi, > > On 8/3/23 04:22, Jonas Karlman wrote: >> This series add support for use of PCIe bifurcation on RK3568, and as a >> bonus support for the RK3588 PHY is also included. With PCIe bifurcation >> supported it is possible to enable PCIe on more RK3568 boards, e.g. on >> NanoPi R5C and NanoPi R5S. This series only include fixing the mini PCIe >> slot on Radxa E25. >> >> Most parts of this series was imported almost 1:1 from mainline linux. >> >> Patch 1 fixes configuration of number of lanes in pcie_dw_rockchip. >> Patch 2-3 refactor the snps-pcie3 phy driver. >> Patch 4 add bifurcation support for RK3568. >> Patch 5 add support for RK3588 to snps-pcie3 driver. >> Patch 6 fixes use of pcie2x1l0 on ROCK 5B. >> Patch 7 enables the mini PCIe slot on Radxa E25. >> >> Changes in v2: >> - Fix use of signal from comb PHY on RK3588 >> - Add fixes tag >> >> The RK3588 PHY part was tested on a ROCK 5B together with device tree >> files picked from Sebastian Reichel's rk3588 branch at [1]. >> >> Patches in this series is also aviliable at [2]. >> >> [1] >> https://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-misc.git/tree/?h=rk3588 >> [2] >> https://github.com/Kwiboo/u-boot-rockchip/commits/rk35xx-pcie-bifurcation-v2 >> >> Jonas Karlman (7): >>    pci: pcie_dw_rockchip: Configure number of lanes and link width speed >>    phy: rockchip: snps-pcie3: Refactor to use clk_bulk API >>    phy: rockchip: snps-pcie3: Refactor to use a phy_init ops >>    phy: rockchip: snps-pcie3: Add bifurcation support for RK3568 >>    phy: rockchip: snps-pcie3: Add support for RK3588 >>    phy: rockchip: naneng-combphy: Use signal from comb PHY on RK3588 >>    rockchip: rk3568-radxa-e25: Enable pcie3x1 node >> >>   arch/arm/dts/rk3568-radxa-e25-u-boot.dtsi     |  11 +- >>   configs/radxa-e25-rk3568_defconfig            |   1 - >>   drivers/pci/pcie_dw_rockchip.c                |  58 ++++- >>   .../rockchip/phy-rockchip-naneng-combphy.c    |   6 + >>   .../phy/rockchip/phy-rockchip-snps-pcie3.c    | 230 ++++++++++++++---- >>   5 files changed, 241 insertions(+), 65 deletions(-) > > for the whole series, > > Tested-by: FUKAUMI Naoki > > on ROCK 5B with NVMe and linux-next 20230802 device tree.