| /OK3568_Linux_fs/kernel/include/linux/phy/ |
| H A D | phy.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * phy.h -- generic phy header file 5 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com 15 #include <linux/device.h> 19 #include <linux/phy/phy-dp.h> 20 #include <linux/phy/phy-mipi-dphy.h> 22 struct phy; 48 * union phy_configure_opts - Opaque generic phy configuration 51 * the MIPI_DPHY phy mode. 61 * struct phy_ops - set of function pointers for performing phy operations [all …]
|
| /OK3568_Linux_fs/kernel/drivers/phy/ |
| H A D | phy-core.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * phy-core.c -- Generic Phy framework. 5 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com 14 #include <linux/device.h> 17 #include <linux/phy/phy.h> 28 static void devm_phy_release(struct device *dev, void *res) in devm_phy_release() 30 struct phy *phy = *(struct phy **)res; in devm_phy_release() local 32 phy_put(dev, phy); in devm_phy_release() 35 static void devm_phy_provider_release(struct device *dev, void *res) in devm_phy_provider_release() 42 static void devm_phy_consume(struct device *dev, void *res) in devm_phy_consume() [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/driver-api/phy/ |
| H A D | phy.rst | 2 PHY subsystem 7 This document explains the Generic PHY Framework along with the APIs provided, 8 and how-to-use. 13 *PHY* is the abbreviation for physical layer. It is used to connect a device 14 to the physical medium e.g., the USB controller has a PHY to provide functions 15 such as serialization, de-serialization, encoding, decoding and is responsible 17 controllers have PHY functionality embedded into it and others use an external 18 PHY. Other peripherals that use PHY include Wireless LAN, Ethernet, 21 The intention of creating this framework is to bring the PHY drivers spread 22 all over the Linux kernel to drivers/phy to increase code re-use and for [all …]
|
| /OK3568_Linux_fs/u-boot/include/ |
| H A D | generic-phy.h | 2 * Copyright (C) 2017 Texas Instruments Incorporated - http://www.ti.com/ 3 * Written by Jean-Jacques Hiblot <jjhiblot@ti.com> 5 * SPDX-License-Identifier: GPL-2.0+ 11 #include <generic-phy-dp.h> 12 #include <generic-phy-mipi-dphy.h> 13 #include <generic-phy-pcie.h> 21 * union phy_configure_opts - Opaque generic phy configuration 24 * the MIPI_DPHY phy mode. 35 * struct phy_attrs - represents phy attributes 36 * @bus_width: Data path width implemented by PHY [all …]
|
| H A D | phy.h | 5 * SPDX-License-Identifier: GPL-2.0+ 7 * This file pretty much stolen from Linux's mii.h/ethtool.h/phy.h 70 /* struct phy_driver: a structure which defines PHY behavior 72 * uid will contain a number which represents the PHY. During 73 * startup, the driver will poll the PHY to find out what its 74 * UID--as defined by registers 2 and 3--is. The 32-bit result 75 * gotten from the PHY will be masked to 92 /* Called to configure the PHY, and modify the controller 106 /* Phy specific driver override for reading a MMD register */ 109 /* Phy specific driver override for writing a MMD register */ [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/mdio/ |
| H A D | of_mdio.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * OF helpers for the MDIO (Ethernet PHY) API 7 * This file provides helper functions for extracting PHY device information 8 * out of the OpenFirmware device tree and using it to populate an mii_bus. 11 #include <linux/device.h> 20 #include <linux/phy.h> 28 /* Extract the clause 22 phy ID from the compatible string of the form 29 * ethernet-phy-idAAAA.BBBB */ 30 static int of_get_phy_id(struct device_node *device, u32 *phy_id) in of_get_phy_id() argument 36 of_property_for_each_string(device, "compatible", prop, cp) { in of_get_phy_id() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/scsi/ |
| H A D | scsi_transport_sas.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2005-2006 Dell Inc. 13 * introduces two additional intermediate objects: The SAS PHY 14 * as represented by struct sas_phy defines an "outgoing" PHY on 15 * a SAS HBA or Expander, and the SAS remote PHY represented by 16 * struct sas_rphy defines an "incoming" PHY on a SAS Expander or 17 * end device. Note that this is purely a software concept, the 18 * underlying hardware for a PHY and a remote PHY is the exactly 52 #define to_sas_host_attrs(host) ((struct sas_host_attrs *)(host)->shost_data) 101 return -EINVAL; \ [all …]
|
| /OK3568_Linux_fs/kernel/drivers/usb/phy/ |
| H A D | phy.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * phy.c -- USB phy handling 5 * Copyright (C) 2004-2013 Texas Instruments 10 #include <linux/device.h> 15 #include <linux/usb/phy.h> 33 struct usb_phy *phy; member 48 struct usb_phy *phy = NULL; in __usb_find_phy() local 50 list_for_each_entry(phy, list, head) { in __usb_find_phy() 51 if (phy->type != type) in __usb_find_phy() 54 return phy; in __usb_find_phy() [all …]
|
| H A D | phy-tahvo.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2005-2006 Nokia Corporation 18 #include <linux/extcon-provider.h> 26 #define DRIVER_NAME "tahvo-usb" 46 struct usb_phy phy; member 62 static ssize_t vbus_show(struct device *device, in vbus_show() argument 65 struct tahvo_usb *tu = dev_get_drvdata(device); in vbus_show() 66 return sprintf(buf, "%s\n", tu->vbus_state ? "on" : "off"); in vbus_show() 72 struct retu_dev *rdev = dev_get_drvdata(tu->pt_dev->dev.parent); in check_vbus_state() 77 switch (tu->phy.otg->state) { in check_vbus_state() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/scsi/smartpqi/ |
| H A D | smartpqi_sas_transport.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * driver for Microsemi PQI-based storage controllers 4 * Copyright (c) 2019-2020 Microchip Technology Inc. and its subsidiaries 5 * Copyright (c) 2016-2018 Microsemi Corporation 6 * Copyright (c) 2016 PMC-Sierra, Inc. 13 #include <linux/bsg-lib.h> 23 struct sas_phy *phy; in pqi_alloc_sas_phy() local 29 phy = sas_phy_alloc(pqi_sas_port->parent_node->parent_dev, in pqi_alloc_sas_phy() 30 pqi_sas_port->next_phy_index); in pqi_alloc_sas_phy() 31 if (!phy) { in pqi_alloc_sas_phy() [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/phy/ |
| H A D | rcar-gen2-phy.txt | 1 * Renesas R-Car generation 2 USB PHY 3 This file provides information on what the device node for the R-Car generation 4 2 USB PHY contains. 7 - compatible: "renesas,usb-phy-r8a7742" if the device is a part of R8A7742 SoC. 8 "renesas,usb-phy-r8a7743" if the device is a part of R8A7743 SoC. 9 "renesas,usb-phy-r8a7744" if the device is a part of R8A7744 SoC. 10 "renesas,usb-phy-r8a7745" if the device is a part of R8A7745 SoC. 11 "renesas,usb-phy-r8a77470" if the device is a part of R8A77470 SoC. 12 "renesas,usb-phy-r8a7790" if the device is a part of R8A7790 SoC. 13 "renesas,usb-phy-r8a7791" if the device is a part of R8A7791 SoC. [all …]
|
| H A D | phy-hisi-inno-usb2.txt | 1 Device tree bindings for HiSilicon INNO USB2 PHY 4 - compatible: Should be one of the following strings: 5 "hisilicon,inno-usb2-phy", 6 "hisilicon,hi3798cv200-usb2-phy". 7 - reg: Should be the address space for PHY configuration register in peripheral 9 - clocks: The phandle and clock specifier pair for INNO USB2 PHY device 11 - resets: The phandle and reset specifier pair for INNO USB2 PHY device reset 13 - #address-cells: Must be 1. 14 - #size-cells: Must be 0. 16 The INNO USB2 PHY device should be a child node of peripheral controller that [all …]
|
| /OK3568_Linux_fs/kernel/drivers/staging/greybus/ |
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0 8 Select this option if you have a device that follows the 12 will be called gb-audio.ko 18 Select this option if you have a Toshiba APB device that has I2S 19 ports and acts as a Greybus "Dummy codec". This device is a 20 bridge from an APB-I2S port to a Unipro network. 23 will be called gb-audio-codec.ko 29 Select this option if you have a device that follows the 33 will be called gb-bootrom.ko 39 Select this option if you have a device that follows the [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/networking/ |
| H A D | phy.rst | 2 PHY Abstraction Layer 10 PHY. The PHY concerns itself with negotiating link parameters with the link 17 the PHY management code with the network driver. This has resulted in large 23 accessed are, in fact, busses, the PHY Abstraction Layer treats them as such. 26 #. Increase code-reuse 27 #. Increase overall code-maintainability 30 Basically, this layer is meant to provide an interface to PHY devices which 37 Most network devices are connected to a PHY by means of a management bus. 40 registered as a distinct device. 47 mii_id is the address on the bus for the PHY, and regnum is the register [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/display/msm/ |
| H A D | dsi.txt | 5 - compatible: 6 * "qcom,mdss-dsi-ctrl" 7 - reg: Physical base address and length of the registers of controller 8 - reg-names: The names of register regions. The following regions are required: 10 - interrupts: The interrupt signal from the DSI block. 11 - power-domains: Should be <&mmcc MDSS_GDSC>. 12 - clocks: Phandles to device clocks. 13 - clock-names: the following clocks are required: 25 - assigned-clocks: Parents of "byte" and "pixel" for the given platform. 26 - assigned-clock-parents: The Byte clock and Pixel clock PLL outputs provided [all …]
|
| /OK3568_Linux_fs/kernel/drivers/dma/ |
| H A D | mmp_pdma.c | 1 // SPDX-License-Identifier: GPL-2.0-only 11 #include <linux/dma-mapping.h> 15 #include <linux/device.h> 21 #include <linux/dma/mmp-pdma.h> 34 #define DCSR_NODESC BIT(30) /* No-Descriptor Fetch (read / write) */ 36 #define DCSR_REQPEND BIT(8) /* Request Pending (read-only) */ 37 #define DCSR_STOPSTATE BIT(3) /* Stop State (read-only) */ 63 #define DCMD_ENDIAN BIT(18) /* Device Endian-ness. */ 70 #define DCMD_LENGTH 0x01fff /* length mask (max = 8K - 1) */ 91 struct device *dev; [all …]
|
| H A D | pxa_dma.c | 1 // SPDX-License-Identifier: GPL-2.0-only 11 #include <linux/dma-mapping.h> 15 #include <linux/device.h> 22 #include <linux/dma/pxa-dma.h> 25 #include "virt-dma.h" 36 #define PXA_DCSR_NODESC BIT(30) /* No-Descriptor Fetch (read / write) */ 38 #define PXA_DCSR_REQPEND BIT(8) /* Request Pending (read-only) */ 39 #define PXA_DCSR_STOPSTATE BIT(3) /* Stop State (read-only) */ 64 #define PXA_DCMD_ENDIAN BIT(18) /* Device Endian-ness. */ 71 #define PXA_DCMD_LENGTH 0x01fff /* length mask (max = 8K - 1) */ [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/phy/ |
| H A D | phy_device.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Also contains generic PHY driver 26 #include <linux/phy.h> 36 MODULE_DESCRIPTION("PHY library"); 203 put_device(&phydev->mdio.dev); in phy_device_free() 215 static void phy_device_release(struct device *dev) in phy_device_release() 235 struct device_driver *drv = phydev->mdio.dev.driver; in mdio_bus_phy_may_suspend() 237 struct net_device *netdev = phydev->attached_dev; in mdio_bus_phy_may_suspend() 239 if (!drv || !phydrv->suspend) in mdio_bus_phy_may_suspend() 242 /* PHY not attached? May suspend if the PHY has not already been in mdio_bus_phy_may_suspend() [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/networking/dsa/ |
| H A D | dsa.rst | 19 they configured/queried a switch port network device or a regular network 20 device. 22 An Ethernet switch is typically comprised of multiple front-panel ports, and one 27 gateways, or even top-of-the rack switches. This host Ethernet controller will 36 For each front-panel port, DSA will create specialized network devices which are 37 used as controlling and data-flowing endpoints for use by the Linux networking 46 - what port is this frame coming from 47 - what was the reason why this frame got forwarded 48 - how to send CPU originated traffic to specific ports 52 on Port-based VLAN IDs). [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/net/ |
| H A D | ibm,emac.txt | 8 correct clock-frequency property. 13 - device_type : "network" 15 - compatible : compatible list, contains 2 entries, first is 16 "ibm,emac-CHIP" where CHIP is the host ASIC (440gx, 18 "ibm,emac4". For Axon, thus, we have: "ibm,emac-axon", 20 - interrupts : <interrupt mapping for EMAC IRQ and WOL IRQ> 21 - reg : <registers mapping> 22 - local-mac-address : 6 bytes, MAC address 23 - mal-device : phandle of the associated McMAL node 24 - mal-tx-channel : 1 cell, index of the tx channel on McMAL associated [all …]
|
| H A D | fsl-enetc.txt | 1 * ENETC ethernet device tree bindings 5 below device tree bindings. 9 - reg : Specifies PCIe Device Number and Function 10 Number of the ENETC endpoint device, according 12 - compatible : Should be "fsl,enetc". 14 1. The ENETC external port is connected to a MDIO configurable phy 18 In this case, the ENETC node should include a "mdio" sub-node 19 that in turn should contain the "ethernet-phy" node describing the 20 external phy. Below properties are required, their bindings 22 Documentation/devicetree/bindings/net/phy.txt. [all …]
|
| H A D | cpsw.txt | 1 TI SoC Ethernet Switch Controller Device Tree Bindings 2 ------------------------------------------------------ 5 - compatible : Should be one of the below:- 7 "ti,am335x-cpsw" for AM335x controllers 8 "ti,am4372-cpsw" for AM437x controllers 9 "ti,dra7-cpsw" for DRA7x controllers 10 - reg : physical base address and size of the cpsw 12 - interrupts : property with a value describing the interrupt 14 - cpdma_channels : Specifies number of channels in CPDMA 15 - ale_entries : Specifies No of entries ALE can hold [all …]
|
| /OK3568_Linux_fs/kernel/drivers/scsi/hisi_sas/ |
| H A D | hisi_sas_main.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 11 ((!dev) || (dev->dev_type == SAS_PHY_UNUSED)) 13 static int hisi_sas_debug_issue_ssp_tmf(struct domain_device *device, 17 struct domain_device *device, 19 static int hisi_sas_softreset_ata_disk(struct domain_device *device); 23 struct domain_device *device); 24 static void hisi_sas_dev_gone(struct domain_device *device); 28 switch (fis->command) { in hisi_sas_get_ata_protocol() 81 switch (fis->features) { in hisi_sas_get_ata_protocol() 107 struct task_status_struct *ts = &task->task_status; in hisi_sas_sata_done() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/usb/core/ |
| H A D | phy.c | 1 // SPDX-License-Identifier: GPL-2.0+ 4 * multiple (actual) PHY devices. This is comes handy when initializing 10 #include <linux/device.h> 12 #include <linux/phy/phy.h> 15 #include "phy.h" 18 struct phy *phy; member 22 static int usb_phy_roothub_add_phy(struct device *dev, int index, in usb_phy_roothub_add_phy() 26 struct phy *phy; in usb_phy_roothub_add_phy() local 28 phy = devm_of_phy_get_by_index(dev, dev->of_node, index); in usb_phy_roothub_add_phy() 29 if (IS_ERR(phy)) { in usb_phy_roothub_add_phy() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/phy/broadcom/ |
| H A D | phy-bcm-cygnus-pcie.c | 18 #include <linux/phy/phy.h> 34 * struct cygnus_pcie_phy - Cygnus PCIe PHY device 35 * @core: pointer to the Cygnus PCIe PHY core control 36 * @id: internal ID to identify the Cygnus PCIe PHY 37 * @phy: pointer to the kernel PHY device 42 struct phy *phy; member 46 * struct cygnus_pcie_phy_core - Cygnus PCIe PHY core control 47 * @dev: pointer to device 50 * @phys: pointer to Cygnus PHY device 53 struct device *dev; [all …]
|