OSDN Git Service

ARM64: dts: mediatek: enable ethernet on pumpkin boards
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Fri, 22 May 2020 12:07:00 +0000 (14:07 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 22 May 2020 21:20:12 +0000 (14:20 -0700)
Add remaining properties to the ethernet node and enable it.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/arm64/boot/dts/mediatek/pumpkin-common.dtsi

index 4b1d5f6..dfceffe 100644 (file)
        status = "okay";
 };
 
+&ethernet {
+       pinctrl-names = "default";
+       pinctrl-0 = <&ethernet_pins_default>;
+       phy-handle = <&eth_phy>;
+       phy-mode = "rmii";
+       mac-address = [00 00 00 00 00 00];
+       status = "okay";
+
+       mdio {
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               eth_phy: ethernet-phy@0 {
+                       reg = <0>;
+               };
+       };
+};
+
 &usb0 {
        status = "okay";
        dr_mode = "peripheral";