Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1056928pxb; Tue, 17 Aug 2021 02:44:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJza2ZRVa+4WiKwSd7reEoJzMlf1oOtk1IEFLE/BlOfRtyTyqJ94RKTUqJxjD2XUEj0JY0gl X-Received: by 2002:a17:907:2706:: with SMTP id w6mr3013458ejk.101.1629193491027; Tue, 17 Aug 2021 02:44:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629193491; cv=none; d=google.com; s=arc-20160816; b=j96AjmIZARdMRr/KH8SDOzR7BrOKvP72gmq+18GM6BX50m5WGFyiule2KboTJAhrIz 9olr4kvzXBP9a8+BeJqObcgHOb+CVXegSjZQBNW65exlXmF4jxR+x0hAWdsld1higUTI 9HoiqlyxF80HEDwdQzpKhmtCVgP4luYMlIN6z4zvjoPpFMJty0U9QR0QXB3ws7fPw3yj YMFqoSVvGAYLt7kbh7f/5PFZmylVU8wWsT6hKWwWD87AZwkiBxkbUKZzolcqOgCGFJnz QrmPNer49drVi2Z4Mja5G5rHd8/b/kRs6nAvLNz58q7jfop/25AvjLJuPvYh3dHpc2Zf aPWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=4PPwMmoTo9DyGV7m5A9OErVt/hDhgSuVwK7KL9NofCg=; b=LBK2GtILuNhiQi2TCBgBz168pFCs3yvv+eg6TMwWNpQVcrorywPPY+Mz/y1GzS1SpR qQSQWJ0iyvr7/0bJ0k7bXSGkbDG84kcg5zgFd76Q4mS+7WaPY3zerfDTlsJyRPsDa7bJ cwaDMaBIANCe/6bn4ZSQww0ra0DbJ3tF41icO34pZsqdt4Ovqc7PgVF2wTpu19QKSa/2 ufBt0SJiRSWO/i2347Iu6SHbhV4/Icn3K/OmRYOG/Xz7bvjJz5KXxCZPAILMZHjUSSpE Ex5Wd0HcW8+v8VQc71EfGeBDgrox5CBjcSMEFx3Ct+LG1GTGr6TeVDnxCewd+45YZMam 6PhA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n11si1751772edt.458.2021.08.17.02.44.28; Tue, 17 Aug 2021 02:44:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239111AbhHQJnr (ORCPT + 99 others); Tue, 17 Aug 2021 05:43:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235403AbhHQJnq (ORCPT ); Tue, 17 Aug 2021 05:43:46 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06373C061764 for ; Tue, 17 Aug 2021 02:43:14 -0700 (PDT) Received: from gallifrey.ext.pengutronix.de ([2001:67c:670:201:5054:ff:fe8d:eefb] helo=bjornoya.blackshift.org) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mFvcj-0006iv-Rp; Tue, 17 Aug 2021 11:43:09 +0200 Received: from pengutronix.de (unknown [IPv6:2a02:810a:8940:aa0:dc61:eeed:d4a6:acca]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: mkl-all@blackshift.org) by smtp.blackshift.org (Postfix) with ESMTPSA id C046B668D72; Tue, 17 Aug 2021 09:43:07 +0000 (UTC) Date: Tue, 17 Aug 2021 11:43:06 +0200 From: Marc Kleine-Budde To: Vincent MAILHOL Cc: linux-can , Stefan =?utf-8?B?TcOkdGpl?= , netdev , open list , Thomas Kopp Subject: Re: [PATCH v5 2/7] can: bittiming: allow TDC{V,O} to be zero and add can_tdc_const::tdc{v,o,f}_min Message-ID: <20210817094306.iyezzml6m7nlznri@pengutronix.de> References: <20210815033248.98111-1-mailhol.vincent@wanadoo.fr> <20210815033248.98111-3-mailhol.vincent@wanadoo.fr> <20210816084235.fr7fzau2ce7zl4d4@pengutronix.de> <20210816122519.mme272z6tqrkyc6x@pengutronix.de> <20210816123309.pfa57tke5hrycqae@pengutronix.de> <20210816143052.3brm6ny26jy3nbkq@pengutronix.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="cq7vy33mil2ht6ci" Content-Disposition: inline In-Reply-To: <20210816143052.3brm6ny26jy3nbkq@pengutronix.de> X-SA-Exim-Connect-IP: 2001:67c:670:201:5054:ff:fe8d:eefb X-SA-Exim-Mail-From: mkl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --cq7vy33mil2ht6ci Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 16.08.2021 16:30:52, Marc Kleine-Budde wrote: > > Finally, I did a bit of research and found that: > > http://ww1.microchip.com/downloads/en/DeviceDoc/Section_56_Controller_A= rea_Network_with_Flexible_Data_rate_DS60001549A.pdf > > This is *not* the mcp25xxfd datasheet but it is still from > > Microship and as you will see, it is mostly similar to the > > mcp25xxfd except for, you guessed it, the TDCO. > >=20 > > It reads: > > | TDCMOD<1:0>: Transmitter Delay Compensation Mode bits > > | Secondary Sample Point (SSP). > > | 10 =3D Auto; measure delay and add CFDxDBTCFG.TSEG1; add TDCO > > | 11 =3D Auto; measure delay and add CFDxDBTCFG.TSEG1; add TDCO > > | 01 =3D Manual; Do not measure, use TDCV plus TDCO from the register > > | 00 =3D Disable > >=20 > > | TDCO<6:0>: Transmitter Delay Compensation Offset bits > > | Secondary Sample Point (SSP). Two's complement; offset can be > > positive, zero, or negative. > > | 1111111 =3D -64 x SYSCLK > > | . > > | . > > | . > > | 0111111 =3D 63 x SYSCLK > > | . > > | . > > | . > > | 0000000 =3D 0 x SYSCLK > >=20 > > Here, you can clearly see that the TDCO has the exact same range > > as the one of the mcp25xxfd but the description of TDCMOD > > changes, telling us that: > >=20 > > | SSP =3D TDCV (measured delay) + CFDxDBTCFG.TSEG1 (sample point) + TDCO > >=20 > > Which means this is a relative TDCO. Good catch! Microchip is investigating this. regards, Marc --=20 Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung West/Dortmund | Phone: +49-231-2826-924 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | --cq7vy33mil2ht6ci Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEK3kIWJt9yTYMP3ehqclaivrt76kFAmEbhKcACgkQqclaivrt 76mRUwf/WqgGXJS5FJYsgXeQ9DB2ao8JrxXEawnFdtnwp+LzoU6Xa8+NOrcwaDE/ 74ZFUhUVOoA/gl06bwixPLrBuFt9XVCa7uJEU7fnUdKAFl99LN4F1l6dGIT1gQ3l Iqtl/bOhwYGVRqyOH5sXTzF/kWrBny14xoGFUk+QtNwgaGGQ2vmvZ/Cx518xJnSd sQNdxGK9z71oYf8lqUndIJO/zdQGRgJtABVCCanRRTtoeYf52U+pdMUmo/I/2CX9 AHP+hCR2yCDU+R93/SMwQH0RDFQvSUZ3YsP7ANO7ROzGLaeXhdM79gA1DiOClXK6 bLLjwDxvRhoJwmHMDc6DGrOWCfL+3g== =DOw1 -----END PGP SIGNATURE----- --cq7vy33mil2ht6ci--