From: Rob Herring <robh@kernel.org>
To: Luis Oliveira <Luis.Oliveira@synopsys.com>
Cc: wsa@the-dreams.de, mark.rutland@arm.com,
jarkko.nikula@linux.intel.com, andriy.shevchenko@linux.intel.com,
mika.westerberg@linux.intel.com, linux-i2c@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
Ramiro.Oliveira@synopsys.com, Joao.Pinto@synopsys.com,
CARLOS.PALMINHA@synopsys.com
Subject: Re: [PATCH v6 4/6] i2c: designware: introducing I2C_SLAVE definitions
Date: Mon, 27 Feb 2017 11:24:25 -0600 [thread overview]
Message-ID: <20170227172425.cwg3wlzdm75lr5gz@rob-hp-laptop> (raw)
In-Reply-To: <36d6f21ead74e6436215f9ca449a42114ebec0d1.1487009294.git.lolivei@synopsys.com>
On Wed, Feb 15, 2017 at 12:22:13PM +0000, Luis Oliveira wrote:
> - Definitions were added to core library
> - A example was added to designware-core.txt Documentation that shows
> how the slave can be setup using DTS
>
> SLAVE related definitions were added to the core of the controller.
>
> Signed-off-by: Luis Oliveira <lolivei@synopsys.com>
> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> ---
> V5->V6
> - Included an example of use in the device tree binding document
>
> .../devicetree/bindings/i2c/i2c-designware.txt | 16 +++++++++-
> drivers/i2c/busses/i2c-designware-core.h | 35 ++++++++++++++++++++--
> 2 files changed, 48 insertions(+), 3 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/i2c/i2c-designware.txt b/Documentation/devicetree/bindings/i2c/i2c-designware.txt
> index fee26dc3e858..c6f1d9a63d18 100644
> --- a/Documentation/devicetree/bindings/i2c/i2c-designware.txt
> +++ b/Documentation/devicetree/bindings/i2c/i2c-designware.txt
> @@ -20,7 +20,7 @@ Optional properties :
> - i2c-sda-falling-time-ns : should contain the SDA falling time in nanoseconds.
> This value which is by default 300ns is used to compute the tHIGH period.
>
> -Example :
> +Examples :
>
> i2c@f0000 {
> #address-cells = <1>;
> @@ -43,3 +43,17 @@ Example :
> i2c-sda-falling-time-ns = <300>;
> i2c-scl-falling-time-ns = <300>;
> };
> +
> + i2c@01120000 {
Drop leading 0. With that, for the binding:
Acked-by: Rob Herring <robh@kernel.org>
> + #address-cells = <1>;
> + #size-cells = <0>;
> + reg = <0x2000 0x100>;
> + clock-frequency = <400000>;
> + clocks = <&i2cclk>;
> + interrupts = <0>;
> +
> + eeprom@64 {
> + compatible = "linux,slave-24c02";
> + reg = <0x40000064>;
> + };
> + };
next prev parent reply other threads:[~2017-02-27 17:33 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-15 12:22 [PATCH v6 0/6] i2c: designware: add I2C SLAVE support Luis Oliveira
2017-02-15 12:22 ` [PATCH v6 1/6] i2c: designware: Cleaning and comment style fixes Luis Oliveira
2017-02-15 13:12 ` Andy Shevchenko
2017-02-28 15:07 ` Jarkko Nikula
2017-02-15 12:22 ` [PATCH v6 2/6] i2c: designware: refactoring of the i2c-designware Luis Oliveira
2017-02-15 12:22 ` [PATCH v6 3/6] i2c: designware: MASTER mode as separated driver Luis Oliveira
2017-02-15 12:22 ` [PATCH v6 4/6] i2c: designware: introducing I2C_SLAVE definitions Luis Oliveira
2017-02-27 17:24 ` Rob Herring [this message]
2017-02-15 12:22 ` [PATCH v6 5/6] i2c: designware: add SLAVE mode functions Luis Oliveira
2017-02-15 12:22 ` [PATCH v6 6/6] i2c: designware: enable SLAVE in platform module Luis Oliveira
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=20170227172425.cwg3wlzdm75lr5gz@rob-hp-laptop \
--to=robh@kernel.org \
--cc=CARLOS.PALMINHA@synopsys.com \
--cc=Joao.Pinto@synopsys.com \
--cc=Luis.Oliveira@synopsys.com \
--cc=Ramiro.Oliveira@synopsys.com \
--cc=andriy.shevchenko@linux.intel.com \
--cc=devicetree@vger.kernel.org \
--cc=jarkko.nikula@linux.intel.com \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=mika.westerberg@linux.intel.com \
--cc=wsa@the-dreams.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
all inboxes | Powered by JetHome®