Home
last modified time | relevance | path

Searched refs:gpios (Results 1 – 25 of 1557) sorted by relevance

12345678910>>...63

/Linux-v4.19/drivers/tty/serial/
Dserial_mctrl_gpio.c39 void mctrl_gpio_set(struct mctrl_gpios *gpios, unsigned int mctrl) in mctrl_gpio_set() argument
46 if (gpios == NULL) in mctrl_gpio_set()
50 if (gpios->gpio[i] && mctrl_gpios_desc[i].dir_out) { in mctrl_gpio_set()
51 desc_array[count] = gpios->gpio[i]; in mctrl_gpio_set()
59 struct gpio_desc *mctrl_gpio_to_gpiod(struct mctrl_gpios *gpios, in mctrl_gpio_to_gpiod() argument
62 return gpios->gpio[gidx]; in mctrl_gpio_to_gpiod()
66 unsigned int mctrl_gpio_get(struct mctrl_gpios *gpios, unsigned int *mctrl) in mctrl_gpio_get() argument
70 if (gpios == NULL) in mctrl_gpio_get()
74 if (gpios->gpio[i] && !mctrl_gpios_desc[i].dir_out) { in mctrl_gpio_get()
75 if (gpiod_get_value(gpios->gpio[i])) in mctrl_gpio_get()
[all …]
Dserial_mctrl_gpio.h38 void mctrl_gpio_set(struct mctrl_gpios *gpios, unsigned int mctrl);
44 unsigned int mctrl_gpio_get(struct mctrl_gpios *gpios, unsigned int *mctrl);
51 mctrl_gpio_get_outputs(struct mctrl_gpios *gpios, unsigned int *mctrl);
56 struct gpio_desc *mctrl_gpio_to_gpiod(struct mctrl_gpios *gpios,
82 void mctrl_gpio_free(struct device *dev, struct mctrl_gpios *gpios);
87 void mctrl_gpio_enable_ms(struct mctrl_gpios *gpios);
92 void mctrl_gpio_disable_ms(struct mctrl_gpios *gpios);
97 void mctrl_gpio_set(struct mctrl_gpios *gpios, unsigned int mctrl) in mctrl_gpio_set() argument
102 unsigned int mctrl_gpio_get(struct mctrl_gpios *gpios, unsigned int *mctrl) in mctrl_gpio_get() argument
108 mctrl_gpio_get_outputs(struct mctrl_gpios *gpios, unsigned int *mctrl) in mctrl_gpio_get_outputs() argument
[all …]
/Linux-v4.19/sound/soc/
Dsoc-jack.c23 struct snd_soc_jack_gpio *gpios; member
338 struct snd_soc_jack_gpio *gpios) in jack_free_gpios() argument
343 gpiod_unexport(gpios[i].desc); in jack_free_gpios()
344 unregister_pm_notifier(&gpios[i].pm_notifier); in jack_free_gpios()
345 free_irq(gpiod_to_irq(gpios[i].desc), &gpios[i]); in jack_free_gpios()
346 cancel_delayed_work_sync(&gpios[i].work); in jack_free_gpios()
347 gpiod_put(gpios[i].desc); in jack_free_gpios()
348 gpios[i].jack = NULL; in jack_free_gpios()
356 jack_free_gpios(tbl->jack, tbl->count, tbl->gpios); in jack_devres_free_gpios()
370 struct snd_soc_jack_gpio *gpios) in snd_soc_jack_add_gpios() argument
[all …]
/Linux-v4.19/drivers/net/phy/
Dmdio-mux-gpio.c21 struct gpio_descs *gpios; member
35 for (n = 0; n < s->gpios->ndescs; n++) in mdio_mux_gpio_switch_fn()
38 gpiod_set_array_value_cansleep(s->gpios->ndescs, s->gpios->desc, in mdio_mux_gpio_switch_fn()
47 struct gpio_descs *gpios; in mdio_mux_gpio_probe() local
50 gpios = gpiod_get_array(&pdev->dev, NULL, GPIOD_OUT_LOW); in mdio_mux_gpio_probe()
51 if (IS_ERR(gpios)) in mdio_mux_gpio_probe()
52 return PTR_ERR(gpios); in mdio_mux_gpio_probe()
54 s = devm_kzalloc(&pdev->dev, struct_size(s, values, gpios->ndescs), in mdio_mux_gpio_probe()
57 gpiod_put_array(gpios); in mdio_mux_gpio_probe()
61 s->gpios = gpios; in mdio_mux_gpio_probe()
[all …]
/Linux-v4.19/Documentation/devicetree/bindings/power/supply/
Dmax8903-charger.txt5 - dok-gpios: Valid DC power has been detected (active low, input), optional if uok-gpios is provided
6 - uok-gpios: Valid USB power has been detected (active low, input), optional if dok-gpios is provid…
9 - cen-gpios: Charge enable pin (active low, output)
10 - chg-gpios: Charger status pin (active low, input)
11 - flt-gpios: Fault pin (active low, output)
12 - dcm-gpios: Current limit mode setting (DC=1 or USB=0, output)
13 - usus-gpios: USB suspend pin (active high, output)
20 dok-gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
21 flt-gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
22 chg-gpios = <&gpio3 15 GPIO_ACTIVE_LOW>;
[all …]
/Linux-v4.19/sound/soc/codecs/
Dwm1250-ev1.c32 struct gpio gpios[WM1250_EV1_NUM_GPIOS]; member
42 ena = wm1250->gpios[WM1250_EV1_GPIO_CLK_ENA].gpio; in wm1250_ev1_set_bias_level()
88 gpio_set_value(wm1250->gpios[WM1250_EV1_GPIO_CLK_SEL0].gpio, in wm1250_ev1_hw_params()
90 gpio_set_value(wm1250->gpios[WM1250_EV1_GPIO_CLK_SEL1].gpio, in wm1250_ev1_hw_params()
94 gpio_set_value(wm1250->gpios[WM1250_EV1_GPIO_CLK_SEL0].gpio, in wm1250_ev1_hw_params()
96 gpio_set_value(wm1250->gpios[WM1250_EV1_GPIO_CLK_SEL1].gpio, in wm1250_ev1_hw_params()
100 gpio_set_value(wm1250->gpios[WM1250_EV1_GPIO_CLK_SEL0].gpio, in wm1250_ev1_hw_params()
102 gpio_set_value(wm1250->gpios[WM1250_EV1_GPIO_CLK_SEL1].gpio, in wm1250_ev1_hw_params()
106 gpio_set_value(wm1250->gpios[WM1250_EV1_GPIO_CLK_SEL0].gpio, in wm1250_ev1_hw_params()
108 gpio_set_value(wm1250->gpios[WM1250_EV1_GPIO_CLK_SEL1].gpio, in wm1250_ev1_hw_params()
[all …]
/Linux-v4.19/Documentation/devicetree/bindings/input/
Dgpio-mouse.txt9 - up-gpios: GPIO line phandle to the line indicating "up"
10 - down-gpios: GPIO line phandle to the line indicating "down"
11 - left-gpios: GPIO line phandle to the line indicating "left"
12 - right-gpios: GPIO line phandle to the line indicating "right"
15 - button-left-gpios: GPIO line handle to the left mouse button
16 - button-middle-gpios: GPIO line handle to the middle mouse button
17 - button-right-gpios: GPIO line handle to the right mouse button
25 up-gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
26 down-gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
27 left-gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
[all …]
/Linux-v4.19/arch/arm/boot/dts/
Daspeed-bmc-opp-palmetto.dts35 gpios = <&gpio ASPEED_GPIO(R, 4) GPIO_ACTIVE_LOW>;
39 gpios = <&gpio ASPEED_GPIO(R, 5) GPIO_ACTIVE_LOW>;
43 gpios = <&gpio ASPEED_GPIO(A, 2) GPIO_ACTIVE_LOW>;
52 gpios = <&gpio ASPEED_GPIO(P, 5) GPIO_ACTIVE_LOW>;
175 gpios = <ASPEED_GPIO(C, 4) GPIO_ACTIVE_HIGH>;
182 gpios = <ASPEED_GPIO(C, 5) GPIO_ACTIVE_HIGH>;
189 gpios = <ASPEED_GPIO(C, 6) GPIO_ACTIVE_HIGH>;
196 gpios = <ASPEED_GPIO(A, 0) GPIO_ACTIVE_HIGH>;
203 gpios = <ASPEED_GPIO(A, 1) GPIO_ACTIVE_HIGH>;
210 gpios = <ASPEED_GPIO(B, 1) GPIO_ACTIVE_HIGH>;
[all …]
Dlpc3250-ea3250.dts36 gpios = <&gpio 4 1 0>; /* GPI_P3 1 */
41 gpios = <&pca9532 0 0>;
46 gpios = <&pca9532 1 0>;
51 gpios = <&pca9532 2 0>;
56 gpios = <&pca9532 3 0>;
61 gpios = <&gpio 2 0 0>; /* P2.0 */
66 gpios = <&gpio 2 1 0>; /* P2.1 */
71 gpios = <&gpio 2 2 0>; /* P2.2 */
76 gpios = <&gpio 2 3 0>; /* P2.3 */
81 gpios = <&gpio 2 4 0>; /* P2.4 */
[all …]
Dbcm4709-buffalo-wxr-1900dhp.dts32 gpios = <&chipcommon 4 GPIO_ACTIVE_HIGH>;
37 gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>;
42 gpios = <&chipcommon 6 GPIO_ACTIVE_HIGH>;
48 gpios = <&chipcommon 7 GPIO_ACTIVE_HIGH>;
53 gpios = <&chipcommon 8 GPIO_ACTIVE_HIGH>;
58 gpios = <&chipcommon 9 GPIO_ACTIVE_HIGH>;
63 gpios = <&chipcommon 10 GPIO_ACTIVE_HIGH>;
68 gpios = <&chipcommon 11 GPIO_ACTIVE_HIGH>;
73 gpios = <&chipcommon 12 GPIO_ACTIVE_HIGH>;
85 gpios = <&chipcommon 1 GPIO_ACTIVE_LOW>;
[all …]
Dusb_a9g20-dab-mmx.dtsi31 gpios = <&pioB 20 GPIO_ACTIVE_LOW>;
38 * gpios = <&pioB 21 GPIO_ACTIVE_LOW>;
43 gpios = <&pioB 22 GPIO_ACTIVE_LOW>;
48 gpios = <&pioB 23 GPIO_ACTIVE_LOW>;
53 gpios = <&pioB 24 GPIO_ACTIVE_LOW>;
58 gpios = <&pioB 30 GPIO_ACTIVE_LOW>;
63 gpios = <&pioB 31 GPIO_ACTIVE_LOW>;
74 gpios = <&pioB 25 GPIO_ACTIVE_LOW>;
80 gpios = <&pioB 13 GPIO_ACTIVE_LOW>;
86 gpios = <&pioA 26 GPIO_ACTIVE_LOW>;
[all …]
Dbcm47094-linksys-panamera.dts32 gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
38 gpios = <&chipcommon 16 GPIO_ACTIVE_LOW>;
44 gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>;
53 gpios = <&chipcommon 22 GPIO_ACTIVE_LOW>;
58 gpios = <&chipcommon 1 GPIO_ACTIVE_LOW>;
65 gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>;
73 gpios = <&chipcommon 4 GPIO_ACTIVE_HIGH>;
78 gpios = <&chipcommon 0 GPIO_ACTIVE_LOW>;
83 gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>;
88 gpios = <&chipcommon 11 GPIO_ACTIVE_HIGH>;
[all …]
Dbcm4708-smartrg-sr400ac.dts32 gpios = <&chipcommon 1 GPIO_ACTIVE_HIGH>;
38 gpios = <&chipcommon 2 GPIO_ACTIVE_HIGH>;
43 gpios = <&chipcommon 3 GPIO_ACTIVE_HIGH>;
50 gpios = <&chipcommon 4 GPIO_ACTIVE_HIGH>;
57 gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>;
64 gpios = <&chipcommon 6 GPIO_ACTIVE_HIGH>;
69 gpios = <&chipcommon 8 GPIO_ACTIVE_HIGH>;
74 gpios = <&chipcommon 9 GPIO_ACTIVE_HIGH>;
79 gpios = <&chipcommon 10 GPIO_ACTIVE_HIGH>;
84 gpios = <&chipcommon 12 GPIO_ACTIVE_HIGH>;
[all …]
Dbcm47094-netgear-r8500.dts29 gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>;
35 gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
40 gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
45 gpios = <&chipcommon 12 GPIO_ACTIVE_LOW>;
50 gpios = <&chipcommon 13 GPIO_ACTIVE_LOW>;
55 gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>;
60 gpios = <&chipcommon 18 GPIO_ACTIVE_LOW>;
72 gpios = <&chipcommon 1 GPIO_ACTIVE_LOW>;
78 gpios = <&chipcommon 10 GPIO_ACTIVE_LOW>;
84 gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>;
[all …]
Dbcm4708-buffalo-wzr-1750dhp.dts32 cs-gpios = <&chipcommon 6 0>;
53 gpios = <&hc595 0 GPIO_ACTIVE_HIGH>;
62 gpios = <&hc595 1 GPIO_ACTIVE_HIGH>;
67 gpios = <&hc595 2 GPIO_ACTIVE_HIGH>;
73 gpios = <&hc595 3 GPIO_ACTIVE_HIGH>;
79 gpios = <&hc595 4 GPIO_ACTIVE_HIGH>;
84 gpios = <&hc595 5 GPIO_ACTIVE_HIGH>;
90 gpios = <&hc595 6 GPIO_ACTIVE_HIGH>;
95 gpios = <&hc595 7 GPIO_ACTIVE_HIGH>;
107 gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
[all …]
Dbcm4709-netgear-r7000.dts32 gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>;
38 gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
43 gpios = <&chipcommon 12 GPIO_ACTIVE_LOW>;
48 gpios = <&chipcommon 13 GPIO_ACTIVE_LOW>;
53 gpios = <&chipcommon 14 GPIO_ACTIVE_HIGH>;
58 gpios = <&chipcommon 15 GPIO_ACTIVE_HIGH>;
63 gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>;
68 gpios = <&chipcommon 18 GPIO_ACTIVE_LOW>;
80 gpios = <&chipcommon 4 GPIO_ACTIVE_LOW>;
86 gpios = <&chipcommon 5 GPIO_ACTIVE_LOW>;
[all …]
Dbcm47094-luxul-xwr-3100.dts29 gpios = <&chipcommon 0 GPIO_ACTIVE_LOW>;
35 gpios = <&chipcommon 1 GPIO_ACTIVE_LOW>;
40 gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>;
45 gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
50 gpios = <&chipcommon 4 GPIO_ACTIVE_LOW>;
55 gpios = <&chipcommon 6 GPIO_ACTIVE_LOW>;
60 gpios = <&chipcommon 8 GPIO_ACTIVE_LOW>;
68 gpios = <&chipcommon 10 GPIO_ACTIVE_LOW>;
74 gpios = <&chipcommon 13 GPIO_ACTIVE_LOW>;
79 gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>;
[all …]
/Linux-v4.19/Documentation/devicetree/bindings/phy/
Dphy-mapphone-mdm6600.txt5 - enable-gpios GPIO to enable the USB PHY
6 - power-gpios GPIO to power on the device
7 - reset-gpios GPIO to reset the device
8 - motorola,mode-gpios Two GPIOs to configure MDM6600 USB start-up mode for
10 - motorola,cmd-gpios Three GPIOs to control the power state of the MDM6600
11 - motorola,status-gpios Three GPIOs to read the power state of the MDM6600
17 enable-gpios = <&gpio3 31 GPIO_ACTIVE_LOW>;
18 power-gpios = <&gpio2 22 GPIO_ACTIVE_HIGH>;
19 reset-gpios = <&gpio2 17 GPIO_ACTIVE_HIGH>;
20 motorola,mode-gpios = <&gpio5 20 GPIO_ACTIVE_HIGH>,
[all …]
/Linux-v4.19/Documentation/devicetree/bindings/siox/
Deckelmann,siox-gpio.txt5 - din-gpios, dout-gpios, dclk-gpios, dld-gpios: references gpios for the
15 din-gpios = <&gpio6 11 0>;
16 dout-gpios = <&gpio6 8 0>;
17 dclk-gpios = <&gpio6 9 0>;
18 dld-gpios = <&gpio6 10 0>;
/Linux-v4.19/drivers/staging/fbtft/
Dfbtft_device.c48 static char *gpios; variable
49 module_param(gpios, charp, 0000);
50 MODULE_PARM_DESC(gpios,
282 .gpios = (const struct fbtft_gpio []) {
305 .gpios = (const struct fbtft_gpio []) {
326 .gpios = (const struct fbtft_gpio []) {
345 .gpios = (const struct fbtft_gpio []) {
365 .gpios = (const struct fbtft_gpio []) {
383 .gpios = (const struct fbtft_gpio []) {
402 .gpios = (const struct fbtft_gpio []) {
[all …]
/Linux-v4.19/drivers/watchdog/
Dmena21_wdt.c34 unsigned gpios[NUM_GPIOS]; member
46 reset |= gpio_get_value(drv->gpios[GPIO_WD_RST0]) ? (1 << 0) : 0; in a21_wdt_get_bootstatus()
47 reset |= gpio_get_value(drv->gpios[GPIO_WD_RST1]) ? (1 << 1) : 0; in a21_wdt_get_bootstatus()
48 reset |= gpio_get_value(drv->gpios[GPIO_WD_RST2]) ? (1 << 2) : 0; in a21_wdt_get_bootstatus()
57 gpio_set_value(drv->gpios[GPIO_WD_ENAB], 1); in a21_wdt_start()
66 gpio_set_value(drv->gpios[GPIO_WD_ENAB], 0); in a21_wdt_stop()
75 gpio_set_value(drv->gpios[GPIO_WD_TRIG], 0); in a21_wdt_ping()
77 gpio_set_value(drv->gpios[GPIO_WD_TRIG], 1); in a21_wdt_ping()
99 gpio_set_value(drv->gpios[GPIO_WD_FAST], 1); in a21_wdt_set_timeout()
101 gpio_set_value(drv->gpios[GPIO_WD_FAST], 0); in a21_wdt_set_timeout()
[all …]
/Linux-v4.19/Documentation/devicetree/bindings/fsi/
Dfsi-master-gpio.txt6 - clock-gpios = <gpio-descriptor>; : GPIO for FSI clock
7 - data-gpios = <gpio-descriptor>; : GPIO for FSI data signal
10 - enable-gpios = <gpio-descriptor>; : GPIO for enable signal
11 - trans-gpios = <gpio-descriptor>; : GPIO for voltage translator enable
12 - mux-gpios = <gpio-descriptor>; : GPIO for pin multiplexing with other
23 clock-gpios = <&gpio 0>;
24 data-gpios = <&gpio 1>;
25 enable-gpios = <&gpio 2>;
26 trans-gpios = <&gpio 3>;
27 mux-gpios = <&gpio 4>;
/Linux-v4.19/Documentation/devicetree/bindings/input/touchscreen/
Dcolibri-vf50-ts.txt6 - xp-gpios: FET gate driver for input of X+
7 - xm-gpios: FET gate driver for input of X-
8 - yp-gpios: FET gate driver for input of Y+
9 - ym-gpios: FET gate driver for input of Y-
11 - pinctrl-names: "idle", "default", "gpios"
14 - pinctrl-2: pinctrl node for gpios functioning as FET gate drivers
23 xp-gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
24 xm-gpios = <&gpio2 29 GPIO_ACTIVE_HIGH>;
25 yp-gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
26 ym-gpios = <&gpio0 4 GPIO_ACTIVE_HIGH>;
[all …]
/Linux-v4.19/Documentation/devicetree/bindings/bus/
Dts-nbus.txt11 - ts,data-gpios : The 8 GPIO pins connected to the data lines on the FPGA
12 - ts,csn-gpios : The GPIO pin connected to the csn line on the FPGA
13 - ts,txrx-gpios : The GPIO pin connected to the txrx line on the FPGA
14 - ts,strobe-gpios : The GPIO pin connected to the stobe line on the FPGA
15 - ts,ale-gpios : The GPIO pin connected to the ale line on the FPGA
16 - ts,rdy-gpios : The GPIO pin connected to the rdy line on the FPGA
31 ts,data-gpios = <&gpio0 0 GPIO_ACTIVE_HIGH
39 ts,csn-gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>;
40 ts,txrx-gpios = <&gpio0 24 GPIO_ACTIVE_HIGH>;
41 ts,strobe-gpios = <&gpio0 25 GPIO_ACTIVE_HIGH>;
[all …]
/Linux-v4.19/Documentation/devicetree/bindings/display/
Drepaper.txt9 - panel-on-gpios: Timing controller power control
10 - discharge-gpios: Discharge control
11 - reset-gpios: RESET pin
12 - busy-gpios: BUSY pin
15 - border-gpios: Border control
45 panel-on-gpios = <&gpio 23 0>;
46 border-gpios = <&gpio 14 0>;
47 discharge-gpios = <&gpio 15 0>;
48 reset-gpios = <&gpio 24 0>;
49 busy-gpios = <&gpio 25 0>;

12345678910>>...63