Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp558290rwb; Thu, 12 Jan 2023 09:17:49 -0800 (PST) X-Google-Smtp-Source: AMrXdXsMQthvI2cUVDWT8n+4u3jo35+qAsLt2RH/SPd8oJs5l6+PC7CoUO7Z3etz+OUbJobMK7Qy X-Received: by 2002:a05:6402:25c6:b0:478:5688:7c9f with SMTP id x6-20020a05640225c600b0047856887c9fmr79184681edb.29.1673543869608; Thu, 12 Jan 2023 09:17:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673543869; cv=none; d=google.com; s=arc-20160816; b=umC9VHUEZxUbaVVWSPr6qeN5QnMvk2rqGbP2aOXJZkuKEBEBHYkuLIOVCBikURzQBe ZQaOmUXmh7gsuiZmc/lANprUfGtvIld7vqjpj+1RXUzL9ar6NZpHxaM+m9F5KpBK2eS1 PH3GZi0DC180yy3rosLLpKbJk6V/qI+Ar87RepAIMvlmuQPPG20r0FsyMZX64Tad//ND J9/l206rOuY8DpQgPv3MmE5/HLwv5zLimAuQTPh3wyLXscJjEA1/ZPMr0Jcm2hUy2ugC E2NyMr33qJxutmHMezFFwt28q/BRdrQvfJ4Mc6g6XsmBu8PsrF+fYecGZEfERjkNW1jp OrNQ== 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=kRbEmIlXRZozs2Oi9CYHZWjK88UuX8x4EbrKK9lq5ec=; b=b3pmqYn8zUs3itzHFYaNHJw4XENAZ6EjFSZZx+FlJXBSdFvCKoGt7sS9FsTa3uuM2L Jy0LNuA3gpG4O0GHpaq4xqG0Qv7TwzsklGF0ytH5eulx7Mi0rRrPw2i25lYrXHwwmZdP hVfrxcFNBAL2TKxyQcMScvmsDPzFCxgL0hVdWYjBt12rBPmyONlPHlnkcapvegEQCrk4 strMO7H2hNYcvO6Wp0REJamebDj7tr6PmMopSXsgscb9kjWqfqFO6cW8+Jmg1r9+UVu3 D1L9Tt78L4yQnqWhH/pv28tfWLgly8OIQofkirYxzgW+mJW0hhbhwYWQi7w0YpaC7hi5 +bjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=mHc6RrPN; 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 m9-20020a056402510900b0048e4c8bf8e9si22156551edd.479.2023.01.12.09.17.37; Thu, 12 Jan 2023 09:17:49 -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=mHc6RrPN; 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 S239662AbjALQah (ORCPT + 51 others); Thu, 12 Jan 2023 11:30:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232596AbjALQaA (ORCPT ); Thu, 12 Jan 2023 11:30:00 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98C54DFE; Thu, 12 Jan 2023 08:28:52 -0800 (PST) Received: from beast.luon.net (unknown [IPv6:2a10:3781:2531:0:26cc:6c0f:ebfb:d967]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: sjoerd) by madras.collabora.co.uk (Postfix) with ESMTPSA id 0AF026602DC6; Thu, 12 Jan 2023 16:28:51 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1673540931; bh=UorPj7AzCH/CfWIQed3UyluZ1vgNc+4RXPdFlhZ1+6I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mHc6RrPNp9x7DvSkTkA7stiIrvhASsZfWkZS0tVoG3zB/ELfcCrIQvOO7GAEzai75 BRrSFJo0pwpFFnBnJh5OJ8xjhpC2pL+9D3xpGMszGtzNflbRpRITZd23KS9kYEEtTp FdODAMlceUMcXqdEkXZgpUScYMz4DBY852/5v70VRezGyP4xAYCePtj6h8a/vZpRNe xTfpbL3ZP0RdpZN40bUIEsQMFaxenEq/TSx4Eh7djfN6G7n42hwtdHwurbsnOY2hPC UW5mVuJ98XFy0kt2RcAOtaR+wO7RF8z4dRUHl0xLCpnmc3aO/kLBVIbJm43/3ibMlW PyJTom4EIhUsg== Received: by beast.luon.net (Postfix, from userid 1000) id 80D9760E4F1E; Thu, 12 Jan 2023 17:28:48 +0100 (CET) From: Sjoerd Simons To: Nishanth Menon Cc: kernel@collabora.com, Nitin Yadav , martyn.welch@collabora.com, 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 v4 1/3] arm64: dts: ti: k3-am62-main: Update OTAP and ITAP delay select Date: Thu, 12 Jan 2023 17:28:44 +0100 Message-Id: <20230112162847.973869-2-sjoerd@collabora.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230112162847.973869-1-sjoerd@collabora.com> References: <20230112162847.973869-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 Tested-by: Martyn Welch --- (no changes since v3) Changes in v3: - Rebased against current ti-next aka 6.2-rc1 - Add Martyn's tested-by Changes in v2: - Rebase against linux-next 20221220 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 072903649d6e..466b94d1cee9 100644 --- a/arch/arm64/boot/dts/ti/k3-am62-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62-main.dtsi @@ -501,8 +501,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>; status = "disabled"; }; @@ -514,17 +516,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>; status = "disabled"; @@ -538,17 +540,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>; status = "disabled"; }; -- 2.39.0