Home
last modified time | relevance | path

Searched full:typec (Results 1 – 25 of 156) sorted by relevance

1234567

/openbmc/linux/drivers/platform/chrome/
H A Dcros_ec_typec.c22 #define DRV_NAME "cros-ec-typec"
123 static int cros_typec_add_partner(struct cros_typec_data *typec, int port_num, in cros_typec_add_partner() argument
126 struct cros_typec_port *port = typec->ports[port_num]; in cros_typec_add_partner()
147 static void cros_typec_unregister_altmodes(struct cros_typec_data *typec, int port_num, in cros_typec_unregister_altmodes() argument
150 struct cros_typec_port *port = typec->ports[port_num]; in cros_typec_unregister_altmodes()
158 devm_kfree(typec->dev, node); in cros_typec_unregister_altmodes()
190 static void cros_typec_remove_partner(struct cros_typec_data *typec, in cros_typec_remove_partner() argument
193 struct cros_typec_port *port = typec->ports[port_num]; in cros_typec_remove_partner()
198 cros_typec_unregister_altmodes(typec, port_num, true); in cros_typec_remove_partner()
217 static void cros_typec_remove_cable(struct cros_typec_data *typec, in cros_typec_remove_cable() argument
[all …]
H A Dcros_typec_vdm.c20 void cros_typec_handle_vdm_attention(struct cros_typec_data *typec, int port_num) in cros_typec_handle_vdm_attention() argument
32 ret = cros_ec_cmd(typec->ec, 0, EC_CMD_TYPEC_VDM_RESPONSE, &req, in cros_typec_handle_vdm_attention()
35 dev_warn(typec->dev, "Failed VDM response fetch, port: %d\n", port_num); in cros_typec_handle_vdm_attention()
41 dev_dbg(typec->dev, "Received VDM Attention header: %x, port: %d\n", hdr, port_num); in cros_typec_handle_vdm_attention()
43 amode = typec_match_altmode(typec->ports[port_num]->port_altmode, in cros_typec_handle_vdm_attention()
46 dev_err(typec->dev, in cros_typec_handle_vdm_attention()
59 void cros_typec_handle_vdm_response(struct cros_typec_data *typec, int port_num) in cros_typec_handle_vdm_response() argument
70 ret = cros_ec_cmd(typec->ec, 0, EC_CMD_TYPEC_VDM_RESPONSE, &req, in cros_typec_handle_vdm_response()
73 dev_warn(typec->dev, "Failed VDM response fetch, port: %d\n", port_num); in cros_typec_handle_vdm_response()
79 dev_dbg(typec->dev, "Received VDM header: %x, port: %d\n", hdr, port_num); in cros_typec_handle_vdm_response()
[all …]
H A Dcros_typec_vdm.h10 void cros_typec_handle_vdm_attention(struct cros_typec_data *typec, int port_num);
11 void cros_typec_handle_vdm_response(struct cros_typec_data *typec, int port_num);
H A DMakefile20 cros-ec-typec-objs := cros_ec_typec.o cros_typec_vdm.o
21 obj-$(CONFIG_CROS_EC_TYPEC) += cros-ec-typec.o
/openbmc/linux/drivers/usb/typec/
H A Danx7411.c25 #include <linux/usb/typec.h>
222 /* copy from drivers/usb/typec/tcpm */
280 struct typec_params typec; member
344 ctx->typec.request_current = ret * CURRENT_UNIT; /* 50ma per unit */ in anx7411_detect_power_mode()
350 ctx->typec.request_voltage = ret * VOLTAGE_UNIT; /* 100mv per unit */ in anx7411_detect_power_mode()
358 if (!ctx->typec.cc_orientation_valid) in anx7411_detect_power_mode()
361 if (ctx->typec.cc_connect == CC1_CONNECTED) in anx7411_detect_power_mode()
362 mode = CC1_RP(ctx->typec.cc_status); in anx7411_detect_power_mode()
364 mode = CC2_RP(ctx->typec.cc_status); in anx7411_detect_power_mode()
366 typec_set_pwr_opmode(ctx->typec.port, mode - 1); in anx7411_detect_power_mode()
[all …]
H A DKconfig3 menuconfig TYPEC config
43 Connector Class API (Documentation/driver-api/usb/typec.rst)
44 <https://www.kernel.org/doc/html/latest/driver-api/usb/typec.html>
45 and ABI (Documentation/ABI/testing/sysfs-class-typec).
47 if TYPEC
49 source "drivers/usb/typec/tcpm/Kconfig"
51 source "drivers/usb/typec/ucsi/Kconfig"
53 source "drivers/usb/typec/tipd/Kconfig"
113 source "drivers/usb/typec/mux/Kconfig"
115 source "drivers/usb/typec/altmodes/Kconfig"
[all …]
H A DMakefile2 obj-$(CONFIG_TYPEC) += typec.o
3 typec-y := class.o mux.o bus.o pd.o retimer.o
4 typec-$(CONFIG_ACPI) += port-mapper.o
/openbmc/linux/Documentation/ABI/testing/
H A Dsysfs-class-typec1 USB Type-C port devices (eg. /sys/class/typec/port0/)
3 What: /sys/class/typec/<port>/data_role
18 What: /sys/class/typec/<port>/power_role
33 What: /sys/class/typec/<port>/port_type
51 What: /sys/class/typec/<port>/vconn_source
69 What: /sys/class/typec/<port>/power_operation_mode
85 What: /sys/class/typec/<port>/preferred_role
96 What: /sys/class/typec/<port>/supported_accessory_modes
103 What: /sys/class/typec/<port>/usb_power_delivery_revision
115 What: /sys/class/typec/<port>-{partner|cable}/usb_power_delivery_revision
[all …]
H A Dsysfs-bus-typec1 What: /sys/bus/typec/devices/.../active
15 What: /sys/bus/typec/devices/.../description
22 What: /sys/bus/typec/devices/.../mode
39 What: /sys/bus/typec/devices/.../svid
46 What: /sys/bus/typec/devices/.../vdo
H A Dsysfs-driver-typec-displayport1 What: /sys/bus/typec/devices/.../displayport/configuration
22 Documentation/ABI/testing/sysfs-bus-typec, and use file
23 /sys/bus/typec/devices/.../active).
25 What: /sys/bus/typec/devices/.../displayport/pin_assignment
51 What: /sys/bus/typec/devices/.../displayport/hpd
/openbmc/linux/Documentation/driver-api/usb/
H A Dtypec.rst9 The typec class is meant for describing the USB Type-C ports in a system to the
26 attributes are described in Documentation/ABI/testing/sysfs-class-typec.
30 Every port will be presented as its own device under /sys/class/typec/. The
34 /sys/class/typec/. The parent of the partner device will always be the port it
37 /sys/class/typec/port0/port0-partner/.
40 devices under /sys/class/typec/. The cable attached to the port "port0" port
48 Alternate Mode devices will not be attached to the typec class. The parent of an
50 mode of port0-partner will be presented under /sys/class/typec/port0-partner/.
52 device named "mode<index>", for example /sys/class/typec/port0/<alternate
65 .. kernel-doc:: drivers/usb/typec/class.c
[all …]
H A Dtypec_bus.rst16 :ref:`USB Type-C Connector Class <typec>` provides a device for every alternate
43 space (See Documentation/ABI/testing/sysfs-class-typec). Port drivers should not
109 .. kernel-doc:: drivers/usb/typec/bus.c
115 .. kernel-doc:: drivers/usb/typec/bus.c
121 .. kernel-doc:: drivers/usb/typec/bus.c
/openbmc/linux/Documentation/ABI/obsolete/
H A Dsysfs-class-typec2 under /sys/bus/typec (see Documentation/ABI/testing/sysfs-bus-typec).
4 What: /sys/class/typec/<port|partner|cable>/<dev>/svid
11 What: /sys/class/typec/<port|partner|cable>/<dev>/mode<index>/
20 What: /sys/class/typec/<port|partner|cable>/<dev>/mode<index>/description
27 What: /sys/class/typec/<port|partner|cable>/<dev>/mode<index>/vdo
34 What: /sys/class/typec/<port|partner|cable>/<dev>/mode<index>/active
/openbmc/linux/Documentation/devicetree/bindings/chrome/
H A Dgoogle,cros-ec-typec.yaml4 $id: http://devicetree.org/schemas/chrome/google,cros-ec-typec.yaml#
21 const: google,cros-ec-typec
51 typec {
52 compatible = "google,cros-ec-typec";
/openbmc/linux/Documentation/devicetree/bindings/usb/
H A Dst,typec-stm32g0.yaml4 $id: http://devicetree.org/schemas/usb/st,typec-stm32g0.yaml#
19 const: st,stm32g0-typec
57 typec@53 {
58 compatible = "st,stm32g0-typec";
H A Dst,stusb160x.yaml44 typec-power-opmode: true
63 typec: stusb1600@28 {
76 typec-power-opmode = "default";
H A Dqcom,pmic-typec.yaml4 $id: http://devicetree.org/schemas/usb/qcom,pmic-typec.yaml#
18 - qcom,pm8150b-typec
97 pm8150b_typec: typec@1500 {
98 compatible = "qcom,pm8150b-typec";
H A Dfcs,fsa4480.yaml37 A port node to link the FSA4480 to a TypeC controller for the purpose of
54 typec-mux@42 {
/openbmc/linux/Documentation/devicetree/bindings/phy/
H A Dphy-rockchip-typec.txt5 - compatible : must be "rockchip,rk3399-typec-phy"
32 - rockchip,typec-conn-dir
39 compatible = "rockchip,rk3399-typec-phy";
63 compatible = "rockchip,rk3399-typec-phy";
H A Dti,phy-j721e-wiz.yaml57 typec-dir-gpios:
64 typec-dir-debounce-ms:
69 Number of milliseconds to wait before sampling typec-dir-gpio.
/openbmc/linux/Documentation/devicetree/bindings/connector/
H A Dusb-connector.yaml99 typec-power-opmode:
205 new-source-frs-typec-current:
267 - typec-power-opmode
268 - new-source-frs-typec-current
318 # USB-C connector attached to a typec port controller(ptn5110), which has
322 typec: ptn5110 {
348 # USB-C connector attached to SoC and USB3 typec port controller(hd3ss3220)
/openbmc/linux/arch/arm/boot/dts/aspeed/
H A Daspeed-bmc-facebook-bletchley.dts385 sled1_fusb302: typec-portc@22 {
399 typec-power-opmode = "default";
471 sled2_fusb302: typec-portc@22 {
485 typec-power-opmode = "default";
557 sled3_fusb302: typec-portc@22 {
571 typec-power-opmode = "default";
643 sled4_fusb302: typec-portc@22 {
657 typec-power-opmode = "default";
729 sled5_fusb302: typec-portc@22 {
743 typec-power-opmode = "default";
[all …]
/openbmc/linux/drivers/phy/rockchip/
H A DKconfig96 tristate "Rockchip TYPEC PHY Driver"
102 Enable this to support the Rockchip USB TYPEC PHY.
/openbmc/linux/arch/arm64/boot/dts/qcom/
H A Dsc7280-idp-ec-h1.dtsi35 typec {
36 compatible = "google,cros-ec-typec";
/openbmc/linux/Documentation/devicetree/bindings/mfd/
H A Dgoogle,cros-ec.yaml96 typec:
97 $ref: /schemas/chrome/google,cros-ec-typec.yaml#
215 typec: false

1234567