Home
last modified time | relevance | path

Searched +full:try +full:- +full:power +full:- +full:role (Results 1 – 25 of 68) sorted by relevance

123

/Linux-v5.15/Documentation/devicetree/bindings/connector/
Dusb-connector.yaml1 # SPDX-License-Identifier: GPL-2.0-only
3 ---
4 $id: http://devicetree.org/schemas/connector/usb-connector.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Rob Herring <robh@kernel.org>
20 - enum:
21 - usb-a-connector
22 - usb-b-connector
23 - usb-c-connector
25 - items:
[all …]
/Linux-v5.15/Documentation/ABI/testing/
Dsysfs-class-typec1 USB Type-C port devices (eg. /sys/class/typec/port0/)
8 requesting data role swapping on the port. Swapping is supported
11 notified about role changes so that poll(2) on the attribute
12 wakes up. Change on the role will also generate uevent
13 KOBJ_CHANGE on the port. The current role is show in brackets,
22 The supported power roles. This attribute can be used to request
23 power role swap on the port. Swapping is supported as
26 notified about role changes so that poll(2) on the attribute
27 wakes up. Change on the role will also generate uevent
28 KOBJ_CHANGE. The current role is show in brackets, for example
[all …]
/Linux-v5.15/Documentation/driver-api/usb/
Dtypec.rst3 USB Type-C connector class
7 ------------
9 The typec class is meant for describing the USB Type-C ports in a system to the
14 The platforms are expected to register every USB Type-C port they have with the
15 class. In a normal case the registration will be done by a USB Type-C or PD PHY
18 considers the component registering the USB Type-C ports with the class as "port
26 attributes are described in Documentation/ABI/testing/sysfs-class-typec.
29 --------------------
36 "port0-partner". Full path to the device would be
37 /sys/class/typec/port0/port0-partner/.
[all …]
/Linux-v5.15/Documentation/devicetree/bindings/usb/
Drichtek,rt1711h.txt4 - compatible : Must be "richtek,rt1711h".
5 - reg : Must be 0x4e, it's slave address of RT1711H.
6 - interrupts : <a b> where a is the interrupt number and b represents an
9 Required sub-node:
10 - connector: The "usb-c-connector" attached to the tcpci chip, the bindings
12 Documentation/devicetree/bindings/connector/usb-connector.yaml
18 interrupt-parent = <&gpio26>;
22 compatible = "usb-c-connector";
23 label = "USB-C";
24 data-role = "dual";
[all …]
Dmediatek,mt6360-tcpc.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: "http://devicetree.org/schemas/usb/mediatek,mt6360-tcpc.yaml#"
5 $schema: "http://devicetree.org/meta-schemas/core.yaml#"
7 title: Mediatek MT6360 Type-C Port Switch and Power Delivery controller DT bindings
10 - ChiYuan Huang <cy_huang@richtek.com>
13 Mediatek MT6360 is a multi-functional device. It integrates charger, ADC, flash, RGB indicators,
14 regulators (BUCKs/LDOs), and TypeC Port Switch with Power Delivery controller.
15 This document only describes MT6360 Type-C Port Switch and Power Delivery controller.
20 - mediatek,mt6360-tcpc
[all …]
Dtypec-tcpci.txt2 ---------------------------------------------
5 - compatible: should be set one of following:
6 - "nxp,ptn5110" for NXP USB PD TCPC PHY IC ptn5110.
8 - reg: the i2c slave address of typec port controller device.
9 - interrupt-parent: the phandle to the interrupt controller which provides
11 - interrupts: interrupt specification for tcpci alert.
13 Required sub-node:
14 - connector: The "usb-c-connector" attached to the tcpci chip, the bindings
16 Documentation/devicetree/bindings/connector/usb-connector.yaml
23 interrupt-parent = <&gpio3>;
[all …]
Dmaxim,max33359.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: "http://devicetree.org/meta-schemas/core.yaml#"
7 title: Maxim TCPCI Type-C PD controller DT bindings
10 - Badhri Jagan Sridharan <badhri@google.com>
12 description: Maxim TCPCI Type-C PD controller
17 - maxim,max33359
27 $ref: ../connector/usb-connector.yaml#
32 - compatible
33 - reg
[all …]
Dfcs,fusb302.txt1 Fairchild FUSB302 Type-C Port controllers
4 - compatible : "fcs,fusb302"
5 - reg : I2C slave address
6 - interrupts : Interrupt specifier
8 Required sub-node:
9 - connector : The "usb-c-connector" attached to the FUSB302 IC. The bindings
12 Documentation/devicetree/bindings/connector/usb-connector.yaml
17 fusb302: typec-portc@54 {
20 interrupt-parent = <&nmi_intc>;
24 compatible = "usb-c-connector";
[all …]
/Linux-v5.15/Documentation/devicetree/bindings/chrome/
Dgoogle,cros-ec-typec.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/chrome/google,cros-ec-typec.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Benson Leung <bleung@chromium.org>
11 - Prashant Malani <pmalani@chromium.org>
17 cros-ec node like google,cros-ec-spi.
21 const: google,cros-ec-typec
24 $ref: /schemas/connector/usb-connector.yaml#
27 - compatible
[all …]
/Linux-v5.15/arch/arm64/boot/dts/freescale/
Dimx8mq-hummingboard-pulse.dts1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
3 * Copyright (C) 2018 Jon Nettleton <jon@solid-run.com>
6 /dts-v1/;
8 #include "dt-bindings/usb/pd.h"
9 #include "imx8mq-sr-som.dtsi"
13 compatible = "solidrun,hummingboard-pulse", "fsl,imx8mq";
16 stdout-path = &uart1;
19 reg_usdhc2_vmmc: regulator-usdhc2-vmmc {
20 compatible = "regulator-fixed";
21 pinctrl-names = "default";
[all …]
Dimx8mn-evk.dtsi1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
6 #include <dt-bindings/usb/pd.h>
11 stdout-path = &uart2;
14 gpio-leds {
15 compatible = "gpio-leds";
16 pinctrl-names = "default";
17 pinctrl-0 = <&pinctrl_gpio_led>;
22 default-state = "on";
31 reg_usdhc2_vmmc: regulator-usdhc2 {
32 compatible = "regulator-fixed";
[all …]
Dimx8mm-evk.dtsi1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
6 /dts-v1/;
8 #include <dt-bindings/usb/pd.h>
13 stdout-path = &uart2;
22 compatible = "gpio-leds";
23 pinctrl-names = "default";
24 pinctrl-0 = <&pinctrl_gpio_led>;
29 default-state = "on";
33 reg_usdhc2_vmmc: regulator-usdhc2 {
34 compatible = "regulator-fixed";
[all …]
Dimx8mq-librem5-devkit.dts1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright 2018-2019 Purism SPC
6 /dts-v1/;
8 #include "dt-bindings/input/input.h"
9 #include <dt-bindings/interrupt-controller/irq.h>
10 #include "dt-bindings/pwm/pwm.h"
11 #include "dt-bindings/usb/pd.h"
16 compatible = "purism,librem5-devkit", "fsl,imx8mq";
18 backlight_dsi: backlight-dsi {
19 compatible = "pwm-backlight";
[all …]
/Linux-v5.15/drivers/platform/x86/intel/int33fe/
Dintel_cht_int33fe_typec.c1 // SPDX-License-Identifier: GPL-2.0
12 * 3. FUSB302 USB Type-C Controller
16 * instantiate I²C clients for chips 2 - 4, so that standard I²C drivers
32 * Grrr, I severely dislike buggy BIOS-es. At least one BIOS enumerates
56 static const char * const max17047_suppliers[] = { "bq24190-charger" };
59 PROPERTY_ENTRY_STRING_ARRAY("supplied-from", max17047_suppliers),
78 PROPERTY_ENTRY_STRING("linux,extcon-name", "cht_wcove_pwrsrc"),
79 PROPERTY_ENTRY_REF_ARRAY("usb-role-switch", fusb302_mux_refs),
109 PROPERTY_ENTRY_STRING("data-role", "dual"),
110 PROPERTY_ENTRY_STRING("power-role", "dual"),
[all …]
/Linux-v5.15/drivers/platform/chrome/
Dcros_ec_typec.c1 // SPDX-License-Identifier: GPL-2.0-only
24 #include <linux/usb/role.h>
26 #define DRV_NAME "cros-ec-typec"
61 uint8_t role; member
74 /* Platform-specific data for the Chrome OS EC Type C controller. */
96 ret = fwnode_property_read_string(fwnode, "power-role", &buf); in cros_typec_parse_port_props()
98 dev_err(dev, "power-role not found: %d\n", ret); in cros_typec_parse_port_props()
105 cap->type = ret; in cros_typec_parse_port_props()
107 ret = fwnode_property_read_string(fwnode, "data-role", &buf); in cros_typec_parse_port_props()
109 dev_err(dev, "data-role not found: %d\n", ret); in cros_typec_parse_port_props()
[all …]
/Linux-v5.15/arch/arm64/boot/dts/hisilicon/
Dhi3660-hikey960.dts1 // SPDX-License-Identifier: GPL-2.0
9 /dts-v1/;
12 #include "hikey960-pinctrl.dtsi"
13 #include <dt-bindings/gpio/gpio.h>
14 #include <dt-bindings/input/input.h>
15 #include <dt-bindings/interrupt-controller/irq.h>
16 #include <dt-bindings/usb/pd.h>
20 compatible = "hisilicon,hi3660-hikey960", "hisilicon,hi3660";
35 stdout-path = "serial6:115200n8";
44 reserved-memory {
[all …]
/Linux-v5.15/drivers/usb/dwc3/
Ddrd.c1 // SPDX-License-Identifier: GPL-2.0
3 * drd.c - DesignWare USB3 DRD Controller Dual-role support
5 * Copyright (C) 2017 Texas Instruments Incorporated - https://www.ti.com
21 u32 reg = dwc3_readl(dwc->regs, DWC3_OEVTEN); in dwc3_otg_disable_events()
24 dwc3_writel(dwc->regs, DWC3_OEVTEN, reg); in dwc3_otg_disable_events()
29 u32 reg = dwc3_readl(dwc->regs, DWC3_OEVTEN); in dwc3_otg_enable_events()
32 dwc3_writel(dwc->regs, DWC3_OEVTEN, reg); in dwc3_otg_enable_events()
37 u32 reg = dwc3_readl(dwc->regs, DWC3_OEVT); in dwc3_otg_clear_events()
39 dwc3_writel(dwc->regs, DWC3_OEVTEN, reg); in dwc3_otg_clear_events()
56 spin_lock(&dwc->lock); in dwc3_otg_thread_irq()
[all …]
/Linux-v5.15/include/linux/
Dpower_supply.h1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Universal power supply monitor class
186 POWER_SUPPLY_TYPE_USB_PD, /* Power Delivery Port */
187 POWER_SUPPLY_TYPE_USB_PD_DRP, /* PD Dual Role Port */
199 POWER_SUPPLY_USB_TYPE_PD, /* Power Delivery Port */
200 POWER_SUPPLY_USB_TYPE_PD_DRP, /* PD Dual Role Port */
201 POWER_SUPPLY_USB_TYPE_PD_PPS, /* PD Programmable Power Supply */
217 /* Run-time specific power supply configuration */
232 /* Description of power supply */
242 * Functions for drivers implementing power supply class.
[all …]
/Linux-v5.15/drivers/usb/typec/tcpm/
Dtcpm.c1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright 2015-2017 Google, Inc
5 * USB Power Delivery protocol stack.
30 #include <linux/usb/role.h>
205 VDM_STATE_ERR_BUSY = -3,
206 VDM_STATE_ERR_SEND = -2,
207 VDM_STATE_ERR_TMOUT = -1,
234 * Initial current capability of the new source when vSafe5V is applied during PD3.0 Fast Role Swap.
235 * Based on "Table 6-14 Fixed Supply PDO - Sink" of "USB Power Delivery Specification Revision 3.0,
474 * SNK_READY for non-pd link.
[all …]
Dwcove.c1 // SPDX-License-Identifier: GPL-2.0
3 * typec_wcove.c - WhiskeyCove PMIC USB Type-C PHY driver
177 #define WCOVE_DSM_UUID "482383f0-2876-4e49-8685-db66211af037"
189 obj = acpi_evaluate_dsm(ACPI_HANDLE(wcove->dev), &wcove->guid, 1, func, in wcove_typec_func()
192 dev_err(wcove->dev, "%s: failed to evaluate _DSM\n", __func__); in wcove_typec_func()
193 return -EIO; in wcove_typec_func()
205 ret = regmap_write(wcove->regmap, USBC_CONTROL1, 0); in wcove_init()
210 ret = regmap_write(wcove->regmap, USBC_IRQMASK1, 0); in wcove_init()
214 return regmap_write(wcove->regmap, USBC_IRQMASK2, 0); in wcove_init()
223 ret = regmap_read(wcove->regmap, USBC_CC1_CTRL, &cc1ctrl); in wcove_get_vbus()
[all …]
/Linux-v5.15/arch/arm64/boot/dts/qcom/
Dsc7180-trogdor.dtsi1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/input/gpio-keys.h>
10 #include <dt-bindings/input/input.h>
11 #include <dt-bindings/regulator/qcom,rpmh-regulator.h>
12 #include <dt-bindings/sound/sc7180-lpass.h>
19 thermal-zones {
20 charger_thermal: charger-thermal {
21 polling-delay-passive = <0>;
22 polling-delay = <0>;
[all …]
/Linux-v5.15/arch/arm64/boot/dts/rockchip/
Drk3399-orangepi.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
6 /dts-v1/;
8 #include "dt-bindings/pwm/pwm.h"
9 #include "dt-bindings/input/input.h"
10 #include "dt-bindings/usb/pd.h"
12 #include "rk3399-opp.dtsi"
16 compatible = "rockchip,rk3399-orangepi", "rockchip,rk3399";
25 stdout-path = "serial2:1500000n8";
28 clkin_gmac: external-gmac-clock {
29 compatible = "fixed-clock";
[all …]
Drk3399-firefly.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
6 /dts-v1/;
7 #include <dt-bindings/input/linux-event-codes.h>
8 #include <dt-bindings/pwm/pwm.h>
9 #include <dt-bindings/usb/pd.h>
11 #include "rk3399-opp.dtsi"
14 model = "Firefly-RK3399 Board";
15 compatible = "firefly,firefly-rk3399", "rockchip,rk3399";
24 stdout-path = "serial2:1500000n8";
28 compatible = "pwm-backlight";
[all …]
Drk3399-pinebook-pro.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
8 /dts-v1/;
9 #include <dt-bindings/input/gpio-keys.h>
10 #include <dt-bindings/input/linux-event-codes.h>
11 #include <dt-bindings/pwm/pwm.h>
12 #include <dt-bindings/usb/pd.h>
13 #include <dt-bindings/leds/common.h>
15 #include "rk3399-opp.dtsi"
19 compatible = "pine64,pinebook-pro", "rockchip,rk3399";
28 stdout-path = "serial2:1500000n8";
[all …]
/Linux-v5.15/arch/arm/mach-omap2/
Domap_hwmod_3xxx_data.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * omap_hwmod_3xxx_data.c - hardware modules present on the OMAP3xxx chips
5 * Copyright (C) 2009-2011 Nokia Corporation
12 * XXX these should be marked initdata for multi-OMAP kernels
15 #include <linux/platform_data/i2c-omap.h>
16 #include <linux/power/smartreflex.h>
17 #include <linux/platform_data/hsmmc-omap.h>
25 #include "prm-regbits-34xx.h"
26 #include "cm-regbits-34xx.h"
37 * is driver-specific or driver-kernel integration-specific belongs
[all …]

123