Home
last modified time | relevance | path

Searched refs:bitbang (Results 1 – 19 of 19) sorted by relevance

/linux/drivers/spi/
H A Dspi-bitbang.c57 struct spi_bitbang *bitbang; in bitbang_txrx_8() local
63 bitbang = spi_controller_get_devdata(spi->controller); in bitbang_txrx_8()
76 if (bitbang->set_mosi_idle) in bitbang_txrx_8()
77 bitbang->set_mosi_idle(spi); in bitbang_txrx_8()
88 struct spi_bitbang *bitbang; in bitbang_txrx_16() local
94 bitbang = spi_controller_get_devdata(spi->controller); in bitbang_txrx_16()
107 if (bitbang->set_mosi_idle) in bitbang_txrx_16()
108 bitbang->set_mosi_idle(spi); in bitbang_txrx_16()
119 struct spi_bitbang *bitbang; in bitbang_txrx_32() local
125 bitbang = spi_controller_get_devdata(spi->controller); in bitbang_txrx_32()
[all …]
H A Dspi-lm70llp.c71 struct spi_bitbang bitbang; member
215 pp->bitbang.ctlr = host; in spi_lm70llp_attach()
216 pp->bitbang.chipselect = lm70_chipselect; in spi_lm70llp_attach()
217 pp->bitbang.txrx_word[SPI_MODE_0] = lm70_txrx; in spi_lm70llp_attach()
218 pp->bitbang.flags = SPI_3WIRE; in spi_lm70llp_attach()
242 status = spi_bitbang_start(&pp->bitbang); in spi_lm70llp_attach()
267 pp->spidev_lm70 = spi_new_device(pp->bitbang.ctlr, &pp->info); in spi_lm70llp_attach()
282 spi_bitbang_stop(&pp->bitbang); in spi_lm70llp_attach()
304 spi_bitbang_stop(&pp->bitbang); in spi_lm70llp_detach()
312 spi_controller_put(pp->bitbang.ctlr); in spi_lm70llp_detach()
H A Dspi-butterfly.c51 struct spi_bitbang bitbang; member
208 pp->bitbang.ctlr = host; in butterfly_attach()
209 pp->bitbang.chipselect = butterfly_chipselect; in butterfly_attach()
210 pp->bitbang.txrx_word[SPI_MODE_0] = butterfly_txrx_word_mode0; in butterfly_attach()
252 status = spi_bitbang_start(&pp->bitbang); in butterfly_attach()
266 pp->dataflash = spi_new_device(pp->bitbang.ctlr, &pp->info[0]); in butterfly_attach()
302 spi_bitbang_stop(&pp->bitbang); in butterfly_detach()
311 spi_controller_put(pp->bitbang.ctlr); in butterfly_detach()
H A Dspi-ppc4xx.c112 struct spi_bitbang bitbang; member
201 mutex_lock(&hw->bitbang.lock); in spi_ppc4xx_setupxfer()
202 if (!hw->bitbang.busy) { in spi_ppc4xx_setupxfer()
203 hw->bitbang.chipselect(spi, BITBANG_CS_INACTIVE); in spi_ppc4xx_setupxfer()
206 mutex_unlock(&hw->bitbang.lock); in spi_ppc4xx_setupxfer()
359 bbp = &hw->bitbang; in spi_ppc4xx_of_probe()
471 spi_bitbang_stop(&hw->bitbang); in spi_ppc4xx_of_remove()
H A Dspi-davinci.c105 struct spi_bitbang bitbang; member
462 struct device *sdev = dspi->bitbang.ctlr->dev.parent; in davinci_spi_check_error()
751 struct device *sdev = dspi->bitbang.ctlr->dev.parent; in davinci_spi_request_dma()
922 dspi->bitbang.ctlr = host; in davinci_spi_probe()
940 dspi->bitbang.chipselect = davinci_spi_chipselect; in davinci_spi_probe()
941 dspi->bitbang.setup_transfer = davinci_spi_setup_transfer; in davinci_spi_probe()
945 dspi->bitbang.flags = SPI_NO_CS | SPI_LSB_FIRST | SPI_LOOP | SPI_CS_WORD; in davinci_spi_probe()
947 dspi->bitbang.flags |= SPI_READY; in davinci_spi_probe()
949 dspi->bitbang.txrx_bufs = davinci_spi_bufs; in davinci_spi_probe()
984 ret = spi_bitbang_start(&dspi->bitbang); in davinci_spi_probe()
[all …]
H A Dspi-gpio.c33 struct spi_bitbang bitbang; member
81 spi_gpio = container_of(bang, struct spi_gpio, bitbang); in spi_to_spi_gpio()
416 bb = &spi_gpio->bitbang; in spi_gpio_probe()
441 status = spi_bitbang_init(&spi_gpio->bitbang); in spi_gpio_probe()
H A DKconfig242 With a few GPIO pins, your system can bitbang the SPI protocol.
/linux/drivers/net/ethernet/freescale/fs_enet/
H A Dmii-bitbang.c57 struct bb_info *bitbang = container_of(ctrl, struct bb_info, ctrl); in mdio_dir() local
60 bb_set(bitbang->dir, bitbang->mdio_msk); in mdio_dir()
62 bb_clr(bitbang->dir, bitbang->mdio_msk); in mdio_dir()
65 in_be32(bitbang->dir); in mdio_dir()
70 struct bb_info *bitbang = container_of(ctrl, struct bb_info, ctrl); in mdio_read() local
71 return bb_read(bitbang->dat, bitbang->mdio_msk); in mdio_read()
76 struct bb_info *bitbang = container_of(ctrl, struct bb_info, ctrl); in mdio() local
79 bb_set(bitbang->dat, bitbang->mdio_msk); in mdio()
81 bb_clr(bitbang->dat, bitbang->mdio_msk); in mdio()
84 in_be32(bitbang->dat); in mdio()
[all …]
H A DMakefile13 obj-$(CONFIG_FS_ENET_MDIO_FCC) += mii-bitbang.o
/linux/drivers/net/mdio/
H A DMakefile11 obj-$(CONFIG_MDIO_BITBANG) += mdio-bitbang.o
/linux/drivers/staging/gpib/
H A DKconfig144 tristate "RPi GPIO bitbang"
148 GPIB bitbang driver Raspberry Pi GPIO adapters
/linux/Documentation/driver-api/gpio/
H A Ddrivers-on-gpio.rst54 (two wires, SDA and SCL lines) by hammering (bitbang) two GPIO lines. It will
60 GPIO hammering (bitbang). It will appear as any other SPI bus on the system
/linux/arch/powerpc/boot/dts/
H A Dep8248e.dts66 compatible = "fsl,ep8248e-mdio-bitbang";
H A Dmgcoge.dts171 compatible = "fsl,cpm2-mdio-bitbang";
H A Dksi8560.dts279 compatible = "fsl,cpm2-mdio-bitbang";
/linux/arch/arm64/boot/dts/qcom/
H A Dmsm8953-xiaomi-daisy.dts79 * We bitbang on &i2c_4 because BLSP is protected by TZ as sensors are
H A Dmsm8953-xiaomi-vince.dts70 * We bitbang on &i2c_4 because BLSP is protected by TZ as sensors are
/linux/arch/arm/boot/dts/microchip/
H A Dat91sam9261.dtsi529 pinctrl_i2c_bitbang: i2c-0-bitbang {
/linux/Documentation/admin-guide/media/
H A Dbttv.rst180 maximum supported speed by kernel bitbang