-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Joakim Zhang says: ==================== net: phy: add dt property for realtek phy Add dt property for realtek phy. --- ChangeLogs: V1->V2: * store the desired PHYCR1/2 register value in "priv" rather than using "quirks", per Russell King suggestion, as well as can cover the bootloader setting. * change the behavior of ALDPS mode, default is disabled, add dt property for users to enable it. * fix dt binding yaml build issues. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
- Loading branch information
Showing
2 changed files
with
116 additions
and
4 deletions.
There are no files selected for viewing
45 changes: 45 additions & 0 deletions
45
Documentation/devicetree/bindings/net/realtek,rtl82xx.yaml
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,45 @@ | ||
# SPDX-License-Identifier: GPL-2.0+ | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/net/realtek,rtl82xx.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: Realtek RTL82xx PHY | ||
|
||
maintainers: | ||
- Andrew Lunn <andrew@lunn.ch> | ||
- Florian Fainelli <f.fainelli@gmail.com> | ||
- Heiner Kallweit <hkallweit1@gmail.com> | ||
|
||
description: | ||
Bindings for Realtek RTL82xx PHYs | ||
|
||
allOf: | ||
- $ref: ethernet-phy.yaml# | ||
|
||
properties: | ||
realtek,clkout-disable: | ||
type: boolean | ||
description: | ||
Disable CLKOUT clock, CLKOUT clock default is enabled after hardware reset. | ||
|
||
|
||
realtek,aldps-enable: | ||
type: boolean | ||
description: | ||
Enable ALDPS mode, ALDPS mode default is disabled after hardware reset. | ||
|
||
unevaluatedProperties: false | ||
|
||
examples: | ||
- | | ||
mdio { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
ethphy1: ethernet-phy@1 { | ||
reg = <1>; | ||
realtek,clkout-disable; | ||
realtek,aldps-enable; | ||
}; | ||
}; |
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