Link: https://lore.kernel.org/r/20260217200002.683975158@linuxfoundation.org Tested-by: Florian Fainelli <florian.fainelli@broadcom.com> Tested-by: Takeshi Ogasawara <takeshi.ogasawara@futuring-girl.com> Tested-by: Peter Schneider <pschneider1968@googlemail.com> Tested-by: Jon Hunter <jonathanh@nvidia.com> Tested-by: Salvatore Bonaccorso <carnil@debian.org> Tested-by: Brett A C Sheffield <bacs@librecast.net> Tested-by: Mark Brown <broonie@kernel.org> Tested-by: Luna Jernberg <droidbittin@gmail.com> Tested-by: Ronald Warsow <rwarsow@gmx.de> Tested-by: Justin M. Forbes <jforbes@fedoraproject.org> Tested-by: Ron Economos <re@w6rz.net> Tested-by: Miguel Ojeda <ojeda@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
26 lines
741 B
C
26 lines
741 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef __LINUX_SPI_GPIO_H
|
|
#define __LINUX_SPI_GPIO_H
|
|
|
|
/*
|
|
* For each bitbanged SPI bus, set up a platform_device node with:
|
|
* - name "spi_gpio"
|
|
* - id the same as the SPI bus number it implements
|
|
* - dev.platform data pointing to a struct spi_gpio_platform_data
|
|
*
|
|
* Use spi_board_info with these busses in the usual way.
|
|
*
|
|
* If the bitbanged bus is later switched to a "native" controller,
|
|
* that platform_device and controller_data should be removed.
|
|
*/
|
|
|
|
/**
|
|
* struct spi_gpio_platform_data - parameter for bitbanged SPI host controller
|
|
* @num_chipselect: how many target devices to allow
|
|
*/
|
|
struct spi_gpio_platform_data {
|
|
u16 num_chipselect;
|
|
};
|
|
|
|
#endif /* __LINUX_SPI_GPIO_H */
|