[PATCH 2/2] ARM: dts: bananapi: add support for PHY LEDs
Michael Klein
michael at fossekall.de
Thu Mar 13 01:34:50 PDT 2025
Hi,
On Thu, Mar 13, 2025 at 07:07:24AM +0100, Jernej Škrabec wrote:
>Dne sreda, 12. marec 2025 ob 20:36:28 Srednjeevropski standardni čas je Michael Klein napisal(a):
>> The Bananapi M1 has three LEDs connected to the RTL8211E ethernet PHY.
>> Add the corresponding nodes to the device tree.
>>
>> Signed-off-by: Michael Klein <michael at fossekall.de>
>
>This is patch 2/2. Which one is patch 1/2? I got only one.
https://patchwork.kernel.org/project/netdevbpf/patch/20250312193629.85417-1-michael@fossekall.de/
Sorry for any inconvenience in case I messed up the patch submission.
I made two commits for this change and submitted them via `git send-email
HEAD^^`. The first patch went to netdev at vger.kernel.org, the second
to linux-arm-kernel at lists.infradead.org, which seems logical. Have I
done something wrong?
>Best regards,
>Jernej
Michael
>
>> ---
>> .../boot/dts/allwinner/sun7i-a20-bananapi.dts | 27 +++++++++++++++++++
>> 1 file changed, 27 insertions(+)
>>
>> diff --git a/arch/arm/boot/dts/allwinner/sun7i-a20-bananapi.dts b/arch/arm/boot/dts/allwinner/sun7i-a20-bananapi.dts
>> index 46ecf9db2324..4976453ed192 100644
>> --- a/arch/arm/boot/dts/allwinner/sun7i-a20-bananapi.dts
>> +++ b/arch/arm/boot/dts/allwinner/sun7i-a20-bananapi.dts
>> @@ -48,6 +48,7 @@
>>
>> #include <dt-bindings/gpio/gpio.h>
>> #include <dt-bindings/interrupt-controller/irq.h>
>> +#include <dt-bindings/leds/common.h>
>>
>> / {
>> model = "LeMaker Banana Pi";
>> @@ -169,6 +170,32 @@ &ir0 {
>> &gmac_mdio {
>> phy1: ethernet-phy at 1 {
>> reg = <1>;
>> +
>> + leds {
>> + #address-cells = <1>;
>> + #size-cells = <0>;
>> +
>> + led at 0 {
>> + reg = <0>;
>> + color = <LED_COLOR_ID_GREEN>;
>> + default-state = "keep";
>> + linux,default-trigger = "netdev";
>> + };
>> +
>> + led at 1 {
>> + reg = <1>;
>> + color = <LED_COLOR_ID_AMBER>;
>> + default-state = "keep";
>> + linux,default-trigger = "netdev";
>> + };
>> +
>> + led at 2 {
>> + reg = <2>;
>> + color = <LED_COLOR_ID_BLUE>;
>> + default-state = "keep";
>> + linux,default-trigger = "netdev";
>> + };
>> + };
>> };
>> };
>>
>>
>
>
>
>
>
--
More information about the linux-arm-kernel
mailing list