public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Heiko Schocher <hs@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [RFC PATCH 2/2] dm: i2c: support 10bit addressing in I2C uclass layer
Date: Mon, 05 Jan 2015 06:39:42 +0100	[thread overview]
Message-ID: <54AA239E.7070302@denx.de> (raw)
In-Reply-To: <1419014064-19214-3-git-send-email-yamada.m@jp.panasonic.com>

Hello Masahiro,

Am 19.12.2014 19:34, schrieb Masahiro Yamada:
> Master send to / receive from 10-bit addressed slave devices
> can be supported by software layer without any hardware change
> because the LSB 8bit of the slave address is treated as data part.
>
> Master Send to a 10bit-addressed slave chip is performed like this:
>
>   DIR    Format
>   M->S   11110 + address[9:8] + R/W(0)
>   M->S   address[7:0]
>   M->S   data0
>   M->S   data1
>        ...
>
> Master Receive from a 10bit-addressed slave chip is like this:
>
>   DIR    Format
>   M->S   11110 + address[9:8] + R/W(0)
>   M->S   address[7:0]
>          (Restart)
>   M->S   111110 + address[9:8] + R/W(1)
>   S->M   data0
>   S->M   data1
>        ...
>
> Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
> Cc: Heiko Schocher <hs@denx.de>
> Cc: Simon Glass <sjg@chromium.org>
> ---
>
>   drivers/i2c/i2c-uclass.c | 80 +++++++++++++++++++++++++++++++-----------------
>   include/i2c.h            |  4 +++
>   2 files changed, 56 insertions(+), 28 deletions(-)

Acked-by: Heiko Schocher <hs@denx.de>

bye,
Heiko
-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany

      parent reply	other threads:[~2015-01-05  5:39 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-19 18:34 [U-Boot] [RFC PATCH 0/2] This series supports 10bit addressing for driver-model I2C Masahiro Yamada
2014-12-19 18:34 ` [U-Boot] [RFC PATCH 1/2] cmd_i2c: change variable type for 10bit addressing support Masahiro Yamada
2014-12-19 21:23   ` Simon Glass
2014-12-29 21:59     ` Simon Glass
2015-01-05  5:38       ` Heiko Schocher
2014-12-19 18:34 ` [U-Boot] [RFC PATCH 2/2] dm: i2c: support 10bit addressing in I2C uclass layer Masahiro Yamada
2014-12-19 21:34   ` Simon Glass
2014-12-20  7:25     ` Masahiro YAMADA
2014-12-21 18:53       ` Simon Glass
2014-12-29 22:00         ` Simon Glass
2015-01-05 14:56         ` Masahiro YAMADA
2015-01-06  2:46           ` Simon Glass
2015-01-05  5:39   ` Heiko Schocher [this message]

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=54AA239E.7070302@denx.de \
    --to=hs@denx.de \
    --cc=u-boot@lists.denx.de \
    /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