forked from u-boot/u-boot
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This driver is used to stub PHY operations in a driver (USB, SATA). This is useful when the 'client' driver (USB, SATA, ...) uses the PHY framework and there is no actual PHY harwdare to drive. Signed-off-by: Jean-Jacques Hiblot <[email protected]>
- Loading branch information
Jean-Jacques Hiblot
authored and
Marek Vasut
committed
Jul 28, 2017
1 parent
2080d02
commit 3b63db3
Showing
4 changed files
with
61 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
NOP PHY driver | ||
|
||
This driver is used to stub PHY operations in a driver (USB, SATA). | ||
This is useful when the 'client' driver (USB, SATA, ...) uses the PHY framework | ||
and there is no actual PHY harwdare to drive. | ||
|
||
Required properties: | ||
- compatible : must contain "nop-phy" | ||
- #phy-cells : must contain <0> | ||
|
||
Example: | ||
|
||
nop_phy { | ||
compatible = "nop-phy"; | ||
#phy-cells = <0>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
* Copyright (C) 2017 Texas Instruments Incorporated - http://www.ti.com/ | ||
* Written by Jean-Jacques Hiblot <[email protected]> | ||
* | ||
* SPDX-License-Identifier: GPL-2.0+ | ||
*/ | ||
|
||
#include <common.h> | ||
#include <dm.h> | ||
#include <dm/device.h> | ||
#include <generic-phy.h> | ||
|
||
static const struct udevice_id nop_phy_ids[] = { | ||
{ .compatible = "nop-phy" }, | ||
{ } | ||
}; | ||
|
||
static struct phy_ops nop_phy_ops = { | ||
}; | ||
|
||
U_BOOT_DRIVER(nop_phy) = { | ||
.name = "nop_phy", | ||
.id = UCLASS_PHY, | ||
.of_match = nop_phy_ids, | ||
.ops = &nop_phy_ops, | ||
}; |