From patchwork Tue Feb 13 23:56:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Judith Mendez X-Patchwork-Id: 200744 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:bc8a:b0:106:860b:bbdd with SMTP id dn10csp880395dyb; Tue, 13 Feb 2024 15:58:15 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUbEG4Y6rb8qml9+OZsYrj1r+fg1e/BNATQpjqQIuX6Y9RDcvprZf3ijlUIagammbtY8gfalb+zL6X0bSqKGSiJvMk/rg== X-Google-Smtp-Source: AGHT+IGPdTABjBZXo21BZpIf2f3Wxefq/+nIWZCiNnN5QuuX+26RE0oqp2eWKR0q6OwkReit2FIA X-Received: by 2002:a17:906:f897:b0:a3d:25e3:d455 with SMTP id lg23-20020a170906f89700b00a3d25e3d455mr551785ejb.43.1707868695700; Tue, 13 Feb 2024 15:58:15 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707868695; cv=pass; d=google.com; s=arc-20160816; b=S695wh/v5OZYsoURAOfBe8E6ejDSyJLxkphhSDg2Oc6eW+NjpqMjMO4eHsU4aKkwSf 1fEtU/KJFGftVwtYwqlqsLvUKZ4jGvF2RRB9H+mlXBJ64BtT3XdCo6RO2M1pl296MbO5 EcagIHbv2c6t/rCCbFw6Z8EvR1Ht8Jm5chE7QFG+GEUy16Dh9hSRYqRVOnuw15rq8ERv QH/mdEuIUUvOTOuCEzemgxX2sWyifWE2+ypqJtRYpwopqosdXjpPL5JnuqfJjZd+qAoS UTUR7/gTXUaxWqvbGzajWWevg+KPhDknK8i7iDhMiRrH66fTZYfo3H28UIC1qEo37Czz XmMg== 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=IC7kRIKyFObrP/W+da1WQgI1+htnvFrJ5WDTTLcimCA=; fh=c7RYPvwhwmPfbrOjt0Eo0N/oFcPr0IYaz86ByHYc97E=; b=SrmelQ33nPIKfVf9aEKQ9E4II0HXWH1cVe8HiCVNhrmKLsAG+KxoJicSHJUHAfdREH Du6tNPA+DCQqrI4XiQm1kV0eS+lNQRXqBTzZ0QuQCtSAZnaoQAn8bXCq0EaBwSGTsQs0 Jj4WkzOAF+a4raMIm9Kcj81J1d7YAV2UvSNRe9J/F2QXWvntfO9JDFNYZbel84AoRM4e 9KKLbiZg5yZ5kyNRUAZfknkhvnqMVN8l/uhsls3DIE31cyi5VW+7IpV4fyR95J0TR6kw ee8gI+2bkafx6htphoMGiCwdd6osR3jqh4CAjPvAnZm1r6ICxjp+VdxcLPT5payiSpSz gPpQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=bCgSOrlC; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-64577-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64577-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com X-Forwarded-Encrypted: i=2; AJvYcCVISGeYjLrjPRv8TK+kM+CrMR7uZPMU4B1ZNQI5PNYbWM5yNxj0vfAowXoR484iHDlHLy8p0g8zjfjyYbKg3pjraDJODA== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id f7-20020a170906084700b00a3c1e0919d8si1646772ejd.247.2024.02.13.15.58.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 15:58:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-64577-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=bCgSOrlC; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-64577-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64577-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 247E01F2631D for ; Tue, 13 Feb 2024 23:58:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 37B5A64CF8; Tue, 13 Feb 2024 23:57:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="bCgSOrlC" Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) (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 0A3C9633F3; Tue, 13 Feb 2024 23:57:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.19.142 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707868638; cv=none; b=FUgst+NJO9aDElBZSVpG4hf1hfxKbyMpSwC9vIhfRBG5fknpg7NTsMB+2hJGyEvg3pkwqIRmGyuMO0Qq/c6Khy48+PXqDjqNYcFlvhCArAnO6MHwfcPRe6SdFSC8yY3dERwAi30lhOCiRswxXwlA4HOJasgwnjOcZP8aHY/AV+s= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707868638; c=relaxed/simple; bh=57r85c04iS9y0+WXgj8NTwDbeA0OfAOD5FJ8OH/vvkY=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=rn+IMjH0ZB/p2ERz2yGbGAyvPxGNxNLjZRikyo+AqmeuDWNIJceFhxgIvEIr0uE0LM39hiNATCli9NTjDKEkdwtFxzF9lVE0whVhstxywRSbgyO7vrFiXd6hlQi/5vT3UUr3z0kh69CRLQ9f+QTlS9LItAO7YEign5f6S/sonA4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=bCgSOrlC; arc=none smtp.client-ip=198.47.19.142 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 41DNv2St010139; Tue, 13 Feb 2024 17:57:02 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1707868622; bh=IC7kRIKyFObrP/W+da1WQgI1+htnvFrJ5WDTTLcimCA=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=bCgSOrlCR2oqr94yx/IJqnD76+FoQhTr8jCF2GzOKBcSkHXbjvdYXSlcPv2gkhVZK 2sNUdVjkAzndB5Sf9+g2RxqhdX16IxZbQEm6HwhTK66VFVnA8kh1KkSt2qE+WaProI bA//BwV63Q0owOg47KGpHRPNUsOs+OVogMCaJOVY= Received: from DLEE105.ent.ti.com (dlee105.ent.ti.com [157.170.170.35]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 41DNv2wn075705 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 13 Feb 2024 17:57:02 -0600 Received: from DLEE102.ent.ti.com (157.170.170.32) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Tue, 13 Feb 2024 17:57:01 -0600 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) 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.2507.23 via Frontend Transport; Tue, 13 Feb 2024 17:57:01 -0600 Received: from judy-hp.dhcp.ti.com (judy-hp.dhcp.ti.com [128.247.81.105]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 41DNv1R7091761; Tue, 13 Feb 2024 17:57:01 -0600 From: Judith Mendez To: Rob Herring , Krzysztof Kozlowski , Conor Dooley CC: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , , , , Wadim Egorov , Francesco Dolcini Subject: [PATCH v3 3/9] arm64: dts: ti: k3-am62a7-sk: Enable eMMC support Date: Tue, 13 Feb 2024 17:56:55 -0600 Message-ID: <20240213235701.2438513-4-jm@ti.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240213235701.2438513-1-jm@ti.com> References: <20240213235701.2438513-1-jm@ti.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790830125707946898 X-GMAIL-MSGID: 1790830125707946898 From: Nitin Yadav Add support for 32GB eMMC card on AM62A7 SK. Includes adding mmc0 pins settings. Add mmc0 alias for sdhci0 in k3-am62a7-sk.dts. Signed-off-by: Nitin Yadav Signed-off-by: Judith Mendez --- Changes since V3: - No change --- arch/arm64/boot/dts/ti/k3-am62a7-sk.dts | 26 +++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts b/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts index f5ae91bf1bdb..c99b2e90f76d 100644 --- a/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts +++ b/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts @@ -20,6 +20,7 @@ aliases { serial0 = &wkup_uart0; serial2 = &main_uart0; serial3 = &main_uart1; + mmc0 = &sdhci0; mmc1 = &sdhci1; }; @@ -263,6 +264,22 @@ AM62AX_IOPAD(0x0b4, PIN_INPUT_PULLUP, 1) /* (K24) GPMC0_CSn3.I2C2_SDA */ >; }; + main_mmc0_pins_default: main-mmc0-default-pins { + pinctrl-single,pins = < + AM62AX_IOPAD(0x220, PIN_INPUT, 0) /* (Y3) MMC0_CMD */ + AM62AX_IOPAD(0x218, PIN_INPUT, 0) /* (AB1) MMC0_CLKLB */ + AM62AX_IOPAD(0x21c, PIN_INPUT, 0) /* (AB1) MMC0_CLK */ + AM62AX_IOPAD(0x214, PIN_INPUT, 0) /* (AA2) MMC0_DAT0 */ + AM62AX_IOPAD(0x210, PIN_INPUT_PULLUP, 0) /* (AA1) MMC0_DAT1 */ + AM62AX_IOPAD(0x20c, PIN_INPUT_PULLUP, 0) /* (AA3) MMC0_DAT2 */ + AM62AX_IOPAD(0x208, PIN_INPUT_PULLUP, 0) /* (Y4) MMC0_DAT3 */ + AM62AX_IOPAD(0x204, PIN_INPUT_PULLUP, 0) /* (AB2) MMC0_DAT4 */ + AM62AX_IOPAD(0x200, PIN_INPUT_PULLUP, 0) /* (AC1) MMC0_DAT5 */ + AM62AX_IOPAD(0x1fc, PIN_INPUT_PULLUP, 0) /* (AD2) MMC0_DAT6 */ + AM62AX_IOPAD(0x1f8, PIN_INPUT_PULLUP, 0) /* (AC2) MMC0_DAT7 */ + >; + }; + main_mmc1_pins_default: main-mmc1-default-pins { pinctrl-single,pins = < AM62AX_IOPAD(0x23c, PIN_INPUT, 0) /* (A21) MMC1_CMD */ @@ -550,6 +567,15 @@ &main_i2c2 { clock-frequency = <400000>; }; +&sdhci0 { + /* eMMC */ + status = "okay"; + non-removable; + pinctrl-names = "default"; + pinctrl-0 = <&main_mmc0_pins_default>; + disable-wp; +}; + &sdhci1 { /* SD/MMC */ status = "okay";