From: Eric Nelson <eric.nelson@boundarydevices.com>
To: Thanassis Silis <djnass_18@hotmail.com>
Cc: "meta-freescale@yoctoproject.org" <meta-freescale@yoctoproject.org>
Subject: Re: speed of /dev/i2c-2 in imx6q sabre-lite
Date: Tue, 13 Aug 2013 11:30:00 -0700 [thread overview]
Message-ID: <520A7B28.3000604@boundarydevices.com> (raw)
In-Reply-To: <DUB116-W48838616005F641B12364798440@phx.gbl>
Hi Thanassis,
On 08/13/2013 11:03 AM, Thanassis Silis wrote:
> Hello everyone,
> I am unaware as to who sets clock speed on the i2c bus and specifically
> on the /dev/i2c-2 which is exposed on the board so as to drive external
> equipment.
>
> I am looking into the linux-boundary kernel files in yocto (dylan) build
> dir, but I cannot figure out where that is set.
> To be honest I don't even know if i'll find that info there, but it
> seems like the right place to start (after googling about it of course).
>
> So who determined the speed (standard mode, fast mode, etc) for the
> external i2c? if it is a driver , which one should I be looking for?
>
This structure defines the speed of the I2C bus:
https://github.com/boundarydevices/linux-imx6/blob/boundary-imx_3.0.35_4.0.0/arch/arm/mach-mx6/board-mx6_nitrogen6x.c#L434
To change it for i2c-2 by itself, you'll need to make a copy of
that, change the speed value and pass the copy to the routine
imx6q_add_imx_i2c():
https://github.com/boundarydevices/linux-imx6/blob/boundary-imx_3.0.35_4.0.0/arch/arm/mach-mx6/board-mx6_nitrogen6x.c#L1320
> The reason is I am trying to drive some TMC222 low-power stepper motor
> control ICs, but they do not respond.
> Note I have successfully connected a number of other i2c ICs (among
> others the pca9505x).
>
> An answer is not necessary. Any pointers as to how to go about it , so I
> can learn about this is more than welcome.
> Thank you for your help.
>
This should be straightforward.
Let me know if you have any trouble.
Regards,
Eric
next prev parent reply other threads:[~2013-08-13 18:30 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-13 18:03 speed of /dev/i2c-2 in imx6q sabre-lite Thanassis Silis
2013-08-13 18:30 ` Eric Nelson [this message]
2013-08-14 12:25 ` Thanassis Silis
2013-08-14 14:28 ` Eric Nelson
2013-08-14 15:40 ` Thanassis Silis
2013-08-14 16:12 ` Eric Nelson
2013-08-14 18:44 ` Thanassis Silis
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=520A7B28.3000604@boundarydevices.com \
--to=eric.nelson@boundarydevices.com \
--cc=djnass_18@hotmail.com \
--cc=meta-freescale@yoctoproject.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.