From: Marc Kleine-Budde <mkl@pengutronix.de>
To: Ramesh Shanmugasundaram <ramesh.shanmugasundaram@bp.renesas.com>,
"wg@grandegger.com" <wg@grandegger.com>,
"horms@verge.net.au" <horms@verge.net.au>,
"magnus.damm@gmail.com" <magnus.damm@gmail.com>,
"robh+dt@kernel.org" <robh+dt@kernel.org>,
"pawel.moll@arm.com" <pawel.moll@arm.com>,
"mark.rutland@arm.com" <mark.rutland@arm.com>,
"ijc+devicetree@hellion.org.uk" <ijc+devicetree@hellion.org.uk>,
"galak@codeaurora.org" <galak@codeaurora.org>
Cc: "linux-renesas-soc@vger.kernel.org"
<linux-renesas-soc@vger.kernel.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"linux-can@vger.kernel.org" <linux-can@vger.kernel.org>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
Chris Paterson <Chris.Paterson2@renesas.com>
Subject: Re: [PATCH 1/2] can: rcar_can: Add r8a7795 support
Date: Mon, 29 Feb 2016 13:47:04 +0100 [thread overview]
Message-ID: <56D43DC8.8010409@pengutronix.de> (raw)
In-Reply-To: <56D416A9.6080608@pengutronix.de>
[-- Attachment #1: Type: text/plain, Size: 1562 bytes --]
On 02/29/2016 11:00 AM, Marc Kleine-Budde wrote:
> I think it's better to fix the algorithm. I'll look into it.
What about:
> ./can-calc-bit-timing -c 39999998 rcar_can
> Bit timing parameters for rcar_can with 39.999998 MHz ref clock
> nominal real Bitrt nom real SampP
> Bitrate TQ[ns] PrS PhS1 PhS2 SJW BRP Bitrate Error SampP SampP Error CiBCR
> 1000000 125 2 3 2 1 5 999999 0.0% 75.0% 75.0% 0.0% 0x40040100
> 800000 125 3 4 2 1 5 799999 0.0% 80.0% 80.0% 0.0% 0x60040100
> 500000 125 6 7 2 1 5 499999 0.0% 87.5% 87.5% 0.0% 0xc0040100
> 250000 250 6 7 2 1 10 249999 0.0% 87.5% 87.5% 0.0% 0xc0090100
> 125000 500 6 7 2 1 20 124999 0.0% 87.5% 87.5% 0.0% 0xc0130100
> 100000 625 6 7 2 1 25 99999 0.0% 87.5% 87.5% 0.0% 0xc0180100
> 50000 1250 6 7 2 1 50 49999 0.0% 87.5% 87.5% 0.0% 0xc0310100
> 20000 3125 6 7 2 1 125 19999 0.0% 87.5% 87.5% 0.0% 0xc07c0100
> 10000 6250 6 7 2 1 250 9999 0.0% 87.5% 87.5% 0.0% 0xc0f90100
But I've to port the algorithm from can-calc-bit-timing to the kernel.
Marc
--
Pengutronix e.K. | Marc Kleine-Budde |
Industrial Linux Solutions | Phone: +49-231-2826-924 |
Vertretung West/Dortmund | Fax: +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de |
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 455 bytes --]
next prev parent reply other threads:[~2016-02-29 12:47 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-29 9:20 [PATCH 0/2] Add CAN support to r8a7795 SoC Ramesh Shanmugasundaram
[not found] ` <1456737661-20538-1-git-send-email-ramesh.shanmugasundaram-kTT6dE0pTRh9uiUsa/gSgQ@public.gmane.org>
2016-02-29 9:21 ` [PATCH 1/2] can: rcar_can: Add r8a7795 support Ramesh Shanmugasundaram
[not found] ` <1456737661-20538-2-git-send-email-ramesh.shanmugasundaram-kTT6dE0pTRh9uiUsa/gSgQ@public.gmane.org>
2016-02-29 9:38 ` Marc Kleine-Budde
2016-02-29 9:56 ` Ramesh Shanmugasundaram
2016-02-29 10:00 ` Marc Kleine-Budde
2016-02-29 12:47 ` Marc Kleine-Budde [this message]
2016-02-29 14:06 ` Ramesh Shanmugasundaram
2016-02-29 10:02 ` Marc Kleine-Budde
2016-02-29 9:54 ` Geert Uytterhoeven
2016-02-29 11:06 ` Ramesh Shanmugasundaram
2016-02-29 9:21 ` [PATCH 2/2] arm64: dts: r8a7795: Add CAN support Ramesh Shanmugasundaram
2016-03-02 0:25 ` Simon Horman
2016-02-29 9:34 ` [PATCH 0/2] Add CAN support to r8a7795 SoC Marc Kleine-Budde
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=56D43DC8.8010409@pengutronix.de \
--to=mkl@pengutronix.de \
--cc=Chris.Paterson2@renesas.com \
--cc=devicetree@vger.kernel.org \
--cc=galak@codeaurora.org \
--cc=horms@verge.net.au \
--cc=ijc+devicetree@hellion.org.uk \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-can@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=magnus.damm@gmail.com \
--cc=mark.rutland@arm.com \
--cc=netdev@vger.kernel.org \
--cc=pawel.moll@arm.com \
--cc=ramesh.shanmugasundaram@bp.renesas.com \
--cc=robh+dt@kernel.org \
--cc=wg@grandegger.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).