xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/net/qcom,ethqos.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunQualcomm Ethernet ETHQOS device
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunThis documents dwmmac based ethernet device which supports Gigabit
4*4882a593Smuzhiyunethernet for version v2.3.0 onwards.
5*4882a593Smuzhiyun
6*4882a593SmuzhiyunThis device has following properties:
7*4882a593Smuzhiyun
8*4882a593SmuzhiyunRequired properties:
9*4882a593Smuzhiyun
10*4882a593Smuzhiyun- compatible: Should be qcom,qcs404-ethqos"
11*4882a593Smuzhiyun
12*4882a593Smuzhiyun- reg: Address and length of the register set for the device
13*4882a593Smuzhiyun
14*4882a593Smuzhiyun- reg-names: Should contain register names "stmmaceth", "rgmii"
15*4882a593Smuzhiyun
16*4882a593Smuzhiyun- clocks: Should contain phandle to clocks
17*4882a593Smuzhiyun
18*4882a593Smuzhiyun- clock-names: Should contain clock names "stmmaceth", "pclk",
19*4882a593Smuzhiyun		"ptp_ref", "rgmii"
20*4882a593Smuzhiyun
21*4882a593Smuzhiyun- interrupts: Should contain phandle to interrupts
22*4882a593Smuzhiyun
23*4882a593Smuzhiyun- interrupt-names: Should contain interrupt names "macirq", "eth_lpi"
24*4882a593Smuzhiyun
25*4882a593SmuzhiyunRest of the properties are defined in stmmac.txt file in same directory
26*4882a593Smuzhiyun
27*4882a593Smuzhiyun
28*4882a593SmuzhiyunExample:
29*4882a593Smuzhiyun
30*4882a593Smuzhiyunethernet: ethernet@7a80000 {
31*4882a593Smuzhiyun	compatible = "qcom,qcs404-ethqos";
32*4882a593Smuzhiyun	reg = <0x07a80000 0x10000>,
33*4882a593Smuzhiyun		<0x07a96000 0x100>;
34*4882a593Smuzhiyun	reg-names = "stmmaceth", "rgmii";
35*4882a593Smuzhiyun	clock-names = "stmmaceth", "pclk", "ptp_ref", "rgmii";
36*4882a593Smuzhiyun	clocks = <&gcc GCC_ETH_AXI_CLK>,
37*4882a593Smuzhiyun		<&gcc GCC_ETH_SLAVE_AHB_CLK>,
38*4882a593Smuzhiyun		<&gcc GCC_ETH_PTP_CLK>,
39*4882a593Smuzhiyun		<&gcc GCC_ETH_RGMII_CLK>;
40*4882a593Smuzhiyun	interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>,
41*4882a593Smuzhiyun			<GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
42*4882a593Smuzhiyun	interrupt-names = "macirq", "eth_lpi";
43*4882a593Smuzhiyun	snps,reset-gpio = <&tlmm 60 GPIO_ACTIVE_LOW>;
44*4882a593Smuzhiyun	snps,reset-active-low;
45*4882a593Smuzhiyun
46*4882a593Smuzhiyun	snps,txpbl = <8>;
47*4882a593Smuzhiyun	snps,rxpbl = <2>;
48*4882a593Smuzhiyun	snps,aal;
49*4882a593Smuzhiyun	snps,tso;
50*4882a593Smuzhiyun
51*4882a593Smuzhiyun	phy-handle = <&phy1>;
52*4882a593Smuzhiyun	phy-mode = "rgmii";
53*4882a593Smuzhiyun
54*4882a593Smuzhiyun	mdio {
55*4882a593Smuzhiyun		#address-cells = <0x1>;
56*4882a593Smuzhiyun		#size-cells = <0x0>;
57*4882a593Smuzhiyun		compatible = "snps,dwmac-mdio";
58*4882a593Smuzhiyun		phy1: phy@4 {
59*4882a593Smuzhiyun			device_type = "ethernet-phy";
60*4882a593Smuzhiyun			reg = <0x4>;
61*4882a593Smuzhiyun		};
62*4882a593Smuzhiyun	};
63*4882a593Smuzhiyun
64*4882a593Smuzhiyun};
65