All of lore.kernel.org
 help / color / mirror / Atom feed
From: knut.wohlrab@de.bosch.com (Knut Wohlrab)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] SPI: IMX5/6: Set inactive state of SPI clock (SCLK CTL) according to SPI clock polarity
Date: Mon, 27 Aug 2012 15:18:41 +0200	[thread overview]
Message-ID: <503B73B1.9010801@de.bosch.com> (raw)

For our SPI device we need a SPI clock with active low polarity and a a 
high inactive state.

We add the setting of the inactive state ECSPIx_CONFIGREG:SCLK CTL 
according to the clock polarity ECSPIx_CONFIGREG:SCLK POL:

Device tree _without_ "spi-cpol" = 0 = clock active high polarity = 
inactive state low
Device tree with "spi-cpol" = 1 = clock active low polarity = inactive 
state high

Are there real world examples for a need of an individual setting of 
clock polarity/inactive state?


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-SPI-IMX-Set-inactive-state-of-SPI-clock-SCLK-CTL.patch
Type: text/x-patch
Size: 1373 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20120827/51b4fafd/attachment.bin>

                 reply	other threads:[~2012-08-27 13:18 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=503B73B1.9010801@de.bosch.com \
    --to=knut.wohlrab@de.bosch.com \
    --cc=linux-arm-kernel@lists.infradead.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.