Skip to content

LED Color Naming Mismatch on OneCloudPro (S912) #3477

@wuai1024

Description

@wuai1024

Device Information | 设备信息

  • SOC: Amlogic S912
  • Model: Octopus Planet (OneCloudPro V1.2)

Armbian Version | 系统版本

  • Kernel Version: 6.12.82-ophub
  • Release: Armbian 26.2.1 noble

Describe the bug | 问题描述

All issues will only remain open for one week to prioritize resolving them.
After that period, they will be closed but can still continue to be discussed in the thread.

On the OneCloudPro (Octopus Planet) device, the LED sysfs filenames do not match the physical LED colors:

sysfs File Expected Actual Physical Color
/sys/class/leds/green/brightness 🟢 Green 🔴 Red
/sys/class/leds/red/brightness 🔴 Red 🟢 Green
/sys/class/leds/blue/brightness 🔵 Blue 🔵 Blue ✅

Steps to Reproduce | 复现步骤

# Expected: green LED turns on
$ echo 1 > /sys/class/leds/green/brightness
# Actual: RED physical LED turns on

# Expected: red LED turns on
$ echo 1 > /sys/class/leds/red/brightness
# Actual: GREEN physical LED turns on

Verification | 验证

Current brightness state:

$ cat /sys/class/leds/green/brightness  # Currently: 0
$ cat /sys/class/leds/red/brightness    # Currently: 1
$ cat /sys/class/leds/blue/brightness   # Currently: 0

Physical observation: 🟢 GREEN LED is on (matching red/brightness=1).

Device tree labels are correct (green/red/blue), so the swap happens at the GPIO/pin assignment level in the DTB.

Analysis | 分析

From /proc/device-tree/leds/:

  • green_led label → physical red LED ❌
  • red_led label → physical green LED ❌
  • blue_led label → physical blue LED ✅

The /etc/armbian-leds.conf shows the correct state snapshot but uses the swapped naming convention.

Expected Behavior | 期望行为

The sysfs LED names should match their physical colors:

  • /sys/class/leds/red/brightness → controls the red physical LED
  • /sys/class/leds/green/brightness → controls the green physical LED
  • /sys/class/leds/blue/brightness → controls the blue physical LED

Question | 问题

Is this a known issue for the OneCloudPro / Octopus Planet board? Is there a way to fix this via DTB overlay, or should this be reported to the board manufacturer?

Additional Context | 补充信息

  • All three LEDs are fully software-controllable once the naming mapping is known
  • The green_led also has trigger=usb-host, but the brightness control works independently
  • This appears to be a board-specific GPIO/LED pin assignment error in the DTB

Metadata

Metadata

Assignees

No one assigned

    Labels

    supportThis need is supported

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions