Home
last modified time | relevance | path

Searched +full:gpio +full:- +full:mosi (Results 1 – 25 of 117) sorted by relevance

12345

/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/pinctrl/
H A Dmarvell,kirkwood-pinctrl.txt3 Please refer to marvell,mvebu-pinctrl.txt in this directory for common binding
7 - compatible: "marvell,88f6180-pinctrl",
8 "marvell,88f6190-pinctrl", "marvell,88f6192-pinctrl",
9 "marvell,88f6281-pinctrl", "marvell,88f6282-pinctrl",
10 "marvell,98dx4122-pinctrl", "marvell,98dx1135-pinctrl"
11 - reg: register specifier of MPP registers
14 It also support the 88f6281-based variant in the 98dx412x Bobcat SoCs.
24 mpp0 0 gpio, nand(io2), spi(cs)
25 mpp1 1 gpo, nand(io3), spi(mosi)
28 mpp4 4 gpio, nand(io6), uart0(rxd), ptp(clk)
[all …]
H A Dmarvell,armada-370-pinctrl.txt3 Please refer to marvell,mvebu-pinctrl.txt in this directory for common binding
7 - compatible: "marvell,88f6710-pinctrl"
8 - reg: register specifier of MPP registers
16 mpp0 0 gpio, uart0(rxd)
18 mpp2 2 gpio, i2c0(sck), uart0(txd)
19 mpp3 3 gpio, i2c0(sda), uart0(rxd)
20 mpp4 4 gpio, vdd(cpu-pd)
22 mpp6 6 gpio, ge0(txd0), sata0(prsnt), tdm(rst), audio(sdo)
24 mpp8 8 gpio, ge0(txd2), uart0(rts), tdm(drx), audio(bclk)
26 mpp10 10 gpio, ge0(txctl), uart0(cts), tdm(fsync), audio(sdi)
[all …]
H A Dmarvell,armada-375-pinctrl.txt3 Please refer to marvell,mvebu-pinctrl.txt in this directory for common binding
7 - compatible: "marvell,88f6720-pinctrl"
8 - reg: register specifier of MPP registers
16 mpp0 0 gpio, dev(ad2), spi0(cs1), spi1(cs1)
17 mpp1 1 gpio, dev(ad3), spi0(mosi), spi1(mosi)
18 mpp2 2 gpio, dev(ad4), ptp(evreq), led(c0), audio(sdi)
19 mpp3 3 gpio, dev(ad5), ptp(trig), led(p3), audio(mclk)
20 mpp4 4 gpio, dev(ad6), spi0(miso), spi1(miso)
21 mpp5 5 gpio, dev(ad7), spi0(cs2), spi1(cs2)
22 mpp6 6 gpio, dev(ad0), led(p1), audio(lrclk)
[all …]
H A Dmarvell,dove-pinctrl.txt3 Please refer to marvell,mvebu-pinctrl.txt in this directory for common binding
7 - compatible: "marvell,dove-pinctrl"
8 - clocks: (optional) phandle of pdma clock
9 - reg: register specifiers of MPP, MPP4, and PMU MPP registers
18 mpp0 0 gpio, pmu, uart2(rts), sdio0(cd), lcd0(pwm), pmu*
19 mpp1 1 gpio, pmu, uart2(cts), sdio0(wp), lcd1(pwm), pmu*
20 mpp2 2 gpio, pmu, uart2(txd), sdio0(buspwr), sata(prsnt),
22 mpp3 3 gpio, pmu, uart2(rxd), sdio0(ledctrl), sata(act),
23 uart1(cts), lcd-spi(cs1), pmu*
24 mpp4 4 gpio, pmu, uart3(rts), sdio1(cd), spi1(miso), pmu*
[all …]
H A Dmarvell,armada-38x-pinctrl.txt3 Please refer to marvell,mvebu-pinctrl.txt in this directory for common binding
7 - compatible: "marvell,88f6810-pinctrl", "marvell,88f6820-pinctrl" or
8 "marvell,88f6828-pinctrl" depending on the specific variant of the
10 - reg: register specifier of MPP registers
18 mpp0 0 gpio, ua0(rxd)
19 mpp1 1 gpio, ua0(txd)
20 mpp2 2 gpio, i2c0(sck)
21 mpp3 3 gpio, i2c0(sda)
22 mpp4 4 gpio, ge(mdc), ua1(txd), ua0(rts)
23 mpp5 5 gpio, ge(mdio), ua1(rxd), ua0(cts)
[all …]
H A Dmarvell,armada-39x-pinctrl.txt3 Please refer to marvell,mvebu-pinctrl.txt in this directory for common binding
7 - compatible: "marvell,88f6920-pinctrl", "marvell,88f6925-pinctrl" or
8 "marvell,88f6928-pinctrl" depending on the specific variant of the
10 - reg: register specifier of MPP registers
18 mpp0 0 gpio, ua0(rxd)
19 mpp1 1 gpio, ua0(txd)
20 mpp2 2 gpio, i2c0(sck)
21 mpp3 3 gpio, i2c0(sda)
22 mpp4 4 gpio, ua1(txd), ua0(rts), smi(mdc)
23 mpp5 5 gpio, ua1(rxd), ua0(cts), smi(mdio)
[all …]
H A Dmarvell,armada-xp-pinctrl.txt3 Please refer to marvell,mvebu-pinctrl.txt in this directory for common binding
7 - compatible: "marvell,mv78230-pinctrl", "marvell,mv78260-pinctrl",
8 "marvell,mv78460-pinctrl"
9 - reg: register specifier of MPP registers
21 mpp0 0 gpio, ge0(txclkout), lcd(d0)
22 mpp1 1 gpio, ge0(txd0), lcd(d1)
23 mpp2 2 gpio, ge0(txd1), lcd(d2)
24 mpp3 3 gpio, ge0(txd2), lcd(d3)
25 mpp4 4 gpio, ge0(txd3), lcd(d4)
26 mpp5 5 gpio, ge0(txctl), lcd(d5)
[all …]
/OK3568_Linux_fs/kernel/drivers/spi/
H A Dspi-gpio.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * SPI master driver using generic bitbanged GPIO
11 #include <linux/gpio/consumer.h>
26 * platform_device->driver_data ... points to spi_gpio
28 * spi->controller_state ... reserved for bitbang framework code
30 * spi->master->dev.driver_data ... points to spi_gpio->bitbang
37 struct gpio_desc *mosi; member
41 /*----------------------------------------------------------------------*/
44 * Because the overhead of going through four GPIO procedure calls
48 * - The slow generic way: set up platform_data to hold the GPIO
[all …]
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/spi/
H A Dspi-gpio.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/spi/spi-gpio.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: SPI-GPIO devicetree bindings
10 - Rob Herring <robh@kernel.org>
13 This represents a group of 3-n GPIO lines used for bit-banged SPI on
14 dedicated GPIO lines.
17 - $ref: "/schemas/spi/spi-controller.yaml#"
21 const: spi-gpio
[all …]
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/arm/marvell/
H A Dcp110-system-controller.txt6 giving access to numerous features: clocks, pin-muxing and many other
11 - compatible: must be: "syscon", "simple-mfd";
12 - reg: register area of the CP110 system controller
18 -------
23 - a set of core clocks
24 - a set of gatable clocks
28 - The first cell must be 0 or 1. 0 for the core clocks and 1 for the
30 - The second cell identifies the particular core clock or gatable
34 - Core clocks
35 - 0 0 APLL
[all …]
/OK3568_Linux_fs/u-boot/drivers/video/
H A Dhitachi_tx18d42vm_lcd.c6 * SPDX-License-Identifier: GPL-2.0+
11 #include <asm/gpio.h>
19 static void lcd_panel_spi_write(int cs, int clk, int mosi, in lcd_panel_spi_write() argument
27 offset = (bits - 1) - i; in lcd_panel_spi_write()
28 gpio_direction_output(mosi, (data >> offset) & 1); in lcd_panel_spi_write()
49 int i, cs, clk, mosi, ret = 0; in hitachi_tx18d42vm_init() local
53 mosi = name_to_gpio(CONFIG_VIDEO_LCD_SPI_MOSI); in hitachi_tx18d42vm_init()
55 if (cs == -1 || clk == -1 || mosi == 1) { in hitachi_tx18d42vm_init()
56 printf("Error tx18d42vm spi gpio config is invalid\n"); in hitachi_tx18d42vm_init()
57 return -EINVAL; in hitachi_tx18d42vm_init()
[all …]
/OK3568_Linux_fs/u-boot/drivers/spi/
H A Dsoft_spi.c10 * SPDX-License-Identifier: GPL-2.0+
19 #include <asm/gpio.h>
26 struct gpio_desc mosi; member
44 dm_gpio_set_value(&plat->sclk, bit); in soft_spi_scl()
54 dm_gpio_set_value(&plat->mosi, bit); in soft_spi_sda()
64 dm_gpio_set_value(&plat->cs, 0); in soft_spi_cs_activate()
65 dm_gpio_set_value(&plat->sclk, 0); in soft_spi_cs_activate()
66 dm_gpio_set_value(&plat->cs, 1); in soft_spi_cs_activate()
76 dm_gpio_set_value(&plat->cs, 0); in soft_spi_cs_deactivate()
96 /*-----------------------------------------------------------------------
[all …]
/OK3568_Linux_fs/kernel/drivers/pinctrl/mvebu/
H A Dpinctrl-armada-cp110.c1 // SPDX-License-Identifier: GPL-2.0-or-later
19 #include "pinctrl-mvebu.h"
24 * - In Armada7K (single CP) almost all the MPPs are available (except the
26 * - In Armada8K (dual CP) the MPPs are split into 2 parts, MPPs 0-31 from
27 * CPS, and MPPs 32-62 from CPM, the below flags (V_ARMADA_8K_CPM,
42 MPP_FUNCTION(0, "gpio", NULL),
53 MPP_FUNCTION(0, "gpio", NULL),
64 MPP_FUNCTION(0, "gpio", NULL),
76 MPP_FUNCTION(0, "gpio", NULL),
88 MPP_FUNCTION(0, "gpio", NULL),
[all …]
H A Dpinctrl-armada-375.c1 // SPDX-License-Identifier: GPL-2.0-or-later
7 * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
19 #include "pinctrl-mvebu.h"
23 MPP_FUNCTION(0x0, "gpio", NULL),
29 MPP_FUNCTION(0x0, "gpio", NULL),
31 MPP_FUNCTION(0x2, "spi0", "mosi"),
32 MPP_FUNCTION(0x3, "spi1", "mosi"),
35 MPP_FUNCTION(0x0, "gpio", NULL),
41 MPP_FUNCTION(0x6, "spi1", "mosi")),
43 MPP_FUNCTION(0x0, "gpio", NULL),
[all …]
H A Dpinctrl-armada-370.c1 // SPDX-License-Identifier: GPL-2.0-or-later
7 * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
19 #include "pinctrl-mvebu.h"
23 MPP_FUNCTION(0x0, "gpio", NULL),
29 MPP_FUNCTION(0x0, "gpio", NULL),
33 MPP_FUNCTION(0x0, "gpio", NULL),
37 MPP_FUNCTION(0x0, "gpio", NULL),
38 MPP_FUNCTION(0x1, "vdd", "cpu-pd")),
46 MPP_FUNCTION(0x0, "gpio", NULL),
57 MPP_FUNCTION(0x0, "gpio", NULL),
[all …]
H A Dpinctrl-armada-39x.c1 // SPDX-License-Identifier: GPL-2.0-or-later
7 * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
18 #include "pinctrl-mvebu.h"
30 MPP_VAR_FUNCTION(0, "gpio", NULL, V_88F6920_PLUS),
33 MPP_VAR_FUNCTION(0, "gpio", NULL, V_88F6920_PLUS),
36 MPP_VAR_FUNCTION(0, "gpio", NULL, V_88F6920_PLUS),
39 MPP_VAR_FUNCTION(0, "gpio", NULL, V_88F6920_PLUS),
42 MPP_VAR_FUNCTION(0, "gpio", NULL, V_88F6920_PLUS),
47 MPP_VAR_FUNCTION(0, "gpio", NULL, V_88F6920_PLUS),
52 MPP_VAR_FUNCTION(0, "gpio", NULL, V_88F6920_PLUS),
[all …]
H A Dpinctrl-armada-38x.c1 // SPDX-License-Identifier: GPL-2.0-or-later
7 * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
18 #include "pinctrl-mvebu.h"
30 MPP_VAR_FUNCTION(0, "gpio", NULL, V_88F6810_PLUS),
33 MPP_VAR_FUNCTION(0, "gpio", NULL, V_88F6810_PLUS),
36 MPP_VAR_FUNCTION(0, "gpio", NULL, V_88F6810_PLUS),
39 MPP_VAR_FUNCTION(0, "gpio", NULL, V_88F6810_PLUS),
42 MPP_VAR_FUNCTION(0, "gpio", NULL, V_88F6810_PLUS),
47 MPP_VAR_FUNCTION(0, "gpio", NULL, V_88F6810_PLUS),
52 MPP_VAR_FUNCTION(0, "gpio", NULL, V_88F6810_PLUS),
[all …]
/OK3568_Linux_fs/u-boot/doc/device-tree-bindings/spi/
H A Dsoft-spi.txt3 The soft SPI bus implementation allows the use of GPIO pins to simulate a
4 SPI bus. No SPI host is required for this to work. The down-side is that the
9 compatible: "u-boot,soft-spi"
10 soft_spi_cs: GPIO number to use for SPI chip select (output)
11 soft_spi_sclk: GPIO number to use for SPI clock (output)
12 soft_spi_mosi: GPIO number to use for SPI MOSI line (output)
13 soft_spi_miso GPIO number to use for SPI MISO line (input)
14 spi-delay-us: Number of microseconds of delay between each CS transition
16 The GPIOs should be specified as required by the GPIO controller referenced.
18 typically holds the GPIO number.
[all …]
/OK3568_Linux_fs/kernel/arch/arm/boot/dts/
H A Dste-nomadik-nhk15.dts1 // SPDX-License-Identifier: GPL-2.0
6 /dts-v1/;
7 #include <dt-bindings/interrupt-controller/irq.h>
8 #include <dt-bindings/gpio/gpio.h>
9 #include "ste-nomadik-stn8815.dtsi"
13 compatible = "st,nomadik-nhk-15";
22 stmpe-i2c0 = &stmpe0;
23 stmpe-i2c1 = &stmpe1;
71 disable-sxtalo;
72 disable-mxtalo;
[all …]
H A Dimx28-cfa10049.dts1 // SPDX-License-Identifier: GPL-2.0-or-later
7 * The CFA-10049 is an expansion board for the CFA-10036 module, thus we
8 * need to include the CFA-10036 DTS.
10 #include "imx28-cfa10036.dts"
13 model = "Crystalfontz CFA-10049 Board";
17 compatible = "i2c-mux-gpio";
18 #address-cells = <1>;
19 #size-cells = <0>;
20 pinctrl-names = "default";
21 pinctrl-0 = <&i2cmux_pins_cfa10049>;
[all …]
/OK3568_Linux_fs/u-boot/board/renesas/stout/
H A Dcpld.c8 * SPDX-License-Identifier: GPL-2.0
13 #include <asm/gpio.h>
18 #define MOSI GPIO_GP_3_26 macro
34 gpio_set_value(MOSI, addr & 0x80); /* MSB first */ in cpld_read()
40 gpio_set_value(MOSI, 0); /* READ */ in cpld_read()
61 gpio_set_value(MOSI, data & (1 << 31)); /* MSB first */ in cpld_write()
68 gpio_set_value(MOSI, addr & 0x80); /* MSB first */ in cpld_write()
74 gpio_set_value(MOSI, 1); /* WRITE */ in cpld_write()
81 /* LSI pin pull-up control */
89 /* PULL-UP on MISO line */ in cpld_init()
[all …]
/OK3568_Linux_fs/u-boot/board/renesas/ulcb/
H A Dcpld.c7 * SPDX-License-Identifier: GPL-2.0+
13 #include <asm/gpio.h>
17 #define MOSI GPIO_GP_6_7 macro
46 gpio_set_value(MOSI, set); in ulcb_softspi_sda()
61 gpio_set_value(MOSI, write); in cpld_rw()
97 /* PULL-UP on MISO line */ in cpld_init()
102 gpio_request(MOSI, NULL); in cpld_init()
107 gpio_direction_output(MOSI, 0); in cpld_init()
/OK3568_Linux_fs/u-boot/arch/arm/dts/
H A Drk3308.dtsi4 * SPDX-License-Identifier: (GPL-2.0+ OR MIT)
7 #include <dt-bindings/gpio/gpio.h>
8 #include <dt-bindings/interrupt-controller/arm-gic.h>
9 #include <dt-bindings/interrupt-controller/irq.h>
10 #include <dt-bindings/pinctrl/rockchip.h>
11 #include <dt-bindings/clock/rk3308-cru.h>
16 interrupt-parent = <&gic>;
17 #address-cells = <2>;
18 #size-cells = <2>;
34 #address-cells = <2>;
[all …]
/OK3568_Linux_fs/kernel/arch/arm64/boot/dts/rockchip/
H A Drk3308bs-pinctrl.dtsi1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
8 pcfg_pull_none_0_4ma: pcfg-pull-none-0-4ma {
9 bias-disable;
10 drive-strength-s = <4>;
12 pcfg_pull_none_0_4ma_smt: pcfg-pull-none-0-4ma-smt {
13 bias-disable;
14 drive-strength-s = <4>;
15 input-schmitt-enable;
17 pcfg_pull_up_0_4ma: pcfg-pull-up-0-4ma {
18 bias-pull-up;
[all …]
/OK3568_Linux_fs/kernel/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)
12 additional chipselect line is usually active-low (nCS); four signals are
24 hardware, which may be as simple as a set of GPIO pins or as complex as
33 board-specific initialization code. A :c:type:`struct spi_driver
46 .. kernel-doc:: include/linux/spi/spi.h
49 .. kernel-doc:: drivers/spi/spi.c
52 .. kernel-doc:: drivers/spi/spi.c

12345