Skip to content

Commit f78f410

Browse files
Jassi Brardavem330
authored andcommitted
dt-bindings: net: Add DT bindings for Socionext Netsec
This patch adds documentation for Device-Tree bindings for the Socionext NetSec Controller driver. Reviewed-by: Rob Herring <[email protected]> Signed-off-by: Jassi Brar <[email protected]> Signed-off-by: Ard Biesheuvel <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent c215dae commit f78f410

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
* Socionext NetSec Ethernet Controller IP
2+
3+
Required properties:
4+
- compatible: Should be "socionext,synquacer-netsec"
5+
- reg: Address and length of the control register area, followed by the
6+
address and length of the EEPROM holding the MAC address and
7+
microengine firmware
8+
- interrupts: Should contain ethernet controller interrupt
9+
- clocks: phandle to the PHY reference clock
10+
- clock-names: Should be "phy_ref_clk"
11+
- phy-mode: See ethernet.txt file in the same directory
12+
- phy-handle: See ethernet.txt in the same directory.
13+
14+
- mdio device tree subnode: When the Netsec has a phy connected to its local
15+
mdio, there must be device tree subnode with the following
16+
required properties:
17+
18+
- #address-cells: Must be <1>.
19+
- #size-cells: Must be <0>.
20+
21+
For each phy on the mdio bus, there must be a node with the following
22+
fields:
23+
- compatible: Refer to phy.txt
24+
- reg: phy id used to communicate to phy.
25+
26+
Optional properties: (See ethernet.txt file in the same directory)
27+
- dma-coherent: Boolean property, must only be present if memory
28+
accesses performed by the device are cache coherent.
29+
- local-mac-address: See ethernet.txt in the same directory.
30+
- mac-address: See ethernet.txt in the same directory.
31+
- max-speed: See ethernet.txt in the same directory.
32+
- max-frame-size: See ethernet.txt in the same directory.
33+
34+
Example:
35+
eth0: ethernet@522d0000 {
36+
compatible = "socionext,synquacer-netsec";
37+
reg = <0 0x522d0000 0x0 0x10000>, <0 0x10000000 0x0 0x10000>;
38+
interrupts = <GIC_SPI 176 IRQ_TYPE_LEVEL_HIGH>;
39+
clocks = <&clk_netsec>;
40+
clock-names = "phy_ref_clk";
41+
phy-mode = "rgmii";
42+
max-speed = <1000>;
43+
max-frame-size = <9000>;
44+
phy-handle = <&phy1>;
45+
46+
mdio {
47+
#address-cells = <1>;
48+
#size-cells = <0>;
49+
phy1: ethernet-phy@1 {
50+
compatible = "ethernet-phy-ieee802.3-c22";
51+
reg = <1>;
52+
};
53+
};

0 commit comments

Comments
 (0)