From patchwork Fri Oct 27 09:39:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nitin Yadav X-Patchwork-Id: 158879 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:d641:0:b0:403:3b70:6f57 with SMTP id cy1csp476409vqb; Fri, 27 Oct 2023 02:40:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFpuAWyuF1FBaVyl/jHFM5HaHEU7Cgxp0UxtTAfXyNfu9Htd6GogAMettgNTlB5AFQpiP8F X-Received: by 2002:ac8:5d12:0:b0:41e:24aa:81a0 with SMTP id f18-20020ac85d12000000b0041e24aa81a0mr2891128qtx.62.1698399631074; Fri, 27 Oct 2023 02:40:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698399631; cv=none; d=google.com; s=arc-20160816; b=WhhlYdHGG0U/pp5d29FugZEtuZ6pSVqCF25n6nDREvQV30ILykEHBTUUv82dktxu29 HTiDy0bjNDIMLgpb1KBYRvIMVZimWr9kYwRYQN0tXK7wRoTNpD+e3qgZLoLF8b4zp2eO rlvRZWOqx8Mt+3zkYL73p8bzXYdzR3erwZhNf54MqOnHPQ53xWdcKkSk3HOnLP0QseoF jhHNqIaCdBi+7Z7uD3oXHFO+J/drIl8xP7Us3DOyzZQJPohzBGh6PsAPhUEZevvI+VZa lJqhPh9Fc6tnGay1GzssDxfh5PDI8RtJEyAY6obYGZbHcxa/aac5NIpKk+5AD/u1V/9/ YozA== 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=0WxedLojY6wNJBa4g9+h9AlfhSUeJJ1XYerTxtOZric=; fh=wRy+0P4PRbqeISr0G5B5SsLmRsUbmsPjMVMxcl8infM=; b=Z5JcOi5GhtrCK1J7WMgwNHHZuQvUHMGdeyNLeKSyp9dWVJQIVkMjkhLJ1Jk9VQPMg+ KkxJZ/tfz3u77NFEv5up4/7d1DZBU9xDP4kdCaKIWqaDBiq65AdNsA1pe2nl+lJUq2Q4 jtw01f9TwTCYRp3X4YBCCV1slcTTz1ohuNN5i1FjNCHSJ1m3f90okGGM52GzsyzcP5CQ fkPLDBK42n+X7uz+nZ9V4kiFqB9BVXCfkS5Y5gGUgti2tFo1HGdr8/JmRpl6/D+BKvzQ vmQ0UVcXvexC8fyWZVy/NcfDAQDN6Lxr5KWm6NnLywKac5e/lmVX9/l9EiJZWW/KS3c1 ckOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=RObeZZPU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id w64-20020a814943000000b005afa07156ecsi2036372ywa.28.2023.10.27.02.40.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 02:40:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=RObeZZPU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (Postfix) with ESMTP id 49266830D11E; Fri, 27 Oct 2023 02:40:28 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345645AbjJ0JkJ (ORCPT + 26 others); Fri, 27 Oct 2023 05:40:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229503AbjJ0JkE (ORCPT ); Fri, 27 Oct 2023 05:40:04 -0400 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6697ACE; Fri, 27 Oct 2023 02:40:02 -0700 (PDT) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 39R9dsR0008709; Fri, 27 Oct 2023 04:39:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1698399594; bh=0WxedLojY6wNJBa4g9+h9AlfhSUeJJ1XYerTxtOZric=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=RObeZZPURXAQA/byWjIlOe4hj6MQi2UjQORtOUvnfqecmiSpDufG85ZR0QAMkCX/S YGd8MScacXn51Y094T+ElnWC+0Z1KnfNrE/EawIiEaVNidCMqG9Nbhy+ixvYg9brsy MbxdQoz267Bq+h1YmTg99+IaGYadufAUJFampvsM= Received: from DLEE100.ent.ti.com (dlee100.ent.ti.com [157.170.170.30]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 39R9dsZE052573 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 27 Oct 2023 04:39:54 -0500 Received: from DLEE106.ent.ti.com (157.170.170.36) by DLEE100.ent.ti.com (157.170.170.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Fri, 27 Oct 2023 04:39:54 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE106.ent.ti.com (157.170.170.36) 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; Fri, 27 Oct 2023 04:39:54 -0500 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 39R9drYe030842; Fri, 27 Oct 2023 04:39:53 -0500 From: Nitin Yadav To: , , , , , CC: , , Subject: [PATCH 2/2] arm64: dts: ti: k3-am62a7-sk: Enable eMMC support Date: Fri, 27 Oct 2023 15:09:50 +0530 Message-ID: <20231027093950.1202549-3-n-yadav@ti.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231027093950.1202549-1-n-yadav@ti.com> References: <20231027093950.1202549-1-n-yadav@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email 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 (groat.vger.email [0.0.0.0]); Fri, 27 Oct 2023 02:40:28 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780901091467308528 X-GMAIL-MSGID: 1780901091467308528 Add support for 32GB eMMC card on AM62A7. Includes adding mmc0 pins settings and set sdhci0 status to okay. Signed-off-by: Nitin Yadav --- arch/arm64/boot/dts/ti/k3-am62a7-sk.dts | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts b/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts index 5d28c390b28e..c6f144d91734 100644 --- a/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts +++ b/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts @@ -173,6 +173,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 */ @@ -362,3 +378,11 @@ cpsw3g_phy0: ethernet-phy@0 { ti,min-output-impedance; }; }; + +&sdhci0 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&main_mmc0_pins_default>; + ti,driver-strength-ohm = <50>; + disable-wp; +};