Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp5674348rwj; Wed, 21 Dec 2022 05:49:16 -0800 (PST) X-Google-Smtp-Source: AMrXdXuuVCxB6k8KHNnukHDBeVaQC5Bq+D3Mml53NAWu6TDm6VY1czGDWrPQOoBgN8Mj7oYvW50P X-Received: by 2002:a17:907:d601:b0:7c1:2d36:d11a with SMTP id wd1-20020a170907d60100b007c12d36d11amr1803682ejc.11.1671630556065; Wed, 21 Dec 2022 05:49:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671630556; cv=none; d=google.com; s=arc-20160816; b=MEERs7TLbA0pp8P4UVou02a+yBp581vPnLbqQ27i/d84qW35xHMkNTkIIjiyrOvsZZ +4GwrzC9JKuB3g//ZgP4b9w8o4Vi1h0ej8TzDuTgSXnoLXKc7CqPIFeY+c412wKSf8gJ oQgfDEVpdSkyvLGRyaF1Lsa7jXP2A1utarAImm6HVSftpLR+OBRNXJTAgE7eL7qPOLEa Kb+p17DDPUSh9tI87r2hEyGBxEv30VjKHTTrZdDEIe3J0ILRWZnqLnjcYCa592uG2nPo 0a6DnbCl63yiwAct9v57a2x1gR34oyKKfz4/V7Gy3DFvDf/S77DTQdSsd2s9U5l/vwpc MVug== 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=KRmaDRkS+DoBpfeEpoa3LfgDcvaW52GgIRmJoT2EbzI=; b=uZCG034NQoWP+reqJ5IsJt5wsRLQlmqyAk1uhT0x37wR6an8qHhZk6W2euXahjoLb7 nT0Wnwpfa6ZnMH7wczm/3td8l02HVxM+Za8tK3hcnCf9XCOMLXp4mUNqyQEd8jvLMaYw suRtv4mc+d6n12fj3NzbujMIIE+z6EycMja+DCDV4fV+DsABIxqwAx2raDE0WNhWv6LV avpHi2zdwwnv+J8zVyjtoY67RX7rwnDQaiPgmfbGzpDG7BJNfTgtQs50/TLH+gS9JZFL zIXry11gBpxVOlzJDYpBsXWlJNSVBr9PdXv2Emd9E39LBOslmya6rlA4XiyocSUaYeL7 fLwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=CusbS4bd; 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 qh10-20020a170906ecaa00b007c0ef00a05csi10906030ejb.922.2022.12.21.05.48.58; Wed, 21 Dec 2022 05:49:16 -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=CusbS4bd; 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 S231707AbiLUNbD (ORCPT + 69 others); Wed, 21 Dec 2022 08:31:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39056 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231307AbiLUNa5 (ORCPT ); Wed, 21 Dec 2022 08:30:57 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 182D612D26; Wed, 21 Dec 2022 05:30:55 -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 660126602CC3; Wed, 21 Dec 2022 13:30:54 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1671629454; bh=P4PfjI9EJ2RCLo5y/aer3jrjHLf9fGYHXYTG8vmwc8Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CusbS4bdDAuBv9h4nkqP/r+kfQDgisyuo517UvAwVgZSFN0V8G7V9J5a1OMp/YvU4 w+5JFQxDaO4tbvkSO6uyUQJcLUtgjogeJEXNBvlpLZrJoWsSKBWMJclXRwN9EpQHJJ mTqxDw0wRXltA/MxP7LyD+hMPcaa6T4soGHx00BLaHaLRUAEh2BpWw7K8Lq87mO417 4HUVkNZDRlObmaw+B8ybCExqs0GI6ZHc6Js34cXI2KIj4Cshmw5sJSoGQmC3Nu6yQD hnRkSg7BDQ6WLhSGLbozVFFdA/PjusNEEHv0wT7H9rOO4rDup2Fcs4sl4pOvnabuii p8eY12NvY4a+g== Received: by beast.luon.net (Postfix, from userid 1000) id E95335EC483F; Wed, 21 Dec 2022 14:30:51 +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 v2 1/3] arm64: dts: ti: k3-am62-main: Update OTAP and ITAP delay select Date: Wed, 21 Dec 2022 14:30:48 +0100 Message-Id: <20221221133051.1069480-2-sjoerd@collabora.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20221221133051.1069480-1-sjoerd@collabora.com> References: <20221221133051.1069480-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 --- 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