From nobody Sat May 4 15:28:46 2024 Delivered-To: importer2@patchew.org Received-SPF: pass (zohomail.com: domain of vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; envelope-from=linux-kernel-owner@vger.kernel.org; helo=vger.kernel.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail(p=quarantine dis=quarantine) header.from=ti.com ARC-Seal: i=1; a=rsa-sha256; t=1617792202; cv=none; d=zohomail.com; s=zohoarc; b=RXzZzRGdD9nImyGSJGpcov+AoUervZnjoACAXJtvKukiT2XYVUcdAc3XWAM1MoBAKi9c/5njbgN32jE1yq1v7cDzgpdGKCldTHVXdq0pkV5FRgcEzCraxsF/fkTMjc1L/0zVWvpCzC8YfveAWC0VTevCVsWnHUqWNEIVEbsQ0K0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1617792202; h=Content-Type:Cc:Date:From:List-Id:MIME-Version:Message-ID:Subject:To; bh=F1n6gbGW6vSa3ouqdmSuOTfCrAe3ZvjZ80iuQS1yWPA=; b=djAONy96HkGI0lXbFlCXNv7tF0wHf2KpIzRjnaHBSqjKOLhOGazCH8TPVoqhkAYQlZ65dyyuyAJKBuQumskE9Z3lva/75UVAIwjJ/bsdZRqNhWNv68PEjBrdA8Pg0f4dOaDDFQuRDu/pxVPrIFSDuP79IkFtPiqOGD2nbGKpt+4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail header.from= (p=quarantine dis=quarantine) header.from= Return-Path: Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mx.zohomail.com with SMTP id 1617792202003886.4719901897836; Wed, 7 Apr 2021 03:43:22 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239646AbhDGKna (ORCPT ); Wed, 7 Apr 2021 06:43:30 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:37226 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234267AbhDGKn2 (ORCPT ); Wed, 7 Apr 2021 06:43:28 -0400 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 137Ah9QP124245; Wed, 7 Apr 2021 05:43:09 -0500 Received: from DLEE109.ent.ti.com (dlee109.ent.ti.com [157.170.170.41]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 137Ah9nU026996 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 7 Apr 2021 05:43:09 -0500 Received: from DLEE102.ent.ti.com (157.170.170.32) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Wed, 7 Apr 2021 05:43:09 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE102.ent.ti.com (157.170.170.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2 via Frontend Transport; Wed, 7 Apr 2021 05:43:09 -0500 Received: from gsaswath-HP-ProBook-640-G5.dal.design.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 137Ah6kS081028; Wed, 7 Apr 2021 05:43:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1617792189; bh=F1n6gbGW6vSa3ouqdmSuOTfCrAe3ZvjZ80iuQS1yWPA=; h=From:To:CC:Subject:Date; b=jVHHW5VH2hFRXkmax4OyfI9BbkUrjDF/q7/tboMLMYeegaoin+VTS71Mq7/dnyr0A fQQVdrnW5Scp/cSP+1QLPJXP4IilJbWwVXIfyy2twAYxhtq+7rl4pgwjKcgG8gwUdJ B4KvjFykl6PZb4I7QBsQFFAbDeQ5yyQ//bvhP5o0= From: Aswath Govindraju CC: Vignesh Raghavendra , Lokesh Vutla , Kishon Vijay Abraham I , Aswath Govindraju , Nishanth Menon , Tero Kristo , Rob Herring , , , Subject: [PATCH] arm64: dts: ti: k3-am65: Add support for UHS-I modes in MMCSD1 subsystem Date: Wed, 7 Apr 2021 16:13:03 +0530 Message-ID: <20210407104303.25950-1-a-govindraju@ti.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" UHS-I speed modes are supported in AM65 S.R. 2.0 SoC[1]. Add support by removing the no-1-8-v tag and including the voltage regulator device tree nodes for power cycling. [1] - https://www.ti.com/lit/ug/spruid7e/spruid7e.pdf, section 12.3.6.1.1 Signed-off-by: Aswath Govindraju --- test logs: https://pastebin.ubuntu.com/p/vpYbY9QWh8/ arch/arm64/boot/dts/ti/k3-am65-main.dtsi | 1 - .../arm64/boot/dts/ti/k3-am654-base-board.dts | 33 +++++++++++++++++++ 2 files changed, 33 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/ti/k3-am65-main.dtsi b/arch/arm64/boot/dts= /ti/k3-am65-main.dtsi index cb340d1b401f..632f32fce4a1 100644 --- a/arch/arm64/boot/dts/ti/k3-am65-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am65-main.dtsi @@ -301,7 +301,6 @@ ti,otap-del-sel =3D <0x2>; ti,trm-icp =3D <0x8>; dma-coherent; - no-1-8-v; }; =20 scm_conf: scm-conf@100000 { diff --git a/arch/arm64/boot/dts/ti/k3-am654-base-board.dts b/arch/arm64/bo= ot/dts/ti/k3-am654-base-board.dts index 9e87fb313a54..6f7292b6fe0a 100644 --- a/arch/arm64/boot/dts/ti/k3-am654-base-board.dts +++ b/arch/arm64/boot/dts/ti/k3-am654-base-board.dts @@ -91,6 +91,38 @@ #clock-cells =3D <0>; clock-frequency =3D <24000000>; }; + + evm_12v0: fixedregulator-evm12v0 { + /* main supply */ + compatible =3D "regulator-fixed"; + regulator-name =3D "evm_12v0"; + regulator-min-microvolt =3D <12000000>; + regulator-max-microvolt =3D <12000000>; + regulator-always-on; + regulator-boot-on; + }; + + vcc3v3_io: fixedregulator-vcc3v3io { + /* Output of TPS54334 */ + compatible =3D "regulator-fixed"; + regulator-name =3D "vcc3v3_io"; + regulator-min-microvolt =3D <3300000>; + regulator-max-microvolt =3D <3300000>; + regulator-always-on; + regulator-boot-on; + vin-supply =3D <&evm_12v0>; + }; + + vdd_mmc1_sd: fixedregulator-sd { + compatible =3D "regulator-fixed"; + regulator-name =3D "vdd_mmc1_sd"; + regulator-min-microvolt =3D <3300000>; + regulator-max-microvolt =3D <3300000>; + regulator-boot-on; + enable-active-high; + vin-supply =3D <&vcc3v3_io>; + gpio =3D <&pca9554 4 GPIO_ACTIVE_HIGH>; + }; }; =20 &wkup_pmx0 { @@ -350,6 +382,7 @@ * disable sdhci1 */ &sdhci1 { + vmmc-supply =3D <&vdd_mmc1_sd>; pinctrl-names =3D "default"; pinctrl-0 =3D <&main_mmc1_pins_default>; ti,driver-strength-ohm =3D <50>; --=20 2.17.1