Re: [PATCH v5] GPIO: add support for 74x164 serial-in/parallel-out 8-bit shift register

From: Florian Fainelli
Date: Wed Oct 20 2010 - 13:05:50 EST


On Wednesday 20 October 2010 14:51:42 Bastien ROUCARIES wrote:
> On Mon, Oct 18, 2010 at 9:35 PM, Florian Fainelli <florian@xxxxxxxxxxx>
wrote:
> > From: Miguel Gaio <miguel.gaio@xxxxxxxxx>
> >
> > This patch adds support for generic 74x164 serial-in/parallel-out 8-bits
> > shift register. This driver can be used as a GPIO output expander.
>
> Could you add some documentation ? how to wire it both in soft and hard
> part?

This is just an example of course, and I will add a subsequent patch adding an
entry for it in Documentation/

static struct spi_board_info board_spi_devices[] = {
{
.modalias = "74x164",
.max_speed_hz = 781000,
.bus_num = 1,
.controller_data = (void *) SPI_GPIO_NO_CHIPSELECT,
.mode = SPI_MODE_0,
.platform_data = &nb4_74x164_platform_data
}
};

and then registering your board_spi_devices with:

spi_register_board_info(board_spi_devices, ARRAY_SIZE(board_spi_devices);
--
Florian
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/