Skip to contentSkip to conversation

AMCC 440 SPI question

DISCUSSION Steven A. Falco 3 participants 3 messages Sep 23, 2008

lore
Share & tools
lore
#0 lore raw

The yosemite.dts has the following entry, which leads me to believe that there is SPI support. I'd like to do something similar for a Sequoia board, but looking in Josh's "next" branch, I don't see any driver that would recognize the spi-440ep string. So my question is, is there a SPI driver for the PPC440, that is .dts aware?

			spi@ef600900 {
				compatible = "amcc,spi-440ep";
				reg = <ef600900 6>;
				interrupts = <8 4>;
				interrupt-parent = <&UIC0>;
			};

Also, googling for a driver, I find the patch that introduced this .dts file:

Patch: [PATCH 1/3][POWERPC] 4xx: Add AMCC 440EP Yosemite DTS patchwork.ozlabs.org/linuxppc/patch?id=16992

However, when I click on the patchwork link, I get a 404 error. Perhaps this just means the patch is old and has been removed from patchwork. But since it is a "1 of 3", I was hoping one of the other parts would contain the actual spi-440ep driver code.

Hints greatly appreciated!

Steve

#1 lore raw
Quoted 5 lines · Steven A. Falco

The yosemite.dts has the following entry, which leads me to believe that there is SPI support. I'd like to do something similar for a Sequoia board, but looking in Josh's "next" branch, I don't see any driver that would recognize the spi-440ep string. So my question is, is there a SPI driver for the PPC440, that is .dts aware?

There is no mainline driver, no. There might be one in the DENX kernel tree.

Quoted 11 lines
			spi@ef600900 {
				compatible = "amcc,spi-440ep";
				reg = <ef600900 6>;
				interrupts = <8 4>;
				interrupt-parent = <&UIC0>;
			};

Also, googling for a driver, I find the patch that introduced this .dts file:

Quoted 7 lines

Patch: [PATCH 1/3][POWERPC] 4xx: Add AMCC 440EP Yosemite DTS patchwork.ozlabs.org/linuxppc/patch?id=16992

However, when I click on the patchwork link, I get a 404 error. Perhaps this just means the patch is old and has been removed from patchwork. But since it is a "1 of 3", I was hoping one of the other parts would contain the actual spi-440ep driver code.

Patchwork was updated to a new version recently and the old one was either taken offline or moved elsewhere. The set of patches that added Yosemite didn't include an SPI driver (I know, I wrote them). I just enumerated the device in the DTS because it's on the board.

josh

#2 lore raw
Quoted 9 lines · Josh Boyer
Quoted 5 lines · Steven A. Falco

The yosemite.dts has the following entry, which leads me to believe that there is SPI support. I'd like to do something similar for a Sequoia board, but looking in Josh's "next" branch, I don't see any driver that would recognize the spi-440ep string. So my question is, is there a SPI driver for the PPC440, that is .dts aware?

There is no mainline driver, no. There might be one in the DENX kernel tree.

Correct. There is one in the "t1000-denx" branch of our linux-2.6-denx repository. But it's not ready for upstream merge yet. I already started cleaning up the driver and extracting the GPIO stuff into a 4xx GPIOLIB implementation. Hopefully I'll find the time to finish this and push the 4xx SPI & GPIOLIB stuff in the next 2-3 weeks.

Best regards,
Stefan

=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: [email protected]
=====================================================================