From: "Måns Rullgård" <mans@mansr.com>
To: Wolfram Sang <wsa@the-dreams.de>
Cc: linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org
Subject: Re: [PATCH 2/2] i2c: add driver for Sigma Designs SMP8642 I2C master
Date: Sun, 01 Nov 2015 13:12:11 +0000 [thread overview]
Message-ID: <yw1x4mh5c190.fsf@unicorn.mansr.com> (raw)
In-Reply-To: <20151101064228.GA2010@katana> (Wolfram Sang's message of "Sun, 1 Nov 2015 07:42:29 +0100")
Wolfram Sang <wsa@the-dreams.de> writes:
> On Sat, Oct 31, 2015 at 05:35:57PM +0000, Mans Rullgard wrote:
>> This adds a driver for the Sigma Designs SMP8642 built-in I2C master
>> controller. The hardware is very similar to the I2C controller in the
>> Ralink RT3050 chip with the addition of interrupt generation and an
>> inverted busy/idle status bit. There are typically two controllers with
>> a shared IRQ.
>>
>> Signed-off-by: Mans Rullgard <mans@mansr.com>
>
> Thanks for the driver. Same answer as here, though:
>
> http://www.spinics.net/lists/linux-i2c/msg17001.html
>
>> +#define TANGOX_I2C_CONFIG 0x00
>> +#define TANGOX_I2C_CLKDIV 0x04
>> +#define TANGOX_I2C_DEVADDR 0x08
>> +#define TANGOX_I2C_ADDR 0x0c
>> +#define TANGOX_I2C_DATAOUT 0x10
>> +#define TANGOX_I2C_DATAIN 0x14
>> +#define TANGOX_I2C_STATUS 0x18
>> +#define TANGOX_I2C_STARTXFER 0x1c
>> +#define TANGOX_I2C_BYTECNT 0x20
>> +#define TANGOX_I2C_INT_EN 0x24
>> +#define TANGOX_I2C_INT_STAT 0x28
>
> The register set looks like the one from i2c-xlr.c, only that they are
> 32 bit apart instead of 8. Can you check if you can reuse that driver?
It does look very similar indeed. I thought I'd checked for an existing
driver, but apparently I missed that one. I'll modify the xlr driver to
handle this hardware as well instead.
--
Måns Rullgård
mans@mansr.com
next prev parent reply other threads:[~2015-11-01 13:12 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-31 17:35 [PATCH 1/2] devicetree: i2c: add binding " Mans Rullgard
2015-10-31 17:35 ` [PATCH 2/2] i2c: add driver " Mans Rullgard
2015-11-01 6:42 ` Wolfram Sang
2015-11-01 13:12 ` Måns Rullgård [this message]
2015-11-01 15:38 ` Wolfram Sang
2015-10-31 18:38 ` [PATCH 1/2] devicetree: i2c: add binding " Rob Herring
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=yw1x4mh5c190.fsf@unicorn.mansr.com \
--to=mans@mansr.com \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--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®