Message ID | 20230327083100.12587-1-a-nandan@ti.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1358783vqo; Mon, 27 Mar 2023 01:41:49 -0700 (PDT) X-Google-Smtp-Source: AKy350bKE9WFeBf9jNDyE+jjR4EXMEjeIyhF4D44O+y+D8xUCmwKluAeRVgvv5LeEPiuXEl8IDqp X-Received: by 2002:a17:90b:1a8b:b0:23f:4370:2c67 with SMTP id ng11-20020a17090b1a8b00b0023f43702c67mr11571038pjb.26.1679906509778; Mon, 27 Mar 2023 01:41:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679906509; cv=none; d=google.com; s=arc-20160816; b=H/2Vtld4SdqH6LhIvm/oxR4ivCQUkl4TOlnaJSK4MSn3Q09hVCixaUJhX+EHIIGS0O XdBQcOvtrcyz4Ch97+LB358KvXeh2PaS01bYugx8JqoHOPBT1n0LIIyONbcJ98XdUV5j yCl+E1W5yV+SnCBuKnUxk18bpeMKAB90vwnycLgfLzrG32SeWUyfRhLY3Gywu2KZKrbh FzFEHyNkWHtOsDzHnnb6xlasP4VTo7nxbNkpGORJ8owufmSR7q1XVdiTjaGfE2gWAr46 JmWO39G4spxmla7VRy42Xt0Hmy8cSKIcPLMPH1yDWZIh0UqyxI/ufnG0jEzlRy1Z7tS4 Pupw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=BppbkJnUwX1hnpY0dz4TOhs1NIDT6BbXPKDS29uuRLU=; b=w78nl09mBO66JL79y8MrZ3ai8WlzSEbO4sTh7tkPT69taHctpcVnQkpDu0KrafhmmV Mrha+o9qpDN25+bMIh7xnt9j0yxPSWR1GQSzRQcPPpP6uXYRUTXfmCdVMlcYEh3iHtXX BaSQZiXj1updjgVaMmcmTnSpMz3fP8tHA6mwV8jX+4+rY2F4PrGVa+cIE5EjPyXjJn+D Z+SPcIVYAFTUPOURiz9vHy35u8Ka0/u16pp14eTcj+nLi2k9wIm4F58zhfXdRUbYgsa3 BzeJJIS1fOpEjNOlQ/UMBbcV3RgbX33SKI3mJ+uG2trW8JH3cfhX3UoHvTxMbDr98wtm rYzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=r7AaL5hG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m5-20020a170902768500b0019f2506251dsi25915107pll.190.2023.03.27.01.41.35; Mon, 27 Mar 2023 01:41:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=r7AaL5hG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233327AbjC0Ihd (ORCPT <rfc822;makky5685@gmail.com> + 99 others); Mon, 27 Mar 2023 04:37:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233046AbjC0IhF (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 27 Mar 2023 04:37:05 -0400 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 599F67299; Mon, 27 Mar 2023 01:31:45 -0700 (PDT) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 32R8V4Kx105347; Mon, 27 Mar 2023 03:31:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1679905864; bh=BppbkJnUwX1hnpY0dz4TOhs1NIDT6BbXPKDS29uuRLU=; h=From:To:CC:Subject:Date; b=r7AaL5hGPYAJHsnlmjPD2PRUmiiTeVx/DQb53+HkCE4A1cxjCr4zBVWBxjppLWa0F Ruqsl9M3QYyrJxQUvmaSbecuuLI3HeAs/B50DizYWGiSU4ikemyPgn0Z3x3hoDXnoL Y6dNkAkb7lN0k4XCUlqrnrCzw09vbnIngS+PJ/7I= Received: from DFLE100.ent.ti.com (dfle100.ent.ti.com [10.64.6.21]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 32R8V4ad129553 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 27 Mar 2023 03:31:04 -0500 Received: from DFLE111.ent.ti.com (10.64.6.32) by DFLE100.ent.ti.com (10.64.6.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Mon, 27 Mar 2023 03:31:03 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE111.ent.ti.com (10.64.6.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16 via Frontend Transport; Mon, 27 Mar 2023 03:31:03 -0500 Received: from LT5CD112GSQZ.dhcp.ti.com (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 32R8V0KG100230; Mon, 27 Mar 2023 03:31:01 -0500 From: Apurva Nandan <a-nandan@ti.com> To: Nishanth Menon <nm@ti.com>, Vignesh Raghavendra <vigneshr@ti.com>, Tero Kristo <kristo@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, <linux-arm-kernel@lists.infradead.org>, <devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org> CC: Apurva Nandan <a-nandan@ti.com> Subject: [PATCH] arm64: dts: ti: k3-j784s4-evm: Add eMMC mmc0 support Date: Mon, 27 Mar 2023 14:01:00 +0530 Message-ID: <20230327083100.12587-1-a-nandan@ti.com> X-Mailer: git-send-email 2.25.1 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=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_PASS, SPF_PASS autolearn=unavailable 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761509647966783419?= X-GMAIL-MSGID: =?utf-8?q?1761509647966783419?= |
Series |
arm64: dts: ti: k3-j784s4-evm: Add eMMC mmc0 support
|
|
Commit Message
Apurva Nandan
March 27, 2023, 8:31 a.m. UTC
Add support for eMMC card connected to main sdhci0 instance.
Signed-off-by: Apurva Nandan <a-nandan@ti.com>
---
arch/arm64/boot/dts/ti/k3-j784s4-evm.dts | 9 +++++++++
1 file changed, 9 insertions(+)
Comments
On 27/03/23 14:01, Apurva Nandan wrote: > Add support for eMMC card connected to main sdhci0 instance. > > Signed-off-by: Apurva Nandan <a-nandan@ti.com> Reviewed-by: Bhavya Kapoor <b-kapoor@ti.com> > --- > arch/arm64/boot/dts/ti/k3-j784s4-evm.dts | 9 +++++++++ > 1 file changed, 9 insertions(+) > > diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts b/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts > index 7480f37e89e8..1622a01a4667 100644 > --- a/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts > +++ b/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts > @@ -21,6 +21,7 @@ chosen { > > aliases { > serial2 = &main_uart8; > + mmc0 = &main_sdhci0; > mmc1 = &main_sdhci1; > i2c0 = &main_i2c0; > }; > @@ -225,6 +226,14 @@ exp2: gpio@22 { > }; > }; > > +&main_sdhci0 { > + /* eMMC */ > + status = "okay"; > + non-removable; > + ti,driver-strength-ohm = <50>; > + disable-wp; > +}; > + > &main_sdhci1 { > /* SD card */ > status = "okay"; > -- > 2.34.1 Looks correct to me.
On 11:50-20230330, Bhavya Kapoor wrote: > > On 27/03/23 14:01, Apurva Nandan wrote: > > Add support for eMMC card connected to main sdhci0 instance. > > > > Signed-off-by: Apurva Nandan <a-nandan@ti.com> > > Reviewed-by: Bhavya Kapoor <b-kapoor@ti.com> > > > --- > > arch/arm64/boot/dts/ti/k3-j784s4-evm.dts | 9 +++++++++ > > 1 file changed, 9 insertions(+) > > > > diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts b/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts > > index 7480f37e89e8..1622a01a4667 100644 > > --- a/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts > > +++ b/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts > > @@ -21,6 +21,7 @@ chosen { > > > > aliases { > > serial2 = &main_uart8; > > + mmc0 = &main_sdhci0; > > mmc1 = &main_sdhci1; > > i2c0 = &main_i2c0; > > }; > > @@ -225,6 +226,14 @@ exp2: gpio@22 { > > }; > > }; > > > > +&main_sdhci0 { > > + /* eMMC */ > > + status = "okay"; > > + non-removable; > > + ti,driver-strength-ohm = <50>; > > + disable-wp; > > +}; > > + > > &main_sdhci1 { > > /* SD card */ > > status = "okay"; > > -- > > 2.34.1 > Looks correct to me. Don't you need pinmux?
On 30/03/23 20:54, Nishanth Menon wrote: > On 11:50-20230330, Bhavya Kapoor wrote: >> On 27/03/23 14:01, Apurva Nandan wrote: >>> Add support for eMMC card connected to main sdhci0 instance. >>> >>> Signed-off-by: Apurva Nandan <a-nandan@ti.com> >> Reviewed-by: Bhavya Kapoor <b-kapoor@ti.com> >> >>> --- >>> arch/arm64/boot/dts/ti/k3-j784s4-evm.dts | 9 +++++++++ >>> 1 file changed, 9 insertions(+) >>> >>> diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts b/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts >>> index 7480f37e89e8..1622a01a4667 100644 >>> --- a/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts >>> +++ b/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts >>> @@ -21,6 +21,7 @@ chosen { >>> >>> aliases { >>> serial2 = &main_uart8; >>> + mmc0 = &main_sdhci0; >>> mmc1 = &main_sdhci1; >>> i2c0 = &main_i2c0; >>> }; >>> @@ -225,6 +226,14 @@ exp2: gpio@22 { >>> }; >>> }; >>> >>> +&main_sdhci0 { >>> + /* eMMC */ >>> + status = "okay"; >>> + non-removable; >>> + ti,driver-strength-ohm = <50>; >>> + disable-wp; >>> +}; >>> + >>> &main_sdhci1 { >>> /* SD card */ >>> status = "okay"; >>> -- >>> 2.34.1 >> Looks correct to me. > > Don't you need pinmux? > Hi Nishanth, pinmux is not needed since there is no mux options for emmc pins (mmc0) in datasheet. -> Kindly refer to datasheet for same : https://www.ti.com/lit/ds/symlink/tda4vh-q1.pdf?ts=1680197698102&ref_url=https%253A%252F%252Fwww.ti.com%252Fproduct%252FTDA4VH-Q1%253FkeyMatch%253DTDA4VH%2BDATASHEET Regards ~B-Kapoor
On 23:14-20230330, Bhavya Kapoor wrote: > > On 30/03/23 20:54, Nishanth Menon wrote: > > On 11:50-20230330, Bhavya Kapoor wrote: > >> On 27/03/23 14:01, Apurva Nandan wrote: > >>> Add support for eMMC card connected to main sdhci0 instance. > >>> > >>> Signed-off-by: Apurva Nandan <a-nandan@ti.com> > >> Reviewed-by: Bhavya Kapoor <b-kapoor@ti.com> > >> > >>> --- > >>> arch/arm64/boot/dts/ti/k3-j784s4-evm.dts | 9 +++++++++ > >>> 1 file changed, 9 insertions(+) > >>> > >>> diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts b/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts > >>> index 7480f37e89e8..1622a01a4667 100644 > >>> --- a/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts > >>> +++ b/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts > >>> @@ -21,6 +21,7 @@ chosen { > >>> > >>> aliases { > >>> serial2 = &main_uart8; > >>> + mmc0 = &main_sdhci0; > >>> mmc1 = &main_sdhci1; > >>> i2c0 = &main_i2c0; > >>> }; > >>> @@ -225,6 +226,14 @@ exp2: gpio@22 { > >>> }; > >>> }; > >>> > >>> +&main_sdhci0 { > >>> + /* eMMC */ > >>> + status = "okay"; > >>> + non-removable; > >>> + ti,driver-strength-ohm = <50>; > >>> + disable-wp; > >>> +}; > >>> + > >>> &main_sdhci1 { > >>> /* SD card */ > >>> status = "okay"; > >>> -- > >>> 2.34.1 > >> Looks correct to me. > > > > Don't you need pinmux? > > > Hi Nishanth, pinmux is not needed since there is no mux options for emmc pins (mmc0) in datasheet. > > -> Kindly refer to datasheet for same : https://www.ti.com/lit/ds/symlink/tda4vh-q1.pdf?ts=1680197698102&ref_url=https%253A%252F%252Fwww.ti.com%252Fproduct%252FTDA4VH-Q1%253FkeyMatch%253DTDA4VH%2BDATASHEET Aah, yes - thanks for clarifying.
Hi Apurva Nandan, On Mon, 27 Mar 2023 14:01:00 +0530, Apurva Nandan wrote: > Add support for eMMC card connected to main sdhci0 instance. > > I have applied the following to branch ti-k3-dts-next on [1]. Thank you! [1/1] arm64: dts: ti: k3-j784s4-evm: Add eMMC mmc0 support commit: 891db0c48efb48c3af334006f9d7ea6a0aa49cb9 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent up the chain during the next merge window (or sooner if it is a relevant bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. [1] git://git.kernel.org/pub/scm/linux/kernel/git/ti/linux.git
diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts b/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts index 7480f37e89e8..1622a01a4667 100644 --- a/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts +++ b/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts @@ -21,6 +21,7 @@ chosen { aliases { serial2 = &main_uart8; + mmc0 = &main_sdhci0; mmc1 = &main_sdhci1; i2c0 = &main_i2c0; }; @@ -225,6 +226,14 @@ exp2: gpio@22 { }; }; +&main_sdhci0 { + /* eMMC */ + status = "okay"; + non-removable; + ti,driver-strength-ohm = <50>; + disable-wp; +}; + &main_sdhci1 { /* SD card */ status = "okay";