Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/net/toshiba,visconti-dwmac.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Toshiba Visconti DWMAC Ethernet controller
8
9maintainers:
10 - Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp>
11
12select:
13 properties:
14 compatible:
15 contains:
16 enum:
17 - toshiba,visconti-dwmac
18 required:
19 - compatible
20
21allOf:
22 - $ref: snps,dwmac.yaml#
23
24properties:
25 compatible:
26 oneOf:
27 - items:
28 - enum:
29 - toshiba,visconti-dwmac
30 - const: snps,dwmac-4.20a
31
32 reg:
33 maxItems: 1
34
35 clocks:
36 items:
37 - description: main clock
38 - description: PHY reference clock
39
40 clock-names:
41 items:
42 - const: stmmaceth
43 - const: phy_ref_clk
44
45 interrupts:
46 maxItems: 1
47
48 interrupt-names:
49 const: macirq
50
51required:
52 - compatible
53 - reg
54 - clocks
55 - clock-names
56
57unevaluatedProperties: false
58
59examples:
60 - |
61 #include <dt-bindings/clock/toshiba,tmpv770x.h>
62 #include <dt-bindings/interrupt-controller/arm-gic.h>
63
64 soc {
65 #address-cells = <2>;
66 #size-cells = <2>;
67
68 piether: ethernet@28000000 {
69 compatible = "toshiba,visconti-dwmac", "snps,dwmac-4.20a";
70 reg = <0 0x28000000 0 0x10000>;
71 interrupts = <GIC_SPI 156 IRQ_TYPE_LEVEL_HIGH>;
72 interrupt-names = "macirq";
73 clocks = <&pismu TMPV770X_CLK_PIETHER_BUS>, <&pismu TMPV770X_CLK_PIETHER_125M>;
74 clock-names = "stmmaceth", "phy_ref_clk";
75 snps,txpbl = <4>;
76 snps,rxpbl = <4>;
77 snps,tso;
78 phy-mode = "rgmii-id";
79 phy-handle = <&phy0>;
80
81 mdio {
82 #address-cells = <0x1>;
83 #size-cells = <0x0>;
84 compatible = "snps,dwmac-mdio";
85
86 phy0: ethernet-phy@1 {
87 device_type = "ethernet-phy";
88 reg = <0x1>;
89 };
90 };
91 };
92 };