1/*
2 * Copyright 2023 NXP
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7/dts-v1/;
8
9#include "rd_rw612_bga.dtsi"
10
11/*
12 * To use ethernet on RD_RW612_BGA board:
13 *
14 * Load R485, R486, R487, R488, R489, R491, R490,
15 *	R522, R521, R520, R524, R523, R508, R505
16 * Remove R518, R507, R506
17 */
18&enet_mac {
19	status = "okay";
20	pinctrl-0 = <&pinmux_enet>;
21	pinctrl-names = "default";
22	phy-handle = <&phy>;
23	zephyr,random-mac-address;
24	phy-connection-type = "rmii";
25};
26
27&enet_mdio {
28	status = "okay";
29	pinctrl-0 = <&pinmux_mdio>;
30	pinctrl-names = "default";
31	phy: phy@2 {
32		compatible = "microchip,ksz8081";
33		reg = <2>;
34		status = "okay";
35		reset-gpios = <&hsgpio1 23 GPIO_ACTIVE_HIGH>;
36		int-gpios = <&hsgpio0 21 GPIO_ACTIVE_HIGH>;
37		microchip,interface-type = "rmii";
38	};
39};
40
41/* XTAL is disconnected */
42/* TODO: this should be uncommented once it is added */
43/*
44 * &rtc {
45 *	status = "disabled";
46 * };
47 */
48