From patchwork Thu Nov 30 06:15:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?QXhlIFlhbmcgKOadqOejiik=?= X-Patchwork-Id: 13474107 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 84002C10DAA for ; Thu, 30 Nov 2023 06:16:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=eysIhP5SEPaYOQv/oHwh/skTZVWkoy51ELEsMlxtTqA=; b=vmvHkzzFlml1m/ xNDwTnD5LVL5IqJZHRhXIkD6RKoFX/k60iD8zTg7MNiW4Ezzy9MAWKVbdkCfnkvM8SeJ2b2d1Hn1n /2w3KsDA7umgBbzCJAhLBhJTSzT7LxdxhLTR+xTqL4Fc8jQuhndVuL/NVh9Z30EVPlktIz+6JpDUm r7xUU+CqYWP8SgBCBurdS4Y5t1KwH4pnaN2Te010WVtBF+vznfCKS4wJTNi3TQOAdycAlYmVUiBxr W8dUv/dzUH95O7z55CdU/DO5MJyTmDzOQn1xFaEjL7+My7JZt21v+VxS52l5v4QSO5EQLsnUh9zmj cU2ecki/b+7KvmFYN9KA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r8aKi-00A0YQ-0V; Thu, 30 Nov 2023 06:15:32 +0000 Received: from mailgw01.mediatek.com ([216.200.240.184]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r8aKf-00A0Xb-1V; Thu, 30 Nov 2023 06:15:30 +0000 X-UUID: d7ad117a8f4711ee9b7791016c24628a-20231129 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=REy94AAJaYZvG1e+Q5y3StrQOPyjWjRYey4f+drmRhg=; b=fhPwC85u8D326GTWBeE7bQgC3BnqjiVWIU102xlISgYEhJcVchI6OGEEx0yg+cXg1XjY3od6l9rPUFbo1lCAeLAqwf67KtxeqDd5vPz7Bw+NhG4ZogJ0XIiAtNMbWEUbY9EQ2zCSi8CUkO3yud38L9OvGB0oe4wuAN/8kVAOafo=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.34,REQID:dd5d61d9-afb9-4e33-8517-d91be42c22e5,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:abefa75,CLOUDID:865dfb95-10ce-4e4b-85c2-c9b5229ff92b,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: d7ad117a8f4711ee9b7791016c24628a-20231129 Received: from mtkmbs13n2.mediatek.inc [(172.21.101.108)] by mailgw01.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1089439340; Wed, 29 Nov 2023 23:15:21 -0700 Received: from mtkmbs11n2.mediatek.inc (172.21.101.187) by mtkmbs10n2.mediatek.inc (172.21.101.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Thu, 30 Nov 2023 14:15:18 +0800 Received: from mhfsdcap04.gcn.mediatek.inc (10.17.3.154) by mtkmbs11n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Thu, 30 Nov 2023 14:15:18 +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 v3 1/2] dt-bindings: mmc: mtk-sd: add tuning steps related property Date: Thu, 30 Nov 2023 14:15:12 +0800 Message-ID: <20231130061513.1296-2-axe.yang@mediatek.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231130061513.1296-1-axe.yang@mediatek.com> References: <20231130061513.1296-1-axe.yang@mediatek.com> MIME-Version: 1.0 X-TM-AS-Product-Ver: SMEX-14.0.0.3152-9.1.1006-23728.005 X-TM-AS-Result: No-10--8.084500-8.000000 X-TMASE-MatchedRID: wDTc/wNgEcN3dXZvIJVkUOw8wbnnSw8bHg7k13K467J0TRq4bcxmH3Im l2BIvAJu7p17JCLIX7cfSuixqQMLLLvhKf49TtYAbBu6+EIezdyZf5btvM85Abv408/GP5HqfmK fyen8+8qrarPPtIvi4m9yZj3aufb5HxPMjOKY7A8LbigRnpKlKWxlRJiH4397+ruzfpzKUonZFO k4V7qu28n1qJ08wLl8oSFuOnQmBmi6NfM7QpaIJg== X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--8.084500-8.000000 X-TMASE-Version: SMEX-14.0.0.3152-9.1.1006-23728.005 X-TM-SNTS-SMTP: D519890939F3F44D9AA4CDBFC8AA06CF8DF45DCDC5A358483C9D762ED3BE9DEA2000:8 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231129_221529_509327_4620C178 X-CRM114-Status: UNSURE ( 9.34 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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