mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Alexander Kurz <akurz@blala.de>
To: Alexander Shiyan <shc_work@mail.ru>,
	Sascha Hauer <s.hauer@pengutronix.de>
Cc: barebox@lists.infradead.org
Subject: mc13xxx: Define maximum SPI clock frequency global to driver
Date: Tue, 19 Jul 2016 19:18:35 +0200 (CEST)	[thread overview]
Message-ID: <alpine.DEB.2.00.1607191912280.9957@blala.de> (raw)

Hi,
I just ran into a problem resulting from patch 6e18b3a48ee4
("mc13xxx: Define maximum SPI clock frequency global to driver").

On a kindle2 board the SPI communication between an iMX31 and a MC13783 
won't work at 20MHz. Unfortunately both ICs are BGA mounted blocking any 
access with scope probes. Attempts to tweak the pad properties to
PAD_CTL_DRV_HIGH | PAD_CTL_SRE_FAST | PAD_CTL_100K_PU
did not solve the problem - anyway this is a battery powered device where
the original implementers took great care on long battery life,
e.g. PAD_CTL_DRV_HIGH should not be nessesary for PMIC control.

I do not see any way to override the 20MHz bitrate from board code, and 
since the PMIC access is not time critical on an ebook-reader my choice
would be rather 200kHz.

Is there any way to override the driver supplied default max_speed_hz?
If not, my proposal is to either
* revert this patch and let the board code choose frequency
or
* reduce the speed to some common acceptable rate, e.g. 6MHz are fine

How was this solved with other SPI devices?

Cheers, Alexander


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

             reply	other threads:[~2016-07-19 17:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-19 17:18 Alexander Kurz [this message]
2016-07-19 18:15 ` Alexander Shiyan
2016-07-19 20:31   ` Alexander Kurz

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=alpine.DEB.2.00.1607191912280.9957@blala.de \
    --to=akurz@blala.de \
    --cc=barebox@lists.infradead.org \
    --cc=s.hauer@pengutronix.de \
    --cc=shc_work@mail.ru \
    /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