mirror of
https://github.com/torvalds/linux.git
synced 2024-12-23 19:31:53 +00:00
8700eee627
This patch adds the following property for arc_emac. 1) phy-reset-gpios: The phy-reset-gpio is an optional property for arc emac device tree boot. Change the binding document to match the driver code. 2) phy-reset-duration: Different boards may require different phy reset duration. Add property phy-reset-duration for device tree probe, so that the boards that need a longer reset duration can specify it in their device tree. Anyway, we can add the above property for arc emac. Signed-off-by: Caesar Wang <wxt@rock-chips.com> Cc: Rob Herring <robh+dt@kernel.org> Cc: devicetree@vger.kernel.org Cc: netdev@vger.kernel.org Cc: "David S. Miller" <davem@davemloft.net> Cc: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Cc; Alexander Kochetkov <al.kochet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
47 lines
1.4 KiB
Plaintext
47 lines
1.4 KiB
Plaintext
* Synopsys ARC EMAC 10/100 Ethernet driver (EMAC)
|
|
|
|
Required properties:
|
|
- compatible: Should be "snps,arc-emac"
|
|
- reg: Address and length of the register set for the device
|
|
- interrupts: Should contain the EMAC interrupts
|
|
- max-speed: see ethernet.txt file in the same directory.
|
|
- phy: see ethernet.txt file in the same directory.
|
|
|
|
Optional properties:
|
|
- phy-reset-gpios : Should specify the gpio for phy reset
|
|
- phy-reset-duration : Reset duration in milliseconds. Should present
|
|
only if property "phy-reset-gpios" is available. Missing the property
|
|
will have the duration be 1 millisecond. Numbers greater than 1000 are
|
|
invalid and 1 millisecond will be used instead.
|
|
|
|
Clock handling:
|
|
The clock frequency is needed to calculate and set polling period of EMAC.
|
|
It must be provided by one of:
|
|
- clock-frequency: CPU frequency.
|
|
- clocks: reference to the clock supplying the EMAC.
|
|
|
|
Child nodes of the driver are the individual PHY devices connected to the
|
|
MDIO bus. They must have a "reg" property given the PHY address on the MDIO bus.
|
|
|
|
Examples:
|
|
|
|
ethernet@c0fc2000 {
|
|
compatible = "snps,arc-emac";
|
|
reg = <0xc0fc2000 0x3c>;
|
|
interrupts = <6>;
|
|
mac-address = [ 00 11 22 33 44 55 ];
|
|
|
|
clock-frequency = <80000000>;
|
|
/* or */
|
|
clocks = <&emac_clock>;
|
|
|
|
max-speed = <100>;
|
|
phy = <&phy0>;
|
|
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
phy0: ethernet-phy@0 {
|
|
reg = <1>;
|
|
};
|
|
};
|