Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2821902rwb; Fri, 16 Dec 2022 07:00:23 -0800 (PST) X-Google-Smtp-Source: AA0mqf4Dc3q1Bfj7yZ6+R2g33PGgzWkYlnxtDSfHU7zWflRAJezjoCYsEtPdTswV/OMUFbuR23xS X-Received: by 2002:a05:6a20:8f19:b0:ad:efda:5e5d with SMTP id b25-20020a056a208f1900b000adefda5e5dmr20315219pzk.61.1671202822778; Fri, 16 Dec 2022 07:00:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671202822; cv=none; d=google.com; s=arc-20160816; b=WAR9/veXEmVBSSxKwS/2tAnNsg7UPA6moqP9Ns6Fnwc9drz/zrhmtejZUT5JvxGlc/ Mv4xg9qOToC1m2XAGkS7052Ud7yYyZIUHiiuP4kTQJv1OIQvamBAOHGGREmIsn7nPnyC tVLaBU+Ee06DHvD5y7UfyFIH6I6pNTZRwzlu3KXPp7eYeadeG1XjA+xpqdDetz50E2X3 BDX5hHD3EsxTtXWtg+P0lSInUP66vkaVVsrvIUdXRRnUJzsPK8uw2+034XydLjcnmak1 teQzer6jgvRrVZk8AT3oPniXQRV1uQrZzJGCvAzHVWVpVj2KhQClyaCS1FhbUcnXl1a2 do8g== 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=LnNYg451q2cI88w9cypP4I2VyXBNJ3FJ6xmxdLMJXzs=; b=mspxNlTCCeuFLJDO+W45NYiDaCkZjIbM+fHEBpd602YB0zb8FyqzQaU1zudwDXUWbQ /Bbu9uyWIgD+8dIwB7ktFt8gzNUzFeRMnF+grPidIm1xHKF6+O2BlQd3w7lNL1kIrjw6 uBeCRj69fnglc8aMshfD2xz34Lu7Qrn0NFsBcpsEGJKiiPKhig+6ZY6T17Z06qVFOnrZ teto9QvQ8PLLX8s32IlrnQELGFHN/XKsypvRmtNaed9J/rlNQWVMXiCoxtfgMr/PhaiX rrMp3OmpoXnsnsUfWwtytAd7EulpFI2Ed5H+BhRsBmoaPQueBSuHJwPJGsIXwAFtAe0d cZ7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Qx6UC8IT; 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=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d34-20020a631d22000000b00476f947575esi3014607pgd.329.2022.12.16.07.00.13; Fri, 16 Dec 2022 07:00:22 -0800 (PST) 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=@collabora.com header.s=mail header.b=Qx6UC8IT; 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=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231206AbiLPOgi (ORCPT + 68 others); Fri, 16 Dec 2022 09:36:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230204AbiLPOg3 (ORCPT ); Fri, 16 Dec 2022 09:36:29 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 221FF26571; Fri, 16 Dec 2022 06:36:29 -0800 (PST) Received: from beast.luon.net (simons.connected.by.freedominter.net [45.83.240.172]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: sjoerd) by madras.collabora.co.uk (Postfix) with ESMTPSA id 8B6896602C95; Fri, 16 Dec 2022 14:36:27 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1671201387; bh=r7ISVIMrUOeq1YUcc/heo4+dqRfH9+l09wOKOWMWi60=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Qx6UC8ITR8ptql3nhJFJP4FsXa3Mm/v0EmU6ZSvDAVHQ2YBhDu1fTuan1NCqZNA/f SEMgQaX7+hh+EgTuUqtFPeKUz9+okmxYD0PooSjtc1QYwSWTdZv0GTzerqeCFWjytR RgctgCpGbgiCNkm6GcaWg/OVOQBGJ1h+7jqJsBH1g0j2hu4MFgs1A7wRvhn8nUMQeT UdhlOkc2PetG2tzgoGZOMFk01tt03oijDBHmjt9BZhGR9X3VOZrP9rt/AOUovS8qXK l5xs0VJakyrJwp2MYN31ZYoBnfofsigl37db7WW4iKNJv8u3geVlr1gzSrz270tbI1 k7qyBYPGl1EYA== Received: by beast.luon.net (Postfix, from userid 1000) id 3C3695E33156; Fri, 16 Dec 2022 15:36:25 +0100 (CET) From: Sjoerd Simons To: Nishanth Menon Cc: martyn.welch@collabora.com, Nitin Yadav , Aswath Govindraju , Krzysztof Kozlowski , Rob Herring , Tero Kristo , Vignesh Raghavendra , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/3] arm64: dts: ti: k3-am62-main: Update OTAP and ITAP delay select Date: Fri, 16 Dec 2022 15:36:21 +0100 Message-Id: <20221216143624.23708-2-sjoerd@collabora.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20221216143624.23708-1-sjoerd@collabora.com> References: <20221216143624.23708-1-sjoerd@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS 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 From: Nitin Yadav UHS Class U1 sd-card are not getting detected due to incorrect OTAP/ITAP delay select values in linux. Update OTAP and ITAP delay select values for various speed modes. For sdhci0, update OTAP delay values for ddr52 & HS200 and add ITAP delay for legacy & mmc-hs. For sdhci1 & sdhci2, update OTAP & ITAP delay select recommended as in RIOT for various speed modes. Signed-off-by: Nitin Yadav [cherry-pick from vendor BSP] Signed-off-by: Sjoerd Simons --- arch/arm64/boot/dts/ti/k3-am62-main.dtsi | 46 ++++++++++++------------ 1 file changed, 24 insertions(+), 22 deletions(-) diff --git a/arch/arm64/boot/dts/ti/k3-am62-main.dtsi b/arch/arm64/boot/dts/ti/k3-am62-main.dtsi index 03660476364f..28c250a8d1ec 100644 --- a/arch/arm64/boot/dts/ti/k3-am62-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62-main.dtsi @@ -391,8 +391,10 @@ sdhci0: mmc@fa10000 { ti,clkbuf-sel = <0x7>; ti,otap-del-sel-legacy = <0x0>; ti,otap-del-sel-mmc-hs = <0x0>; - ti,otap-del-sel-ddr52 = <0x9>; - ti,otap-del-sel-hs200 = <0x6>; + ti,otap-del-sel-ddr52 = <0x5>; + ti,otap-del-sel-hs200 = <0x5>; + ti,itap-del-sel-legacy = <0xa>; + ti,itap-del-sel-mmc-hs = <0x1>; }; sdhci1: mmc@fa00000 { @@ -403,17 +405,17 @@ sdhci1: mmc@fa00000 { clocks = <&k3_clks 58 5>, <&k3_clks 58 6>; clock-names = "clk_ahb", "clk_xin"; ti,trm-icp = <0x2>; - ti,otap-del-sel-legacy = <0x0>; + ti,otap-del-sel-legacy = <0x8>; ti,otap-del-sel-sd-hs = <0x0>; - ti,otap-del-sel-sdr12 = <0xf>; - ti,otap-del-sel-sdr25 = <0xf>; - ti,otap-del-sel-sdr50 = <0xc>; - ti,otap-del-sel-sdr104 = <0x6>; - ti,otap-del-sel-ddr50 = <0x9>; - ti,itap-del-sel-legacy = <0x0>; - ti,itap-del-sel-sd-hs = <0x0>; - ti,itap-del-sel-sdr12 = <0x0>; - ti,itap-del-sel-sdr25 = <0x0>; + ti,otap-del-sel-sdr12 = <0x0>; + ti,otap-del-sel-sdr25 = <0x0>; + ti,otap-del-sel-sdr50 = <0x8>; + ti,otap-del-sel-sdr104 = <0x7>; + ti,otap-del-sel-ddr50 = <0x4>; + ti,itap-del-sel-legacy = <0xa>; + ti,itap-del-sel-sd-hs = <0x1>; + ti,itap-del-sel-sdr12 = <0xa>; + ti,itap-del-sel-sdr25 = <0x1>; ti,clkbuf-sel = <0x7>; bus-width = <4>; }; @@ -426,17 +428,17 @@ sdhci2: mmc@fa20000 { clocks = <&k3_clks 184 5>, <&k3_clks 184 6>; clock-names = "clk_ahb", "clk_xin"; ti,trm-icp = <0x2>; - ti,otap-del-sel-legacy = <0x0>; + ti,otap-del-sel-legacy = <0x8>; ti,otap-del-sel-sd-hs = <0x0>; - ti,otap-del-sel-sdr12 = <0xf>; - ti,otap-del-sel-sdr25 = <0xf>; - ti,otap-del-sel-sdr50 = <0xc>; - ti,otap-del-sel-sdr104 = <0x6>; - ti,otap-del-sel-ddr50 = <0x9>; - ti,itap-del-sel-legacy = <0x0>; - ti,itap-del-sel-sd-hs = <0x0>; - ti,itap-del-sel-sdr12 = <0x0>; - ti,itap-del-sel-sdr25 = <0x0>; + ti,otap-del-sel-sdr12 = <0x0>; + ti,otap-del-sel-sdr25 = <0x0>; + ti,otap-del-sel-sdr50 = <0x8>; + ti,otap-del-sel-sdr104 = <0x7>; + ti,otap-del-sel-ddr50 = <0x8>; + ti,itap-del-sel-legacy = <0xa>; + ti,itap-del-sel-sd-hs = <0xa>; + ti,itap-del-sel-sdr12 = <0xa>; + ti,itap-del-sel-sdr25 = <0x1>; ti,clkbuf-sel = <0x7>; }; -- 2.39.0