Skip to contentSkip to conversation

SPI core ?

RFC dmitry pervushin 2 participants 4 messages May 26, 2005

lore
Share & tools
lore
#0 lore raw

Hello guys,

In our internal linux tree, we have the SPI core support, which has been derived from I2C framework. The SPI support is very valuable for our customer; they want to attach various devices to SPI bus and want to have SPI support in linux kernel.

What community thinks about adding the SPI core to kernel to be maintained as part as I2C framework ?

Signature · 1 line
cheers, dmitry pervushin
#1 lore raw

Hi Dmitry,

Quoted 4 lines

In our internal linux tree, we have the SPI core support, which has been derived from I2C framework. The SPI support is very valuable for our customer; they want to attach various devices to SPI bus and want to have SPI support in linux kernel.

What is SPI please? Never heard of that.

Quoted 2 lines

What community thinks about adding the SPI core to kernel to be maintained as part as I2C framework ?

Please tell how SPI and I2C would be linked. We can't tell you what we think about an idea before you describe that idea in detail.

Thanks,
--
Jean Delvare

#2 lore raw
In reply to dmitry pervushin
Quoted 7 lines · Jean Delvare

Hi Dmitry,

Quoted 4 lines

In our internal linux tree, we have the SPI core support, which has been derived from I2C framework. The SPI support is very valuable for our customer; they want to attach various devices to SPI bus and want to have SPI support in linux kernel.

What is SPI please? Never heard of that.

SPI stands for "Serial Peripheral Interface". The SPI (this name was created by Motorola) is also known as Microwire. The Serial Peripheral Interface is used primarily for a synchronous serial communication of host processor and peripherals. There is a small introduction to SPI and comparison with I2C on embedded.com
(http://www.embedded.com/story/OEG20020124S0116)

Quoted 5 lines
Quoted 2 lines

What community thinks about adding the SPI core to kernel to be maintained as part as I2C framework ?

Please tell how SPI and I2C would be linked. We can't tell you what we think about an idea before you describe that idea in detail.

Both SPI and I2C are intended to provide support to communicate with slow devices. Looking from kernel developer's side, development of drivers for SPI devices would be similar to development for I2C devices, giving developer the abstraction of bus and primitives to use the bus capabilities.
From the other side, supporting the SPI as a sub-feature of I2C looks not as a good idea; SPI is capable to provide high-speed comunitications utilizing DMA channels. So I suggest to use drivers/spi directory to maintain SPI sub-tree.

Quoted 5 lines

Thanks,
--
Jean Delvare

Signature · 1 line
cheers, dmitry pervushin
#3 lore raw
In reply to dmitry pervushin

Hi Dmitry,

Quoted 8 lines
Quoted 1 line

What is SPI please? Never heard of that.

SPI stands for "Serial Peripheral Interface". The SPI (this name was created by Motorola) is also known as Microwire. The Serial Peripheral Interface is used primarily for a synchronous serial communication of host processor and peripherals. There is a small introduction to SPI and comparison with I2C on embedded.com
(http://www.embedded.com/story/OEG20020124S0116)

I read the article, ineteresting read, thanks.

Quoted 5 lines

Both SPI and I2C are intended to provide support to communicate with slow devices. Looking from kernel developer's side, development of drivers for SPI devices would be similar to development for I2C devices, giving developer the abstraction of bus and primitives to use the bus capabilities.

From the article, I think I understand that there are significant differences between both protocols. In particular, slave addressing is not part of the SPI protocol. The article suggests that the addressing is left to the master, so as far as the subsystem goes, it would be bus driver specific, or even worse, platform specific. In fact both protocols have very little in common, except for being master/slave-oriented serial busses, and are obviously in no way compatible.

Quoted 4 lines

From the other side, supporting the SPI as a sub-feature of I2C looks not as a good idea; SPI is capable to provide high-speed comunitications utilizing DMA channels. So I suggest to use drivers/spi directory to maintain SPI sub-tree.

I absolutely agree. There would be no benefit in creating any form of relation between two subsystems which would have almost no common code.

Thanks,
--
Jean Delvare