Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp233469rdh; Thu, 26 Oct 2023 00:02:16 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH/QRISsZnV9VYuoAGcqPsK0H/lIXBDEFI2ROdOGz+xSCtMPpK42MSizTFAVl29cHMQCP/J X-Received: by 2002:aca:1004:0:b0:3a9:e8e2:57a7 with SMTP id 4-20020aca1004000000b003a9e8e257a7mr16260925oiq.53.1698303736631; Thu, 26 Oct 2023 00:02:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698303736; cv=none; d=google.com; s=arc-20160816; b=pBTNL5T4eY7MZ/DgMmvVTOVzEGH7OMMHE930KERWVJkcgVJZVUwPdMtocsip3iL8mg osKjFEXQY3KCTVzXFA7IhzPcsOOphRsimq2nLtAiPP2dptaqQuEVP0yhHvz5hH8nMtPo 3TNU0tf/WNibx1yCZrJskYHlzaWMQhqt4MtL2932qMuAC/N7dJVRWOMHCfX/gEMITd1f qF9O2aHPlePDfjMFQpAsY8iL25O6Tm48QHQ7lNIUtrfYPnuR2GHAtRX5MKBHWJDr82IY QTR1IWMJ//vFyZ5Y4GNxIRWOEEU3C0sRnjRP34DPPBYUjsSy/q1ucFpB/oFNRNQFY0oV /qIw== 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=VDY0EWWGwv+yfJLuMqQC2ymYEh7CvRt4Ch+U6+xZtdg=; fh=wRy+0P4PRbqeISr0G5B5SsLmRsUbmsPjMVMxcl8infM=; b=fppLRwfZJAmQJQ7MzTbISDKk5SPHtr5spn1BCsTF8SAx0KfoRy1GjLCM2GT4MaTyeV dx2lXPqYvBDIfAitX2xFs8KNlPdel42PlVZgl5f//pahxmduUvgxiOdz7KDoIMal/BVV jSE6/mDPNn2HZDSHXFuTytlWSet/N+aJhY/lRUCH27n9ppYc90SdQQZwzD9D0QXjLPYq JjSlUe+9irRU9F396ogCLtPsRzPOY3K+MX/xiw+RWB1Y7MOAfaJnDta7HtVlgze0pV0j B0wxWc8wXQ1ivlZSbhCgi4HqpIDpqOd+Q2clzrF+hSmCTpNh3xvaWI1Sk0gHGeWRTR8/ BkhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="Qu63FuA/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id k16-20020a25b290000000b00d9cc5169043si12602285ybj.266.2023.10.26.00.02.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 00:02:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="Qu63FuA/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 5ABDB81BEEB5; Thu, 26 Oct 2023 00:02:15 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344311AbjJZHCM (ORCPT + 99 others); Thu, 26 Oct 2023 03:02:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229647AbjJZHCH (ORCPT ); Thu, 26 Oct 2023 03:02:07 -0400 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA2A71B1; Thu, 26 Oct 2023 00:02:04 -0700 (PDT) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 39Q71x8K090139; Thu, 26 Oct 2023 02:01:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1698303719; bh=VDY0EWWGwv+yfJLuMqQC2ymYEh7CvRt4Ch+U6+xZtdg=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=Qu63FuA/zyTX88Ad6uPDDFvKWhJRtv+swPiORUpEoeU8AGPyxsvkl4VAzEAw4K2/X 79gDHMHxN/NWLNHllIvie36JVvvXprM9iHNxxRYgAVYGDWtAHFM7RGe499WJLX8/en gYHIOADqpgz5j+61d4HDUHSOlMSaw6J1oI3YVDnU= Received: from DLEE103.ent.ti.com (dlee103.ent.ti.com [157.170.170.33]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 39Q71x3c125570 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 26 Oct 2023 02:01:59 -0500 Received: from DLEE107.ent.ti.com (157.170.170.37) by DLEE103.ent.ti.com (157.170.170.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Thu, 26 Oct 2023 02:01:59 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE107.ent.ti.com (157.170.170.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Thu, 26 Oct 2023 02:01:58 -0500 Received: from localhost (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 39Q71wUv061225; Thu, 26 Oct 2023 02:01:58 -0500 From: Nitin Yadav To: , , , , , CC: , , Subject: [PATCH 1/2] arm64: dts: ti: k3-am62a: Enable UHS mode support for SD cards Date: Thu, 26 Oct 2023 12:31:54 +0530 Message-ID: <20231026070155.1134063-2-n-yadav@ti.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231026070155.1134063-1-n-yadav@ti.com> References: <20231026070155.1134063-1-n-yadav@ti.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Thu, 26 Oct 2023 00:02:15 -0700 (PDT) Hook up required IO voltage regulators to support UHS modes on SD cards. Signed-off-by: Nitin Yadav --- arch/arm64/boot/dts/ti/k3-am62a7-sk.dts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts b/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts index 9f3dfbfbf369..3ae1ea1997a4 100644 --- a/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts +++ b/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts @@ -102,6 +102,19 @@ vdd_mmc1: regulator-3 { gpio = <&exp1 3 GPIO_ACTIVE_HIGH>; }; + vddshv_sdio: regulator-4 { + compatible = "regulator-gpio"; + regulator-name = "vddshv_sdio"; + pinctrl-names = "default"; + pinctrl-0 = <&vddshv_sdio_default_pins>; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + gpios = <&main_gpio0 31 GPIO_ACTIVE_HIGH>; + states = <1800000 0x0>, + <3300000 0x1>; + }; + leds { compatible = "gpio-leds"; pinctrl-names = "default"; @@ -189,6 +202,12 @@ AM62AX_IOPAD(0x1f8, PIN_INPUT_PULLUP, 0) /* (AC2) MMC0_DAT7 */ >; }; + vddshv_sdio_default_pins: vddshv-sdio-default-pins { + pinctrl-single,pins = < + AM62AX_IOPAD(0x07c, PIN_OUTPUT, 7) /* (M19) GPMC0_CLK.GPIO0_31 */ + >; + }; + main_mmc1_pins_default: main-mmc1-default-pins { pinctrl-single,pins = < AM62AX_IOPAD(0x23c, PIN_INPUT, 0) /* (A21) MMC1_CMD */ @@ -294,6 +313,7 @@ &sdhci1 { /* SD/MMC */ status = "okay"; vmmc-supply = <&vdd_mmc1>; + vqmmc-supply = <&vddshv_sdio>; pinctrl-names = "default"; pinctrl-0 = <&main_mmc1_pins_default>; ti,driver-strength-ohm = <50>; -- 2.25.1