Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp970623rwb; Tue, 27 Sep 2022 06:57:28 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4KUjF9tlvekhvad8wZ+dN2JenCRW8V7R8rEmz4fiVr+QWEGlZKoMmWy//Ir+PruHahKWBn X-Received: by 2002:a62:1bc8:0:b0:546:c62e:e84 with SMTP id b191-20020a621bc8000000b00546c62e0e84mr29242068pfb.45.1664287047803; Tue, 27 Sep 2022 06:57:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664287047; cv=none; d=google.com; s=arc-20160816; b=GBBfKGhqOFCmBQ/zDoOmPqFW315gqAwZ4raVHn0XSrcwZk9Ny1ctFPme37KQoM0OWK +M/dfOei8V4brjayrX7OoWzQM7OY3FKpPFllPRNomf97DD1WmC3hbZivQpAQyC/O98WR 7K3WlUohhaM3hagXLKJRcaSSfJwMLsimL0S68cA6U9ZWiOd4SegVDomNmvpbNbSM7cNO YokaExZ7nD0bvVvlA1BVcsikX4xk6ziNCOlHDewa8CT2ayNhPuSdMdYVeu1CJYuklzEA Mv3v6gQ7up8Lti+EgG+XJJpeXptEyluKI8Je6TCob21rzcLNYvbcupTE7+swP1ia3Ixs sJJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=JYhubVsYX6ouoh07xHct6JKDa2u34ATcTX+f9kydsg0=; b=syqvB3ILAfZF3vJjbfnDgp+5W0PJihkNAM3dF8YpJmVD4x1q8n7EwbmRvWYv1iqD6s OgsxvA688QnFpG5/2Irc9i1W9UVlhy1vt2F+FxnUMtUVXO/88nffThLwIQvbpJ3z+gwn hzkEQ4CPeBN6m7EZ04bFe+Q/LmTbCXo9+XAyE4wSyxRoNKTTA3fCoz2yF8CiP8EYeQJS z1T378h4yKLKNlLuTapyy617FeRuNfAe57kZ4HhSCufJ+vnjch+sIJKAiGIF/3ViIXrV JwF/bkD5R4mkkyr8bjGj0Sr3CH64Q4yjFH7ibUb5mSxOPOhcfXyd9Mw7FBRuQoMsAVmr eDGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=SFNBETuy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lk3-20020a17090b33c300b001fb3c38290dsi18895343pjb.177.2022.09.27.06.57.16; Tue, 27 Sep 2022 06:57:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=SFNBETuy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232838AbiI0Nqp (ORCPT + 99 others); Tue, 27 Sep 2022 09:46:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231883AbiI0Nqn (ORCPT ); Tue, 27 Sep 2022 09:46:43 -0400 Received: from mail-il1-x131.google.com (mail-il1-x131.google.com [IPv6:2607:f8b0:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07E75EC57A; Tue, 27 Sep 2022 06:46:42 -0700 (PDT) Received: by mail-il1-x131.google.com with SMTP id y15so5115228ilq.4; Tue, 27 Sep 2022 06:46:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=JYhubVsYX6ouoh07xHct6JKDa2u34ATcTX+f9kydsg0=; b=SFNBETuy+YwSF+Q5f3FRDqDN/eaViyqw5he3UZgTk4MtyJF6NRCFNYIKYJPmlsEAMt DeyMJfFPjEHThTWRJp3rwRQNYq+ZP2jaZRHsnPQUIIDoSjEnb2J9Ee7Ql7vsi1f3j6o/ jljy4aCW1hQFLl0pqMecxtsOTvbgdYBKABSzUnLo1vpbsoWJhvmEPoLD5bs7HSEIMWBU wuvLfswFLjp0hC6zhxiQcY5dIDIbYgEDKhQ9j0i+rprfbNfGwV1WpoNmxVOp4RQ0vso/ Md84BYiwvupF5tMaidkzgxgcpXnhMJk0px5c/qoGPkjlQ7myoI/dmvljGCU6pWvZLAl2 eVMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=JYhubVsYX6ouoh07xHct6JKDa2u34ATcTX+f9kydsg0=; b=OsUwitFeFBUkqbBjvwldvn2fv9Ob6UFkSwbTA5Q26rQopwrULRCD5wjpbfeKzW+mDo 62XpRWspSR92mjjQohN+MLt9zY9e3Mw6qLwjFgsktX7it8xg55Ru0oKL5SCrxXYscVL3 f39/w2HxnzIy0u2F+JlrMi6J1Am0ctOPzBvCXktJEm+TOnd0179J4amtWaV0oCbhdXmN gJ3KjC+/jCHG8f6nb1VE4M9fs4/NTyjMfoJKsFvO77z3dK0dLXLgjIOF7BKhTd4Uihrv 15ex3YWjzCV0Ee8x6K25h0fSmUK/YGC0wcWmnrAqr7EVktgqO4ppPTA+KzGY1135ZPmW u1Dw== X-Gm-Message-State: ACrzQf0KwBTPUHc+XlEiqVRoew1w4hxklC/0OSJl+CcRSNWSWeoRjxLW bVcc5vziwX462YBq/FfniSc3Mt3M2Q4xfJVy8xk= X-Received: by 2002:a92:360c:0:b0:2f6:33ed:e2a2 with SMTP id d12-20020a92360c000000b002f633ede2a2mr13076960ila.29.1664286401415; Tue, 27 Sep 2022 06:46:41 -0700 (PDT) MIME-Version: 1.0 References: <20220926061420.1248-1-linux.amoon@gmail.com> <20220926180102.37614-1-amadeus@jmu.edu.cn> In-Reply-To: <20220926180102.37614-1-amadeus@jmu.edu.cn> From: Anand Moon Date: Tue, 27 Sep 2022 19:16:25 +0530 Message-ID: Subject: Re: [PATCH-next v1] arm64: dts: rockchip: Enable NVM Express PCIe controller on rock3a To: Chukun Pan Cc: heiko@sntech.de, krzysztof.kozlowski+dt@linaro.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, michael.riesch@wolfvision.net, robh+dt@kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Chukun, On Mon, 26 Sept 2022 at 23:31, Chukun Pan wrote: > > Hi, > > On 26-09-22, 06:14, Anand Moon wrote: > > > + pcie30_3v3: gpio-regulator { > > + compatible = "regulator-gpio"; > > + regulator-name = "pcie30_3v3"; > > + regulator-min-microvolt = <100000>; > > + regulator-max-microvolt = <3300000>; > > + gpios = <&gpio0 RK_PD4 GPIO_ACTIVE_HIGH>; > > + gpios-states = <0x1>; > > + states = <100000 0x0>, <3300000 0x1>; > > + }; > > This is actually no different from vcc3v3-pcie regulator? > > > +&pcie30phy { > > + data-lanes = <0 1 2 3>; > > + phy-supply = <&vcc3v3_pi6c_03>; > > + status = "okay"; > > +}; > > It seems that there is no need to define additional data-lanes when > the pcie3x1 node is not enabled, and phy-supply seems unnecessary on > this board. > As per the schematic below pice support with 2 regulators VCC3V3_PCIE (SCT2250FPA) VCC3V3_PI6C_03 (PI6C557-03 is a spread spectrum clock generator supporting PCI Express and Ethernet requirements) [0] https://dl.radxa.com/rock3/docs/hw/3a/rock3a_v1.3_sch.pdf > Excuse me, can you try the patches I posted? Lspci can recognize > pcie3x2 normally, but I don't have a spare nvme hard drive right > now to test if it works. > No, it did not work on my board, see bool logs. [0] https://pastebin.com/Lk93VFxg [ 0.725985] phy phy-fe8c0000.phy.4: lane number 0, val 1 [ 0.726975] phy phy-fe8c0000.phy.4: rockchip_p3phy_rk3568_init: lock failed 0x6890000, check input refclk and power supply [ 0.728172] phy phy-fe8c0000.phy.4: phy init failed --> -110 [ 0.728704] rockchip-dw-pcie: probe of 3c0800000.pcie failed with error -110 [ 0.745193] ALSA device list: Thanks -Anand > Thanks, Chukun > > --- > Chukun Pan (3): > arm64: dts: rockchip: Add regulator suffix to ROCK3 Model A > arm64: dts: rockchip: Rename pinctrl label of pcie2x1 on rock-3a > arm64: dts: rockchip: Add PCIe v3 nodes to rock-3a > > .../boot/dts/rockchip/rk3568-rock-3a.dts | 36 ++++++++++++++----- > 1 file changed, 27 insertions(+), 9 deletions(-) > > -- > 2.25.1 >