Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp595223rdb; Tue, 19 Sep 2023 05:04:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFALvb4ilWed5Ae97KaFZHxL0eK9Etwo0YrLIQELI2Bm07yriC++Wk8OqC3P4rXJotuTyl4 X-Received: by 2002:a17:903:2350:b0:1bc:7441:d81a with SMTP id c16-20020a170903235000b001bc7441d81amr11684980plh.6.1695125068894; Tue, 19 Sep 2023 05:04:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695125068; cv=none; d=google.com; s=arc-20160816; b=oh/yZ6LxIGTerRVfhHXcCyeLrqXSkoin+3AgiP0CJkn6mA6eqkzqV21hr23uj2Hrjw 7c/NuPGI/BQf48WanDLWm0DlB7kBJUbspmkG0Odfigxhj2KgLRRuHD+uLSuyDrDn6UnU 9jXBo+O/pX6WmuTk/MijYPTcm/dtqT2Gux6YgAhSEkOHpxFXMNCQ9t6Dbg4ocwBs6mXu 05cx7Zo1ghMkeGLZo7UVxBgIWsYfMbiGReGckRsaMZxy5PfssbzzXWwtSNkhRtfAesn7 Hz7VcYctDm1rUxnqYw8daKylvFpLurlvPpsppvfLc8skSPibFHhGi9/E/kEtrt04lHVJ lXQw== 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=UHuiy6boiivyfcyTWAseV1515nxD2kkJfuXFD6lg03g=; fh=GTJIzdjfRddsbECYS2NPf2cTBoGzj7EWzl+KjtEu2+s=; b=ykVwmSVEh0LllAiVu7OlKO+mnv5QLeZ6/pLatfEFBdLNdEmssfHuOi0BUDYuPTPskZ /mU/PbZfAGuI3d9ue3i9kr3GaVgzSpGW3uRM1GsV8IDrDpy4YBJhissvkYfr4VNP+nhQ 4MsWGeBaM0rAVuoJP1JG/om4ca2z0F07CJYOoYYC1h+iwPFpxwdmiU5pIFcTBSVON0lS qTMZ2nVLGoVVqu8N9FGLBicieGIZBDUkTW3t92e3A2Zomcy22w/g4e+uHKPNYoW5i8PN KJk/cyXfFYJ5GHu3HBC1mnyIhkO+rnPCZoAZGfNnsgh8O1xNPoU+KtfvLCBFJhzPAZhf 6uuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Id8Dl4YT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id p6-20020a170902780600b001bc434b9d95si5392838pll.156.2023.09.19.05.04.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Sep 2023 05:04:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Id8Dl4YT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (Postfix) with ESMTP id E912881B5AAB; Mon, 18 Sep 2023 08:39:06 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229449AbjIRPjG (ORCPT + 99 others); Mon, 18 Sep 2023 11:39:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48702 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229472AbjIRPjF (ORCPT ); Mon, 18 Sep 2023 11:39:05 -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 2570B1728; Mon, 18 Sep 2023 08:36:38 -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 848E86607197; Mon, 18 Sep 2023 15:13:39 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1695046419; bh=LXDsfmpgz/S+OdLyVgEiEXXE5p+Ro4TcKEscm/IBY6w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Id8Dl4YTEa5H93pJEpd+uJPplow+uowCumBASpPTzsAbKUX+M3rgF+CmAoM38z5h3 6lHCkUlvir10SCy3MOqEk5bkUwqSiSwIQCCbqn7bWqppr0rRcNXWnM2jkMHWuxyatC OWQrc7RveiVCuTfjr4cOaR0hlbM5UKBBErJvlaYkXA5tu7iaSHCBn0gVZHZIYGYuyG ikxhy0DrvSDQN10IykYg/zHPypjSOLRusoO+FHsWlS6NUBkFhbsNsd/w3trABCQisz pm4GlyS4tS8BGTVEhpeRfnuwruEIVfk+kTQDnpVZZ1Sjp2g2iSp56VO5wz4nPsw6ek cTgfrc27scQ5g== Received: by jupiter.universe (Postfix, from userid 1000) id 834554800D0; Mon, 18 Sep 2023 16:13:37 +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/2] arm64: dts: rockchip: rk3588-evb1: add PCIe3 bus Date: Mon, 18 Sep 2023 16:13:27 +0200 Message-Id: <20230918141327.131108-3-sebastian.reichel@collabora.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230918141327.131108-1-sebastian.reichel@collabora.com> References: <20230918141327.131108-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 agentk.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 (agentk.vger.email [0.0.0.0]); Mon, 18 Sep 2023 08:39:07 -0700 (PDT) Enable PCIe3 support, which is exposed via a PCIe3 connector. Signed-off-by: Sebastian Reichel --- .../boot/dts/rockchip/rk3588-evb1-v10.dts | 55 +++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588-evb1-v10.dts b/arch/arm64/boot/dts/rockchip/rk3588-evb1-v10.dts index 23bef9faa690..c3fe58e39e99 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588-evb1-v10.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588-evb1-v10.dts @@ -49,6 +49,26 @@ pcie20_avdd1v8: pcie20-avdd1v8-regulator { vin-supply = <&avcc_1v8_s0>; }; + pcie30_avdd0v75: pcie30-avdd0v75-regulator { + compatible = "regulator-fixed"; + regulator-name = "pcie30_avdd0v75"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <750000>; + regulator-max-microvolt = <750000>; + vin-supply = <&avdd_0v75_s0>; + }; + + 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 = <&avcc_1v8_s0>; + }; + vcc12v_dcin: vcc12v-dcin-regulator { compatible = "regulator-fixed"; regulator-name = "vcc12v_dcin"; @@ -58,6 +78,19 @@ vcc12v_dcin: vcc12v-dcin-regulator { regulator-max-microvolt = <12000000>; }; + vcc3v3_pcie30: vcc3v3-pcie30-regulator { + compatible = "regulator-fixed"; + regulator-name = "vcc3v3_pcie30"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + enable-active-high; + gpios = <&gpio3 RK_PC3 GPIO_ACTIVE_HIGH>; + startup-delay-us = <5000>; + vin-supply = <&vcc12v_dcin>; + pinctrl-names = "default"; + pinctrl-0 = <&vcc3v3_pcie30_en>; + }; + vcc5v0_host: vcc5v0-host-regulator { compatible = "regulator-fixed"; regulator-name = "vcc5v0_host"; @@ -194,6 +227,18 @@ &pcie2x1l1 { status = "okay"; }; +&pcie30phy { + status = "okay"; +}; + +&pcie3x4 { + pinctrl-names = "default"; + pinctrl-0 = <&pcie3_reset>; + reset-gpios = <&gpio4 RK_PB6 GPIO_ACTIVE_HIGH>; + vpcie3v3-supply = <&vcc3v3_pcie30>; + status = "okay"; +}; + &pinctrl { rtl8111 { rtl8111_isolate: rtl8111-isolate { @@ -220,6 +265,16 @@ pcie2_1_rst: pcie2-1-rst { }; }; + pcie3 { + pcie3_reset: pcie3-reset { + rockchip,pins = <4 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>; + }; + + vcc3v3_pcie30_en: vcc3v3-pcie30-en { + rockchip,pins = <3 RK_PC3 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