Home
last modified time | relevance | path

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

123

/linux-6.14.4/Documentation/w1/masters/
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 …]
Dindex.rst1 . SPDX-License-Identifier: GPL-2.0
4 1-wire Master Drivers
12 mxc-w1
13 omap-hdq
14 w1-gpio
15 w1-uart
/linux-6.14.4/Documentation/devicetree/bindings/w1/
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 <[email protected]>
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 …]
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-6.14.4/drivers/w1/masters/
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 …]
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 …]
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 …]
Dmatrox_w1.c1 // SPDX-License-Identifier: GPL-2.0-or-later
23 #include <linux/w1.h>
58 * Using tristate pins, since i can't find any open-drain pin in whole motherboard.
60 * since we don't know motherboard schema, which has pretty unused(may be not) GPIO.
70 writeb(reg, dev->port_index); in matrox_w1_read_reg()
71 ret = readb(dev->port_data); in matrox_w1_read_reg()
79 writeb(reg, dev->port_index); in matrox_w1_write_reg()
80 writeb(val, dev->port_data); in matrox_w1_write_reg()
92 bit = dev->data_mask; in matrox_w1_write_ddc_bit()
95 matrox_w1_write_reg(dev, MATROX_GET_CONTROL, ((ret & ~dev->data_mask) | bit)); in matrox_w1_write_ddc_bit()
[all …]
/linux-6.14.4/Documentation/driver-api/gpio/
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-6.14.4/Documentation/w1/
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-6.14.4/arch/arm/boot/dts/intel/pxa/
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-6.14.4/arch/arm/boot/dts/aspeed/
Daspeed-bmc-opp-zaius.dts1 // SPDX-License-Identifier: GPL-2.0
2 /dts-v1/;
3 #include "aspeed-g5.dtsi"
4 #include <dt-bindings/gpio/aspeed-gpio.h>
8 compatible = "ingrasys,zaius-bmc", "aspeed,ast2500";
19 stdout-path = &uart5;
27 reserved-memory {
28 #address-cells = <1>;
29 #size-cells = <1>;
33 no-map;
[all …]
/linux-6.14.4/arch/arm/boot/dts/nxp/mxs/
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 …]
/linux-6.14.4/Documentation/userspace-api/gpio/
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-6.14.4/drivers/power/supply/
DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
104 tristate "Active-semi ACT8945A charger driver"
108 Active-semi ActivePath ACT8945A charger.
131 depends on W1
138 select W1
146 select W1
158 tristate "DS2782/DS2786 standalone gas-gauge"
162 gas-gauge.
208 tristate "Sharp SL-5500 (collie) battery"
212 SL-5500 (collie) models.
[all …]
/linux-6.14.4/arch/arm/boot/dts/microchip/
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 …]
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-6.14.4/Documentation/translations/zh_CN/driver-api/
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-6.14.4/Documentation/driver-api/
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-6.14.4/arch/arm/boot/dts/nxp/imx/
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-6.14.4/arch/arm/boot/dts/intel/ixp/
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-6.14.4/arch/arm/boot/dts/allwinner/
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-6.14.4/drivers/gpio/
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-6.14.4/drivers/
DKconfig1 # SPDX-License-Identifier: GPL-2.0
58 # input before char - char/joystick depends on it. As does USB.
80 source "drivers/gpio/Kconfig"
82 source "drivers/w1/Kconfig"
130 source "drivers/dma-buf/Kconfig"
/linux-6.14.4/drivers/pinctrl/aspeed/
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 …]

123