/linux-6.12.1/drivers/spi/ |
D | spi-bitbang.c | 57 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 …]
|
D | spi-sh-sci.c | 25 struct spi_bitbang bitbang; member 139 sp->bitbang.ctlr = host; in sh_sci_spi_probe() 140 sp->bitbang.ctlr->bus_num = sp->info->bus_num; in sh_sci_spi_probe() 141 sp->bitbang.ctlr->num_chipselect = sp->info->num_chipselect; in sh_sci_spi_probe() 142 sp->bitbang.chipselect = sh_sci_spi_chipselect; in sh_sci_spi_probe() 144 sp->bitbang.txrx_word[SPI_MODE_0] = sh_sci_spi_txrx_mode0; in sh_sci_spi_probe() 145 sp->bitbang.txrx_word[SPI_MODE_1] = sh_sci_spi_txrx_mode1; in sh_sci_spi_probe() 146 sp->bitbang.txrx_word[SPI_MODE_2] = sh_sci_spi_txrx_mode2; in sh_sci_spi_probe() 147 sp->bitbang.txrx_word[SPI_MODE_3] = sh_sci_spi_txrx_mode3; in sh_sci_spi_probe() 162 ret = spi_bitbang_start(&sp->bitbang); in sh_sci_spi_probe() [all …]
|
D | spi-lm70llp.c | 71 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()
|
D | spi-butterfly.c | 51 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()
|
D | spi-xtensa-xtfpga.c | 25 struct spi_bitbang bitbang; member 96 xspi->bitbang.ctlr = host; in xtfpga_spi_probe() 97 xspi->bitbang.chipselect = xtfpga_spi_chipselect; in xtfpga_spi_probe() 98 xspi->bitbang.txrx_word[SPI_MODE_0] = xtfpga_spi_txrx_word; in xtfpga_spi_probe() 110 ret = spi_bitbang_start(&xspi->bitbang); in xtfpga_spi_probe() 125 spi_bitbang_stop(&xspi->bitbang); in xtfpga_spi_remove()
|
D | spi-ath79.c | 41 struct spi_bitbang bitbang; member 192 sp->bitbang.ctlr = host; in ath79_spi_probe() 193 sp->bitbang.chipselect = ath79_spi_chipselect; in ath79_spi_probe() 194 sp->bitbang.txrx_word[SPI_MODE_0] = ath79_spi_txrx_mode0; in ath79_spi_probe() 195 sp->bitbang.flags = SPI_CS_HIGH; in ath79_spi_probe() 220 ret = spi_bitbang_start(&sp->bitbang); in ath79_spi_probe() 238 spi_bitbang_stop(&sp->bitbang); in ath79_spi_remove() 240 spi_controller_put(sp->bitbang.ctlr); in ath79_spi_remove()
|
D | spi-oc-tiny.c | 38 struct spi_bitbang bitbang; member 195 hw->bitbang.ctlr->dev.of_node = pdev->dev.of_node; in tiny_spi_of_probe() 230 hw->bitbang.ctlr = host; in tiny_spi_probe() 231 hw->bitbang.setup_transfer = tiny_spi_setup_transfer; in tiny_spi_probe() 232 hw->bitbang.txrx_bufs = tiny_spi_txrx_bufs; in tiny_spi_probe() 260 err = spi_bitbang_start(&hw->bitbang); in tiny_spi_probe() 275 struct spi_controller *host = hw->bitbang.ctlr; in tiny_spi_remove() 277 spi_bitbang_stop(&hw->bitbang); in tiny_spi_remove()
|
D | spi-omap-uwire.c | 89 struct spi_bitbang bitbang; member 451 spi_controller_put(uwire->bitbang.ctlr); in uwire_off() 496 uwire->bitbang.ctlr = host; in uwire_probe() 497 uwire->bitbang.chipselect = uwire_chipselect; in uwire_probe() 498 uwire->bitbang.setup_transfer = uwire_setup_transfer; in uwire_probe() 499 uwire->bitbang.txrx_bufs = uwire_txrx; in uwire_probe() 501 status = spi_bitbang_start(&uwire->bitbang); in uwire_probe() 514 spi_bitbang_stop(&uwire->bitbang); in uwire_remove()
|
D | spi-ppc4xx.c | 112 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()
|
D | spi-xilinx.c | 81 struct spi_bitbang bitbang; member 437 xspi->bitbang.ctlr = host; in xilinx_spi_probe() 438 xspi->bitbang.chipselect = xilinx_spi_chipselect; in xilinx_spi_probe() 439 xspi->bitbang.setup_transfer = xilinx_spi_setup_transfer; in xilinx_spi_probe() 440 xspi->bitbang.txrx_bufs = xilinx_spi_txrx_bufs; in xilinx_spi_probe() 489 ret = spi_bitbang_start(&xspi->bitbang); in xilinx_spi_probe() 512 spi_bitbang_stop(&xspi->bitbang); in xilinx_spi_remove() 519 spi_controller_put(xspi->bitbang.ctlr); in xilinx_spi_remove()
|
D | spi-davinci.c | 105 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 …]
|
D | spi-gpio.c | 33 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()
|
D | spi-au1550.c | 41 struct spi_bitbang bitbang; member 794 hw->bitbang.ctlr = hw->host; in au1550_spi_probe() 795 hw->bitbang.setup_transfer = au1550_spi_setupxfer; in au1550_spi_probe() 796 hw->bitbang.chipselect = au1550_spi_chipsel; in au1550_spi_probe() 797 hw->bitbang.txrx_bufs = au1550_spi_txrx_bufs; in au1550_spi_probe() 875 err = spi_bitbang_start(&hw->bitbang); in au1550_spi_probe() 924 spi_bitbang_stop(&hw->bitbang); in au1550_spi_remove()
|
/linux-6.12.1/drivers/net/ethernet/freescale/fs_enet/ |
D | mii-bitbang.c | 57 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 …]
|
D | Makefile | 13 obj-$(CONFIG_FS_ENET_MDIO_FCC) += mii-bitbang.o
|
/linux-6.12.1/drivers/net/mdio/ |
D | mdio-gpio.c | 36 struct mdio_gpio_info *bitbang) in mdio_gpio_get_data() argument 38 bitbang->mdc = devm_gpiod_get_index(dev, NULL, MDIO_GPIO_MDC, in mdio_gpio_get_data() 40 if (IS_ERR(bitbang->mdc)) in mdio_gpio_get_data() 41 return PTR_ERR(bitbang->mdc); in mdio_gpio_get_data() 43 bitbang->mdio = devm_gpiod_get_index(dev, NULL, MDIO_GPIO_MDIO, in mdio_gpio_get_data() 45 if (IS_ERR(bitbang->mdio)) in mdio_gpio_get_data() 46 return PTR_ERR(bitbang->mdio); in mdio_gpio_get_data() 48 bitbang->mdo = devm_gpiod_get_index_optional(dev, NULL, MDIO_GPIO_MDO, in mdio_gpio_get_data() 50 return PTR_ERR_OR_ZERO(bitbang->mdo); in mdio_gpio_get_data() 55 struct mdio_gpio_info *bitbang = in mdio_dir() local [all …]
|
D | Makefile | 11 obj-$(CONFIG_MDIO_BITBANG) += mdio-bitbang.o
|
/linux-6.12.1/drivers/net/ethernet/renesas/ |
D | sh_eth.c | 1178 struct bb_info *bitbang = container_of(ctrl, struct bb_info, ctrl); in sh_mdio_ctrl() local 1181 if (bitbang->set_gate) in sh_mdio_ctrl() 1182 bitbang->set_gate(bitbang->addr); in sh_mdio_ctrl() 1184 pir = ioread32(bitbang->addr); in sh_mdio_ctrl() 1189 iowrite32(pir, bitbang->addr); in sh_mdio_ctrl() 1207 struct bb_info *bitbang = container_of(ctrl, struct bb_info, ctrl); in sh_get_mdio() local 1209 if (bitbang->set_gate) in sh_get_mdio() 1210 bitbang->set_gate(bitbang->addr); in sh_get_mdio() 1212 return (ioread32(bitbang->addr) & PIR_MDI) != 0; in sh_get_mdio() 3093 struct bb_info *bitbang; in sh_mdio_init() local [all …]
|
/linux-6.12.1/arch/arm/boot/dts/nxp/imx/ |
D | imx6q-prtwd2.dts | 39 /* PRTWD2 rev 1 bitbang I2C for Ethernet Switch */
|
/linux-6.12.1/Documentation/driver-api/gpio/ |
D | drivers-on-gpio.rst | 54 (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-6.12.1/arch/powerpc/boot/dts/ |
D | ep8248e.dts | 66 compatible = "fsl,ep8248e-mdio-bitbang";
|
D | mgcoge.dts | 171 compatible = "fsl,cpm2-mdio-bitbang";
|
D | ksi8560.dts | 279 compatible = "fsl,cpm2-mdio-bitbang";
|
/linux-6.12.1/arch/arm64/boot/dts/qcom/ |
D | msm8953-xiaomi-daisy.dts | 79 * We bitbang on &i2c_4 because BLSP is protected by TZ as sensors are
|
D | msm8953-xiaomi-vince.dts | 70 * We bitbang on &i2c_4 because BLSP is protected by TZ as sensors are
|