Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp216945rdb; Mon, 18 Sep 2023 12:48:14 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGzR3RfH0MhQS001Nz8IBbPpTRt3pgMDFqWgRS+rCBHlZ2wG75/53esye0tnM6DSBBVysqK X-Received: by 2002:a05:6a21:3d82:b0:14c:d0c0:dd27 with SMTP id bj2-20020a056a213d8200b0014cd0c0dd27mr7952396pzc.44.1695066494035; Mon, 18 Sep 2023 12:48:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695066494; cv=none; d=google.com; s=arc-20160816; b=PevfL/yadoGUqVInxpfbwxQcd9csSskH5ERrUckwXRtxbpI3tza9qxZ9qr6QaLtZ// wuvVwRRpmi+yhtVUMm5B9F0XpcgZkwsgdly33c8oASyifTh+w6M4v4uUHk1SC7W2DTMS J7WvWtk5+1b6KFJAhQ2uBc+H85eJ9zs37v5N7BOhtQ30Jt6T8unfiPnnnQXUlB9/0kd6 2DHErDPjqTK7ULzR6J/az/yb26uzYkbOrgRyFmU8Rir+F4pgWogb+TWFSWgZFpMD9d+3 WepgX3bXvAlN5SQqOjILB29qKkzd3/NAEJwiBjy3te8bkwoq9t7JvIzAAhsJvvlstlLx RtUQ== 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 :dkim-signature; bh=hK0qRfHLlzfyWC8nQuDtky5SOlUCpkOVNagpbX610us=; fh=GTJIzdjfRddsbECYS2NPf2cTBoGzj7EWzl+KjtEu2+s=; b=x/JeLK+r0ewyVR8BRO6Oq7+sOscaE6qEzZ7AMyJsgCWC4RcecmhufoVhsAkYJKzi3F 0qSaBe2EodY910ogw1Q+WNQcJPc/cGCpLVTmdMom/hLTbjhtN3BqXcITF588OUvWfNWk IQ+wOUNeub7fylFRc6GJbSZlS/Iahe/kLxKb+pvyEgv5LnBWIXg2rv6/B+cHa8dwmI6N JUEzkuWPpJtKq00g19Gp3DlSYMtp8SjVEyq/X23+oM0byCR+ZM9ux3YBrC7EtGm6uysP 7KH3fIoEj6mRzBLbc4T5JvC1c++mhXGdKw9ok34S82yEdqY6uEJr8zwIV3X8dHIBUkF0 QzYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="E2XO6/iZ"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id bw20-20020a056a00409400b0068fcc3406acsi8343523pfb.141.2023.09.18.12.48.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 12:48:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="E2XO6/iZ"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 86B558068E22; Mon, 18 Sep 2023 08:41:07 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229556AbjIRPlJ (ORCPT + 99 others); Mon, 18 Sep 2023 11:41:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49616 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229468AbjIRPlI (ORCPT ); Mon, 18 Sep 2023 11:41:08 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ACC94BE; Mon, 18 Sep 2023 08:37:30 -0700 (PDT) Received: from jupiter.universe (dyndsl-091-248-188-252.ewe-ip-backbone.de [91.248.188.252]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: sre) by madras.collabora.co.uk (Postfix) with ESMTPSA id 411746607239; Mon, 18 Sep 2023 15:14:58 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1695046498; bh=I25whc5DhqxcsIbgYS50yLUplGh7UM7ST9VITX/zNi4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=E2XO6/iZWqZfrSbnktVBsWGU9tyvW4xccNIviKhdeTlswRVAgsAv0whHyRuuvx6lX /2L0Gn0QMFdDLQyKmzY0fhe0e2S9T4R7QC/oFhD/3F4vLNMbUZGuD+dagUzcfbgi+T nFN1X0+t/FfKbevifgj4dPjhKbCWtcq8nn0ZUX6nzmqtxNKk+snpqpPlkYueWUwxcM ugUWV2LXUe5AC+UBKT3Ebxd1jSyc0p9w96lyot/3wOQvbWZKoYcviYncSbAYnkWDLP MND/GzzbQY975cdsqM1JbVJoL2Ny+1X3bgR45NhChTP2sqxOQHbE6VA8uK50tX+a/n MjBMRfuzTobPA== Received: by jupiter.universe (Postfix, from userid 1000) id 8369B4800D0; Mon, 18 Sep 2023 16:14:56 +0200 (CEST) From: Sebastian Reichel To: Heiko Stuebner Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Sebastian Reichel , kernel@collabora.com Subject: [PATCH 2/3] arm64: dts: rockchip: rock-5b: add PCIe for M.2 M-key Date: Mon, 18 Sep 2023 16:14:50 +0200 Message-Id: <20230918141451.131247-3-sebastian.reichel@collabora.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230918141451.131247-1-sebastian.reichel@collabora.com> References: <20230918141451.131247-1-sebastian.reichel@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Mon, 18 Sep 2023 08:41:07 -0700 (PDT) The Radxa Rock 5B has PCIe 3x4 routed to its M.2 M-key connector on the board's back. Signed-off-by: Sebastian Reichel --- .../boot/dts/rockchip/rk3588-rock-5b.dts | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts b/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts index 0752b0fb4b54..6e52b5cf49a9 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts @@ -53,6 +53,19 @@ vcc3v3_pcie2x1l2: vcc3v3-pcie2x1l2-regulator { vin-supply = <&vcc_3v3_s3>; }; + vcc3v3_pcie30: vcc3v3-pcie30-regulator { + compatible = "regulator-fixed"; + enable-active-high; + gpios = <&gpio1 RK_PA4 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&pcie3_vcc3v3_en>; + regulator-name = "vcc3v3_pcie30"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + startup-delay-us = <5000>; + vin-supply = <&vcc5v0_sys>; + }; + vcc5v0_host: vcc5v0-host-regulator { compatible = "regulator-fixed"; regulator-name = "vcc5v0_host"; @@ -225,6 +238,18 @@ &pcie2x1l2 { status = "okay"; }; +&pcie30phy { + status = "okay"; +}; + +&pcie3x4 { + pinctrl-names = "default"; + pinctrl-0 = <&pcie3_rst>; + reset-gpios = <&gpio4 RK_PB6 GPIO_ACTIVE_HIGH>; + vpcie3v3-supply = <&vcc3v3_pcie30>; + status = "okay"; +}; + &pinctrl { hym8563 { hym8563_int: hym8563-int { @@ -244,6 +269,16 @@ pcie2_2_rst: pcie2-2-rst { }; }; + pcie3 { + pcie3_rst: pcie3-rst { + rockchip,pins = <4 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>; + }; + + pcie3_vcc3v3_en: pcie3-vcc3v3-en { + rockchip,pins = <1 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + usb { vcc5v0_host_en: vcc5v0-host-en { rockchip,pins = <4 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>; -- 2.40.1