/linux/drivers/usb/typec/ |
H A D | anx7411.c | 26 #include <linux/usb/typec.h> 223 /* copy from drivers/usb/typec/tcpm */ 281 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() [all …]
|
H A D | Kconfig | 3 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 D | Makefile | 2 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
|
/linux/Documentation/driver-api/usb/ |
H A D | typec.rst | 9 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 D | typec_bus.rst | 16 :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/drivers/platform/chrome/ |
H A D | cros_typec_vdm.c | 20 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 D | cros_typec_vdm.h | 10 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);
|
/linux/Documentation/ABI/obsolete/ |
H A D | sysfs-class-typec | 2 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 D | sysfs-bus-typec | 1 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 D | sysfs-driver-typec-displayport | 1 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
|
/linux/Documentation/devicetree/bindings/chrome/ |
H A D | google,cros-ec-typec.yaml | 4 $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";
|
/linux/Documentation/devicetree/bindings/usb/ |
H A D | st,typec-stm32g0.yaml | 4 $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 D | st,stusb160x.yaml | 44 typec-power-opmode: true 63 typec: stusb1600@28 { 76 typec-power-opmode = "default";
|
H A D | ite,it5205.yaml | 38 A port node to link the IT5205 to a TypeC controller for the purpose of 56 typec-mux@48 {
|
H A D | fcs,fsa4480.yaml | 36 A port node to link the FSA4480 to a TypeC controller for the purpose of 89 typec-mux@42 {
|
H A D | qcom,wcd939x-usbss.yaml | 47 A port node to link the WCD939x USB SubSystem to a TypeC controller for the 72 typec-mux@42 {
|
/linux/Documentation/devicetree/bindings/phy/ |
H A D | phy-rockchip-typec.txt | 5 - 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 D | ti,phy-j721e-wiz.yaml | 57 typec-dir-gpios: 64 typec-dir-debounce-ms: 69 Number of milliseconds to wait before sampling typec-dir-gpio.
|
/linux/drivers/phy/rockchip/ |
H A D | Kconfig | 108 tristate "Rockchip TYPEC PHY Driver" 114 Enable this to support the Rockchip USB TYPEC PHY. 126 depends on TYPEC
|
/linux/arch/arm64/boot/dts/qcom/ |
H A D | pm4125.dtsi | 45 pm4125_typec: typec@1500 { 46 compatible = "qcom,pm4125-typec", "qcom,pmi632-typec";
|
H A D | pm6150.dtsi | 73 pm6150_typec: typec@1500 { 74 compatible = "qcom,pm6150-typec", 75 "qcom,pm8150b-typec";
|
H A D | pm7250b.dtsi | 53 pm7250b_typec: typec@1500 { 54 compatible = "qcom,pm7250b-typec", "qcom,pm8150b-typec";
|
H A D | sc7280-idp-ec-h1.dtsi | 36 typec { 37 compatible = "google,cros-ec-typec";
|
/linux/arch/arm/boot/dts/aspeed/ |
H A D | aspeed-bmc-facebook-bletchley.dts | 390 sled1_fusb302: typec-portc@22 { 404 typec-power-opmode = "default"; 476 sled2_fusb302: typec-portc@22 { 490 typec-power-opmode = "default"; 562 sled3_fusb302: typec-portc@22 { 576 typec-power-opmode = "default"; 648 sled4_fusb302: typec-portc@22 { 662 typec-power-opmode = "default"; 734 sled5_fusb302: typec-portc@22 { 748 typec-power-opmode = "default"; [all …]
|
/linux/drivers/usb/typec/mux/ |
H A D | it5205.c | 20 #include <linux/usb/typec.h> 229 "failed to register typec switch\n"); in it5205_probe() 239 "failed to register typec mux\n"); in it5205_probe()
|