Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3820342rwb; Fri, 30 Sep 2022 08:45:29 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5yog4va9lsHHAgyiUWElq9vXv3HJfQ+SlIg1/3B+Tv+MEEtvzrmzyIer9OPL41PTe4KMFU X-Received: by 2002:a62:c584:0:b0:558:2095:e5ed with SMTP id j126-20020a62c584000000b005582095e5edmr9616734pfg.64.1664552729608; Fri, 30 Sep 2022 08:45:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664552729; cv=none; d=google.com; s=arc-20160816; b=dZLR9pMirlJPufu6K7icaF3BpVthPcIjYpmVQaJOwC92hYM5ktrybXgoNaQBW1u3YW QFMAeQGOorOI9OXeEJnTuOqA74AKklDYsoRvXLoBb9yI6FaLZVTHTUusZK/GxcztkXY1 VPsRlB5xUzNz5Ke1fCjYW0HZuizQzcbtE3QBHR2LezPm5BadpGgElAzjOxGEil49MlAz EaF49J5u8ad6fB/J6DpYnJZYZTDBy3fVBly8kfkzFqXoXU07ZWlIfsD/AYA72fcRpknX fwFG0Fx7K/BY+3S6MVYimvwRK64pmTBnXnKJmRKubs/mnxRhtixnkhAbaWffZBzc5VB4 zuwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=6AJ4NNFGb2s4JbeosXAwHBkloo37E4PwbBXaZr3YdUU=; b=Mo7Wdh81ENDCg5zGkbEsqoHTOhh11t0ZGow9Gba/OlTSfF7p8cbKQelBaDf3mCJ9zD QrLEHLGbRE+XiPjSe7pWnIcUSDJ4V3WA0kbREBSXOZH9lauFsctpkQQTmE7aEwA41aNa +YuoXP0STNothiAMaozDEgkOY27SjrnFNBc+f4kGLk2NH00YoIvsGdeEObncv5RTKGyW AXRcCX0GlIiiPGVTSIfoMoaZunqn4tHwN2x5YYwHu/MkR/dUEiDFCme5YI0+ZotJ8eCr 2cPcHi2gSouZqqJV4riqm+3BXNRyNfOKpF8Lrat3dsVSMXEE78yDUA4MpTUVnqGvna+E ATow== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=jmu.edu.cn Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q12-20020a170903204c00b0017bcea4e6b6si2773552pla.234.2022.09.30.08.45.17; Fri, 30 Sep 2022 08:45:29 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=jmu.edu.cn Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231298AbiI3PZ4 (ORCPT + 99 others); Fri, 30 Sep 2022 11:25:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231224AbiI3PZy (ORCPT ); Fri, 30 Sep 2022 11:25:54 -0400 Received: from mail-m121145.qiye.163.com (mail-m121145.qiye.163.com [115.236.121.145]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA0681138D6 for ; Fri, 30 Sep 2022 08:25:51 -0700 (PDT) Received: from amadeus-VLT-WX0.lan (unknown [110.81.126.164]) by mail-m121145.qiye.163.com (Hmail) with ESMTPA id 6618E800093; Fri, 30 Sep 2022 23:25:40 +0800 (CST) From: Chukun Pan To: linux.amoon@gmail.com Cc: heiko@sntech.de, robh+dt@kernel.org, michael.riesch@wolfvision.net, krzysztof.kozlowski+dt@linaro.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Chukun Pan Subject: [PATCH 0/1] Re: [PATCH-next v1] arm64: dts: rockchip: Enable NVM Express PCIe controller on rock3a Date: Fri, 30 Sep 2022 23:25:31 +0800 Message-Id: <20220930152531.5910-1-amadeus@jmu.edu.cn> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFITzdXWS1ZQUlXWQ8JGhUIEh9ZQVkaSh1DVkhPTk0fSE1MHx9IT1UTARMWGhIXJBQOD1 lXWRgSC1lBWUpKS1VDSlVKSU1VSk1PWVdZFhoPEhUdFFlBWU9LSFVKSktISkNVSktLVUtZBg++ X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6OjY6Kio5MD0iUVZJKEk3Ojk4 KBkwCStVSlVKTU1PTk5KTk9KS0pNVTMWGhIXVRoWGh8eDgg7ERYOVR4fDlUYFUVZV1kSC1lBWUpK S1VDSlVKSU1VSk1PWVdZCAFZQUhMTU03Bg++ X-HM-Tid: 0a838f00d7a0b03akuuu6618e800093 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 Anand, > No, It's not working on my board. > If you check the driver code it requires *data-line* and *num-lanes > from the dts. I have successfully tested NVME hard drives on my board. See below for the patch, looking forward to your testing. root@rock3a:~# lspci 0000:00:00.0 PCI bridge: Rockchip Electronics Co., Ltd \ RK3568 Remote Signal Processor (rev 01) 0000:01:00.0 Network controller: MEDIATEK Corp. MT7921 \ 802.11ax PCI Express Wireless Network Adapter 0002:00:00.0 PCI bridge: Rockchip Electronics Co., Ltd \ RK3568 Remote Signal Processor (rev 01) 0002:01:00.0 Non-Volatile memory controller: Sandisk Corp \ PC SN520 NVMe SSD (rev 01) Patch: --- a/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts +++ b/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts @@ -67,6 +67,37 @@ vcc12v_dcin: vcc12v-dcin-regulator { regulator-boot-on; }; + pcie30_avdd0v9: pcie30-avdd0v9-regulator { + compatible = "regulator-fixed"; + regulator-name = "pcie30_avdd0v9"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <900000>; + regulator-max-microvolt = <900000>; + vin-supply = <&vcc3v3_sys>; + }; + + pcie30_avdd1v8: pcie30-avdd1v8-regulator { + compatible = "regulator-fixed"; + regulator-name = "pcie30_avdd1v8"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + vin-supply = <&vcc3v3_sys>; + }; + + /* pi6c pcie clock generator */ + vcc3v3_pi6c_03: vcc3v3-pi6c-03-regulator { + compatible = "regulator-fixed"; + regulator-name = "vcc3v3_pi6c_03"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + vin-supply = <&vcc5v0_sys>; + }; + vcc3v3_pcie: vcc3v3-pcie-regulator { compatible = "regulator-fixed"; enable-active-high; @@ -546,6 +577,19 @@ &pcie2x1 { status = "okay"; }; +&pcie30phy { + phy-supply = <&vcc3v3_pi6c_03>; + status = "okay"; +}; + +&pcie3x2 { + pinctrl-names = "default"; + pinctrl-0 = <&pcie30x2m1_pins>; + reset-gpios = <&gpio2 RK_PD6 GPIO_ACTIVE_HIGH>; + vpcie3v3-supply = <&vcc3v3_pcie>; + status = "okay"; +}; + &pinctrl { cam { vcc_cam_en: vcc_cam_en { -- 2.25.1 Thanks, Chukun