[v3,6/8] ARM: dts: microchip: sama5d29_curiosity: Add power-supply properties for sdmmc nodes
Message ID | 20240206120322.88907-7-mihai.sain@microchip.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-54853-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp1491634dyb; Tue, 6 Feb 2024 04:10:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IGo0j2MIxAWh5l0Bm+6vRpa6zalpPXBkaZHfn3QzwJI0Jx6QvjaSPtnPf0odlXsxgkD4lXV X-Received: by 2002:a17:902:654f:b0:1d9:6cb4:3330 with SMTP id d15-20020a170902654f00b001d96cb43330mr1401335pln.12.1707221403469; Tue, 06 Feb 2024 04:10:03 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707221403; cv=pass; d=google.com; s=arc-20160816; b=wmvqx9Y22jW0mAAcISM4dBXHhU1X2XfN8aYxWi5nhf3Aa3haX5Tkfb03JQcLCm8bvw vmOdlLQgNjVC2c6BuKN/b1Z2VH+AiluuHNpDevrXZYWwWsC/8mU2GTQo6avrRf+7ZuTh KFh+39O4xzNwXatZC93lp181EB31TR68Idx4XzBZA1FtF924NZ4xE6hWAuA+7Vn5mPKn csHARu4djDl9XczZ9gn9YWX4JlDFwUAW1EIuLmZUjvZeU99sqEYw1UbOfMjK6khuNm3C ZJEmd5BMzBCIlw0kjEWQGZWRcInHmiJgVSAV82t79q41NGTONZeKC6Mkj5f1IPkDbyhV 9Lcw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=FFbo1O0Eb9t4LYdYTCkmoU624qbXJHbwkWcULG9nqVQ=; fh=12h84xjBc0L+E0xfhEdeP9tYOJe646qBECfQ6Zhm8UA=; b=OVCrh3J7qXJ2njWn/XjxWYFUqPcEtYIaWOwArX+qW+b7yrw2gxfNFEJoMDHqQ3sDyn dZw5MTbw6B9ltKhSMBEFeCQgIAl4laFyuSDNOaPUkDU8XFkIQJMclch3f4TctshQCP62 7qGL8zr0JZDL4q71x3glaY+Isl8pOHPmpHNjX33oW8rcjVujC/El69ZodkUCwRstorlQ CCPG6FVLTGnT4i4qMf4+Q45lAuKxiqY5P/fTQD8aHqlddTrIaYx1/MGYGPrArT9uSHYX 3TOuGyG3hcZTYMnOYCvUs0iSfIJX9Ldt+dYuKPO/Htu653+iTA2mVqsLHF2i18Yrd8X7 Thog==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=tImqvR3c; arc=pass (i=1 spf=pass spfdomain=microchip.com dkim=pass dkdomain=microchip.com dmarc=pass fromdomain=microchip.com); spf=pass (google.com: domain of linux-kernel+bounces-54853-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54853-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=microchip.com X-Forwarded-Encrypted: i=1; AJvYcCVU2n1GDn0ia09LXsrv79DtzKH/f5eYmfNxuvtDhcAqlyz5zfNpfMAJBZ2ZanWT6GUCEHQpVYdbnWDr0WnWZBbpCgTrJw== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id j15-20020a170903024f00b001d8aac2072csi1594239plh.172.2024.02.06.04.10.03 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 04:10:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-54853-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=tImqvR3c; arc=pass (i=1 spf=pass spfdomain=microchip.com dkim=pass dkdomain=microchip.com dmarc=pass fromdomain=microchip.com); spf=pass (google.com: domain of linux-kernel+bounces-54853-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54853-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=microchip.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 7B967288F11 for <ouuuleilei@gmail.com>; Tue, 6 Feb 2024 12:09:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C3FF1133435; Tue, 6 Feb 2024 12:04:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="tImqvR3c" Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6FB7C132C06; Tue, 6 Feb 2024 12:04:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=68.232.153.233 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707221049; cv=none; b=BJgBj6H6sCDjQ4UaqnEZHR7wJ/B6KgZhigo4VBBRiTvchzb/jO/P9dcNCKLeyhm4Q9J1Qhi0IwU6cEhg0VrMRlUevruwfiMSVD6Al4+DZwHof9A85SRmpW/+jvbI4FeGniIAlJ37334PL6A2XvbIw4vwbQJPzQ4JxQjqiDdFjhg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707221049; c=relaxed/simple; bh=GGCBkxCfAvpFW+a8iffFgSgfa1wQsNkoc0aZBARmSME=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=aW/l3zVcxwtckc2MeFHmO0h1CLtBdzYhKl5qan5F+UMJKeXBimDBhzpJ03hMO9VQnoDhHQS+WIjrzOKqkXIAJZqrTdcL9C0vA38RpPVp6Ez1ykvsGVmytvFz2c5NmEEDCR9beiXqFBi1a9AuqTD5RtZ9v6PrTW0Mi4v0u1oYuTI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=microchip.com; spf=pass smtp.mailfrom=microchip.com; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b=tImqvR3c; arc=none smtp.client-ip=68.232.153.233 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=microchip.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=microchip.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1707221047; x=1738757047; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=GGCBkxCfAvpFW+a8iffFgSgfa1wQsNkoc0aZBARmSME=; b=tImqvR3c4N7nfRxgHiiI0H7X1gyt5AzmZzzsoGl+DIlAXlczr7q/wY5g 3QnjD0bg0Xxl5SBs6Wejpz1qab/2U5q7PbQWpEoA9riG3tmi004pFtJpF 8xc/UD+Hgg5192/9DO/zIvZX6CmzspdqLCPMANbWq7vgwuiO5AnVNbqLO VMvDFxJgc18rFUM+6BHRpE26TU6Vw0sUCMOLjABUn6OWtFitgcAeUoVQQ grMAx6nMr+dul4aY7yir22H7iA5nSV88u1cDQjKMB/5pVYSrKrNq4sXmH oYKP3Y6m8vgtl6/EerWJPihKHn7y6XKYu9rpM3w2DenQzmu8urcAVMNBQ A==; X-CSE-ConnectionGUID: /iuDP2QxSliEsbGRCUpaQw== X-CSE-MsgGUID: 1EZtQPkgTx6jL2+GtY03YQ== X-IronPort-AV: E=Sophos;i="6.05,247,1701154800"; d="scan'208";a="17200242" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa1.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 06 Feb 2024 05:03:58 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.87.72) by chn-vm-ex02.mchp-main.com (10.10.87.72) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Tue, 6 Feb 2024 05:03:45 -0700 Received: from virtualbox.microchip.com (10.10.85.11) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Tue, 6 Feb 2024 05:03:43 -0700 From: Mihai Sain <mihai.sain@microchip.com> To: <claudiu.beznea@tuxon.dev>, <robh+dt@kernel.org>, <krzysztof.kozlowski+dt@linaro.org>, <conor+dt@kernel.org>, <nicolas.ferre@microchip.com>, <alexandre.belloni@bootlin.com>, <devicetree@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org>, <linux-kernel@vger.kernel.org> CC: Mihai Sain <mihai.sain@microchip.com> Subject: [PATCH v3 6/8] ARM: dts: microchip: sama5d29_curiosity: Add power-supply properties for sdmmc nodes Date: Tue, 6 Feb 2024 14:03:20 +0200 Message-ID: <20240206120322.88907-7-mihai.sain@microchip.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240206120322.88907-1-mihai.sain@microchip.com> References: <20240206120322.88907-1-mihai.sain@microchip.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790151390490637298 X-GMAIL-MSGID: 1790151390490637298 |
Series |
Add power-supply properties for sdmmc nodes on Microchip boards
|
|
Commit Message
Mihai Sain
Feb. 6, 2024, 12:03 p.m. UTC
The sdmmc0 and sdmmc1 controllers are powered from 3.3V regulator.
Add vmmc-supply and vqmmc-supply properties to sdmmc nodes.
The sdmmc controller from SAMA5D2 MPU has support for
IO voltage signaling/switching required by the UHS sd-card.
In order to avoid the issues from the tuning procedure required by
the UHS cards, keep the vqmmc at 3V3 to use the sd high-speed mode.
Signed-off-by: Mihai Sain <mihai.sain@microchip.com>
---
arch/arm/boot/dts/microchip/at91-sama5d29_curiosity.dts | 4 ++++
1 file changed, 4 insertions(+)
Comments
On 06.02.2024 14:03, Mihai Sain wrote: > The sdmmc0 and sdmmc1 controllers are powered from 3.3V regulator. Same here (for SDMMC0), according to https://ww1.microchip.com/downloads/aemDocuments/documents/MPU32/ProductDocuments/UserGuides/SAMA5D29-Curiosity-EV07R15A-Users-Guide-DS60001822.pdf > Add vmmc-supply and vqmmc-supply properties to sdmmc nodes. > The sdmmc controller from SAMA5D2 MPU has support for > IO voltage signaling/switching required by the UHS sd-card. > In order to avoid the issues from the tuning procedure required by > the UHS cards, keep the vqmmc at 3V3 to use the sd high-speed mode. > > Signed-off-by: Mihai Sain <mihai.sain@microchip.com> > --- > arch/arm/boot/dts/microchip/at91-sama5d29_curiosity.dts | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/arch/arm/boot/dts/microchip/at91-sama5d29_curiosity.dts b/arch/arm/boot/dts/microchip/at91-sama5d29_curiosity.dts > index 6b02b7bcfd49..4a86597d089a 100644 > --- a/arch/arm/boot/dts/microchip/at91-sama5d29_curiosity.dts > +++ b/arch/arm/boot/dts/microchip/at91-sama5d29_curiosity.dts > @@ -504,6 +504,8 @@ &sdmmc0 { > pinctrl-names = "default"; > pinctrl-0 = <&pinctrl_sdmmc0_default>; > disable-wp; > + vmmc-supply = <&vdd_3v3>; > + vqmmc-supply = <&vdd_3v3>; > status = "okay"; > }; > > @@ -512,6 +514,8 @@ &sdmmc1 { > pinctrl-names = "default"; > pinctrl-0 = <&pinctrl_sdmmc1_default>; > disable-wp; > + vmmc-supply = <&vdd_3v3>; > + vqmmc-supply = <&vdd_3v3>; > status = "okay"; > }; >
diff --git a/arch/arm/boot/dts/microchip/at91-sama5d29_curiosity.dts b/arch/arm/boot/dts/microchip/at91-sama5d29_curiosity.dts index 6b02b7bcfd49..4a86597d089a 100644 --- a/arch/arm/boot/dts/microchip/at91-sama5d29_curiosity.dts +++ b/arch/arm/boot/dts/microchip/at91-sama5d29_curiosity.dts @@ -504,6 +504,8 @@ &sdmmc0 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_sdmmc0_default>; disable-wp; + vmmc-supply = <&vdd_3v3>; + vqmmc-supply = <&vdd_3v3>; status = "okay"; }; @@ -512,6 +514,8 @@ &sdmmc1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_sdmmc1_default>; disable-wp; + vmmc-supply = <&vdd_3v3>; + vqmmc-supply = <&vdd_3v3>; status = "okay"; };