| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/connector/ |
| H A D | usb-connector.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only 3 --- 4 $id: http://devicetree.org/schemas/connector/usb-connector.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Rob Herring <robh@kernel.org> 20 - enum: 21 - usb-a-connector 22 - usb-b-connector 23 - usb-c-connector 25 - items: [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/ABI/testing/ |
| H A D | sysfs-class-typec | 1 USB Type-C port devices (eg. /sys/class/typec/port0/) 8 requesting data role swapping on the port. Swapping is supported 11 notified about role changes so that poll(2) on the attribute 12 wakes up. Change on the role will also generate uevent 13 KOBJ_CHANGE on the port. The current role is show in brackets, 22 The supported power roles. This attribute can be used to request 23 power role swap on the port. Swapping is supported as 26 notified about role changes so that poll(2) on the attribute 27 wakes up. Change on the role will also generate uevent 28 KOBJ_CHANGE. The current role is show in brackets, for example [all …]
|
| /OK3568_Linux_fs/u-boot/include/power/power_delivery/ |
| H A D | typec.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 8 /* USB Type-C Specification releases */ 77 * struct enter_usb_data - Enter_USB Message details 81 * @active_link_training is a flag that should be set with uni-directional SBRX 82 * communication, and left 0 with passive cables and with bi-directional SBRX 91 * struct usb_pd_identity - USB Power Delivery identity data 97 * USB power delivery Discover Identity command response data. 99 * REVISIT: This is USB Power Delivery specific information, so this structure 100 * probable belongs to USB Power Delivery header file once we have them. 113 * struct typec_altmode_desc - USB Type-C Alternate Mode Descriptor [all …]
|
| /OK3568_Linux_fs/kernel/include/linux/usb/ |
| H A D | typec.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 9 /* USB Type-C Specification releases */ 78 * struct enter_usb_data - Enter_USB Message details 82 * @active_link_training is a flag that should be set with uni-directional SBRX 83 * communication, and left 0 with passive cables and with bi-directional SBRX 92 * struct usb_pd_identity - USB Power Delivery identity data 98 * USB power delivery Discover Identity command response data. 100 * REVISIT: This is USB Power Delivery specific information, so this structure 101 * probable belongs to USB Power Delivery header file once we have them. 114 * struct typec_altmode_desc - USB Type-C Alternate Mode Descriptor [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/usb/ |
| H A D | mediatek,mtu3.txt | 4 - compatible : should be "mediatek,<soc-model>-mtu3", "mediatek,mtu3", 5 soc-model is the name of SoC, such as mt8173, mt2712 etc, 8 - "mediatek,mt8173-mtu3" 9 - reg : specifies physical base address and size of the registers 10 - reg-names: should be "mac" for device IP and "ippc" for IP port control 11 - interrupts : interrupt used by the device IP 12 - power-domains : a phandle to USB power domain node to control USB's 14 - vusb33-supply : regulator of USB avdd3.3v 15 - clocks : a list of phandle + clock-specifier pairs, one for each 16 entry in clock-names [all …]
|
| H A D | mediatek,musb.txt | 2 ------------------------------------------- 5 - compatible : should be one of: 6 "mediatek,mt2701-musb" 8 followed by "mediatek,mtk-musb" 9 - reg : specifies physical base address and size of 11 - interrupts : interrupt used by musb controller 12 - interrupt-names : must be "mc" 13 - phys : PHY specifier for the OTG phy 14 - dr_mode : should be one of "host", "peripheral" or "otg", 16 - clocks : a list of phandle + clock-specifier pairs, one for [all …]
|
| H A D | mediatek,mt6360-tcpc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: "http://devicetree.org/schemas/usb/mediatek,mt6360-tcpc.yaml#" 5 $schema: "http://devicetree.org/meta-schemas/core.yaml#" 7 title: Mediatek MT6360 Type-C Port Switch and Power Delivery controller DT bindings 10 - ChiYuan Huang <cy_huang@richtek.com> 13 Mediatek MT6360 is a multi-functional device. It integrates charger, ADC, flash, RGB indicators, 14 regulators (BUCKs/LDOs), and TypeC Port Switch with Power Delivery controller. 15 This document only describes MT6360 Type-C Port Switch and Power Delivery controller. 20 - mediatek,mt6360-tcpc [all …]
|
| H A D | etek,et7303.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: "http://devicetree.org/meta-schemas/core.yaml#" 7 title: Etek ET7303 Type-C Port controller DT bindings 10 - Wang Jie <dave.wang@rock-chips.com> 27 description: TCPC connected to USB controller to support dual-role switch. 30 - port@0 34 $ref: ../connector/usb-connector.yaml# 39 - compatible 40 - reg [all …]
|
| H A D | hynetek,husb311.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: "http://devicetree.org/meta-schemas/core.yaml#" 7 title: Hynetek HUSB311 Type-C Port controller DT bindings 10 - Guenter Roeck <linux@roeck-us.net> 11 - Heikki Krogerus <heikki.krogerus@linux.intel.com> 28 description: TCPC connected to USB controller to support dual-role switch. 31 - port@0 35 $ref: ../connector/usb-connector.yaml# 40 - compatible [all …]
|
| H A D | richtek,rt1711h.txt | 4 - compatible : Must be "richtek,rt1711h". 5 - reg : Must be 0x4e, it's slave address of RT1711H. 6 - interrupts : <a b> where a is the interrupt number and b represents an 9 Required sub-node: 10 - connector: The "usb-c-connector" attached to the tcpci chip, the bindings 12 Documentation/devicetree/bindings/connector/usb-connector.yaml 18 interrupt-parent = <&gpio26>; 22 compatible = "usb-c-connector"; 23 label = "USB-C"; 24 data-role = "dual"; [all …]
|
| H A D | typec-tcpci.txt | 2 --------------------------------------------- 5 - compatible: should be set one of following: 6 - "nxp,ptn5110" for NXP USB PD TCPC PHY IC ptn5110. 8 - reg: the i2c slave address of typec port controller device. 9 - interrupt-parent: the phandle to the interrupt controller which provides 11 - interrupts: interrupt specification for tcpci alert. 13 Required sub-node: 14 - connector: The "usb-c-connector" attached to the tcpci chip, the bindings 16 Documentation/devicetree/bindings/connector/usb-connector.yaml 23 interrupt-parent = <&gpio3>; [all …]
|
| H A D | renesas,usb3-peri.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only 3 --- 4 $id: http://devicetree.org/schemas/usb/renesas,usb3-peri.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> 15 - enum: 16 - renesas,r8a774a1-usb3-peri # RZ/G2M 17 - renesas,r8a774b1-usb3-peri # RZ/G2N 18 - renesas,r8a774c0-usb3-peri # RZ/G2E 19 - renesas,r8a774e1-usb3-peri # RZ/G2H [all …]
|
| H A D | maxim,max33359.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: "http://devicetree.org/meta-schemas/core.yaml#" 7 title: Maxim TCPCI Type-C PD controller DT bindings 10 - Badhri Jagan Sridharan <badhri@google.com> 12 description: Maxim TCPCI Type-C PD controller 17 - maxim,max33359 27 $ref: ../connector/usb-connector.yaml# 32 - compatible 33 - reg [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/dsa/sja1105/ |
| H A D | sja1105_clocking.c | 1 // SPDX-License-Identifier: BSD-3-Clause 2 /* Copyright (c) 2016-2018, NXP Semiconductors 3 * Copyright (c) 2018-2019, Vladimir Oltean <olteanv@gmail.com> 99 sja1105_packing(buf, &idiv->clksrc, 28, 24, size, op); in sja1105_cgu_idiv_packing() 100 sja1105_packing(buf, &idiv->autoblock, 11, 11, size, op); in sja1105_cgu_idiv_packing() 101 sja1105_packing(buf, &idiv->idiv, 5, 2, size, op); in sja1105_cgu_idiv_packing() 102 sja1105_packing(buf, &idiv->pd, 0, 0, size, op); in sja1105_cgu_idiv_packing() 108 const struct sja1105_regs *regs = priv->info->regs; in sja1105_cgu_idiv_config() 109 struct device *dev = priv->ds->dev; in sja1105_cgu_idiv_config() 115 return -ERANGE; in sja1105_cgu_idiv_config() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/usb/typec/ |
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0 4 tristate "USB Type-C Support" 6 USB Type-C Specification defines a cable and connector for USB where 8 be Type-A plug on one end of the cable and Type-B plug on the other. 9 Determination of the host-to-device relationship happens through a 10 specific Configuration Channel (CC) which goes through the USB Type-C 12 Accessory Modes - Analog Audio and Debug - and if USB Power Delivery 16 USB Power Delivery Specification defines a protocol that can be used 18 partners. USB Power Delivery allows higher voltages then the normal 19 5V, up to 20V, and current up to 5A over the cable. The USB Power [all …]
|
| H A D | class.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * USB Type-C Connector Class 79 #define is_typec_partner(_dev_) (_dev_->type == &typec_partner_dev_type) 80 #define is_typec_cable(_dev_) (_dev_->type == &typec_cable_dev_type) 81 #define is_typec_plug(_dev_) (_dev_->type == &typec_plug_dev_type) 86 /* ------------------------------------------------------------------------- */ 123 return partner->identity; in get_pd_identity() 127 return cable->identity; in get_pd_identity() 134 struct typec_port *port = to_typec_port(dev->parent); in get_pd_product_type() 142 if (port->data_role == TYPEC_HOST) in get_pd_product_type() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/extcon/ |
| H A D | extcon-axp288.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * extcon-axp288.c - X-Power AXP288 PMIC extcon cable detection driver 5 * Copyright (c) 2017-2018 Hans de Goede <hdegoede@redhat.com> 19 #include <linux/extcon-provider.h> 22 #include <linux/usb/role.h> 26 #include <asm/intel-family.h> 28 /* Power source status register */ 114 /* Power up/down reason string array */ 116 "Last wake caused by user pressing the power button", 123 "Last shutdown caused by user pressing the power button", [all …]
|
| H A D | extcon-usbc-cros-ec.c | 1 // SPDX-License-Identifier: GPL-2.0 7 #include <linux/extcon-provider.h> 28 unsigned int dr; /* data role */ 29 bool pr; /* power role (true if VBUS enabled) */ 49 * cros_ec_pd_command() - Send a command to the EC. 73 return -ENOMEM; in cros_ec_pd_command() 75 msg->version = version; in cros_ec_pd_command() 76 msg->command = command; in cros_ec_pd_command() 77 msg->outsize = outsize; in cros_ec_pd_command() 78 msg->insize = insize; in cros_ec_pd_command() [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/usb/ |
| H A D | chipidea.rst | 2 ChipIdea Highspeed Dual Role Controller Driver 6 ----------------------------------- 12 ------------------------- 29 otg-rev = <0x0200>; 30 adp-disable; 33 ------------------- 35 1) Power up 2 Freescale i.MX6Q sabre SD boards with gadget class driver loaded 41 The A-device(with micro A plug inserted) should enumerate B-device. 43 3) Role switch 45 On B-device:: [all …]
|
| /OK3568_Linux_fs/kernel/drivers/usb/mtu3/ |
| H A D | mtu3_dr.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * mtu3_dr.c - dual role switch and host glue layer 10 #include <linux/usb/role.h> 44 mtu3_setbits(ssusb->mac_base, U3D_DEVICE_CONTROL, DC_SESSION); in toggle_opstate() 45 mtu3_setbits(ssusb->mac_base, U3D_POWER_MANAGEMENT, SOFT_CONN); in toggle_opstate() 48 /* only port0 supports dual-role mode */ 52 void __iomem *ibase = ssusb->ippc_base; in ssusb_port0_switch() 55 dev_dbg(ssusb->dev, "%s (switch u%d port0 to %s)\n", __func__, in ssusb_port0_switch() 59 /* 1. power off and disable u2 port0 */ in ssusb_port0_switch() 64 /* 2. power on, enable u2 port0 and select its mode */ in ssusb_port0_switch() [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/driver-api/usb/ |
| H A D | typec.rst | 3 USB Type-C connector class 7 ------------ 9 The typec class is meant for describing the USB Type-C ports in a system to the 14 The platforms are expected to register every USB Type-C port they have with the 15 class. In a normal case the registration will be done by a USB Type-C or PD PHY 18 considers the component registering the USB Type-C ports with the class as "port 26 attributes are described in Documentation/ABI/testing/sysfs-class-typec. 29 -------------------- 36 "port0-partner". Full path to the device would be 37 /sys/class/typec/port0/port0-partner/. [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/mfd/ |
| H A D | fusb302.txt | 4 - compatible: "fairchild,fusb302" 5 - reg: I2C slave address 6 - pinctrl-names: Musb be "default" 7 - pinctrl-0: fusb1_int musb be set to pull up. 8 - vbus-5v-gpios: enable/disable 5v vbus output 9 - vbus-other-gpios: enable/disable other high-voltage vbus output 10 - int-n-gpios: I2C int pin 11 - fusb302,role: typec port power role 13 - fusb302,try_role: enable try.role function, it would try your wanted 14 role when detect. [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/chrome/ |
| H A D | google,cros-ec-typec.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/chrome/google,cros-ec-typec.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Benson Leung <bleung@chromium.org> 11 - Prashant Malani <pmalani@chromium.org> 17 cros-ec node like google,cros-ec-spi. 21 const: google,cros-ec-typec 24 $ref: /schemas/connector/usb-connector.yaml# 27 - compatible [all …]
|
| /OK3568_Linux_fs/kernel/drivers/usb/cdns3/ |
| H A D | core.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 5 * Copyright (C) 2017-2018 NXP 6 * Copyright (C) 2018-2019 Cadence. 12 #include <linux/usb/role.h> 20 * struct cdns3_role_driver - host/gadget role driver 21 * @start: start this role 22 * @stop: stop this role 23 * @suspend: suspend callback for this role 24 * @resume: resume callback for this role 25 * @irq: irq handler for this role [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/misc/ |
| H A D | hisilicon-hikey-usb.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 4 --- 5 $id: "http://devicetree.org/schemas/misc/hisilicon-hikey-usb.yaml#" 6 $schema: "http://devicetree.org/meta-schemas/core.yaml#" 11 - John Stultz <john.stultz@linaro.org> 15 role-switch intermediary to detect the state of the USB-C 16 port, to switch the hub into dual-role USB-C or host mode, 17 which enables the onboard USB-A host ports. 20 …https://github.com/96boards/documentation/raw/master/consumer/hikey/hikey960/hardware-docs/HiKey96… 25 - const: hisilicon,gpio_hubv1 [all …]
|