Home
last modified time | relevance | path

Searched +full:extcon +full:- +full:usb +full:- +full:gpio (Results 1 – 25 of 113) sorted by relevance

12345

/linux/drivers/extcon/
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
2 menuconfig EXTCON config
3 tristate "External Connector Class (extcon) support"
5 Say Y here to enable external connector class (extcon) support.
8 multiple states; i.e., an extcon that may have multiple
11 host USB ports. Many of 30-pin connectors including PDMI are
14 if EXTCON
16 comment "Extcon Device Drivers"
19 tristate "ADC Jack extcon support"
22 Say Y here to enable extcon device driver based on ADC values.
[all …]
H A Dextcon-usb-gpio.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * drivers/extcon/extcon-usb-gpio.c - USB GPIO extcon driver
5 * Copyright (C) 2015 Texas Instruments Incorporated - https://www.ti.com
9 #include <linux/extcon-provider.h>
10 #include <linux/gpio/consumer.h>
44 * "USB" = VBUS and "USB-HOST" = !ID, so we have:
45 * Both "USB" and "USB-HOST" can't be set as active at the
46 * same time so if "USB-HOST" is active (i.e. ID is 0) we keep "USB" inactive
50 * ----------------------------------------
51 * [1] USB | H | H
[all …]
H A Dextcon-max3355.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Maxim Integrated MAX3355 USB OTG chip extcon driver
5 * Copyright (C) 2014-2015 Cogent Embedded, Inc.
9 #include <linux/extcon-provider.h>
10 #include <linux/gpio/consumer.h>
31 int id = gpiod_get_value_cansleep(data->id_gpiod); in max3355_id_irq()
35 * ID = 1 means USB HOST cable detached. in max3355_id_irq()
36 * As we don't have event for USB peripheral cable attached, in max3355_id_irq()
37 * we simulate USB peripheral attach here. in max3355_id_irq()
39 extcon_set_state_sync(data->edev, EXTCON_USB_HOST, false); in max3355_id_irq()
[all …]
H A Dextcon-intel-int3496.c1 // SPDX-License-Identifier: GPL-2.0
3 * Intel INT3496 ACPI device extcon driver
14 #include <linux/devm-helpers.h>
15 #include <linux/extcon-provider.h>
16 #include <linux/gpio/consumer.h>
50 * Some platforms have a bug in ACPI GPIO description making IRQ
51 * GPIO to be output only. Ask the GPIO core to ignore this limit.
53 { "id-gpios", &id_gpios, 1, ACPI_GPIO_QUIRK_NO_IO_RESTRICTION },
54 { "vbus-gpios", &vbus_gpios, 1 },
55 { "mux-gpios", &mux_gpios, 1 },
[all …]
H A DMakefile1 # SPDX-License-Identifier: GPL-2.0
3 # Makefile for external connector class (extcon) devices
6 obj-$(CONFIG_EXTCON) += extcon-core.o
7 extcon-core-objs += extcon.o devres.o
8 obj-$(CONFIG_EXTCON_ADC_JACK) += extcon-adc-jack.o
9 obj-$(CONFIG_EXTCON_AXP288) += extcon-axp288.o
10 obj-$(CONFIG_EXTCON_FSA9480) += extcon-fsa9480.o
11 obj-$(CONFIG_EXTCON_GPIO) += extcon-gpio.o
12 obj-$(CONFIG_EXTCON_INTEL_INT3496) += extcon-intel-int3496.o
13 obj-$(CONFIG_EXTCON_INTEL_CHT_WC) += extcon-intel-cht-wc.o
[all …]
H A Dextcon-qcom-spmi-misc.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * extcon-qcom-spmi-misc.c - Qualcomm USB extcon driver to support USB ID
4 * and VBUS detection based on extcon-usb-gpio.c.
10 #include <linux/devm-helpers.h>
11 #include <linux/extcon-provider.h>
46 if (info->id_irq > 0) { in qcom_usb_extcon_detect_cable()
48 ret = irq_get_irqchip_state(info->id_irq, in qcom_usb_extcon_detect_cable()
55 extcon_set_property(info->edev, EXTCON_USB_HOST, in qcom_usb_extcon_detect_cable()
58 extcon_set_state_sync(info->edev, EXTCON_USB_HOST, !state); in qcom_usb_extcon_detect_cable()
61 if (info->vbus_irq > 0) { in qcom_usb_extcon_detect_cable()
[all …]
/linux/Documentation/devicetree/bindings/extcon/
H A Dlinux,extcon-usb-gpio.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/extcon/linux,extcon-usb-gpio.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: USB GPIO Extcon device
10 - Frank Li <Frank.Li@nxp.com>
13 This is a virtual device used to generate USB cable states from the USB ID pin
14 connected to a GPIO pin.
18 const: linux,extcon-usb-gpio
20 id-gpios:
[all …]
H A Dextcon-ptn5150.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
4 $id: http://devicetree.org/schemas/extcon/extcon-ptn5150.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Krzysztof Kozlowski <krzk@kernel.org>
13 PTN5150 is a small thin low power CC logic chip supporting the USB Type-C
21 int-gpios:
25 GPIO pin (input) connected to the PTN5150's INTB pin.
34 vbus-gpios:
37 GPIO pin (output) used to control VBUS. If skipped, no such control
[all …]
H A Dextcon-palmas.txt1 EXTCON FOR PALMAS/TWL CHIPS
3 PALMAS USB COMPARATOR
5 - compatible: should contain one of:
6 * "ti,palmas-usb-vid".
7 * "ti,twl6035-usb-vid".
8 * "ti,palmas-usb" (DEPRECATED - use "ti,palmas-usb-vid").
9 * "ti,twl6035-usb" (DEPRECATED - use "ti,twl6035-usb-vid").
12 - ti,wakeup : To enable the wakeup comparator in probe
13 - ti,enable-id-detection: Perform ID detection. If id-gpio is specified
14 it performs id-detection using GPIO else using OTG core.
[all …]
/linux/arch/arm64/boot/dts/qcom/
H A Dmsm8939-sony-xperia-kanuti-tulip.dts1 // SPDX-License-Identifier: GPL-2.0
4 * Copyright (c) 2022-2023, Bryan O'Donoghue.
8 /dts-v1/;
11 #include "msm8939-pm8916.dtsi"
12 #include <dt-bindings/arm/qcom,ids.h>
13 #include <dt-bindings/gpio/gpio.h>
14 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
18 compatible = "sony,kanuti-tulip", "qcom,msm8939";
19 chassis-type = "handset";
21 qcom,board-id = <QCOM_BOARD_ID_MTP 0>;
[all …]
H A Dmsm8916-motorola-common.dtsi1 // SPDX-License-Identifier: GPL-2.0-only
3 #include "msm8916-pm8916.dtsi"
4 #include "msm8916-modem-qdsp6.dtsi"
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
8 #include <dt-bindings/interrupt-controller/irq.h>
18 stdout-path = "serial0";
21 gpio-keys {
22 compatible = "gpio-keys";
24 pinctrl-0 = <&gpio_keys_default>;
[all …]
H A Dmsm8916-wingtech-wt86528.dts1 // SPDX-License-Identifier: GPL-2.0-only
3 /dts-v1/;
5 #include "msm8916-wingtech-wt865x8.dtsi"
10 chassis-type = "handset";
13 speaker_amp_left: audio-amplifier-left {
16 pinctrl-0 = <&spk_ext_pa_left_default>;
17 pinctrl-names = "default";
19 mode-gpios = <&tlmm 119 GPIO_ACTIVE_HIGH>;
20 sound-name-prefix = "Speaker Amp L";
25 speaker_amp_right: audio-amplifier-right {
[all …]
H A Dmsm8939-huawei-kiwi.dts1 // SPDX-License-Identifier: GPL-2.0-only
3 /dts-v1/;
5 #include "msm8939-pm8916.dtsi"
6 #include <dt-bindings/gpio/gpio.h>
11 chassis-type = "handset";
20 stdout-path = "serial0";
23 reserved-memory {
26 no-map;
30 gpio-hall-sensor {
31 compatible = "gpio-keys";
[all …]
H A Dmsm8939-wingtech-wt82918.dtsi1 // SPDX-License-Identifier: GPL-2.0-only
3 #include "msm8916-modem-qdsp6.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/leds/common.h>
7 #include <dt-bindings/pinctrl/qcom,pmic-mpp.h>
17 stdout-path = "serial0";
21 compatible = "pwm-backlight";
23 brightness-levels = <0 255>;
24 num-interpolated-steps = <255>;
25 default-brightness-level = <128>;
[all …]
H A Dmsm8916-asus-z00l.dts1 // SPDX-License-Identifier: GPL-2.0-only
3 /dts-v1/;
5 #include "msm8916-pm8916.dtsi"
6 #include "msm8916-modem-qdsp6.dtsi"
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/input/input.h>
10 #include <dt-bindings/interrupt-controller/irq.h>
15 chassis-type = "handset";
24 stdout-path = "serial0";
27 gpio-keys {
[all …]
H A Dmsm8916-acer-a1-724.dts1 // SPDX-License-Identifier: GPL-2.0-only
3 /dts-v1/;
5 #include "msm8916-pm8916.dtsi"
6 #include "msm8916-modem-qdsp6.dtsi"
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/input/input.h>
10 #include <dt-bindings/interrupt-controller/irq.h>
11 #include <dt-bindings/leds/common.h>
14 * NOTE: The original firmware from Acer can only boot 32-bit kernels.
15 * To boot this device tree using arm64 it is necessary to flash 64-bit
[all …]
H A Dmsm8916-gplus-fl8005a.dts1 // SPDX-License-Identifier: GPL-2.0-only
3 /dts-v1/;
5 #include "msm8916-pm8916.dtsi"
6 #include "msm8916-modem-qdsp6.dtsi"
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/input/input.h>
10 #include <dt-bindings/leds/common.h>
15 chassis-type = "tablet";
24 stdout-path = "serial0";
28 compatible = "simple-battery";
[all …]
H A Dmsm8916-longcheer-l8910.dts1 // SPDX-License-Identifier: GPL-2.0-only
3 /dts-v1/;
5 #include "msm8916-pm8916.dtsi"
6 #include "msm8916-modem-qdsp6.dtsi"
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/input/input.h>
10 #include <dt-bindings/leds/common.h>
11 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
16 chassis-type = "handset";
25 stdout-path = "serial0";
[all …]
H A Dmsm8916-wingtech-wt88047.dts1 // SPDX-License-Identifier: GPL-2.0-only
6 /dts-v1/;
8 #include "msm8916-pm8916.dtsi"
9 #include "msm8916-modem-qdsp6.dtsi"
11 #include <dt-bindings/gpio/gpio.h>
12 #include <dt-bindings/input/input.h>
13 #include <dt-bindings/leds/common.h>
18 chassis-type = "handset";
27 stdout-path = "serial0";
30 speaker_amp: audio-amplifier {
[all …]
H A Dmsm8916-ufi.dtsi1 // SPDX-License-Identifier: GPL-2.0-only
3 #include "msm8916-pm8916.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/leds/common.h>
9 chassis-type = "embedded";
17 stdout-path = "serial0";
20 gpio-keys {
21 compatible = "gpio-keys";
23 pinctrl-0 = <&button_default>;
24 pinctrl-names = "default";
[all …]
/linux/Documentation/devicetree/bindings/usb/
H A Dmediatek,mtu3.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 ---
5 $id: http://devicetree.org/schemas/usb/mediatek,mtu3.yaml#
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
11 - Chunfeng Yun <chunfeng.yun@mediatek.com>
14 - $ref: usb-drd.yaml
23 - enum:
24 - mediatek,mt2712-mtu3
25 - mediatek,mt8173-mtu3
26 - mediatek,mt8183-mtu3
[all …]
/linux/Documentation/firmware-guide/acpi/
H A Dextcon-intel-int3496.rst2 Intel INT3496 ACPI device extcon driver documentation
5 The Intel INT3496 ACPI device extcon driver is a driver for ACPI
6 devices with an acpi-id of INT3496, such as found for example on
9 This ACPI device describes how the OS can read the id-pin of the devices'
10 USB-otg port, as well as how it optionally can enable Vbus output on the
12 between an USB host and an USB peripheral controller.
15 to 3 gpio descriptors from its ACPI _CRS (Current Resource Settings) call:
18 Index 0 The input gpio for the id-pin, this is always present and valid
19 Index 1 The output gpio for enabling Vbus output from the device to the otg
20 port, write 1 to enable the Vbus output (this gpio descriptor may
[all …]
/linux/arch/arm/boot/dts/ti/omap/
H A Ddra7-evm-common.dtsi1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2017 Texas Instruments Incorporated - https://www.ti.com/
6 #include "dra74-ipu-dsp-common.dtsi"
7 #include <dt-bindings/gpio/gpio.h>
8 #include <dt-bindings/clock/ti-dra7-atl.h>
9 #include <dt-bindings/input/input.h>
13 stdout-path = &uart1;
17 compatible = "linux,extcon-usb-gpio";
18 id-gpios = <&pcf_gpio_21 1 GPIO_ACTIVE_HIGH>;
22 compatible = "linux,extcon-usb-gpio";
[all …]
/linux/drivers/platform/x86/
H A Dlenovo-yoga-tab2-pro-1380-fastcharger.c1 // SPDX-License-Identifier: GPL-2.0-or-later
13 #include <linux/extcon.h>
14 #include <linux/gpio/consumer.h>
26 #define YT2_1380_FC_PDEV_NAME "lenovo-yoga-tab2-pro-1380-fastcharger"
28 #define YT2_1380_FC_SERDEV_NAME "serial0-0"
29 #define YT2_1380_FC_EXTCON_NAME "i2c-lc824206xa"
43 struct extcon_dev *extcon; member
51 struct pinctrl_state *state = enable ? fc->gpio_state : fc->uart_state; in yt2_1380_fc_set_gpio_mode()
54 ret = pinctrl_select_state(fc->pinctrl, state); in yt2_1380_fc_set_gpio_mode()
56 dev_err(fc->dev, "Error %d setting pinctrl state\n", ret); in yt2_1380_fc_set_gpio_mode()
[all …]
/linux/drivers/usb/phy/
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0
3 # Physical Layer USB driver configuration
5 menu "USB Physical Layer drivers"
8 select EXTCON
12 # USB Transceiver Drivers
15 tristate "AB8500 USB Transceiver Driver"
19 Enable this to support the USB OTG transceiver in AB8500 chip.
24 tristate "Freescale USB OTG Transceiver Driver"
29 Enable this to support Freescale USB OTG transceiver.
32 tristate "Keystone USB PHY Driver"
[all …]

12345