Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp190730rdb; Mon, 18 Sep 2023 11:57:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHbx9xl1YU1BAzfBcfG6XDjvaJqepIROgDW3np8jpu61h00O02xcxly+hvY/d47OoNGz3GB X-Received: by 2002:a05:6a20:3d06:b0:156:6bdd:2305 with SMTP id y6-20020a056a203d0600b001566bdd2305mr10329140pzi.45.1695063452294; Mon, 18 Sep 2023 11:57:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695063452; cv=none; d=google.com; s=arc-20160816; b=Mfi+nirldGDzh0rx8GaorDlyjeLmYckcoF/0jkMqskD+N93DvH0IwuUF1rj5VMYdIq hVwOF9S8c+atHfrEHvelKYg/JQe0XXjrMsT9NH57RZY5BPbtqx/mSibDvm7pz8rjVvTo wpEsX/gtNuqEpGt2RF4bDdc8zXMl2wDkTLQezB3tzKEbauKPFdeyrTuCXQLGOegmApIR JC3HS6x3X0loIrt/4NFXzZJo89t/LVmYu9yVpjPJNjcYoJkDhiT81/QjPSAV7dBqg4fb H8AfyhGaO+naXvlMBCPdYw+ZbVCOm5b0C/RXmP2rHfT8OVoNPOC7T78gYj0RMwCB2T18 JyDw== 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=CgehHvj0a+s1XULCNSuGnLt2ZDKnWvLpG2S7ir7AgIQ=; fh=GTJIzdjfRddsbECYS2NPf2cTBoGzj7EWzl+KjtEu2+s=; b=ZwcdoAqrMnThwe1/plyWe/WrabkCJE/kzuj6M7RcsTmZOF1IQXKWgSEiSNWDFqzsBL k26VUhwew+dL8MaxshuEtJW+vY5X+NLtY/FizyOVo7KjxZjrKG71RCrqbnfhFGiptlg6 FZYGJyCPUMrWKqVxaLNnnMcHmfef/VvUaRg3ZS5PGhqL0zxYP/Tuq0jsydz6+V4U5MwE w/Yye6GvD/klMFcd7srNRWkWAionrBWJGQvilYJmCjsF9vtJ8c6iQIJ62hVto6nM6+Rz Gm4gfKrEPiNo7zWHSy/ReGdmh5bHRwQPAwD61tFgVZ6eWLtvpGO95OhZFZTZVMHt1Y3Y D35w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="Y/swLfEc"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id p18-20020a056a000b5200b0068a5877bfaesi8562850pfo.382.2023.09.18.11.57.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 11:57:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="Y/swLfEc"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (Postfix) with ESMTP id 4F6308168230; Mon, 18 Sep 2023 08:37:52 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229578AbjIRPhh (ORCPT + 99 others); Mon, 18 Sep 2023 11:37:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229533AbjIRPhg (ORCPT ); Mon, 18 Sep 2023 11:37:36 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 74A0718F; Mon, 18 Sep 2023 08:35:51 -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 4CF326607286; 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=bXZx9XdtvZgH7jGGWc4OyQZ2ltC3stVZRxLpBsUab7E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Y/swLfEc0qDBI/zKIJwds4NVS8gJaAMfDtlvkJUHv+peWLSz0ejA1XMR2v9iGGDlS JgAYhGzb0eRYT31aKFpHZ3GoYOqd230KjBKvrMT2AdkzBJZ5wQJMILb4XjIQR9I3CB 2rEdqulrv7/Y4u8LzOtKJNRV3KVn0cTxZwZHoN9K20yiRTQ7m9B8hu13w4lrH6/B71 GXnr1RR/7yXQt0T/gPNkUcC7pF3xdiFBSHWswLW8joEAs28QV9poQx3LoLqCdVX2zX /TuGbw5aIOgSODQbHqIUwDlvE9g3EDmuWmqw7UN9ppcxvWwwEpXR58QqcjzM7+Ik/f QXvMsx1ZeC+mg== Received: by jupiter.universe (Postfix, from userid 1000) id 856F04800D1; 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 3/3] arm64: dts: rockchip: rock-5b: add PCIe for M.2 E-Key Date: Mon, 18 Sep 2023 16:14:51 +0200 Message-Id: <20230918141451.131247-4-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 pete.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 (pete.vger.email [0.0.0.0]); Mon, 18 Sep 2023 08:37:52 -0700 (PDT) Enable PCIe2_0 controller and its voltage supply, which is routed to the M.2 E-Key on the upper side of the Radxa Rock 5B. 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 6e52b5cf49a9..947a5ebe5bb3 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts @@ -44,6 +44,21 @@ fan: pwm-fan { #cooling-cells = <2>; }; + vcc3v3_pcie2x1l0: vcc3v3-pcie2x1l0-regulator { + compatible = "regulator-fixed"; + enable-active-high; + gpios = <&gpio1 RK_PD2 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&pcie2_0_vcc3v3_en>; + regulator-name = "vcc3v3_pcie2x1l0"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + startup-delay-us = <50000>; + vin-supply = <&vcc5v0_sys>; + }; + vcc3v3_pcie2x1l2: vcc3v3-pcie2x1l2-regulator { compatible = "regulator-fixed"; regulator-name = "vcc3v3_pcie2x1l2"; @@ -104,6 +119,10 @@ &combphy0_ps { status = "okay"; }; +&combphy1_ps { + status = "okay"; +}; + &cpu_b0 { cpu-supply = <&vdd_cpu_big0_s0>; }; @@ -230,6 +249,14 @@ i2s0_8ch_p0_0: endpoint { }; }; +&pcie2x1l0 { + pinctrl-names = "default"; + pinctrl-0 = <&pcie2_0_rst>; + reset-gpios = <&gpio4 RK_PA5 GPIO_ACTIVE_HIGH>; + vpcie3v3-supply = <&vcc3v3_pcie2x1l0>; + status = "okay"; +}; + &pcie2x1l2 { pinctrl-names = "default"; pinctrl-0 = <&pcie2_2_rst>; @@ -264,6 +291,14 @@ hp_detect: hp-detect { }; pcie2 { + pcie2_0_rst: pcie2-0-rst { + rockchip,pins = <4 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>; + }; + + pcie2_0_vcc3v3_en: pcie2-0-vcc-en { + rockchip,pins = <1 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>; + }; + pcie2_2_rst: pcie2-2-rst { rockchip,pins = <3 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>; }; -- 2.40.1