Home
last modified time | relevance | path

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

12345

/linux/drivers/platform/chrome/
H A Dcros_ec_typec.c23 #define DRV_NAME "cros-ec-typec"
253 static int cros_typec_add_partner(struct cros_typec_data *typec, int port_num, in cros_typec_add_partner() argument
256 struct cros_typec_port *port = typec->ports[port_num]; in cros_typec_add_partner()
277 static void cros_typec_unregister_altmodes(struct cros_typec_data *typec, int port_num, in cros_typec_unregister_altmodes() argument
280 struct cros_typec_port *port = typec->ports[port_num]; in cros_typec_unregister_altmodes()
288 devm_kfree(typec->dev, node); in cros_typec_unregister_altmodes()
320 static void cros_typec_remove_partner(struct cros_typec_data *typec, in cros_typec_remove_partner() argument
323 struct cros_typec_port *port = typec->ports[port_num]; in cros_typec_remove_partner()
328 cros_typec_unregister_altmodes(typec, port_num, true); in cros_typec_remove_partner()
347 static void cros_typec_remove_cable(struct cros_typec_data *typec, in cros_typec_remove_cable() argument
373 cros_unregister_ports(struct cros_typec_data * typec) cros_unregister_ports() argument
396 cros_typec_register_port_altmodes(struct cros_typec_data * typec,int port_num) cros_typec_register_port_altmodes() argument
438 cros_typec_init_ports(struct cros_typec_data * typec) cros_typec_init_ports() argument
570 cros_typec_enable_tbt(struct cros_typec_data * typec,int port_num,struct ec_response_usb_pd_control_v2 * pd_ctrl) cros_typec_enable_tbt() argument
625 cros_typec_enable_dp(struct cros_typec_data * typec,int port_num,struct ec_response_usb_pd_control_v2 * pd_ctrl) cros_typec_enable_dp() argument
702 cros_typec_enable_usb4(struct cros_typec_data * typec,int port_num,struct ec_response_usb_pd_control_v2 * pd_ctrl) cros_typec_enable_usb4() argument
732 cros_typec_configure_mux(struct cros_typec_data * typec,int port_num,struct ec_response_usb_pd_control_v2 * pd_ctrl) cros_typec_configure_mux() argument
825 cros_typec_set_port_params_v0(struct cros_typec_data * typec,int port_num,struct ec_response_usb_pd_control * resp) cros_typec_set_port_params_v0() argument
842 cros_typec_set_port_params_v1(struct cros_typec_data * typec,int port_num,struct ec_response_usb_pd_control_v1 * resp) cros_typec_set_port_params_v1() argument
884 cros_typec_register_altmodes(struct cros_typec_data * typec,int port_num,bool is_partner) cros_typec_register_altmodes() argument
971 cros_typec_handle_sop_prime_disc(struct cros_typec_data * typec,int port_num,u16 pd_revision) cros_typec_handle_sop_prime_disc() argument
1047 cros_typec_handle_sop_disc(struct cros_typec_data * typec,int port_num,u16 pd_revision) cros_typec_handle_sop_disc() argument
1093 cros_typec_send_clear_event(struct cros_typec_data * typec,int port_num,u32 events_mask) cros_typec_send_clear_event() argument
1105 cros_typec_register_partner_pdos(struct cros_typec_data * typec,struct ec_response_typec_status * resp,int port_num) cros_typec_register_partner_pdos() argument
1145 cros_typec_handle_status(struct cros_typec_data * typec,int port_num) cros_typec_handle_status() argument
1231 cros_typec_port_update(struct cros_typec_data * typec,int port_num) cros_typec_port_update() argument
1277 cros_typec_get_cmd_version(struct cros_typec_data * typec) cros_typec_get_cmd_version() argument
1305 struct cros_typec_data *typec = container_of(work, struct cros_typec_data, port_work); cros_typec_port_work() local
1318 struct cros_typec_data *typec = container_of(nb, struct cros_typec_data, nb); cros_ec_typec_event() local
1346 struct cros_typec_data *typec; cros_typec_probe() local
1422 struct cros_typec_data *typec = platform_get_drvdata(pdev); cros_typec_remove() local
1431 struct cros_typec_data *typec = dev_get_drvdata(dev); cros_typec_suspend() local
1440 struct cros_typec_data *typec = dev_get_drvdata(dev); cros_typec_resume() local
[all...]
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.c26 #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 in anx7411_detect_power_mode()
[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
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/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/<por
[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
66 What: /sys/bus/typec/devices/.../displayport/irq_hpd
H A Dsysfs-class-chromeos38 Show PD mux status for each typec port with following flags:
/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/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/clas
1 .. _typec: global() target
[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
H A Dindex.rst21 typec
/linux/arch/arm64/boot/dts/qcom/
H A Dpm4125.dtsi45 pm4125_typec: typec@1500 {
46 compatible = "qcom,pm4125-typec", "qcom,pmi632-typec";
H A Dpm6150.dtsi73 pm6150_typec: typec@1500 {
74 compatible = "qcom,pm6150-typec",
75 "qcom,pm8150b-typec";
H A Dpm7250b.dtsi53 pm7250b_typec: typec@1500 {
54 compatible = "qcom,pm7250b-typec", "qcom,pm8150b-typec";
H A Dsc7280-idp-ec-h1.dtsi36 typec {
37 compatible = "google,cros-ec-typec";
H A Dpmi632.dtsi53 pmi632_typec: typec@1500 {
54 compatible = "qcom,pmi632-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/drivers/usb/typec/altmodes/
H A Dnvidia.c30 MODULE_DEVICE_TABLE(typec, nvidia_typec_id);
/linux/arch/arm64/boot/dts/rockchip/
H A Drk3588-orangepi-5-plus.dts54 vbus5v0_typec: regulator-vbus-typec {
179 usbc0: usb-typec@22 {
300 usb-typec {
/linux/arch/arm64/boot/dts/exynos/google/
H A Dgs101-pixel-common.dtsi138 usb-typec@25 {
196 typec-power-opmode = "default";
291 typec_int: typec-int-pins {
/linux/drivers/phy/rockchip/
H A DMakefile14 obj-$(CONFIG_PHY_ROCKCHIP_TYPEC) += phy-rockchip-typec.o
/linux/drivers/usb/
H A DMakefile68 obj-$(CONFIG_TYPEC) += typec/

12345