From patchwork Sat Nov 25 14:40:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 13468576 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3F3AEC07CA9 for ; Sat, 25 Nov 2023 14:41:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=H3KPMqw60rZimNb23TBzERfUNYe6mLgeReDQ5yK7JBA=; b=qibeDskQ9BPsQQ RDhlfdffhh7+6M186txpho00DQTDQHxWYRYn3DJrLqj4gqr4sE7L9BIDmsn3AOOC4ziksFTBuuMky 5py067WmDrz0Dvy88FAQ+0KII9INkeXB4vakNXfuvdQgvyab0EhufRKncW6wmxAMIBpeEA3Twk7f1 +SykBCeNCKWL/ywEqnH+SIZUfM7AxiK5tNw58Qd/Fbh9zHoUF8m+gAlJH62EZMh5+s7cNrgxBnhRh HMpGyfzwepCruL2DAvEaHVsAjNzu2gB2S/WV09FvElU+GKC7ccNZ4XhXRMegn3Nz04jogw3G6VEhU a7aEPFW30jUxbpA5BYMQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r6tqR-009Mtz-22; Sat, 25 Nov 2023 14:41:19 +0000 Received: from mail-pj1-x1030.google.com ([2607:f8b0:4864:20::1030]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r6tpz-009MaD-0U for linux-arm-kernel@lists.infradead.org; Sat, 25 Nov 2023 14:40:52 +0000 Received: by mail-pj1-x1030.google.com with SMTP id 98e67ed59e1d1-2851a2b30a2so1950353a91.3 for ; Sat, 25 Nov 2023 06:40:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=edgeble-ai.20230601.gappssmtp.com; s=20230601; t=1700923250; x=1701528050; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=kNBeKi0rAQB1+toxqqlE2nYrDGFed7KQnf2/b2wSloo=; b=WqQV3Uim3qASbwaksHFWfk1PHBCXhXQ5zWqJolChu5r3AcfxcoI7tRFhEY5k81Egdr WGysMjK5WIH8fzELjFna+MfaPTrusor0O/QesdeaXOr6b974oP8aeI4fB/11kIcoBZqo pX0yLsRVRq35VIiRK2gCtoRtVinl8jacUs7r5D7zOQ8SfE7onfkgbRhXNEcAst3Iql0t K6+Cioblw3nkO6AmHB66Eg8yEV8MmwUgVTxeXJ5bSugjAYsqS8i2oH4HhNdkCNxa5o9x qWiGwJKNCuOil8U+ZOua6bzUuYaZFalsKpibMsaMJiDcqzWOVICSGuAkRwYdwqpCHUpZ yrhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700923250; x=1701528050; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=kNBeKi0rAQB1+toxqqlE2nYrDGFed7KQnf2/b2wSloo=; b=vAovyb7n3FzZbJnuMVei7TdAkFVyKPVRnlLniMA1PU8+lvgSbdjpkBWXN5NAKi8PZR mStMdCoUAvWIVNAO4m3HL6FjcS9GuzrRRPccJSv8IBolFjaZWYjj8BvTHNoFEPu7oFHn m8KdUzA458Xl+vcGwuzaWgrCXMgZyKodQr+ROa7vQcS2V5OFaW2mjohNLnQNEaaFG2Hg IlWKACJ1PM/7Vbz23yMSkgNDpYT+qMIaAFXcLZEJOaZP7K1bdH1LbHEHXsNR5I9JcFuf Jz4MxX0zmMtuIGXvt2QRtYhv1FOnMON7Z+Q6h6UBwS/Yt+e/2F/M12OToLUUbObSCQEE meNw== X-Gm-Message-State: AOJu0YyB8ZV9EhgimTwf1WUMV0shv5fbFvRKZ54jeYu6QEHk16NNg9BX D1AgjmxT3JKXC4owFyjMCAozgA== X-Google-Smtp-Source: AGHT+IGgrQuoXz9aS84oakVKvlIXt016m8KWKC6TXzUrZ9EvF6saHWaaHxHERtYqyDBBSLnEetkBeg== X-Received: by 2002:a17:90b:3852:b0:281:3a2:80ee with SMTP id nl18-20020a17090b385200b0028103a280eemr5538394pjb.14.1700923250627; Sat, 25 Nov 2023 06:40:50 -0800 (PST) Received: from localhost.localdomain ([2405:201:c00a:a208:d471:6d33:4b36:d85]) by smtp.gmail.com with ESMTPSA id h15-20020a17090aea8f00b002802d264240sm4817998pjz.29.2023.11.25.06.40.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Nov 2023 06:40:50 -0800 (PST) From: Jagan Teki To: Heiko Stuebner , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, Jagan Teki Subject: [PATCH 08/10] arm64: dts: rockchip: Add Edgeble NCM6A-IO M.2 M-Key Date: Sat, 25 Nov 2023 20:10:10 +0530 Message-Id: <20231125144012.58668-9-jagan@edgeble.ai> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231125144012.58668-1-jagan@edgeble.ai> References: <20231125144012.58668-1-jagan@edgeble.ai> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231125_064051_220967_7530B030 X-CRM114-Status: GOOD ( 11.70 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Edgeble NCM6A-IO board has M.2 B-Key, E-Key via PCI3x2. Add support for it. Signed-off-by: Jagan Teki --- .../dts/rockchip/rk3588-edgeble-neu6a-io.dtsi | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588-edgeble-neu6a-io.dtsi b/arch/arm64/boot/dts/rockchip/rk3588-edgeble-neu6a-io.dtsi index 03a81f1dedf9..77fafcdc6fdf 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588-edgeble-neu6a-io.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3588-edgeble-neu6a-io.dtsi @@ -23,6 +23,19 @@ vcc3v3_pcie2x1l0: vcc3v3-pcie2x1l0-regulator { vin-supply = <&vcc_3v3_s3>; }; + vcc3v3_pcie3x2: vcc3v3-minipcie { + compatible = "regulator-fixed"; + enable-active-high; + gpios = <&gpio2 RK_PC4 GPIO_ACTIVE_HIGH>; /* PCIE_4G_PWEN */ + pinctrl-names = "default"; + pinctrl-0 = <&pcie3x2_vcc3v3_en>; + regulator-name = "vcc3v3_pcie3x2"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + startup-delay-us = <5000>; + vin-supply = <&vcc5v0_sys>; + }; + vcc3v3_pcie3x4: vcc3v3-pcie30 { compatible = "regulator-fixed"; enable-active-high; @@ -74,6 +87,15 @@ &pcie30phy { status = "okay"; }; +/* B-Key, E-Key */ +&pcie3x2 { + pinctrl-names = "default"; + pinctrl-0 = <&pcie3x2_rst>; + reset-gpios = <&gpio4 RK_PB6 GPIO_ACTIVE_HIGH>; /* PCIE30X4_PERSTn_M1_L */ + vpcie3v3-supply = <&vcc3v3_pcie3x2>; + status = "okay"; +}; + /* M-Key */ &pcie3x4 { pinctrl-names = "default"; @@ -91,6 +113,14 @@ pcie2_0_rst: pcie2-0-rst { }; pcie3 { + pcie3x2_rst: pcie3x2-rst { + rockchip,pins = <4 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>; + }; + + pcie3x2_vcc3v3_en: pcie3x2-vcc3v3-en { + rockchip,pins = <2 RK_PC4 RK_FUNC_GPIO &pcfg_pull_none>; + }; + pcie3x4_rst: pcie3x4-rst { rockchip,pins = <4 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>; };