tleleu / rpms / kernel

Forked from rpms/kernel 3 years ago
Clone
e336be
From 6ef5bd6cfd5da9fe67aea031fd0a66ff77d64ad6 Mon Sep 17 00:00:00 2001
e336be
From: Stefan Wahren <stefan.wahren@i2se.com>
e336be
Date: Sat, 1 Sep 2018 20:16:22 +0200
e336be
Subject: ARM: dts: bcm283x-rpi-lan7515: Enable Ethernet LEDs
e336be
e336be
Since the LAN7515 on Raspberry Pi 3B+ doesn't have an EEPROM and the OTP
e336be
is empty, we need to enable the Ethernet LEDs via Device Tree.
e336be
e336be
Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
e336be
---
e336be
 arch/arm/boot/dts/bcm283x-rpi-lan7515.dtsi | 14 ++++++++++++++
e336be
 1 file changed, 14 insertions(+)
e336be
e336be
diff --git a/arch/arm/boot/dts/bcm283x-rpi-lan7515.dtsi b/arch/arm/boot/dts/bcm283x-rpi-lan7515.dtsi
e336be
index 9403da0990d0..70bece63f9a7 100644
e336be
--- a/arch/arm/boot/dts/bcm283x-rpi-lan7515.dtsi
e336be
+++ b/arch/arm/boot/dts/bcm283x-rpi-lan7515.dtsi
e336be
@@ -1,4 +1,6 @@
e336be
 // SPDX-License-Identifier: GPL-2.0
e336be
+#include <dt-bindings/net/microchip-lan78xx.h>
e336be
+
e336be
 / {
e336be
 	aliases {
e336be
 		ethernet0 = &ethernet;
e336be
@@ -21,6 +23,18 @@
e336be
 			ethernet: ethernet@1 {
e336be
 				compatible = "usb424,7800";
e336be
 				reg = <1>;
e336be
+
e336be
+				mdio {
e336be
+					#address-cells = <0x1>;
e336be
+					#size-cells = <0x0>;
e336be
+					eth_phy: ethernet-phy@1 {
e336be
+						reg = <1>;
e336be
+						microchip,led-modes = <
e336be
+							LAN78XX_LINK_1000_ACTIVITY
e336be
+							LAN78XX_LINK_10_100_ACTIVITY
e336be
+						>;
e336be
+					};
e336be
+				};
e336be
 			};
e336be
 		};
e336be
 	};
e336be
-- 
e336be
cgit 1.2-0.3.lf.el7