Commit a3592fae authored by Florian Fainelli's avatar Florian Fainelli

arm: dts: bcm2711: Describe Ethernet LEDs

Describe the Ethernet LEDs for the Raspberry Pi 4 model B board as well
as the Raspberry Pi 4 CM board. The Raspberry Pi 400 board does not
include RJ45 connector LEDs so the 'leds' node is deleted accordingly.

The Ethernet PHY LEDs are numbered in the PHY package/pin list from LED1
through LED4, however their address within the LED registers function
selector is 0-indexed.

Link: https://lore.kernel.org/r/20240423191500.1443636-1-florian.fainelli@broadcom.comSigned-off-by: default avatarFlorian Fainelli <florian.fainelli@broadcom.com>
Reviewed-by: default avatarStefan Wahren <wahrenst@gmx.net>
parent 4dd01a37
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
#include "bcm283x-rpi-led-deprecated.dtsi" #include "bcm283x-rpi-led-deprecated.dtsi"
#include "bcm283x-rpi-usb-peripheral.dtsi" #include "bcm283x-rpi-usb-peripheral.dtsi"
#include "bcm283x-rpi-wifi-bt.dtsi" #include "bcm283x-rpi-wifi-bt.dtsi"
#include <dt-bindings/leds/common.h>
/ { / {
compatible = "raspberrypi,4-model-b", "brcm,bcm2711"; compatible = "raspberrypi,4-model-b", "brcm,bcm2711";
...@@ -204,6 +205,27 @@ &genet_mdio { ...@@ -204,6 +205,27 @@ &genet_mdio {
phy1: ethernet-phy@1 { phy1: ethernet-phy@1 {
/* No PHY interrupt */ /* No PHY interrupt */
reg = <0x1>; reg = <0x1>;
leds {
#address-cells = <1>;
#size-cells = <0>;
/* LED1 */
led@0 {
reg = <0>;
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_LAN;
default-state = "keep";
};
/* LED2 */
led@1 {
reg = <1>;
color = <LED_COLOR_ID_AMBER>;
function = LED_FUNCTION_LAN;
default-state = "keep";
};
};
}; };
}; };
......
...@@ -30,6 +30,7 @@ &expgpio { ...@@ -30,6 +30,7 @@ &expgpio {
&genet_mdio { &genet_mdio {
clock-frequency = <1950000>; clock-frequency = <1950000>;
/delete-node/ leds;
}; };
&led_pwr { &led_pwr {
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
/dts-v1/; /dts-v1/;
#include <dt-bindings/leds/common.h>
#include "bcm2711-rpi-cm4.dtsi" #include "bcm2711-rpi-cm4.dtsi"
#include "bcm283x-rpi-led-deprecated.dtsi" #include "bcm283x-rpi-led-deprecated.dtsi"
#include "bcm283x-rpi-usb-host.dtsi" #include "bcm283x-rpi-usb-host.dtsi"
...@@ -110,6 +111,29 @@ rtc@51 { ...@@ -110,6 +111,29 @@ rtc@51 {
}; };
}; };
&phy1 {
leds {
#address-cells = <1>;
#size-cells = <0>;
/* LED2 */
led@1 {
reg = <1>;
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_LAN;
default-state = "keep";
};
/* LED3 */
led@2 {
reg = <2>;
color = <LED_COLOR_ID_AMBER>;
function = LED_FUNCTION_LAN;
default-state = "keep";
};
};
};
&led_act { &led_act {
gpios = <&gpio 42 GPIO_ACTIVE_HIGH>; gpios = <&gpio 42 GPIO_ACTIVE_HIGH>;
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment