File tree Expand file tree Collapse file tree 1 file changed +52
-0
lines changed
boards/microchip/sam/sama7g54_ek Expand file tree Collapse file tree 1 file changed +52
-0
lines changed Original file line number Diff line number Diff line change 149149 };
150150};
151151
152+ &gmac0 {
153+ status = "okay";
154+ pinctrl-names = "default";
155+ pinctrl-0 = <&pinctrl_gmac0_default>;
156+ phy-connection-type = "gmii";
157+ phy-handle = <&gmac0_phy>;
158+ };
159+
160+ &gmac0_mdio {
161+ status = "okay";
162+
163+ pinctrl-0 = <&pinctrl_gmac0_mdio_default>;
164+ pinctrl-names = "default";
165+
166+ gmac0_phy: ethernet-phy@7 {
167+ compatible = "microchip,ksz9131";
168+ status = "okay";
169+ reg = <7>;
170+ int-gpios = <&pioa 31 GPIO_ACTIVE_LOW>;
171+ };
172+ };
173+
152174&gmac1 {
153175 status = "okay";
154176 pinctrl-names = "default";
182204 };
183205 };
184206
207+ pinctrl_gmac0_default: gmac0_default {
208+ group1 {
209+ pinmux = <PIN_PA16__G0_TX0>,
210+ <PIN_PA17__G0_TX1>,
211+ <PIN_PA26__G0_TX2>,
212+ <PIN_PA27__G0_TX3>,
213+ <PIN_PA19__G0_RX0>,
214+ <PIN_PA20__G0_RX1>,
215+ <PIN_PA28__G0_RX2>,
216+ <PIN_PA29__G0_RX3>,
217+ <PIN_PA15__G0_TXEN>,
218+ <PIN_PA30__G0_RXCK>,
219+ <PIN_PA18__G0_RXDV>,
220+ <PIN_PA25__G0_125CK>;
221+ bias-disable;
222+ };
223+
224+ gmac0_txck_default {
225+ pinmux = <PIN_PA24__G0_TXCK>;
226+ bias-pull-up;
227+ };
228+ };
229+
230+ pinctrl_gmac0_mdio_default: gmac0_mdio_default {
231+ group1 {
232+ pinmux = <PIN_PA22__G0_MDC>,
233+ <PIN_PA23__G0_MDIO>;
234+ };
235+ };
236+
185237 pinctrl_gmac1_default: gmac1_default {
186238 group1 {
187239 pinmux = <PIN_PD30__G1_TXCK>,
You can’t perform that action at this time.
0 commit comments