Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp9405494rwl; Wed, 11 Jan 2023 05:26:19 -0800 (PST) X-Google-Smtp-Source: AMrXdXtlvHIZXk/V58IKqlyoWpowUDVXDIY4dIDLFtaEQrRCCMjQ/AuEx8h0NFmBNduCDQQBrnfG X-Received: by 2002:a05:6a20:3954:b0:b6:4b4a:bfc4 with SMTP id r20-20020a056a20395400b000b64b4abfc4mr2575514pzg.14.1673443579358; Wed, 11 Jan 2023 05:26:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673443579; cv=none; d=google.com; s=arc-20160816; b=m2uMoxCAuPC6JBkrQemfYWhzmr+md6x7NAPWXmR+WAOwcxj7VDhFKTueYusajw2vy5 jnI54RGnF7VyTo+Uhz9y6IlKpqSj/o0JW0VQhZ/N5/ChCLc4lBx0sd5NwvX7vwtVBfYi 9B6XL/KEPt4mVJWMRgrxKu6jcUkElG+3YGNLsfEaeC/1gLYmaUk3fHAJSaXiH8IcuBGk nsV6zSz6GjVTi8/2VQZtH3uGAK95Tg13As8InY22APPjZqOoqmyEqUAAcomDMjXu/HUj Nrezo/qXg2gYE47VuzXhEWMvwqgMTeuFv+zXg3KgjaLS5dMHEQVmbNTGNKVX+CvCaJC0 1JKA== 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=eKvH1oPOWa6PmL2WXA0y/0PxkjQgsQlBH1HvV/6rPdU=; b=a1HDKHBpO+UrmKoOutFkl9wRHN6nG1oyKO4CB4n3eWSJtQmOt6n7HRH5K1cQ7PAzgH 4BH8UDDJbo/ToqEbZuStjeVU9PUKwzZ9d9sV3Zn5h7Ify6uVPKJKvY8xcgDmxmFKe6Zn AyWPl4VNW9YM9UBdCfcyOszq8vom4MojvgvF/5dvSmlA0CPI1bJ88A4b8rGcOhdpL9rK 3+E7x/Gf+KBCqJXv8BlX7j038OhvofD7Gb4wEM1VuiIaCyxwxkijUtPx+KSBICg1iWa7 D8tVCp08tw/8VoQqGW3nLE0ylBAJKbn/5fFDhSx/K2ijovp897WUUeEmAS1vgoXREjo4 Ta3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="J/qwKz1x"; 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 c5-20020a6566c5000000b00499ded12ff1si15024639pgw.245.2023.01.11.05.26.12; Wed, 11 Jan 2023 05:26:19 -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="J/qwKz1x"; 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 S233386AbjAKNYQ (ORCPT + 53 others); Wed, 11 Jan 2023 08:24:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233509AbjAKNXx (ORCPT ); Wed, 11 Jan 2023 08:23:53 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2EF4A2BE8; Wed, 11 Jan 2023 05:23:53 -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)) (No client certificate requested) (Authenticated sender: sjoerd) by madras.collabora.co.uk (Postfix) with ESMTPSA id B1A896602DA0; Wed, 11 Jan 2023 13:23:51 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1673443431; bh=LFTN9teDna8hPSGoSa4Zf5XgtwtjA6FViA3w18oZMyU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=J/qwKz1xiRNRjg87joiIBD68PQgf8S8jA1L0o/5PKTENHKp9ThwwIG/iPImachD0j ex3oRi8A2RWfj3K8IS689yqj47fYg6O5dBzZ75ffcTglIhZam9cAYtF7lQN08TwAl3 qeF6oZfqF2mEjKEYLw+92V+DewvZqb58RTldp5EsG3AEj7MnW9pcq98Jzj/0ETw3VM VPWCUdwnegn8QS2foyiBNi/ivOjOk35zkwWodv5bDFI2s27TrN8c9K7O56jhgOhUVX EQMh0C+vOzMAQEGhb2dv7kV6NvKwfQyKbtBli65tVJLFatAWVmBtniILJtZXLtZRVa Ydsx/+YLiVU8Q== Received: by beast.luon.net (Postfix, from userid 1000) id 6874B60ABD65; Wed, 11 Jan 2023 14:23:49 +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 v3 1/3] arm64: dts: ti: k3-am62-main: Update OTAP and ITAP delay select Date: Wed, 11 Jan 2023 14:23:45 +0100 Message-Id: <20230111132348.553061-2-sjoerd@collabora.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230111132348.553061-1-sjoerd@collabora.com> References: <20230111132348.553061-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 --- 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