From patchwork Sat Nov 25 19:05:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 13468636 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 9D004C4167B for ; Sat, 25 Nov 2023 19:06:46 +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=8YBa0DzmnqTuzg4tO68olCKKTyCV6AYLrLhQ8RuBzqM=; b=q89I/yLWrHSE08 fM9GM4fVkLvDcWphgOdX0MPLdgb21IOWUrq6oXHl5we+qBjaW5VrOZVBApgfhk8oeFNhPmnkeMNlC lGq44yNIq/GEfoZ9rd6UBf5fbXS7UJW8wMTpwIGkFiCFKkBI92qcdp4AzD2AJtRFe//bQ2n66atWe AgaJ6klZJUJ6UVt8z8fSvlDuVxE5E2qeLV1MviAsLQ0xcrYf8bg+3aCP36RR9R38wSNPVxSVKQnn1 lMOLVlnKpG9CMS3ismaQ+5+VVfZu4i1fAfcwMNLcB0FJdqWv2LAeNqJhruyKEBKrASH7Uwbwccsom bunVnSN3Hl9HaggyXYVA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r6xyx-009fwP-0v; Sat, 25 Nov 2023 19:06:23 +0000 Received: from mail-pf1-x436.google.com ([2607:f8b0:4864:20::436]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r6xyU-009faw-0K for linux-arm-kernel@lists.infradead.org; Sat, 25 Nov 2023 19:05:55 +0000 Received: by mail-pf1-x436.google.com with SMTP id d2e1a72fcca58-6c3363a2b93so2768847b3a.3 for ; Sat, 25 Nov 2023 11:05:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=edgeble-ai.20230601.gappssmtp.com; s=20230601; t=1700939150; x=1701543950; 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=+r9JkMSXMkIhlM1pZxLOCkmDOSmodf2EcKndLoszrIA=; b=hAETnfVz03i5hINod4tDcvg6ch3TGE/3aM/eEfKwj0WGVFMDhVn1uDuEvhHeQuCC+i HJTHX67pSqSOchYujzEtGZ+lkrF5qhIsFZz/i98Hsr3PtOrUKf4TYUmV4fU6RxDYkzC7 Uo0fyakGcz6SvZI8jA7BWB/VAP4RNsxlyDdNWZih99TDZwHECUbAAOAKxMoh+2kwjFJD dplqM4FiESjBMAZDjE7ArQT+z43RJ2kyRTcZQGv1HkGVR7Y0utrLnelxLvvQyB+uuMBN r/pCWikHKAx0bBzHHkY1ZswGXMF9NX9XobbwlRRgNPuOVnEOJsKb10U4h9CqO+5Hfqxy /YyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700939150; x=1701543950; 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=+r9JkMSXMkIhlM1pZxLOCkmDOSmodf2EcKndLoszrIA=; b=iswCvwZUn2wZV0wR6m2wgkhfqbi4YESPy3GqUmQMTro/zs2Sf2CiDaZ9qBh4virb5p CI2U7kjJl1h5XrODBeSluvzEP3dgp3hnUCInGwpGzm0A68sQ9B+iMtRx3KmoMag6OBFY 4r6vPLSUsFrk2mTHqrmWxTUf2DMUgeG8Hl8TvMDW6vEMTQWntBG7yWXKY6wSOrPrqCI9 JYEXbIaVGcROeRzLz48rngv0wr9KKHphduuuxJD9qgMP1f43NMIhNqakxqtudXrKx5PW ajxP8giR9zK+C5lFkr8Idhrj7SXBMnUxwcnCyOJe9jqYNRs4Sq8bFEZYc//b0qDjYQBa A40A== X-Gm-Message-State: AOJu0YyWT9NZEAAeQjJUXKmkRnWmEpHFkpmiZFa9YF5fw0R/E0rZw9Jb uaZWnN0U+rMmOWBxXi86l5/CAw== X-Google-Smtp-Source: AGHT+IHZPnt9ap5ezpFrwM0Ask4IRkYU42Nc0A3PbHPDF29b74vh0H4K6wsQqLMEl/GgpJkdDWBxnw== X-Received: by 2002:a05:6a21:192:b0:18b:5b7e:6b9 with SMTP id le18-20020a056a21019200b0018b5b7e06b9mr10703956pzb.2.1700939150220; Sat, 25 Nov 2023 11:05:50 -0800 (PST) Received: from localhost.localdomain ([2405:201:c00a:a208:d471:6d33:4b36:d85]) by smtp.gmail.com with ESMTPSA id j26-20020a62b61a000000b006cbb7e27091sm4810529pff.175.2023.11.25.11.05.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Nov 2023 11:05:49 -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 v2 07/10] arm64: dts: rockchip: Add Edgeble NCM6A-IO M.2 M-Key Date: Sun, 26 Nov 2023 00:35:19 +0530 Message-Id: <20231125190522.87607-8-jagan@edgeble.ai> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231125190522.87607-1-jagan@edgeble.ai> References: <20231125190522.87607-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_110554_145944_07FBA5A3 X-CRM114-Status: GOOD ( 12.27 ) 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 M-Key via PCI3x4. Add support for it. Signed-off-by: Jagan Teki --- Changes for v2: - suffix '-regulator' - use proper node name .../dts/rockchip/rk3588-edgeble-neu6a-io.dtsi | 36 +++++++++++++++++++ 1 file changed, 36 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 7e838d76fa73..088a10fe042c 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588-edgeble-neu6a-io.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3588-edgeble-neu6a-io.dtsi @@ -22,6 +22,19 @@ vcc3v3_pcie2x1l0: vcc3v3-pcie2x1l0-regulator { startup-delay-us = <5000>; vin-supply = <&vcc_3v3_s3>; }; + + vcc3v3_pcie3x4: vcc3v3-pcie3x4-regulator { + compatible = "regulator-fixed"; + enable-active-high; + gpios = <&gpio2 RK_PC5 GPIO_ACTIVE_HIGH>; /* PCIE30x4_PWREN_H */ + pinctrl-names = "default"; + pinctrl-0 = <&pcie3x4_vcc3v3_en>; + regulator-name = "vcc3v3_pcie3x4"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + startup-delay-us = <5000>; + vin-supply = <&vcc5v0_sys>; + }; }; &combphy0_ps { @@ -57,6 +70,19 @@ &pcie2x1l0 { status = "okay"; }; +&pcie30phy { + status = "okay"; +}; + +/* M-Key */ +&pcie3x4 { + pinctrl-names = "default"; + pinctrl-0 = <&pcie3x4_rst>; + reset-gpios = <&gpio4 RK_PB0 GPIO_ACTIVE_HIGH>; /* PCIE30X2_PERSTn_M1_L */ + vpcie3v3-supply = <&vcc3v3_pcie3x4>; + status = "okay"; +}; + &pinctrl { pcie2 { pcie2_0_rst: pcie2-0-rst { @@ -64,6 +90,16 @@ pcie2_0_rst: pcie2-0-rst { }; }; + pcie3 { + pcie3x4_rst: pcie3x4-rst { + rockchip,pins = <4 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>; + }; + + pcie3x4_vcc3v3_en: pcie3x4-vcc3v3-en { + rockchip,pins = <2 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + hym8563 { hym8563_int: hym8563-int { rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>;