/openbmc/u-boot/doc/device-tree-bindings/w1/ |
H A D | w1-gpio.txt | 1 W1 gpio device binding - one wire protocol over bitbanged gpio 9 Also check doc/device-tree-bindings/w1-eeprom for possible child nodes drivers 12 - drivers/w1/w1-gpio.c 14 Software w1 device-tree node properties: 16 * compatible = "w1-gpio"; 18 This is the gpio used for one wire protocol, using bitbanging 26 compatible = "w1-gpio"; 33 compatible = "w1-gpio";
|
/openbmc/linux/Documentation/w1/masters/ |
H A D | w1-gpio.rst | 2 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 …]
|
H A D | index.rst | 1 . SPDX-License-Identifier: GPL-2.0 4 1-wire Master Drivers 12 mxc-w1 13 omap-hdq 14 w1-gpio
|
/openbmc/linux/Documentation/devicetree/bindings/w1/ |
H A D | w1-gpio.yaml | 1 # 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 D | w1.txt | 1 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>;
|
/openbmc/linux/drivers/w1/masters/ |
H A D | w1-gpio.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * w1-gpio - GPIO w1 bus master driver 12 #include <linux/w1-gpio.h> 13 #include <linux/gpio/consumer.h> 19 #include <linux/w1.h> 26 pdata->pullup_duration = delay; in w1_gpio_set_pullup() 28 if (pdata->pullup_duration) { in w1_gpio_set_pullup() 30 * This will OVERRIDE open drain emulation and force-pull in w1_gpio_set_pullup() 33 gpiod_set_raw_value(pdata->gpiod, 1); in w1_gpio_set_pullup() 34 msleep(pdata->pullup_duration); in w1_gpio_set_pullup() [all …]
|
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 3 # 1-wire bus master configuration 6 menu "1-wire Bus Masters" 9 tristate "Matrox G400 transport layer for 1-wire" 12 Say Y here if you want to communicate with your 1-wire devices 13 using Matrox's G400 GPIO pins. 19 tristate "DS2490 USB <-> W1 transport layer for 1-wire" 22 Say Y here if you want to have a driver for DS2490 based USB <-> W1 bridges, 29 tristate "Maxim DS2482 I2C to 1-Wire bridge" 33 I2C to 1-Wire bridge. [all …]
|
H A D | Makefile | 1 # SPDX-License-Identifier: GPL-2.0 3 # Makefile for 1-wire bus master drivers. 6 obj-$(CONFIG_W1_MASTER_MATROX) += matrox_w1.o 7 obj-$(CONFIG_W1_MASTER_DS2490) += ds2490.o 8 obj-$(CONFIG_W1_MASTER_DS2482) += ds2482.o 9 obj-$(CONFIG_W1_MASTER_MXC) += mxc_w1.o 11 obj-$(CONFIG_W1_MASTER_GPIO) += w1-gpio.o 12 obj-$(CONFIG_HDQ_MASTER_OMAP) += omap_hdq.o 13 obj-$(CONFIG_W1_MASTER_SGI) += sgi_w1.o
|
/openbmc/linux/Documentation/driver-api/gpio/ |
H A D | drivers-on-gpio.rst | 2 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 …]
|
/openbmc/u-boot/drivers/w1/ |
H A D | Kconfig | 2 # W1 subsystem configuration 5 menu "1-Wire support" 7 config W1 config 8 bool "Enable 1-wire controllers support" 12 Support for the Dallas 1-Wire bus. 14 if W1 17 bool "Enable 1-wire GPIO bitbanging" 21 Emulate a 1-wire bus using a GPIO. 24 bool "Enable 1-wire controller on i.MX processors"
|
H A D | Makefile | 1 obj-$(CONFIG_W1) += w1-uclass.o 3 obj-$(CONFIG_W1_GPIO) += w1-gpio.o 4 obj-$(CONFIG_W1_MXC) += mxc_w1.o
|
H A D | w1-gpio.c | 1 /* SPDX-License-Identifier: GPL-2.0+ 6 * Maxime Ripard <maxime.ripard@free-electrons.com> 12 #include <w1.h> 14 #include <asm/gpio.h> 28 struct gpio_desc gpio; member 37 dm_gpio_set_dir_flags(&pdata->gpio, GPIOD_IS_OUT); in w1_gpio_read_bit() 40 dm_gpio_set_dir_flags(&pdata->gpio, GPIOD_IS_IN); in w1_gpio_read_bit() 43 val = dm_gpio_get_value(&pdata->gpio); in w1_gpio_read_bit() 45 debug("error in retrieving GPIO value"); in w1_gpio_read_bit() 66 dm_gpio_set_dir_flags(&pdata->gpio, GPIOD_IS_OUT); in w1_gpio_write_bit() [all …]
|
/openbmc/u-boot/doc/device-tree-bindings/w1-eeprom/ |
H A D | eep_sandbox.txt | 1 Onewire EEPROM sandbox driver device binding - one wire protocol sandbox EEPROM 7 Also check doc/device-tree-bindings/w1 for onewire bus drivers 10 - drivers/w1-eeprom/eep_sandbox.c 12 Software ds24xxx device-tree node properties: 14 * compatible = "sandbox,w1-eeprom" 21 compatible = "sandbox,w1-eeprom"; 27 compatible = "w1-gpio"; 31 compatible = "sandbox,w1-eeprom";
|
H A D | ds24xxx.txt | 1 Maxim DS24 families driver device binding - one wire protocol EEPROMS from Maxim 7 Also check doc/device-tree-bindings/w1 for onewire bus drivers 10 - drivers/w1-eeprom/ds24xxx.c 12 Software ds24xxx device-tree node properties: 30 compatible = "w1-gpio";
|
/openbmc/u-boot/drivers/w1-eeprom/ |
H A D | eep_sandbox.c | 1 /* SPDX-License-Identifier: GPL-2.0+ 10 #include <w1-eeprom.h> 11 #include <w1.h> 28 * in case the w1 subsystem uses some different kind of sandbox testing, in eep_sandbox_read_buf() 29 * like randomized gpio values , we take the buffer from there in eep_sandbox_read_buf() 41 * even if read buf from w1 fails, return success as we hardcoded in eep_sandbox_read_buf() 52 { .compatible = "sandbox,w1-eeprom", .data = W1_FAMILY_EEP_SANDBOX },
|
/openbmc/linux/include/linux/ |
H A D | w1-gpio.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * w1-gpio interface to platform code 13 * struct w1_gpio_platform_data - Platform-dependent data for w1-gpio
|
/openbmc/u-boot/arch/sandbox/dts/ |
H A D | sandbox.dts | 1 /dts-v1/; 6 #address-cells = <1>; 7 #size-cells = <1>; 18 stdout-path = "/serial"; 21 audio: audio-codec { 22 compatible = "sandbox,audio-codec"; 23 #sound-dai-cells = <1>; 26 cros_ec: cros-ec { 28 u-boot,dm-pre-reloc; 29 compatible = "google,cros-ec-sandbox"; [all …]
|
/openbmc/linux/Documentation/w1/ |
H A D | w1-generic.rst | 2 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 …]
|
/openbmc/linux/arch/arm/boot/dts/intel/pxa/ |
H A D | pxa300-raumfeld-controller.dts | 1 // 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 …]
|
/openbmc/u-boot/test/py/tests/ |
H A D | test_pinmux.py | 1 # SPDX-License-Identifier: GPL-2.0 23 """Test that 'pinmux status -a' displays pin's muxing.""" 24 output = u_boot_console.run_command('pinmux status -a') 29 assert ('W1 : 1-wire gpio' in output) 34 """Test that 'pinmux list' returns the pin-controller list.""" 44 expected_output = 'Can\'t get the pin-controller: ' + pincontroller + '!' 66 assert ('W1 : 1-wire gpio' in output)
|
/openbmc/linux/arch/arm/boot/dts/aspeed/ |
H A D | aspeed-bmc-opp-zaius.dts | 1 // 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 …]
|
/openbmc/openbmc/meta-raspberrypi/conf/machine/include/ |
H A D | rpi-base.inc | 1 include conf/machine/include/rpi-default-settings.inc 2 include conf/machine/include/rpi-default-versions.inc 3 include conf/machine/include/rpi-default-providers.inc 6 include conf/machine/include/soc-family.inc 9 WKS_FILE ?= "sdimage-raspberrypi.wks" 12 xserver-xorg \ 13 ${@bb.utils.contains("MACHINE_FEATURES", "vc4graphics", "xserver-xorg-extension-glx", "", d)} \ 14 …${@bb.utils.contains("MACHINE_FEATURES", "vc4graphics", "xf86-video-modesetting", "xf86-video-fbde… 20 overlays/disable-bt.dtbo \ 21 overlays/disable-bt-pi5.dtbo \ [all …]
|
/openbmc/u-boot/drivers/pinctrl/ |
H A D | pinctrl-sandbox.c | 1 // SPDX-License-Identifier: GPL-2.0+ 17 "W1" 25 "1-wire gpio", 33 "w1", 40 "w1", 44 { "bias-disable", PIN_CONFIG_BIAS_DISABLE, 0 }, 45 { "bias-high-impedance", PIN_CONFIG_BIAS_HIGH_IMPEDANCE, 0 }, 46 { "bias-bus-hold", PIN_CONFIG_BIAS_BUS_HOLD, 0 }, 47 { "bias-pull-up", PIN_CONFIG_BIAS_PULL_UP, 1 }, 48 { "bias-pull-down", PIN_CONFIG_BIAS_PULL_DOWN, 1 }, [all …]
|
/openbmc/u-boot/drivers/ |
H A D | Kconfig | 41 source "drivers/gpio/Kconfig" 123 source "drivers/w1/Kconfig" 125 source "drivers/w1-eeprom/Kconfig"
|
/openbmc/openbmc/meta-facebook/meta-yosemite4/recipes-phosphor/gpio/phosphor-gpio-monitor/ |
H A D | check-interrupt | 4 # shellcheck source=meta-facebook/meta-yosemite4/recipes-phosphor/state/phosphor-state-manager/powe… 5 source /usr/libexec/phosphor-state-manager/power-cmd 6 # shellcheck source=meta-facebook/meta-yosemite4/recipes-yosemite4/plat-tool/files/yosemite4-common… 7 source /usr/libexec/yosemite4-common-functions 9 GPIOCHIP_IO_EXP_SLOT_PWR_CTRL=$(basename "/sys/bus/i2c/devices/$SPIDER_BOARD_IO_EXP_BUS_NUM-00$IO_E… 28 …status=$(busctl get-property "$service_path" "$object_path" $interface_path $property | cut -d"." … 38 …is-powercycle@$id.service" "chassis-poweron@$id.service" "chassis-poweroff@$id.service" "host-powe… 41 status=$(systemctl is-active "$service") 51 # Sleep for 10ms to ignore GPIO instability during blade hot-plug 54 if [ "$1" = "slot1-slot4" ]; then [all …]
|