/openbmc/linux/net/rfkill/ |
H A D | rfkill-gpio.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 10 #include <linux/rfkill.h> 16 #include <linux/gpio/consumer.h> 24 struct rfkill *rfkill_dev; 32 struct rfkill_gpio_data *rfkill = data; in rfkill_gpio_set_power() local 34 if (!blocked && !IS_ERR(rfkill->clk) && !rfkill->clk_enabled) { in rfkill_gpio_set_power() 35 int ret = clk_enable(rfkill->clk); in rfkill_gpio_set_power() 41 gpiod_set_value_cansleep(rfkill->shutdown_gpio, !blocked); in rfkill_gpio_set_power() 42 gpiod_set_value_cansleep(rfkill->reset_gpio, !blocked); in rfkill_gpio_set_power() 44 if (blocked && !IS_ERR(rfkill->clk) && rfkill->clk_enabled) in rfkill_gpio_set_power() [all …]
|
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 5 menuconfig RFKILL config 12 module will be called rfkill. 17 depends on RFKILL 18 depends on LEDS_TRIGGERS = y || RFKILL = LEDS_TRIGGERS 23 depends on RFKILL 24 depends on INPUT = y || RFKILL = INPUT 28 tristate "GPIO RFKILL driver" 29 depends on RFKILL 33 If you say yes here you get support of a generic gpio RFKILL
|
H A D | Makefile | 1 # SPDX-License-Identifier: GPL-2.0-only 6 rfkill-y += core.o 7 rfkill-$(CONFIG_RFKILL_INPUT) += input.o 8 obj-$(CONFIG_RFKILL) += rfkill.o 9 obj-$(CONFIG_RFKILL_GPIO) += rfkill-gpio.o
|
/openbmc/linux/Documentation/devicetree/bindings/net/ |
H A D | rfkill-gpio.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/net/rfkill-gpio.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: GPIO controlled rfkill switch 10 - Johannes Berg <johannes@sipsolutions.net> 11 - Philipp Zabel <p.zabel@pengutronix.de> 15 const: rfkill-gpio 18 description: rfkill switch name, defaults to node name 20 radio-type: [all …]
|
/openbmc/linux/drivers/net/wireless/ath/ath5k/ |
H A D | rfkill.c | 2 * RFKILL support for ath5k 18 * 3. Neither the names of the above-listed copyright holders nor the names 41 ATH5K_DBG(ah, ATH5K_DEBUG_ANY, "rfkill disable (gpio:%d polarity:%d)\n", in ath5k_rfkill_disable() 42 ah->rf_kill.gpio, ah->rf_kill.polarity); in ath5k_rfkill_disable() 43 ath5k_hw_set_gpio_output(ah, ah->rf_kill.gpio); in ath5k_rfkill_disable() 44 ath5k_hw_set_gpio(ah, ah->rf_kill.gpio, !ah->rf_kill.polarity); in ath5k_rfkill_disable() 50 ATH5K_DBG(ah, ATH5K_DEBUG_ANY, "rfkill enable (gpio:%d polarity:%d)\n", in ath5k_rfkill_enable() 51 ah->rf_kill.gpio, ah->rf_kill.polarity); in ath5k_rfkill_enable() 52 ath5k_hw_set_gpio_output(ah, ah->rf_kill.gpio); in ath5k_rfkill_enable() 53 ath5k_hw_set_gpio(ah, ah->rf_kill.gpio, ah->rf_kill.polarity); in ath5k_rfkill_enable() [all …]
|
H A D | gpio.c | 2 * Copyright (c) 2004-2008 Reyk Floeter <reyk@openbsd.org> 3 * Copyright (c) 2006-2008 Nick Kossifidis <mickflemm@gmail.com> 20 GPIO Functions 29 * DOC: GPIO/LED functions 31 * Here we control the 6 bidirectional GPIO pins provided by the hw. 32 * We can set a GPIO pin to be an input or an output pin on GPIO control 33 * register and then read or set its status from GPIO data input/output 39 * GPIO pins, we handle them through the LED subsystem on led.c 44 * ath5k_hw_set_ledstate() - Set led state 50 * not the GPIO based. [all …]
|
H A D | Makefile | 1 # SPDX-License-Identifier: ISC 2 ath5k-y += caps.o 3 ath5k-y += initvals.o 4 ath5k-y += eeprom.o 5 ath5k-y += gpio.o 6 ath5k-y += desc.o 7 ath5k-y += dma.o 8 ath5k-y += qcu.o 9 ath5k-y += pcu.o 10 ath5k-y += phy.o [all …]
|
/openbmc/linux/drivers/net/wireless/realtek/rtl818x/rtl8187/ |
H A D | rfkill.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Linux RFKILL support for RTL8187 7 * Based on the RFKILL handling in the r8187 driver, which is: 18 #include "rfkill.h" 22 u8 gpio; in rtl8187_is_radio_enabled() local 24 gpio = rtl818x_ioread8(priv, &priv->map->GPIO0); in rtl8187_is_radio_enabled() 25 rtl818x_iowrite8(priv, &priv->map->GPIO0, gpio & ~priv->rfkill_mask); in rtl8187_is_radio_enabled() 26 gpio = rtl818x_ioread8(priv, &priv->map->GPIO1); in rtl8187_is_radio_enabled() 28 return gpio & priv->rfkill_mask; in rtl8187_is_radio_enabled() 33 struct rtl8187_priv *priv = hw->priv; in rtl8187_rfkill_init() [all …]
|
/openbmc/linux/drivers/net/wireless/ath/ath9k/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: ISC 55 Say Y, if you have a SoC with a compatible built-in 135 bool "Atheros ath9k rfkill support" if EXPERT 137 depends on RFKILL=y || RFKILL=ATH9K 140 Say Y to have ath9k poll the RF-Kill GPIO every couple of 142 a platform that can toggle the RF-Kill GPIO. 150 for multi-channel concurrency. Enable this if P2P PowerSave support 159 tristate "Atheros ath9k pci loader for EEPROM-less chips" 164 AR500X to AR92XX-generation of ath9k PCI(e) WiFi chips, which have
|
/openbmc/linux/drivers/platform/x86/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 12 x86 platforms, including vendor-specific laptop extension drivers. 23 This driver adds support for the ACPI-WMI (Windows Management 26 ACPI-WMI is a proprietary extension to ACPI to expose parts of the 27 ACPI firmware to userspace - this is done through various vendor 38 any ACPI-WMI devices. 45 Say Y here if you want to be able to read a firmware-embedded 50 be called wmi-bmof. 64 control, fn-lock, mic-mute LED, and other extra features. 67 will be called huawei-wmi. [all …]
|
H A D | Makefile | 1 # SPDX-License-Identifier: GPL-2.0 4 # x86 Platform-Specific Drivers 8 obj-$(CONFIG_ACPI_WMI) += wmi.o 9 obj-$(CONFIG_WMI_BMOF) += wmi-bmof.o 12 obj-$(CONFIG_HUAWEI_WMI) += huawei-wmi.o 13 obj-$(CONFIG_MXM_WMI) += mxm-wmi.o 14 obj-$(CONFIG_NVIDIA_WMI_EC_BACKLIGHT) += nvidia-wmi-ec-backlight.o 15 obj-$(CONFIG_XIAOMI_WMI) += xiaomi-wmi.o 16 obj-$(CONFIG_GIGABYTE_WMI) += gigabyte-wmi.o 19 obj-$(CONFIG_ACERHDF) += acerhdf.o [all …]
|
/openbmc/linux/arch/arm/boot/dts/broadcom/ |
H A D | bcm4709-netgear-r7000.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 9 /dts-v1/; 12 #include "bcm5301x-nand-cs0-bch8.dtsi" 29 compatible = "gpio-leds"; 31 led-power-white { 34 linux,default-trigger = "default-on"; 37 led-power-amber { 42 led-5ghz { 47 led-2ghz { 52 led-wps { [all …]
|
H A D | bcm4708-asus-rt-ac68u.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 4 * DTS for Asus RT-AC68U 9 /dts-v1/; 12 #include "bcm5301x-nand-cs0-bch8.dtsi" 15 compatible = "asus,rt-ac68u", "brcm,bcm4708"; 16 model = "Asus RT-AC68U (BCM4708)"; 29 compatible = "gpio-leds"; 31 led-usb2 { 36 led-power { 39 linux,default-trigger = "default-on"; [all …]
|
H A D | bcm4708-netgear-r6300-v2.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 9 /dts-v1/; 12 #include "bcm5301x-nand-cs0-bch8.dtsi" 15 compatible = "netgear,r6300-v2", "brcm,bcm4708"; 29 compatible = "gpio-leds"; 31 led-logo { 34 linux,default-trigger = "default-on"; 37 led-power0 { 42 led-power1 { 45 linux,default-trigger = "default-on"; [all …]
|
H A D | bcm4708-asus-rt-ac56u.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 4 * DTS for Asus RT-AC56U 9 /dts-v1/; 12 #include "bcm5301x-nand-cs0-bch8.dtsi" 15 compatible = "asus,rt-ac56u", "brcm,bcm4708"; 16 model = "Asus RT-AC56U (BCM4708)"; 29 compatible = "gpio-leds"; 31 led-usb3 { 36 led-wan { 41 led-lan { [all …]
|
H A D | bcm47094-netgear-r8500.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 6 /dts-v1/; 9 #include "bcm5301x-nand-cs0-bch8.dtsi" 26 compatible = "gpio-leds"; 28 led-power0 { 31 linux,default-trigger = "default-on"; 34 led-power1 { 39 led-5ghz-1 { 40 label = "bcm53xx:white:5ghz-1"; 44 led-5ghz-2 { [all …]
|
H A D | bcm47081-tplink-archer-c5-v2.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 6 /dts-v1/; 11 compatible = "tplink,archer-c5-v2", "brcm,bcm47081", "brcm,bcm4708"; 12 model = "TP-LINK Archer C5 V2"; 24 compatible = "gpio-leds"; 26 led-2ghz { 31 led-lan { 36 led-usb2-port1 { 37 label = "bcm53xx:green:usb2-port1"; 39 trigger-sources = <&ohci_port1>, <&ehci_port1>; [all …]
|
H A D | bcm4708-netgear-r6250.dts | 5 * Copyright 2013 Hauke Mehrtens <hauke@hauke-m.de> 10 /dts-v1/; 13 #include "bcm5301x-nand-cs0-bch8.dtsi" 16 compatible = "netgear,r6250-v1", "brcm,bcm4708"; 30 compatible = "gpio-leds"; 32 led-logo { 35 linux,default-trigger = "default-on"; 38 led-power0 { 41 linux,default-trigger = "default-on"; 44 led-power1 { [all …]
|
H A D | bcm47189-tenda-ac9.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 6 /dts-v1/; 23 leds-0 { 24 compatible = "gpio-leds"; 26 led-usb { 29 trigger-sources = <&ohci_port1>, <&ehci_port1>; 30 linux,default-trigger = "usbport"; 33 led-wps { 38 led-5ghz { 43 led-system { [all …]
|
H A D | bcm4708-smartrg-sr400ac.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 9 /dts-v1/; 12 #include "bcm5301x-nand-cs0-bch8.dtsi" 29 compatible = "gpio-leds"; 31 led-power-white { 34 linux,default-trigger = "default-on"; 37 led-power-amber { 42 led-usb2 { 45 trigger-sources = <&ohci_port2>, <&ehci_port2>; 46 linux,default-trigger = "usbport"; [all …]
|
H A D | bcm4709-netgear-r8000.dts | 20 /dts-v1/; 23 #include "bcm5301x-nand-cs0-bch8.dtsi" 40 compatible = "gpio-leds"; 42 led-power-white { 45 linux,default-trigger = "default-on"; 48 led-power-amber { 53 led-wan-white { 56 linux,default-trigger = "default-on"; 59 led-wan-amber { 64 led-5ghz-1 { [all …]
|
H A D | bcm47094-linksys-panamera.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 6 /dts-v1/; 9 #include "bcm5301x-nand-cs0-bch8.dtsi" 30 gpio-keys { 31 compatible = "gpio-keys"; 33 button-wps { 39 button-rfkill { 45 button-reset { 53 compatible = "gpio-leds"; 55 led-wps { [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/pinctrl/ |
H A D | brcm,iproc-gpio.txt | 1 Broadcom iProc GPIO/PINCONF Controller 5 - compatible: 6 "brcm,iproc-gpio" for the generic iProc based GPIO controller IP that 7 supports full-featured pinctrl and GPIO functions used in various iProc 10 May contain an SoC-specific compatibility string to accommodate any 11 SoC-specific features 13 "brcm,cygnus-ccm-gpio", "brcm,cygnus-asiu-gpio", or 14 "brcm,cygnus-crmu-gpio" for Cygnus SoCs 16 "brcm,iproc-nsp-gpio" for the iProc NSP SoC that has drive strength support 19 "brcm,iproc-stingray-gpio" for the iProc Stingray SoC that has the general [all …]
|
/openbmc/linux/Documentation/driver-api/ |
H A D | index.rst | 1 .. SPDX-License-Identifier: GPL-2.0 12 .. class:: toc-title 19 driver-model/index 23 early-userspace/index 26 device-io 27 dma-buf 30 message-based 33 frame-buffer 63 s390-drivers 66 uio-howto [all …]
|
/openbmc/linux/Documentation/translations/zh_CN/driver-api/ |
H A D | index.rst | 1 .. SPDX-License-Identifier: GPL-2.0 3 .. include:: ../disclaimer-zh_CN.rst 5 :Original: Documentation/driver-api/index.rst 20 .. class:: toc-title 27 gpio/index 32 * driver-model/index 36 * early-userspace/index 39 * device-io 40 * dma-buf 43 * message-based [all …]
|