| /linux/net/rfkill/ |
| H A D | rfkill-gpio.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 11 #include <linux/rfkill.h> 17 #include <linux/gpio/consumer.h> 25 struct rfkill *rfkill_dev; 33 struct rfkill_gpio_data *rfkill = data; in rfkill_gpio_set_power() local 35 if (!blocked && !IS_ERR(rfkill->clk) && !rfkill->clk_enabled) { in rfkill_gpio_set_power() 36 int ret = clk_enable(rfkill->clk); in rfkill_gpio_set_power() 42 gpiod_set_value_cansleep(rfkill->shutdown_gpio, !blocked); in rfkill_gpio_set_power() 43 gpiod_set_value_cansleep(rfkill->reset_gpio, !blocked); in rfkill_gpio_set_power() 45 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
|
| /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 …]
|
| /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 …]
|
| /linux/arch/arm64/boot/dts/marvell/ |
| H A D | cn9130-cf-base.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Copyright (C) 2024 Josua Mayer <josua@solid-run.com> 9 /dts-v1/; 11 #include <dt-bindings/input/input.h> 12 #include <dt-bindings/leds/common.h> 15 #include "cn9130-sr-som.dtsi" 16 #include "cn9130-cf.dtsi" 20 compatible = "solidrun,cn9130-clearfog-base", 21 "solidrun,cn9130-sr-som", "marvell,cn9130"; 23 gpio-keys { [all …]
|
| /linux/arch/arm64/boot/dts/freescale/ |
| H A D | imx8mp-nitrogen-som.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 11 compatible = "boundary,imx8mp-nitrogen-som", "fsl,imx8mp"; 13 rfkill-bt { 14 compatible = "rfkill-gpio"; 15 label = "rfkill-bluetooth"; 16 pinctrl-names = "default"; 17 pinctrl-0 = <&pinctrl_rfkill_bt>; 18 radio-type = "bluetooth"; 19 shutdown-gpios = <&gpio3 9 GPIO_ACTIVE_LOW>; 22 rfkill-wlan { [all …]
|
| /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 …]
|
| /linux/arch/arm64/boot/dts/rockchip/ |
| H A D | rk3588-armsom-w3.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 /dts-v1/; 5 #include <dt-bindings/gpio/gpio.h> 6 #include <dt-bindings/leds/common.h> 7 #include <dt-bindings/soc/rockchip,vop2.h> 8 #include "rk3588-armsom-lm7.dtsi" 19 analog-sound { 20 compatible = "audio-graph-card"; 21 label = "rk3588-es8316"; 31 hp-det-gpio = <&gpio1 RK_PD5 GPIO_ACTIVE_HIGH>; [all …]
|
| H A D | rk3588-rock-5b.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 /dts-v1/; 5 #include "rk3588-rock-5b-5bp-5t.dtsi" 8 analog-sound { 9 compatible = "audio-graph-card"; 10 label = "rk3588-es8316"; 20 hp-det-gpios = <&gpio1 RK_PD5 GPIO_ACTIVE_HIGH>; 21 pinctrl-names = "default"; 22 pinctrl-0 = <&hp_detect>; 26 compatible = "gpio-leds"; [all …]
|
| H A D | rk3588-rock-5t.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 /dts-v1/; 5 #include "rk3588-rock-5b-5bp-5t.dtsi" 9 compatible = "radxa,rock-5t", "rockchip,rk3588"; 11 analog-sound { 12 compatible = "audio-graph-card"; 13 label = "rk3588-es8316"; 23 hp-det-gpios = <&gpio4 RK_PC3 GPIO_ACTIVE_HIGH>; 24 pinctrl-names = "default"; 25 pinctrl-0 = <&hp_detect>; [all …]
|
| H A D | rk3588-orangepi-5-plus.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 /dts-v1/; 8 #include <dt-bindings/gpio/gpio.h> 9 #include <dt-bindings/pinctrl/rockchip.h> 10 #include <dt-bindings/soc/rockchip,vop2.h> 11 #include <dt-bindings/usb/pd.h> 12 #include "rk3588-orangepi-5.dtsi" 16 compatible = "xunlong,orangepi-5-plus", "rockchip,rk3588"; 18 hdmi0-con { 19 compatible = "hdmi-connector"; [all …]
|
| /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 133 bool "Atheros ath9k rfkill support" if EXPERT 135 depends on RFKILL=y || RFKILL=ATH9K 138 Say Y to have ath9k poll the RF-Kill GPIO every couple of 140 a platform that can toggle the RF-Kill GPIO. 148 for multi-channel concurrency. Enable this if P2P PowerSave support 157 tristate "Atheros ath9k pci loader for EEPROM-less chips" 162 AR500X to AR92XX-generation of ath9k PCI(e) WiFi chips, which have
|
| /linux/drivers/platform/x86/lenovo/ |
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 10 depends on RFKILL && INPUT 21 rfkill switch, hotkey, fan control and backlight control. 40 button is a GPIO device. This driver receives ACPI notifications when 44 will be called lenovo-wmi-camera. 61 depends on RFKILL || RFKILL = n 75 support for Fn-Fx key combinations, Bluetooth control, video 78 <file:Documentation/admin-guide/laptops/thinkpad-acpi.rst> and 79 <http://ibm-acpi.sf.net/> . 81 This driver was formerly known as ibm-acpi. [all …]
|
| /linux/arch/arm/mach-tegra/ |
| H A D | board-paz00.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * arch/arm/mach-tegra/board-paz00.c 7 * Based on board-harmony.c 12 #include <linux/gpio/machine.h> 13 #include <linux/gpio/property.h> 21 .name = "tegra-gpio", 27 PROPERTY_ENTRY_GPIO("reset-gpios", 29 PROPERTY_ENTRY_GPIO("shutdown-gpios", 55 pr_err("failed to register WiFi rfkill device: %d\n", err); in tegra_paz00_wifikill_init()
|
| /linux/arch/arm/boot/dts/nxp/imx/ |
| H A D | imx6qdl-var-som.dtsi | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Support for Variscite VAR-SOM-MX6 Module 7 * Copyright (C) 2014-2016 Variscite, Ltd. 12 /dts-v1/; 15 #include <dt-bindings/clock/imx6qdl-clock.h> 16 #include <dt-bindings/gpio/gpio.h> 17 #include <dt-bindings/sound/fsl-imx-audmux.h> 20 model = "Variscite VAR-SOM-MX6 module"; 21 compatible = "variscite,var-som-imx6q", "fsl,imx6q"; 24 stdout-path = &uart1; [all …]
|
| /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 | 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 | 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 | 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 …]
|