blob: 595ec4ff4cdd0190794af63c847821e284597b12 [file] [log] [blame]
Tom Rini53633a82024-02-29 12:33:36 -05001// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2/*
Tom Rini6bb92fc2024-05-20 09:54:58 -06003 * Device Tree Source for the White Hawk RAVB/Ethernet(1000Base-T1)
Tom Rini53633a82024-02-29 12:33:36 -05004 * sub-board
5 *
6 * Copyright (C) 2022 Glider bv
7 */
8
Tom Rini6b642ac2024-10-01 12:20:28 -06009/ {
10 aliases {
11 ethernet1 = &avb1;
12 ethernet2 = &avb2;
13 };
14};
15
16&avb1 {
17 pinctrl-0 = <&avb1_pins>;
18 pinctrl-names = "default";
19 phy-handle = <&avb1_phy>;
20 status = "okay";
21
22 mdio {
23 #address-cells = <1>;
24 #size-cells = <0>;
25
26 reset-gpios = <&gpio6 1 GPIO_ACTIVE_LOW>;
27 reset-post-delay-us = <4000>;
28
29 avb1_phy: ethernet-phy@0 {
30 compatible = "ethernet-phy-ieee802.3-c45";
31 reg = <0>;
32 interrupt-parent = <&gpio6>;
33 interrupts = <3 IRQ_TYPE_LEVEL_LOW>;
34 };
35 };
36};
37
38&avb2 {
39 pinctrl-0 = <&avb2_pins>;
40 pinctrl-names = "default";
41 phy-handle = <&avb2_phy>;
42 status = "okay";
43
44 mdio {
45 #address-cells = <1>;
46 #size-cells = <0>;
47
48 reset-gpios = <&gpio5 5 GPIO_ACTIVE_LOW>;
49 reset-post-delay-us = <4000>;
50
51 avb2_phy: ethernet-phy@0 {
52 compatible = "ethernet-phy-ieee802.3-c45";
53 reg = <0>;
54 interrupt-parent = <&gpio5>;
55 interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
56 };
57 };
58};
59
Tom Rini53633a82024-02-29 12:33:36 -050060&i2c0 {
61 eeprom@53 {
62 compatible = "rohm,br24g01", "atmel,24c01";
63 label = "ethernet-sub-board-id";
64 reg = <0x53>;
65 pagesize = <8>;
66 };
67};
Tom Rini6b642ac2024-10-01 12:20:28 -060068
69&pfc {
70 avb1_pins: avb1 {
71 mux {
72 groups = "avb1_link", "avb1_mdio", "avb1_rgmii",
73 "avb1_txcrefclk";
74 function = "avb1";
75 };
76
77 mdio {
78 groups = "avb1_mdio";
79 drive-strength = <24>;
80 bias-disable;
81 };
82
83 rgmii {
84 groups = "avb1_rgmii";
85 drive-strength = <24>;
86 bias-disable;
87 };
88
89 link {
90 groups = "avb1_link";
91 bias-disable;
92 };
93 };
94
95 avb2_pins: avb2 {
96 mux {
97 groups = "avb2_link", "avb2_mdio", "avb2_rgmii",
98 "avb2_txcrefclk";
99 function = "avb2";
100 };
101
102 mdio {
103 groups = "avb2_mdio";
104 drive-strength = <24>;
105 bias-disable;
106 };
107
108 rgmii {
109 groups = "avb2_rgmii";
110 drive-strength = <24>;
111 bias-disable;
112 };
113
114 link {
115 groups = "avb2_link";
116 bias-disable;
117 };
118 };
119};