Home
last modified time | relevance | path

Searched refs:typec (Results 1 – 25 of 34) sorted by relevance

12

/linux/drivers/platform/chrome/
H A Dcros_ec_typec.c291 static int cros_typec_add_partner(struct cros_typec_data *typec, int port_num, in cros_typec_add_partner() argument
294 struct cros_typec_port *port = typec->ports[port_num]; in cros_typec_add_partner()
315 static void cros_typec_unregister_altmodes(struct cros_typec_data *typec, int port_num, in cros_typec_unregister_altmodes() argument
318 struct cros_typec_port *port = typec->ports[port_num]; in cros_typec_unregister_altmodes()
326 devm_kfree(typec->dev, node); in cros_typec_unregister_altmodes()
358 static void cros_typec_remove_partner(struct cros_typec_data *typec, in cros_typec_remove_partner() argument
361 struct cros_typec_port *port = typec->ports[port_num]; in cros_typec_remove_partner()
366 cros_typec_unregister_altmodes(typec, port_num, true); in cros_typec_remove_partner()
385 static void cros_typec_remove_cable(struct cros_typec_data *typec, in cros_typec_remove_cable() argument
388 struct cros_typec_port *port = typec->ports[port_num]; in cros_typec_remove_cable()
[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 DMakefile21 cros-ec-typec-objs := cros_ec_typec.o cros_typec_vdm.o
23 cros-ec-typec-objs += cros_typec_altmode.o
25 obj-$(CONFIG_CROS_EC_TYPEC) += cros-ec-typec.o
/linux/drivers/usb/typec/
H A Danx7411.c281 struct typec_params typec; member
345 ctx->typec.request_current = ret * CURRENT_UNIT; /* 50ma per unit */ in anx7411_detect_power_mode()
351 ctx->typec.request_voltage = ret * VOLTAGE_UNIT; /* 100mv per unit */ in anx7411_detect_power_mode()
359 if (!ctx->typec.cc_orientation_valid) in anx7411_detect_power_mode()
362 if (ctx->typec.cc_connect == CC1_CONNECTED) in anx7411_detect_power_mode()
363 mode = CC1_RP(ctx->typec.cc_status); in anx7411_detect_power_mode()
365 mode = CC2_RP(ctx->typec.cc_status); in anx7411_detect_power_mode()
367 typec_set_pwr_opmode(ctx->typec.port, mode - 1); in anx7411_detect_power_mode()
371 typec_set_pwr_opmode(ctx->typec.port, TYPEC_PWR_MODE_PD); in anx7411_detect_power_mode()
382 if (ctx->typec.partner) in anx7411_register_partner()
[all …]
H A DKconfig43 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).
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"
/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
/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
/linux/Documentation/ABI/testing/
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
66 What: /sys/bus/typec/devices/.../displayport/irq_hpd
/linux/arch/arm64/boot/dts/qcom/
H A Dpm6150.dtsi73 pm6150_typec: typec@1500 {
74 compatible = "qcom,pm6150-typec",
75 "qcom,pm8150b-typec";
H A Dsc7280-idp-ec-h1.dtsi36 typec {
37 compatible = "google,cros-ec-typec";
H A Dqcs8550-aim300-aiot.dts125 typec-mux@42 {
141 typec-retimer@1c {
/linux/arch/arm/boot/dts/st/
H A Dstm32mp153c-lxa-fairytux2-gen2.dts73 usb_c: typec@28 {
85 typec-power-opmode = "default";
/linux/arch/arm64/boot/dts/rockchip/
H A Drk3399-hugsun-x99.dts102 vcc5v0_typec: regulator-vcc5v0-typec {
451 fusb0: typec-portc@22 {
565 usb-typec {
H A Drk3399-rock-4c-plus.dts120 vcc5v0_typec: regulator-vcc5v0-typec {
566 usb-typec {
567 vcc5v0_typec0_en: vcc5v0-typec-en {
H A Drk3399-eaidk-610.dts225 vcc5v0_typec: regulator-vcc5v0-typec {
566 fusb0: typec-portc@22 {
724 usb-typec {
H A Drk3399-firefly.dts225 vcc5v0_typec: regulator-vcc5v0-typec {
566 fusb0: typec-portc@22 {
734 usb-typec {
H A Drk3399-rockpro64.dtsi182 vcc5v0_typec: regulator-vcc5v0-typec {
566 fusb0: typec-portc@22 {
712 usb-typec {
/linux/arch/arm64/boot/dts/freescale/
H A Dimx8mq-hummingboard-pulse.dts44 typec_ptn5100: usb-typec@50 {
/linux/arch/arm/boot/dts/allwinner/
H A Dsun8i-v3s-netcube-kumquat.dts120 tusb320: typec@60 {
/linux/drivers/usb/typec/tcpm/
H A Dtcpm.c2370 struct typec_port *typec = port->typec_port; in tcpm_handle_discover_mode() local
2381 typec_get_negotiated_svdm_version(typec), in tcpm_handle_discover_mode()
2390 typec_get_cable_svdm_version(typec), in tcpm_handle_discover_mode()
2406 typec_get_cable_svdm_version(typec), in tcpm_handle_discover_mode()
2426 struct typec_port *typec = port->typec_port; in tcpm_pd_svdm() local
2449 svdm_version = typec_get_cable_svdm_version(typec); in tcpm_pd_svdm()
2463 svdm_version = typec_get_negotiated_svdm_version(typec); in tcpm_pd_svdm()
2473 svdm_version = typec_get_negotiated_svdm_version(typec); in tcpm_pd_svdm()
2553 (VDO_SVDM_VERS(typec_get_negotiated_svdm_version(typec))); in tcpm_pd_svdm()
2616 typec_get_negotiated_svdm_version(typec), in tcpm_pd_svdm()
[all …]
/linux/Documentation/firmware-guide/acpi/
H A Dintel-pmc-mux.rst22 Device modes. The driver is located here: drivers/usb/typec/mux/intel_pmc_mux.c.
/linux/drivers/usb/
H A DKconfig158 source "drivers/usb/typec/Kconfig"

12