summaryrefslogtreecommitdiff
path: root/arch/arm64/boot/dts/renesas/r8a77995-draak.dts
diff options
context:
space:
mode:
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>2017-09-13 15:18:39 +0300
committerSimon Horman <horms+renesas@verge.net.au>2017-09-25 10:05:19 +0300
commit4503b50eac08f472e8690ec61f4d144e62cbdc55 (patch)
tree15fc93090abf6373ef70d80d787b2ec09d210723 /arch/arm64/boot/dts/renesas/r8a77995-draak.dts
parent607c73c38e8492677da02a999eabd669e96f6d88 (diff)
downloadlinux-4503b50eac08f472e8690ec61f4d144e62cbdc55.tar.xz
arm64: dts: renesas: r8a77995: draak: enable EthernetAVB
This patch enables EthernetAVB for R-Car D3 draak board. Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Diffstat (limited to 'arch/arm64/boot/dts/renesas/r8a77995-draak.dts')
-rw-r--r--arch/arm64/boot/dts/renesas/r8a77995-draak.dts25
1 files changed, 25 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/renesas/r8a77995-draak.dts b/arch/arm64/boot/dts/renesas/r8a77995-draak.dts
index 7b776cb7e928..96b7ff5cc321 100644
--- a/arch/arm64/boot/dts/renesas/r8a77995-draak.dts
+++ b/arch/arm64/boot/dts/renesas/r8a77995-draak.dts
@@ -11,6 +11,7 @@
/dts-v1/;
#include "r8a77995.dtsi"
+#include <dt-bindings/gpio/gpio.h>
/ {
model = "Renesas Draak board based on r8a77995";
@@ -18,6 +19,7 @@
aliases {
serial0 = &scif2;
+ ethernet0 = &avb;
};
chosen {
@@ -37,6 +39,14 @@
};
&pfc {
+ avb0_pins: avb {
+ mux {
+ groups = "avb0_link", "avb0_phy_int", "avb0_mdc",
+ "avb0_mii";
+ function = "avb0";
+ };
+ };
+
scif2_pins: scif2 {
groups = "scif2_data";
function = "scif2";
@@ -56,6 +66,21 @@
status = "okay";
};
+&avb {
+ pinctrl-0 = <&avb0_pins>;
+ pinctrl-names = "default";
+ renesas,no-ether-link;
+ phy-handle = <&phy0>;
+ status = "okay";
+
+ phy0: ethernet-phy@0 {
+ rxc-skew-ps = <1500>;
+ reg = <0>;
+ interrupt-parent = <&gpio5>;
+ interrupts = <19 IRQ_TYPE_LEVEL_LOW>;
+ };
+};
+
&scif2 {
pinctrl-0 = <&scif2_pins>;
pinctrl-names = "default";