Home
last modified time | relevance | path

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

12

/linux/net/rfkill/
H A Drfkill-gpio.c1 // 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 DKconfig1 # 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 DMakefile1 # 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 Drfkill-gpio.yaml1 # 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 Drfkill.c2 * 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 Dgpio.c2 * 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 DMakefile1 # 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 …]
H A Dath5k.h2 * Copyright (c) 2004-2007 Reyk Floeter <reyk@openbsd.org>
3 * Copyright (c) 2006-2007 Nick Kossifidis <mickflemm@gmail.com>
62 #define PCI_DEVICE_ID_ATHEROS_AR5312_REV7 0x0057 /* AR5312 WMAC (AP30-040) */
63 #define PCI_DEVICE_ID_ATHEROS_AR5312_REV8 0x0058 /* AR5312 WMAC (AP43-030) */
70 #define PCI_DEVICE_ID_ATHEROS_AR2413 0x001a /* AR2413 (Griffin-lite) */
72 #define PCI_DEVICE_ID_ATHEROS_AR5424 0x001c /* AR5424 (Condor PCI-E) */
189 #define AR5K_TUNE_NOISE_FLOOR -72
190 #define AR5K_TUNE_CCA_MAX_GOOD_VALUE -95
274 * enum ath5k_version - MAC Chips
286 * enum ath5k_radio - PHY Chips
[all …]
/linux/arch/arm64/boot/dts/marvell/
H A Dcn9132-clearfog.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
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 "cn9132-sr-cex7.dtsi"
19 compatible = "solidrun,cn9132-clearfog",
20 "solidrun,cn9132-sr-cex7", "marvell,cn9130";
32 gpio-keys {
33 compatible = "gpio-keys";
[all …]
/linux/drivers/net/wireless/realtek/rtl818x/rtl8187/
H A Drfkill.c1 // 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/drivers/platform/x86/
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
12 x86 platforms, including vendor-specific laptop extension drivers.
24 Say Y here if you want to be able to read a firmware-embedded
29 be called wmi-bmof.
42 control, fn-lock, mic-mute LED, and other extra features.
45 will be called huawei-wmi.
78 system with an EC-driven backlight.
81 called nvidia-wmi-ec-backlight.
88 Say Y here if you want to support WMI-based keys on Xiaomi notebooks.
91 be called xiaomi-wmi.
[all …]
/linux/arch/arm64/boot/dts/rockchip/
H A Drk3588-rock-5b.dtsi1 // 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 Drk3568-photonicat.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 /dts-v1/;
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/pinctrl/rockchip.h>
7 #include <dt-bindings/soc/rockchip,vop2.h>
23 compatible = "simple-battery";
24 device-chemistry = "lithium-ion";
25 charge-full-design-microamp-hours = <6800000>;
26 energy-full-design-microwatt-hours = <25000000>;
27 voltage-max-design-microvolt = <4200000>;
[all …]
/linux/arch/arm/boot/dts/broadcom/
H A Dbcm4709-linksys-ea9200.dts1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
6 /dts-v1/;
8 #include <dt-bindings/leds/common.h>
11 #include "bcm5301x-nand-cs0-bch8.dtsi"
32 #nvmem-cell-cells = <1>;
36 gpio-keys {
37 compatible = "gpio-keys";
39 button-wps {
45 button-rfkill {
51 button-restart {
[all …]
H A Dbcm4709-netgear-r7000.dts1 // 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 Dbcm4708-asus-rt-ac68u.dts1 // 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 Dbcm4708-asus-rt-ac56u.dts1 // 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 Dbcm47081-tplink-archer-c5-v2.dts1 // 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 Dbcm4708-netgear-r6250.dts5 * 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 Dbcm47094-netgear-r8500.dts1 // 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 Dbcm47189-tenda-ac9.dts1 // 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 Dbcm4708-smartrg-sr400ac.dts1 // 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 …]
/linux/drivers/platform/x86/lenovo/
H A DKconfig1 # 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.
58 called lenovo-yb9-kbdock.
75 depends on RFKILL || RFKILL = n
89 support for Fn-Fx key combinations, Bluetooth control, video
92 <file:Documentation/admin-guide/laptops/thinkpad-acpi.rst> and
93 <http://ibm-acpi.sf.net/> .
[all …]
/linux/arch/arm/boot/dts/nxp/imx/
H A Dimx6qdl-var-som.dtsi1 // SPDX-License-Identifier: GPL-2.0+
3 * Support for Variscite VAR-SOM-MX6 Module
7 * Copyright (C) 2014-2016 Variscite, Ltd.
12 #include <dt-bindings/clock/imx6qdl-clock.h>
13 #include <dt-bindings/gpio/gpio.h>
14 #include <dt-bindings/sound/fsl-imx-audmux.h>
17 model = "Variscite VAR-SOM-MX6 module";
18 compatible = "variscite,var-som-imx6q", "fsl,imx6q";
21 stdout-path = &uart1;
29 reg_usb_otg_vbus: regulator-usb-otg-vbus {
[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 …]

12