Home
last modified time | relevance | path

Searched full:mosi (Results 1 – 25 of 173) sorted by relevance

1234567

/openbmc/u-boot/drivers/video/
H A Dhitachi_tx18d42vm_lcd.c18 static void lcd_panel_spi_write(int cs, int clk, int mosi, in lcd_panel_spi_write() argument
27 gpio_direction_output(mosi, (data >> offset) & 1); in lcd_panel_spi_write()
48 int i, cs, clk, mosi, ret = 0; in hitachi_tx18d42vm_init() local
52 mosi = name_to_gpio(CONFIG_VIDEO_LCD_SPI_MOSI); in hitachi_tx18d42vm_init()
54 if (cs == -1 || clk == -1 || mosi == 1) { in hitachi_tx18d42vm_init()
61 gpio_request(mosi, "tx18d42vm-spi-mosi") != 0) { in hitachi_tx18d42vm_init()
68 lcd_panel_spi_write(cs, clk, mosi, init_data[i], 16); in hitachi_tx18d42vm_init()
72 lcd_panel_spi_write(cs, clk, mosi, 0x00ad, 16); /* display on */ in hitachi_tx18d42vm_init()
75 gpio_free(mosi); in hitachi_tx18d42vm_init()
/openbmc/u-boot/board/renesas/stout/
H A Dcpld.c17 #define MOSI (92 + 26) macro
33 gpio_set_value(MOSI, addr & 0x80); /* MSB first */ in cpld_read()
39 gpio_set_value(MOSI, 0); /* READ */ in cpld_read()
60 gpio_set_value(MOSI, data & (1 << 31)); /* MSB first */ in cpld_write()
67 gpio_set_value(MOSI, addr & 0x80); /* MSB first */ in cpld_write()
73 gpio_set_value(MOSI, 1); /* WRITE */ in cpld_write()
95 gpio_request(MOSI, "MOSI"); in cpld_init()
100 gpio_direction_output(MOSI, 0); in cpld_init()
/openbmc/linux/drivers/spi/
H A Dspi-gpio.c36 struct gpio_desc *mosi; member
48 * numbers used for MISO/MOSI/SCK, and issue procedure calls for
97 gpiod_set_value_cansleep(spi_gpio->mosi, is_on); in setmosi()
105 return !!gpiod_get_value_cansleep(spi_gpio->mosi); in getmiso()
175 * speed in the generic case (when both MISO and MOSI lines are
268 return gpiod_direction_output(spi_gpio->mosi, 1); in spi_gpio_set_direction()
271 * Only change MOSI to an input if using 3WIRE mode. in spi_gpio_set_direction()
272 * Otherwise, MOSI could be left floating if there is in spi_gpio_set_direction()
279 ret = gpiod_direction_input(spi_gpio->mosi); in spi_gpio_set_direction()
317 spi_gpio->mosi = devm_gpiod_get_optional(dev, "mosi", GPIOD_OUT_LOW); in spi_gpio_request()
[all …]
/openbmc/u-boot/board/renesas/ulcb/
H A Dcpld.c25 struct gpio_desc mosi; member
37 dm_gpio_set_value(&priv->mosi, !!(addr & 0x80)); /* MSB first */ in cpld_read()
43 dm_gpio_set_value(&priv->mosi, 0); /* READ */ in cpld_read()
65 dm_gpio_set_value(&priv->mosi, data & (1 << 31)); /* MSB first */ in cpld_write()
72 dm_gpio_set_value(&priv->mosi, addr & 0x80); /* MSB first */ in cpld_write()
78 dm_gpio_set_value(&priv->mosi, 1); /* WRITE */ in cpld_write()
161 if (gpio_request_by_name(dev, "gpio-mosi", 0, &priv->mosi, in renesas_ulcb_sysreset_probe()
/openbmc/linux/Documentation/devicetree/bindings/pinctrl/
H A Dmarvell,kirkwood-pinctrl.txt25 mpp1 1 gpo, nand(io3), spi(mosi)
30 mpp6 6 sysrst(out), spi(mosi), ptp(trig)
63 mpp1 1 gpo, nand(io3), spi(mosi)
68 mpp6 6 sysrst(out), spi(mosi), ptp(trig)
107 mpp1 1 gpo, nand(io3), spi(mosi)
112 mpp6 6 sysrst(out), spi(mosi), ptp(trig)
141 mpp27 27 gpio, ge1(rxd3), ts(mp7), tdm(spi-mosi), audio(sdi)
156 mpp1 1 gpo, nand(io3), spi(mosi)
161 mpp6 6 sysrst(out), spi(mosi), ptp(trig)
190 mpp27 27 gpio, ge1(rxd3), ts(mp7), tdm(spi-mosi), audio(sdi)
[all …]
H A Dmarvell,armada-370-pinctrl.txt33 mpp14 14 gpio, ge0(rxd3), pcie(clkreq0), sd0(d2), spi1(mosi),
44 mpp23 23 gpo, ge0(txd7), ge1(txd3), spi1(mosi)
55 mpp34 34 gpo, dev(we0), spi0(mosi)
75 mpp51 51 gpio, dev(ad12), i2c1(sda), sd0(d2), spi1(mosi)
96 mpp65 65 gpio, spi0(mosi), spi0(cs2)
H A Dmarvell,armada-375-pinctrl.txt17 mpp1 1 gpio, dev(ad3), spi0(mosi), spi1(mosi)
47 mpp31 31 gpio, ge1(txd1), spi1(mosi)
H A Dmarvell,dove-pinctrl.txt26 mpp6 6 gpio, pmu, uart3(txd), sdio1(buspwr), spi1(mosi), pmu*
48 mpp22 22 gpio, sdio0(buspwr), sdio1(buspwr), spi1(mosi),
49 lcd-spi(mosi), uart1(cts), ssp(txd)
H A Dmarvell,armada-38x-pinctrl.txt33 mpp15 15 gpio, ge0(rxd3), ge(mdc slave), pcie0(rstout), spi0(mosi)
40 mpp22 22 gpio, spi0(mosi), dev(ad0)
74 mpp56 56 gpio, ua1(rts), ge(mdc), dram(deccerr), spi1(mosi), ua1(txd)
H A Dmarvell,armada-39x-pinctrl.txt33 mpp15 15 gpio, pcie0(rstout), spi0(mosi), i2c1(sck)
41 mpp22 22 gpio, spi0(mosi), dev(ad0)
78 mpp56 56 gpio, ua1(rts), dram(deccerr), spi1(mosi), ua1(txd)
H A Dmarvell,armada-xp-pinctrl.txt34 mpp13 13 gpio, ge0(txd5), ge1(txd0), spi1(mosi), lcd(d13)
57 mpp36 36 gpio, spi0(mosi)
/openbmc/linux/Documentation/devicetree/bindings/spi/
H A Dspi-gpio.yaml31 mosi-gpios:
32 description: GPIO spec for the MOSI line to use
49 gpio-mosi: false
67 mosi-gpios = <&gpio 97 0>;
/openbmc/u-boot/doc/device-tree-bindings/spi/
H A Dsoft-spi.txt14 gpio-mosi: GPIO to use for SPI MOSI line (output)
31 gpio-mosi = <&gpio 227 0>; /* Y33 */
/openbmc/linux/drivers/iio/dac/
H A Dmcp4922.c34 u8 mosi[2] __aligned(IIO_DMA_MINALIGN);
54 state->mosi[1] = val & 0xff; in mcp4922_spi_write()
55 state->mosi[0] = (addr == 0) ? 0x00 : 0x80; in mcp4922_spi_write()
56 state->mosi[0] |= 0x30 | ((val >> 8) & 0x0f); in mcp4922_spi_write()
58 return spi_write(state->spi, state->mosi, 2); in mcp4922_spi_write()
/openbmc/linux/arch/arm64/boot/dts/mediatek/
H A Dmt8192-asurada.dtsi757 aud_clk_mosi_off_pins: aud-clk-mosi-off-pins {
758 pins-mosi-off {
764 aud_clk_mosi_on_pins: aud-clk-mosi-on-pins {
765 pins-mosi-on {
811 aud_dat_mosi_ch34_off_pins: aud-dat-mosi-ch34-off-pins {
812 pins-mosi-off {
817 aud_dat_mosi_ch34_on_pins: aud-dat-mosi-ch34-on-pins {
818 pins-mosi-on {
823 aud_dat_mosi_off_pins: aud-dat-mosi-off-pins {
824 pins-mosi-off {
[all …]
/openbmc/linux/Documentation/devicetree/bindings/arm/marvell/
H A Dcp110-system-controller.txt100 mpp9 9 gpio, dev(ad8), ge0(txd0), spi0(mosi), spi1(mosi), pcie(rstoutn), synce2(clk)
106 mpp15 15 gpio, dev(ad7), spi1(mosi), spi0(mosi), mss_spi(mosi), ptp(pulse_cp2cp)
120 mpp29 29 gpio, dev(csn2), spi1(mosi), mss_gpio6, ge0(rxd1), spi0(csn6), pcie1(clkreq), ptp(clk), ms…
125 mpp34 34 gpio, mii(rxerr), sdio(pwr11), mss_spi(mosi), tdm(dtx), au(i2slrclk), sdio(wr_protect), ge…
132 mpp41 41 gpio, sdio(pwr10), sdio(bus_pwr), mss_i2c(sck), au(i2slrclk), ptp(pulse), spi0(mosi), uart…
139 mpp48 48 gpio, ge1(txctl_txen), spi1(mosi), xg(mdc), wakeup(in_cp2cp)
148 mpp57 57 gpio, mss_i2c(sda), ptp(pclk_out), tdm(intn), au(i2sbclk), spi0(mosi), uart1(txd), sata0(p…
/openbmc/u-boot/drivers/spi/
H A Dsoft_spi.c25 struct gpio_desc mosi; member
53 dm_gpio_set_value(&plat->mosi, bit); in soft_spi_sda()
98 * This writes "bitlen" bits out the SPI MOSI port and simultaneously clocks
227 ret = gpio_request_by_name(dev, "gpio-mosi", 0, &plat->mosi, in soft_spi_probe()
/openbmc/linux/sound/soc/mediatek/mt8186/
H A Dmt8186-afe-gpio.c140 dev_dbg(dev, "%s(), MOSI CLK ON select fail!\n", __func__); in mt8186_afe_gpio_adda_dl()
146 dev_dbg(dev, "%s(), MOSI DAT ON select fail!\n", __func__); in mt8186_afe_gpio_adda_dl()
152 dev_dbg(dev, "%s(), MOSI DAT OFF select fail!\n", __func__); in mt8186_afe_gpio_adda_dl()
158 dev_dbg(dev, "%s(), MOSI CLK ON select fail!\n", __func__); in mt8186_afe_gpio_adda_dl()
/openbmc/linux/drivers/pinctrl/mvebu/
H A Dpinctrl-armada-cp110.c144 MPP_FUNCTION(4, "spi0", "mosi"),
145 MPP_FUNCTION(5, "spi1", "mosi"),
192 MPP_FUNCTION(3, "spi1", "mosi"),
193 MPP_FUNCTION(6, "spi0", "mosi"),
194 MPP_FUNCTION(8, "mss_spi", "mosi"),
273 MPP_FUNCTION(2, "spi1", "mosi"),
329 MPP_FUNCTION(3, "mss_spi", "mosi"),
413 MPP_FUNCTION(6, "spi0", "mosi"),
466 MPP_FUNCTION(5, "spi1", "mosi"),
543 MPP_FUNCTION(6, "spi0", "mosi"),
H A Dpinctrl-armada-375.c30 MPP_FUNCTION(0x2, "spi0", "mosi"),
31 MPP_FUNCTION(0x3, "spi1", "mosi"),
40 MPP_FUNCTION(0x6, "spi1", "mosi")),
109 MPP_FUNCTION(0x6, "spi1", "mosi")),
156 MPP_FUNCTION(0x5, "spi0", "mosi"),
196 MPP_FUNCTION(0x3, "spi1", "mosi"),
H A Dpinctrl-armada-370.c100 MPP_FUNCTION(0x4, "spi1", "mosi"),
144 MPP_FUNCTION(0x4, "spi1", "mosi")),
193 MPP_FUNCTION(0x2, "spi0", "mosi")),
275 MPP_FUNCTION(0x4, "spi1", "mosi")),
358 MPP_FUNCTION(0x1, "spi0", "mosi"),
/openbmc/linux/Documentation/spi/
H A Dbutterfly.rst37 MOSI J403.PB2/MOSI pin 9/D7
68 MOSI J403.PE5/DI pin 6/D4
/openbmc/linux/Documentation/driver-api/
H A Dspi.rst7 often in the range of 1-20 MHz), a "Master Out, Slave In" (MOSI) data
9 duplex protocol; for each bit shifted out the MOSI line (one per clock)
/openbmc/linux/arch/arm/boot/dts/st/
H A Dste-nomadik-nhk15.dts209 * and MOSI (in the spec MOSI is called "SDA").
212 mosi-gpios = <&gpio0 4 GPIO_ACTIVE_HIGH>;
/openbmc/linux/drivers/pinctrl/sunxi/
H A Dpinctrl-suniv-f1c100s.c45 SUNXI_FUNCTION(0x6, "spi1")), /* MOSI */
78 SUNXI_FUNCTION(0x6, "spi1")), /* MOSI */
113 SUNXI_FUNCTION(0x2, "spi0"), /* MOSI */
238 SUNXI_FUNCTION(0x3, "spi0"), /* MOSI */
319 SUNXI_FUNCTION(0x4, "spi1"), /* MOSI */

1234567