Home
last modified time | relevance | path

Searched full:tcpci (Results 1 – 25 of 31) sorted by relevance

12

/OK3568_Linux_fs/kernel/drivers/usb/typec/tcpm/
H A Dtcpci.c20 #include "tcpci.h"
46 struct tcpci { struct
60 struct tcpci *tcpci; argument
64 struct tcpm_port *tcpci_get_tcpm_port(struct tcpci *tcpci) in tcpci_get_tcpm_port() argument
66 return tcpci->port; in tcpci_get_tcpm_port()
70 static inline struct tcpci *tcpc_to_tcpci(struct tcpc_dev *tcpc) in tcpc_to_tcpci()
72 return container_of(tcpc, struct tcpci, tcpc); in tcpc_to_tcpci()
75 static int tcpci_read16(struct tcpci *tcpci, unsigned int reg, u16 *val) in tcpci_read16() argument
77 return regmap_raw_read(tcpci->regmap, reg, val, sizeof(u16)); in tcpci_read16()
80 static int tcpci_write16(struct tcpci *tcpci, unsigned int reg, u16 val) in tcpci_write16() argument
[all …]
H A Dtcpci.h169 struct tcpci;
192 int (*init)(struct tcpci *tcpci, struct tcpci_data *data);
193 int (*set_vconn)(struct tcpci *tcpci, struct tcpci_data *data,
195 int (*start_drp_toggling)(struct tcpci *tcpci, struct tcpci_data *data,
197 int (*set_vbus)(struct tcpci *tcpci, struct tcpci_data *data, bool source, bool sink);
198 void (*frs_sourcing_vbus)(struct tcpci *tcpci, struct tcpci_data *data);
199 void (*set_partner_usb_comm_capable)(struct tcpci *tcpci, struct tcpci_data *data,
203 struct tcpci *tcpci_register_port(struct device *dev, struct tcpci_data *data);
204 void tcpci_unregister_port(struct tcpci *tcpci);
205 irqreturn_t tcpci_irq(struct tcpci *tcpci);
[all …]
H A Dtcpci_maxim.c5 * MAXIM TCPCI based TCPC driver
20 #include "tcpci.h"
48 struct tcpci *tcpci; member
214 static int max_tcpci_set_vbus(struct tcpci *tcpci, struct tcpci_data *tdata, bool source, bool sink) in max_tcpci_set_vbus() argument
259 static void max_tcpci_frs_sourcing_vbus(struct tcpci *tcpci, struct tcpci_data *tdata) in max_tcpci_frs_sourcing_vbus() argument
266 max_tcpci_set_vbus(tcpci, tdata, true, false); in max_tcpci_frs_sourcing_vbus()
284 static void max_tcpci_set_partner_usb_comm_capable(struct tcpci *tcpci, struct tcpci_data *data, in max_tcpci_set_partner_usb_comm_capable() argument
426 static int max_tcpci_start_toggling(struct tcpci *tcpci, struct tcpci_data *tdata, in max_tcpci_start_toggling() argument
436 static int tcpci_init(struct tcpci *tcpci, struct tcpci_data *data) in tcpci_init() argument
439 * Generic TCPCI overwrites the regs once this driver initializes in tcpci_init()
[all …]
H A Dtcpci_et7303.c17 #include "tcpci.h"
33 struct tcpci *tcpci; member
70 static int et7303_init(struct tcpci *tcpci, struct tcpci_data *tdata) in et7303_init() argument
91 static int et7303_set_vbus(struct tcpci *tcpci, struct tcpci_data *tdata, in et7303_set_vbus() argument
118 static int et7303_set_vconn(struct tcpci *tcpci, struct tcpci_data *tdata, in et7303_set_vconn() argument
127 static int et7303_start_drp_toggling(struct tcpci *tcpci, in et7303_start_drp_toggling() argument
187 return tcpci_irq(chip->tcpci); in et7303_irq()
277 chip->tcpci = tcpci_register_port(chip->dev, &chip->data); in et7303_probe()
278 if (IS_ERR(chip->tcpci)) in et7303_probe()
279 return PTR_ERR(chip->tcpci); in et7303_probe()
[all …]
H A Dtcpci_rt1711h.c15 #include "tcpci.h"
40 struct tcpci *tcpci; member
76 static int rt1711h_init(struct tcpci *tcpci, struct tcpci_data *tdata) in rt1711h_init() argument
107 static int rt1711h_set_vconn(struct tcpci *tcpci, struct tcpci_data *tdata, in rt1711h_set_vconn() argument
116 static int rt1711h_start_drp_toggling(struct tcpci *tcpci, in rt1711h_start_drp_toggling() argument
162 if (!chip->tcpci) in rt1711h_irq()
179 return tcpci_irq(chip->tcpci); in rt1711h_irq()
251 chip->tcpci = tcpci_register_port(chip->dev, &chip->data); in rt1711h_probe()
252 if (IS_ERR_OR_NULL(chip->tcpci)) in rt1711h_probe()
253 return PTR_ERR(chip->tcpci); in rt1711h_probe()
[all …]
H A Dtcpci_husb311.c17 #include "tcpci.h"
29 struct tcpci *tcpci; member
67 static int husb311_init(struct tcpci *tcpci, struct tcpci_data *tdata) in husb311_init() argument
85 static int husb311_set_vbus(struct tcpci *tcpci, struct tcpci_data *tdata, in husb311_set_vbus() argument
116 return tcpci_irq(chip->tcpci); in husb311_irq()
189 chip->tcpci = tcpci_register_port(chip->dev, &chip->data); in husb311_probe()
190 if (IS_ERR(chip->tcpci)) in husb311_probe()
191 return PTR_ERR(chip->tcpci); in husb311_probe()
198 tcpci_unregister_port(chip->tcpci); in husb311_probe()
211 tcpci_unregister_port(chip->tcpci); in husb311_remove()
[all …]
H A Dtcpci_mt6360.c16 #include "tcpci.h"
42 struct tcpci *tcpci; member
59 static int mt6360_tcpc_init(struct tcpci *tcpci, struct tcpci_data *tdata) in mt6360_tcpc_init() argument
143 return tcpci_irq(mti->tcpci); in mt6360_irq()
168 mti->tcpci = tcpci_register_port(&pdev->dev, &mti->tdata); in mt6360_tcpc_probe()
169 if (IS_ERR(mti->tcpci)) { in mt6360_tcpc_probe()
170 dev_err(&pdev->dev, "Failed to register tcpci port\n"); in mt6360_tcpc_probe()
171 return PTR_ERR(mti->tcpci); in mt6360_tcpc_probe()
178 tcpci_unregister_port(mti->tcpci); in mt6360_tcpc_probe()
193 tcpci_unregister_port(mti->tcpci); in mt6360_tcpc_remove()
H A DKconfig19 Type-C Port Controller driver for TCPCI-compliant controller.
53 tristate "Maxim TCPCI based Type-C chip driver"
55 MAXIM TCPCI based Type-C/PD chip driver. Works with
H A DMakefile6 obj-$(CONFIG_TYPEC_TCPCI) += tcpci.o
/OK3568_Linux_fs/u-boot/drivers/power/power_delivery/
H A Dtcpci.c16 #include "tcpci.h"
29 struct tcpci { struct
44 struct tcpci *tcpci; member
48 static inline struct tcpci *tcpc_to_tcpci(struct tcpc_dev *tcpc) in tcpc_to_tcpci()
50 return container_of(tcpc, struct tcpci, tcpc); in tcpc_to_tcpci()
53 static int tcpci_read16(struct tcpci *tcpci, unsigned int reg, u16 *val) in tcpci_read16() argument
58 ret = dm_i2c_read(tcpci->dev, reg, buffer, 2); in tcpci_read16()
70 static int tcpci_block_read(struct tcpci *tcpci, unsigned int reg, in tcpci_block_read() argument
75 ret = dm_i2c_read(tcpci->dev, reg, data, length); in tcpci_block_read()
83 static int tcpci_write16(struct tcpci *tcpci, unsigned int reg, u16 val) in tcpci_write16() argument
[all …]
H A Dtcpci.h133 struct tcpci;
136 int (*init)(struct tcpci *tcpci, struct tcpci_data *data);
137 int (*set_vconn)(struct tcpci *tcpci, struct tcpci_data *data,
139 int (*start_drp_toggling)(struct tcpci *tcpci, struct tcpci_data *data,
143 struct tcpci *tcpci_register_port(struct udevice *dev, struct tcpci_data *data);
144 void tcpci_unregister_port(struct tcpci *tcpci);
145 int tcpci_get_voltage_fun(struct tcpci *tcpci);
146 int tcpci_get_current_fun(struct tcpci *tcpci);
147 int tcpci_get_online_fun(struct tcpci *tcpci);
148 irqreturn_t tcpci_irq(struct tcpci *tcpci);
H A Dtcpci_husb311.c14 #include "tcpci.h"
28 struct tcpci *tcpci; member
93 static int husb311_init(struct tcpci *tcpci, struct tcpci_data *tdata) in husb311_init() argument
162 chip->tcpci = tcpci_register_port(chip->udev, &chip->data); in husb311_probe()
163 if (IS_ERR(chip->tcpci)) in husb311_probe()
164 return PTR_ERR(chip->tcpci); in husb311_probe()
180 tcpci_unregister_port(chip->tcpci); in husb311_remove()
189 return tcpci_get_voltage_fun(chip->tcpci); in husb311_get_voltage()
196 return tcpci_get_current_fun(chip->tcpci); in husb311_get_current()
203 return tcpci_get_online_fun(chip->tcpci); in husb311_get_online()
H A DMakefile6 obj-$(CONFIG_TYPEC_TCPCI) += tcpci.o
H A DKconfig20 Type-C Port Controller driver for TCPCI-compliant controller.
/OK3568_Linux_fs/kernel/include/trace/hooks/
H A Dtypec.h19 #include <../drivers/usb/typec/tcpm/tcpci.h>
21 struct tcpci;
35 TP_PROTO(struct tcpci *tcpci, struct tcpci_data *data, int *override_toggling),
36 TP_ARGS(tcpci, data, override_toggling));
39 TP_PROTO(struct tcpci *tcpci, struct tcpci_data *data, int *ret),
40 TP_ARGS(tcpci, data, ret), 1);
50 TP_PROTO(struct tcpci *tcpci, struct tcpci_data *data, int *vbus, int *bypass),
51 TP_ARGS(tcpci, data, vbus, bypass), 1);
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/usb/
H A Dtypec-tcpci.txt1 TCPCI(Typec port cotroller interface) binding
11 - interrupts: interrupt specification for tcpci alert.
14 - connector: The "usb-c-connector" attached to the tcpci chip, the bindings
H A Dmaxim,max33359.yaml7 title: Maxim TCPCI Type-C PD controller DT bindings
12 description: Maxim TCPCI Type-C PD controller
H A Drichtek,rt1711h.txt10 - connector: The "usb-c-connector" attached to the tcpci chip, the bindings
H A Dhynetek,husb311.yaml37 Properties for usb c connector that attached to the tcpci chip.
H A Detek,et7303.yaml36 Properties for usb c connector that attached to the tcpci chip.
/OK3568_Linux_fs/kernel/include/linux/usb/
H A Dtcpm.h69 * @apply_rc: Optional; Needed to move TCPCI based chipset to APPLY_RC state
70 * as stated by the TCPCI specification.
96 * Optional; TCPCI spec based TCPC implementations can optionally
108 * Optional; TCPCI spec based TCPC implementations are expected to
/OK3568_Linux_fs/u-boot/include/power/power_delivery/
H A Dtcpm.h69 * @apply_rc: Optional; Needed to move TCPCI based chipset to APPLY_RC state
70 * as stated by the TCPCI specification.
96 * Optional; TCPCI spec based TCPC implementations can optionally
108 * Optional; TCPCI spec based TCPC implementations are expected to
/OK3568_Linux_fs/kernel/scripts/
H A Dclang-wrapper.py41 …"tcpci.h:195", # drivers/usb/typec/tcpm/tcpci.h:195:12: warning: 'enum typec_cc_status' declared i…
/OK3568_Linux_fs/buildroot/output/OK3568/target/usr/lib/modules/5.10.160/
H A Dmodules.builtin
H A Dmodules.builtin.modinfo

12