| #
950a6087
|
| 26-Dec-2023 |
Emmanuel Vadot <manu@FreeBSD.org> |
phy: Move phy code in dev/phy
We've removed kernel option EXT_RESOURCES almost two years ago. While it was ok to have some code under a common 'extres' subdirectory at first, we now have a lot of co
phy: Move phy code in dev/phy
We've removed kernel option EXT_RESOURCES almost two years ago. While it was ok to have some code under a common 'extres' subdirectory at first, we now have a lot of consumer of it and we made it mandatory so no need to have it under a cryptic name.
Reviewed by: emaste, imp Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D43195
show more ...
|
| #
e4ef4c5d
|
| 03-Feb-2021 |
Michal Meloun <mmel@FreeBSD.org> |
extres/phy: Add mode setting function.
Modern multi-protocol phys are capable of supporting multiple different protocols. Add a method for mode (and/or its variants) setting.
Discused with: ganbold
extres/phy: Add mode setting function.
Modern multi-protocol phys are capable of supporting multiple different protocols. Add a method for mode (and/or its variants) setting.
Discused with: ganbold, manu, andrew MFC after: 3 weeks
show more ...
|
| #
5cfacab1
|
| 19-Dec-2022 |
Ganbold Tsagaankhuu <ganbold@FreeBSD.org> |
Revert "Enable setting the phy id."
This reverts commit 6692670f58f9069e59bc0c958fdaefb9bea5f726.
|
| #
6692670f
|
| 19-Dec-2022 |
Søren Schmidt <sos@FreeBSD.org> |
Enable setting the phy id.
It is needed for the RK356X combo phy.
|
| #
78e60ba0
|
| 28-Oct-2022 |
Andrew Turner <andrew@FreeBSD.org> |
Only include phydev_if.h when needed
We only need to include phydev_if.h in phy.c when FDT is enabled and don't need it at all in phy_usb.c.
Sponsored by: Innovate UK
|
| #
2dd13cf6
|
| 19-Mar-2019 |
Michal Meloun <mmel@FreeBSD.org> |
extres: Unify error codes for <foo>_get_by_ofw_property() methods. Return: - ENOENT if requested property doesn't exist - ENODEV if producer device is not (yet) attached - ENXIO otherwise
MFC aft
extres: Unify error codes for <foo>_get_by_ofw_property() methods. Return: - ENOENT if requested property doesn't exist - ENODEV if producer device is not (yet) attached - ENXIO otherwise
MFC after: 2 weeks
show more ...
|
| #
1289ca62
|
| 27-Jan-2019 |
Michal Meloun <mmel@FreeBSD.org> |
Properly define and declare phynode_topo_lock, it should be single global variable.
X-MFC with: r340845 Noticed by: phynode_topo_lock
|
| #
f9f020a4
|
| 23-Nov-2018 |
Emmanuel Vadot <manu@FreeBSD.org> |
Derive PHY class to new one specialized for USB PHY functions.
Submitted by: mmel
|
| #
f7604b1b
|
| 09-Apr-2018 |
Oleksandr Tymoshenko <gonzo@FreeBSD.org> |
Align OF_getencprop_alloc API with OF_getencprop and OF_getprop_alloc
Change OF_getencprop_alloc semantics to be combination of malloc and OF_getencprop and return size of the property, not number o
Align OF_getencprop_alloc API with OF_getencprop and OF_getprop_alloc
Change OF_getencprop_alloc semantics to be combination of malloc and OF_getencprop and return size of the property, not number of elements allocated.
For the use cases where number of elements is preferred introduce OF_getencprop_alloc_multi helper function that copies semantics of OF_getencprop_alloc prior to this change.
This is to make OF_getencprop_alloc and OF_getencprop_alloc_multi function signatures consistent with OF_getencprop_alloc and OF_getencprop_alloc_multi.
Functionality-wise this patch is mostly rename of OF_getencprop_alloc to OF_getencprop_alloc_multi except two calls in ofw_bus_setup_iinfo where 1 was used as a block size.
show more ...
|
| #
f8759fac
|
| 20-Jan-2018 |
Michal Meloun <mmel@FreeBSD.org> |
Convert extres/phy to kobj model. Similarly as other extres pseudo-drivers, implement phy by using kobj model. This detaches it from provider device, so single device driver can export multiple diffe
Convert extres/phy to kobj model. Similarly as other extres pseudo-drivers, implement phy by using kobj model. This detaches it from provider device, so single device driver can export multiple different phys. Additionally, this allows phy to be subclassed to more specialized drivers, like is USB OTG phy, or PCIe phy with hot-plug capability.
Tested by: manu (previous version, on Allwinner board) MFC after: 1 month
show more ...
|
| #
dac93553
|
| 10-Jul-2016 |
Michal Meloun <mmel@FreeBSD.org> |
EXTRES: Add OF node as argument to all <foo>_get_by_ofw_<bar>() functions. In some cases, the driver must handle given properties located in specific OF subnode. Instead of creating duplicate set of
EXTRES: Add OF node as argument to all <foo>_get_by_ofw_<bar>() functions. In some cases, the driver must handle given properties located in specific OF subnode. Instead of creating duplicate set of function, add 'node' as argument to existing functions, defaulting it to device OF node.
MFC after: 3 weeks
show more ...
|
| #
f4eefe43
|
| 14-May-2016 |
Oleksandr Tymoshenko <gonzo@FreeBSD.org> |
Use OF_prop_free instead of direct call to free(9)
Reviewed by: mmel@
|
| #
4e3d35d7
|
| 15-Mar-2016 |
Michal Meloun <mmel@FreeBSD.org> |
Add phy framework, a next part of new 'extended resources' family of support frameworks (i.e. clk/regulators/tsensors/fuses...).
It provides simple unified consumers interface for manipulations with
Add phy framework, a next part of new 'extended resources' family of support frameworks (i.e. clk/regulators/tsensors/fuses...).
It provides simple unified consumers interface for manipulations with phy (USB/SATA/PCIe) resources.
show more ...
|