2015-11-01 06:42:43

by Wolfram Sang

[permalink] [raw]
Subject: Re: [PATCH 2/2] i2c: add driver for Sigma Designs SMP8642 I2C master

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 <[email protected]>

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?

Thanks,

Wolfram


Attachments:
(No filename) (1.06 kB)
signature.asc (819.00 B)
Digital signature
Download all attachments

2015-11-01 13:12:23

by Måns Rullgård

[permalink] [raw]
Subject: Re: [PATCH 2/2] i2c: add driver for Sigma Designs SMP8642 I2C master

Wolfram Sang <[email protected]> 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 <[email protected]>
>
> 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
[email protected]

2015-11-01 15:38:18

by Wolfram Sang

[permalink] [raw]
Subject: Re: [PATCH 2/2] i2c: add driver for Sigma Designs SMP8642 I2C master


> > 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.

Thanks, much appreciated!


Attachments:
(No filename) (372.00 B)
signature.asc (819.00 B)
Digital signature
Download all attachments