Home
last modified time | relevance | path

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

12

/linux/Documentation/w1/masters/
H A Dw1-gpio.rst2 Kernel driver w1-gpio
9 -----------
11 GPIO 1-wire bus master driver. The driver uses the GPIO API to control the
12 wire and the GPIO pin can be specified using GPIO machine descriptor tables.
14 Documentation/devicetree/bindings/w1/w1-gpio.yaml
17 Example (mach-at91)
18 -------------------
22 #include <linux/gpio/machine.h>
23 #include <linux/w1-gpio.h>
26 .dev_id = "w1-gpio",
[all …]
/linux/drivers/w1/masters/
H A Dw1-gpio.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * w1-gpio - GPIO w1 bus master driver
11 #include <linux/gpio/consumer.h>
18 #include <linux/w1.h>
31 ddata->pullup_duration = delay; in w1_gpio_set_pullup()
33 if (ddata->pullup_duration) { in w1_gpio_set_pullup()
35 * This will OVERRIDE open drain emulation and force-pull in w1_gpio_set_pullup()
38 gpiod_set_raw_value(ddata->gpiod, 1); in w1_gpio_set_pullup()
39 msleep(ddata->pullup_duration); in w1_gpio_set_pullup()
42 * open drain emulation in the GPIO library. in w1_gpio_set_pullup()
[all …]
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
3 # 1-wire bus master configuration
6 menu "1-wire Bus Masters"
9 tristate "AMD AXI 1-wire bus host"
11 Say Y here is you want to support the AMD AXI 1-wire IP core.
13 correctly timed 1 wire transactions without relying on GPIO timing
20 tristate "Matrox G400 transport layer for 1-wire"
23 Say Y here if you want to communicate with your 1-wire devices
24 using Matrox's G400 GPIO pins.
30 tristate "DS2490 USB <-> W1 transport layer for 1-wire"
[all …]
H A DMakefile1 # SPDX-License-Identifier: GPL-2.0
3 # Makefile for 1-wire bus master drivers.
6 obj-$(CONFIG_W1_MASTER_AMD_AXI) += amd_axi_w1.o
7 obj-$(CONFIG_W1_MASTER_MATROX) += matrox_w1.o
8 obj-$(CONFIG_W1_MASTER_DS2490) += ds2490.o
9 obj-$(CONFIG_W1_MASTER_DS2482) += ds2482.o
10 obj-$(CONFIG_W1_MASTER_MXC) += mxc_w1.o
12 obj-$(CONFIG_W1_MASTER_GPIO) += w1-gpio.o
13 obj-$(CONFIG_HDQ_MASTER_OMAP) += omap_hdq.o
14 obj-$(CONFIG_W1_MASTER_SGI) += sgi_w1.o
[all …]
/linux/Documentation/devicetree/bindings/w1/
H A Dw1-gpio.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/w1/w1-gpio.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Bitbanged GPIO 1-Wire Bus
10 - Daniel Mack <zonque@gmail.com>
14 const: w1-gpio
19 - description: Data I/O pin
20 - description: Enable pin for an external pull-up resistor
22 linux,open-drain:
[all …]
H A Dw1.txt1 Generic devicetree bindings for onewire (w1) busses
5 Slave devices are listed as sub-nodes of such master devices. For now, only
12 compatible = "gpio-charger";
13 charger-type = "mains";
14 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
18 compatible = "w1-gpio";
19 gpios = <&gpio 100 0>, <&gpio 101 0>;
23 power-supplies = <&charger>;
/linux/Documentation/driver-api/gpio/
H A Ddrivers-on-gpio.rst2 Subsystem drivers using GPIO
5 Note that standard kernel drivers exist for common GPIO tasks and will provide
6 the right in-kernel and userspace APIs/ABIs for the job, and that these
10 - leds-gpio: drivers/leds/leds-gpio.c will handle LEDs connected to GPIO
13 - ledtrig-gpio: drivers/leds/trigger/ledtrig-gpio.c will provide a LED trigger,
14 i.e. a LED will turn on/off in response to a GPIO line going high or low
15 (and that LED may in turn use the leds-gpio as per above).
17 - gpio-keys: drivers/input/keyboard/gpio_keys.c is used when your GPIO line
20 - gpio-keys-polled: drivers/input/keyboard/gpio_keys_polled.c is used when your
21 GPIO line cannot generate interrupts, so it needs to be periodically polled
[all …]
/linux/Documentation/w1/
H A Dw1-generic.rst2 Introduction to the 1-wire (w1) subsystem
5 The 1-wire bus is a simple master-slave bus that communicates via a single
11 The w1 subsystem provides the framework for managing w1 masters and
14 All w1 slave devices must be connected to a w1 bus master device.
16 Example w1 master devices:
18 - DS9490 usb device
19 - W1-over-GPIO
20 - DS2482 (i2c to w1 bridge)
21 - Emulated devices, such as a RS232 converter, parallel port adapter, etc
24 What does the w1 subsystem do?
[all …]
/linux/arch/arm/boot/dts/intel/pxa/
H A Dpxa300-raumfeld-controller.dts1 // SPDX-License-Identifier: GPL-2.0
3 /dts-v1/;
5 #include "pxa300-raumfeld-common.dtsi"
9 compatible = "raumfeld,raumfeld-controller-pxa303", "marvell,pxa300";
11 reg_vbatt: regulator-vbatt {
12 compatible = "regulator-fixed";
13 regulator-name = "vbatt-fixed-supply";
14 regulator-min-microvolt = <3700000>;
15 regulator-max-microvolt = <3700000>;
16 regulator-always-on;
[all …]
/linux/arch/arm/boot/dts/nxp/mxs/
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 …]
H A Dimx28-btt3.dtsi1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
6 /dts-v1/;
7 #include "imx28-lwe.dtsi"
12 compatible = "lwn,imx28-btt3", "fsl,imx28";
24 compatible = "powertip,hx8238a", "panel-dpi";
25 power-supply = <&reg_3v3>;
26 width-mm = <70>;
27 height-mm = <52>;
29 panel-timing {
30 clock-frequency = <6500000>;
[all …]
/linux/Documentation/userspace-api/gpio/
H A Dchardev.rst1 .. SPDX-License-Identifier: GPL-2.0
4 GPIO Character Device Userspace API
8 ``include/uapi/linux/gpio.h.``
18 Read Documentation/driver-api/gpio/drivers-on-gpio.rst to avoid reinventing
21 Similarly, for multi-function lines there may be other subsystems, such as
23 Documentation/driver-api/pwm.rst, Documentation/w1/index.rst etc, that
26 Basic examples using the character device API can be found in ``tools/gpio/*``.
28 The API is based around two major objects, the :ref:`gpio-v2-chip` and the
29 :ref:`gpio-v2-line-request`.
31 .. _gpio-v2-chip:
[all …]
/linux/arch/arm/boot/dts/microchip/
H A Dat91-ariag25.dts1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * at91-ariag25.dts - Device Tree file for Acme Systems Aria G25 (AT91SAM9G25 based)
8 /dts-v1/;
32 clock-frequency = <32768>;
36 clock-frequency = <12000000>;
41 compatible = "gpio-leds";
47 linux,default-trigger = "heartbeat";
53 compatible = "w1-gpio";
55 pinctrl-names = "default";
56 pinctrl-0 = <&pinctrl_w1_0>;
[all …]
H A Dat91sam9x5cm.dtsi1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * at91sam9x5cm.dtsi - Device Tree Include file for AT91SAM9x5 CPU Module
16 clock-frequency = <32768>;
20 clock-frequency = <12000000>;
28 compatible = "atmel,tcb-timer";
33 compatible = "atmel,tcb-timer";
40 pinctrl_1wire_cm: 1wire_cm-0 {
52 pinctrl-0 = <&pinctrl_ebi_addr_nand
54 pinctrl-names = "default";
57 nand_controller: nand-controller {
[all …]
/linux/Documentation/translations/zh_CN/driver-api/
H A Dindex.rst1 .. SPDX-License-Identifier: GPL-2.0
3 .. include:: ../disclaimer-zh_CN.rst
5 :Original: Documentation/driver-api/index.rst
24 gpio/index
30 * driver-model/index
34 * early-userspace/index
37 * device-io
38 * dma-buf
41 * message-based
44 * frame-buffer
[all …]
/linux/arch/arm/boot/dts/nxp/imx/
H A Dimx6ul-imx6ull-opos6uldev.dtsi1 // SPDX-License-Identifier: GPL-2.0 OR MIT
7 stdout-path = &uart1;
11 compatible = "pwm-backlight";
13 brightness-levels = <0 4 8 16 32 64 128 255>;
14 default-brightness-level = <7>;
15 power-supply = <&reg_5v>;
19 gpio-keys {
20 compatible = "gpio-keys";
21 pinctrl-names = "default";
22 pinctrl-0 = <&pinctrl_gpio_keys>;
[all …]
/linux/Documentation/driver-api/
H A Dindex.rst1 .. SPDX-License-Identifier: GPL-2.0
23 driver-model/index
38 early-userspace/index
40 device-io
42 dma-buf
44 io-mapping
46 uio-howto
47 vfio-mediated-device
49 vfio-pci-device-specific-driver-acceptance
51 Bus-level documentation
[all …]
/linux/arch/arm/boot/dts/intel/ixp/
H A Dintel-ixp42x-arcom-vulcan.dts1 // SPDX-License-Identifier: ISC
8 /dts-v1/;
10 #include "intel-ixp42x.dtsi"
11 #include <dt-bindings/input/input.h>
16 #address-cells = <1>;
17 #size-cells = <1>;
27 stdout-path = "uart0:115200n8";
35 compatible = "w1-gpio";
42 compatible = "intel,ixp4xx-flash", "cfi-flash";
43 bank-width = <2>;
[all …]
/linux/arch/arm/boot/dts/allwinner/
H A Dsun5i-r8-chip.dts5 * Maxime Ripard <maxime.ripard@free-electrons.com>
7 * This file is dual-licensed: you can use it either under the terms
46 /dts-v1/;
47 #include "sun5i-r8.dtsi"
48 #include "sunxi-common-regulators.dtsi"
50 #include <dt-bindings/gpio/gpio.h>
51 #include <dt-bindings/interrupt-controller/irq.h>
55 compatible = "nextthing,chip", "allwinner,sun5i-r8", "allwinner,sun5i-a13";
67 stdout-path = "serial0:115200n8";
71 compatible = "gpio-leds";
[all …]
/linux/drivers/gpio/
H A Dgpio-amd8111.c1 // SPDX-License-Identifier: GPL-2.0
3 * GPIO driver for AMD 8111 south bridges
5 * Copyright (c) 2012 Dmitry Eremin-Solenikov
28 #include <linux/gpio/driver.h>
37 #define AMD_GPIO_LTCH_STS 0x40 /* Latch status, w1 */
80 agp->orig[offset] = ioread8(agp->pm + AMD_REG_GPIO(offset)) & in amd_gpio_request()
83 dev_dbg(&agp->pdev->dev, "Requested gpio %d, data %x\n", offset, agp->orig[offset]); in amd_gpio_request()
92 dev_dbg(&agp->pdev->dev, "Freed gpio %d, data %x\n", offset, agp->orig[offset]); in amd_gpio_free()
94 iowrite8(agp->orig[offset], agp->pm + AMD_REG_GPIO(offset)); in amd_gpio_free()
103 spin_lock_irqsave(&agp->lock, flags); in amd_gpio_set()
[all …]
/linux/drivers/pinctrl/aspeed/
H A Dpinmux-aspeed.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
10 * The ASPEED SoCs provide typically more than 200 pins for GPIO and other
21 * read-only).
23 * SoC Multi-function Pin Expression Examples
24 * ------------------------------------------
30 * D6 is a pin with a single function (beside GPIO); a high priority signal
34 * -----+---------+-----------+-----------------------------+-----------+---------------+----------
36 * -----+---------+-----------+-----------------------------+-----------+---------------+----------
38 * C5 is a multi-signal pin (high and low priority signals). Here we touch
41 * -----+---------+-----------+-----------------------------+-----------+---------------+----------
[all …]
H A Dpinctrl-aspeed-g4.c1 // SPDX-License-Identifier: GPL-2.0-or-later
15 #include <linux/pinctrl/pinconf-generic.h>
20 #include "../pinctrl-utils.h"
21 #include "pinmux-aspeed.h"
22 #include "pinctrl-aspeed.h"
32 * The "Multi-function Pins Mapping and Control" table in the SoC datasheet
35 * opposed to naming them e.g. PINMUX_CTRL_[0-9]). Further, signal expressions
44 #define SCU80 0x80 /* Multi-function Pin Control #1 */
45 #define SCU84 0x84 /* Multi-function Pin Control #2 */
46 #define SCU88 0x88 /* Multi-function Pin Control #3 */
[all …]
/linux/arch/arm64/boot/dts/amlogic/
H A Dmeson-axg-jethome-jethub-j1xx.dtsi1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
10 /dts-v1/;
12 #include "meson-axg.dtsi"
13 #include <dt-bindings/input/input.h>
14 #include <dt-bindings/thermal/thermal.h>
24 stdout-path = "serial0:115200n8";
27 reserved-memory {
33 emmc_pwrseq: emmc-pwrseq {
34 compatible = "mmc-pwrseq-emmc";
35 reset-gpios = <&gpio BOOT_9 GPIO_ACTIVE_LOW>;
[all …]
/linux/drivers/
H A DMakefile1 # SPDX-License-Identifier: GPL-2.0
6 # Rewritten to use lists instead of if-statements.
9 obj-y += cache/
10 obj-y += irqchip/
11 obj-y += bus/
13 obj-$(CONFIG_GENERIC_PHY) += phy/
15 # GPIO must come after pinctrl as gpios may need to mux pins etc
16 obj-$(CONFIG_PINCTRL) += pinctrl/
17 obj-$(CONFIG_GPIOLIB) += gpio/
18 obj-y += pwm/
[all …]
/linux/drivers/input/mouse/
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
25 includes the standard 2 or 3-button PS/2 mouse, as well as PS/2
31 <http://w1.894.telia.com/~u89404340/touchpad/index.html>
109 Say Y here if you have a Fujitsu B-series Lifebook PS/2
171 Say Y here if you have an OLPC XO-1 laptop (with built-in
193 this option, you remove the xf86-input-vmmouse user-space driver
194 or upgrade it to at least xf86-input-vmmouse 13.1.0, which doesn't
195 load in the presence of an in-kernel vmmouse driver.
207 Say Y here if you have a serial (RS-232, COM port) mouse connected
223 These are the touchpads that can be found on post-February 2005
[all …]

12