Hi Florian, Am 21.08.23 um 21:27 schrieb Florian Fainelli:
Describe the Ethernet LEDs for the Raspberry Pi 4 model B board as well as the Raspberry Pi 4 CM board. Signed-off-by: Florian Fainelli <florian.fainelli@xxxxxxxxxxxx> --- arch/arm/boot/dts/broadcom/bcm2711-rpi-4-b.dts | 18 ++++++++++++++++++ .../arm/boot/dts/broadcom/bcm2711-rpi-cm4.dtsi | 18 ++++++++++++++++++ 2 files changed, 36 insertions(+) diff --git a/arch/arm/boot/dts/broadcom/bcm2711-rpi-4-b.dts b/arch/arm/boot/dts/broadcom/bcm2711-rpi-4-b.dts index d5f8823230db..41db78cb0836 100644 --- a/arch/arm/boot/dts/broadcom/bcm2711-rpi-4-b.dts +++ b/arch/arm/boot/dts/broadcom/bcm2711-rpi-4-b.dts @@ -5,6 +5,7 @@ #include "bcm283x-rpi-led-deprecated.dtsi" #include "bcm283x-rpi-usb-peripheral.dtsi" #include "bcm283x-rpi-wifi-bt.dtsi" +#include <dt-bindings/leds/common.h> / { compatible = "raspberrypi,4-model-b", "brcm,bcm2711"; @@ -197,6 +198,23 @@ &genet_mdio { phy1: ethernet-phy@1 { /* No PHY interrupt */ reg = <0x1>; + + leds { + #address-cells = <1>; + #size-cells = <0>; + + leds@0 { + color = <LED_COLOR_ID_GREEN>; + default-state = "keep"; + reg = <0>; + }; + + leds@1 { + color = <LED_COLOR_ID_AMBER>; + default-state = "keep"; + reg = <1>; + }; + };
the Raspberry Pi 400 Ethernet Jack doesn't have LEDs, but the bcm2711-rpi-400.dts does include bcm2711-rpi-4.dtb. So this complete new node must be deleted there. Best regards
}; };