Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3652295rdh; Mon, 27 Nov 2023 23:02:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IE3uuePUt9yjSeMZqJHdw1Qc+pXHvoDvwlv9yfKO5VEZWmZeq6jnGlY4hovWpBUbS0tsW0o X-Received: by 2002:a17:902:eb4d:b0:1cf:f876:5f04 with SMTP id i13-20020a170902eb4d00b001cff8765f04mr925120pli.37.1701154940304; Mon, 27 Nov 2023 23:02:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701154940; cv=none; d=google.com; s=arc-20160816; b=L+kar08Y4nE0ptkfMsekDwJ8aFtlWlAEj19lWfZQwCtZU87mhORddQ/D8cifW2cYMv hZCpdlwu/WQkfk71QnrcXFWJcHRAsmlzuPkugSHljwp/6nS8NnUPFRdNtaFX7XcSE440 4J8il6mWxB/fo4pECV+NvNOTFFOifXQvYlXtnX3uqoD56UqXaufiZr6uY93ZPKWRdiGb UJqkwQhflUjvs5INWss/vs7UwmsBgXQ2cwJRRnS3L9JsWmacJu38H5zDrP0QYSy+S+Pi U8wCnLAItLttigh8IzbjXIzPF8jiXF+8v/tZU4Es3CRyIX4pOwzF1hysej8ss07arGxE WPew== 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=1kILKxh9E79r7aDOclLB0+1y/1FG780xXk0u2JGX8Ho=; fh=6a4mcNHycIlU76+UB6a6FTF32p9VptKd7UbDrEyc76w=; b=CnX8XcFHuC88Qugn95vCMOQyHs1Q+2LRRZlrtqdSTjeWASif7HE8MI1ObWYLWdNTbV j5EP+C+ey94x3HY8qtGofJUDmWIw9UuNLVk8PEJguDK/TFI+CslzM4Xcgdq97UkcIMRa sb6AESVQPtPg50tLqYcCqLQyhRfnDfSIl/6aO5/sYmxkAeoadqeV+/ZjljjxZPyWyUE/ xIiFkgZdIlx6Tj+xHQv7aGfkTbQZ7uVai70ayHMe9li8QWdKsmsZDCNP9Vm6/kBqsJoC jnyznTyfZDS7LntbECH0rFH6JyYuPp5btttV0q5TvxnK2PLaEsulCKIJ6a1fjFRfSBon 7bew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=aOBae1mV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id d6-20020a170902cec600b001cfc385c44bsi5693537plg.612.2023.11.27.23.02.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 23:02:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=aOBae1mV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (Postfix) with ESMTP id B83C4806117A; Mon, 27 Nov 2023 23:02:15 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343697AbjK1HBw (ORCPT + 99 others); Tue, 28 Nov 2023 02:01:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343687AbjK1HBq (ORCPT ); Tue, 28 Nov 2023 02:01:46 -0500 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 964041BB; Mon, 27 Nov 2023 23:01:49 -0800 (PST) X-UUID: fbcee76e8dbb11ee8051498923ad61e6-20231128 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=1kILKxh9E79r7aDOclLB0+1y/1FG780xXk0u2JGX8Ho=; b=aOBae1mV0+QXRvn1HS+GiRv1oRfapxE2fs9q/FNHCXGt2B+4aXW2xPB77N1tKNBq9BJsQUaiJg/qoSs+XR1XPy2eMGhgezLCy11gt6VU1cI9kU5iiy8OVgxf+QxN/vvLEpanyV8CKr800IGxpCGes8yKsrgL5mj7ND0c3INXw5o=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.34,REQID:c141affd-8cca-4e75-bb17-1214b96e14f5,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:a603e595-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: fbcee76e8dbb11ee8051498923ad61e6-20231128 Received: from mtkmbs10n1.mediatek.inc [(172.21.101.34)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1935702585; Tue, 28 Nov 2023 15:01:41 +0800 Received: from mtkmbs11n1.mediatek.inc (172.21.101.185) by mtkmbs13n2.mediatek.inc (172.21.101.108) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Tue, 28 Nov 2023 15:01:41 +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; Tue, 28 Nov 2023 15:01:40 +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 Subject: [PATCH v2 1/2] dt-bindings: mmc: mtk-sd: add tuning steps related property Date: Tue, 28 Nov 2023 15:01:26 +0800 Message-ID: <20231128070127.27442-2-axe.yang@mediatek.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231128070127.27442-1-axe.yang@mediatek.com> References: <20231128070127.27442-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 fry.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 (fry.vger.email [0.0.0.0]); Mon, 27 Nov 2023 23:02:16 -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. 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.25.1