Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1464192rdb; Wed, 6 Dec 2023 22:36:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IFCBeLwki+1zM1SeNFI7Ymb73sQB3OzsVVNiUDjtrQS77m2mOSt4DfjFR7iVF+qCgDOC7so X-Received: by 2002:a17:90b:3b49:b0:286:811c:c3c4 with SMTP id ot9-20020a17090b3b4900b00286811cc3c4mr1776487pjb.52.1701930967400; Wed, 06 Dec 2023 22:36:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701930967; cv=none; d=google.com; s=arc-20160816; b=v80yhZ4xIsh19N7PgomPtwG6/eQ8FOJS0SV1t+7bHYAfht4oq8lX3h61Htbe8R6SOH BIFvj0sPbQD6iciUNVcgPB6dakzAu53CBdDh//ijbTrGBPQwt08h/5SyoQNe8J7MISEt i6Sg34Dcf7oWme9vGB6QjzmdBfUhmfx513JnZeGO2xcroD2azPrgK9u764geXqZfDfo9 XEGJQEPeDLCLkPN4EbEdCD10+V2hkFodspkNA+5Lv7Jv4DPMpOQQHy2Wnju10VjHLQZk 3VfXfQ+eKiG3Jy3zAFxIgM9NwImWbq0E38mUEKtmdlc3o/n+60H7VxO9AEgpaUowzNUS Z4zA== 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=RCJcyyZ8EMNjvJVmY4Ygro4ZBJTkkM+cPjU66561fik=; fh=mc68xwXcE7103TjvFzmHr3mDytsCYD1HQDDrjzRxBZo=; b=mmhfTjMGuTtaMrK2unp8fCF1+VfEgEZJO2I6nmHRoUKPamr4fQUhPUdJ9Kv0fcUAZR hJrkD/XK8OrT26PIwsmfMnMuYnABtSP1G0FbUcsvzg27oTgsnN39cwCpY5zrwAZojg5M t+4YPL0VfuXNqNlD91NxxaTXl54fc+sy23MNx17minbKSZvo1lmAkt+r2ulevOw5qYE2 0AsQmWDm8cvp04ssb750Sq8uGska8fvNGerVJnijl3xZwDvuqDxXdk2ai2MQDD2CoFTU eG3abJ9mpMOOV3fyMA/4stLCeOMjA+lToVMmPibmfbXaXJLYotFwKtHXwfFBAG4OaEnF obHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=UTxcd1kG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id o17-20020a17090ac71100b002886288d945si522602pjt.114.2023.12.06.22.36.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 22:36:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=UTxcd1kG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id B600E8149705; Wed, 6 Dec 2023 22:36:00 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229733AbjLGGfp (ORCPT + 99 others); Thu, 7 Dec 2023 01:35:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229558AbjLGGfl (ORCPT ); Thu, 7 Dec 2023 01:35:41 -0500 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BFB6BD5C; Wed, 6 Dec 2023 22:35:46 -0800 (PST) X-UUID: d78aa7c494ca11eea5db2bebc7c28f94-20231207 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=RCJcyyZ8EMNjvJVmY4Ygro4ZBJTkkM+cPjU66561fik=; b=UTxcd1kGvh7vpHDIFyBSoCNlyxzPxfKVeJABcH6/JMM/jSqvAACF6uWEv+CPcCB5ELDqzcXrHuZ4DBtBL73H3eRBEiANJzHcjetxCgSQ71SXEgAXSD7PevKgJPz9vyiBjUkKV35yPUHvxfWAcyrjOmYc9x5rwoKJhYjQboSTPx0=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.35,REQID:75c26b02-0d96-40b9-905a-b4360918fcb8,IP:0,U RL:0,TC:0,Content:-5,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION :release,TS:-5 X-CID-META: VersionHash:5d391d7,CLOUDID:951c8273-1bd3-4f48-b671-ada88705968c,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0,AV:0,LES:1,SPR:NO, DKR:0,DKP:0,BRR:0,BRE:0 X-CID-BVR: 0 X-CID-BAS: 0,_,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR X-UUID: d78aa7c494ca11eea5db2bebc7c28f94-20231207 Received: from mtkmbs10n2.mediatek.inc [(172.21.101.183)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1965852317; Thu, 07 Dec 2023 14:35:41 +0800 Received: from mtkmbs11n1.mediatek.inc (172.21.101.185) by mtkmbs11n2.mediatek.inc (172.21.101.187) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Thu, 7 Dec 2023 14:35:40 +0800 Received: from mhfsdcap04.gcn.mediatek.inc (10.17.3.154) by mtkmbs11n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Thu, 7 Dec 2023 14:35:39 +0800 From: Axe Yang To: Chaotian Jing , Ulf Hansson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Wenbin Mei CC: , , , , , , Axe Yang , Krzysztof Kozlowski Subject: [PATCH v4 1/2] dt-bindings: mmc: mtk-sd: add tuning steps related property Date: Thu, 7 Dec 2023 14:35:34 +0800 Message-ID: <20231207063535.29546-2-axe.yang@mediatek.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231207063535.29546-1-axe.yang@mediatek.com> References: <20231207063535.29546-1-axe.yang@mediatek.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-MTK: N X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.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 (lipwig.vger.email [0.0.0.0]); Wed, 06 Dec 2023 22:36:00 -0800 (PST) Add 'mediatek,tuning-steps' setting. This property will give MSDC a chance to extend tuning steps up to 64. With more tuning steps, MSDC may achieve a more optimal calibration result, thus avoiding potential CRC issues. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Axe Yang --- Documentation/devicetree/bindings/mmc/mtk-sd.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Documentation/devicetree/bindings/mmc/mtk-sd.yaml b/Documentation/devicetree/bindings/mmc/mtk-sd.yaml index 3fffa467e4e1..c532ec92d2d9 100644 --- a/Documentation/devicetree/bindings/mmc/mtk-sd.yaml +++ b/Documentation/devicetree/bindings/mmc/mtk-sd.yaml @@ -145,6 +145,15 @@ properties: minimum: 0 maximum: 7 + mediatek,tuning-step: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Some SoCs need extend tuning step for better delay value to avoid CRC issue. + If not present, default tuning step is 32. For eMMC and SD, this can yield + satisfactory calibration results in most cases. + enum: [32, 64] + default: 32 + resets: maxItems: 1 -- 2.18.0