Home
last modified time | relevance | path

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

123

/linux-6.12.1/net/rfkill/
Drfkill-gpio.c1 // 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 clk_enable(rfkill->clk); in rfkill_gpio_set_power()
38 gpiod_set_value_cansleep(rfkill->shutdown_gpio, !blocked); in rfkill_gpio_set_power()
39 gpiod_set_value_cansleep(rfkill->reset_gpio, !blocked); in rfkill_gpio_set_power()
41 if (blocked && !IS_ERR(rfkill->clk) && rfkill->clk_enabled) in rfkill_gpio_set_power()
[all …]
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
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-6.12.1/Documentation/devicetree/bindings/net/
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-6.12.1/drivers/net/wireless/ath/ath5k/
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 …]
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 …]
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 …]
/linux-6.12.1/arch/arm64/boot/dts/marvell/
Dcn9130-cf-base.dts1 // 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 …]
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-6.12.1/drivers/net/wireless/realtek/rtl818x/rtl8187/
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-6.12.1/drivers/platform/x86/
DKconfig1 # 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.
62 control, fn-lock, mic-mute LED, and other extra features.
65 will be called huawei-wmi.
[all …]
DMakefile1 # 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 …]
/linux-6.12.1/drivers/net/wireless/ath/ath9k/
DKconfig1 # 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-6.12.1/arch/arm64/boot/dts/rockchip/
Drk3588-rock-5b.dts1 // 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>
11 compatible = "radxa,rock-5b", "rockchip,rk3588";
20 stdout-path = "serial2:1500000n8";
23 analog-sound {
24 compatible = "audio-graph-card";
25 label = "rk3588-es8316";
35 hp-det-gpio = <&gpio1 RK_PD5 GPIO_ACTIVE_HIGH>;
[all …]
/linux-6.12.1/arch/arm/mach-tegra/
Dboard-paz00.c1 // 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-6.12.1/arch/arm/boot/dts/broadcom/
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 …]
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 …]
Dbcm4708-netgear-r6300-v2.dts1 // 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 …]
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 …]
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 …]
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 …]
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 …]
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 …]
/linux-6.12.1/arch/arm/boot/dts/nxp/imx/
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 /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-6.12.1/Documentation/devicetree/bindings/pinctrl/
Dbrcm,iproc-gpio.txt1 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 …]

123