All of lore.kernel.org
 help / color / mirror / Atom feed
* LED colors in d-bus
@ 2018-11-06 13:41 Alexander Amelkin
  2018-11-07 12:03 ` Alexander Soldatov
  0 siblings, 1 reply; 2+ messages in thread
From: Alexander Amelkin @ 2018-11-06 13:41 UTC (permalink / raw)
  To: openbmc; +Cc: Alexander Soldatov, Vishwanatha Subbanna


[-- Attachment #1.1.1: Type: text/plain, Size: 1192 bytes --]

Hi all!

Since commit a1e70a7af by Vishwanatha Subbanna to phosphor-dbus-interfaces (see https://gerrit.openbmc-project.xyz/#/c/openbmc/phosphor-dbus-interfaces/+/1136/ ), there is a property 'Color' for leds.

However, it looks like nothing is setting that property for any of the supported platforms. So any led always has it in d-bus set to Unknown.

It is unclear to us what was the intention for adding that property. It has not been explained in the commit log for the commit. It is also unclear what could be the correct way to set that property. phosphor-led-manager operates on groups. A single led can be a part of multiple groups, so 'led.yaml' in phosphor-led-manager looks like a wrong place to attach a color property to leds. Each leds used in led.yaml is called by the name taken from Linux devicetree. However, the bindings for leds in Linux devicetree do not imply color information as well.

Are there any hints on how to set that property the right way? Can you imagine any real use cases for the color property? Maybe we should just ditch it completely? It's been 2 years since it has been introduced and nobody seems to have cared...

Thanks.

Alexander.


[-- Attachment #1.1.2: Type: text/html, Size: 1934 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: LED colors in d-bus
  2018-11-06 13:41 LED colors in d-bus Alexander Amelkin
@ 2018-11-07 12:03 ` Alexander Soldatov
  0 siblings, 0 replies; 2+ messages in thread
From: Alexander Soldatov @ 2018-11-07 12:03 UTC (permalink / raw)
  To: Alexander Amelkin, openbmc

[-- Attachment #1: Type: text/plain, Size: 2003 bytes --]

  Hi all!

  There are some ideas for setting led color in DBus. Led nodes in DBus are created by phosphor-led-sysfs. phosphor-led-sysfs is started by udev rule for the sysfs led. Suggestion is to add enviroment file (e.x. /etc/default/obmc/leds/led.conf), which contains colors for all system leds. The conf file could be look like:

COLOR_alarm_red = "Red"
COLOR_alarm_yel = "Yellow"
COLOR_heartbeat = "Green"
COLOR_id_blue = "Blue"
COLOR_power_red = "Red"


  phosphor-led-sysfs looks for led color in the enviroment variables and sets led color.


  Regards,

  Alexnader Soldatov.

________________________________
От: Alexander Amelkin
Отправлено: 6 ноября 2018 г. 16:41:57
Кому: openbmc@lists.ozlabs.org
Копия: Alexander Soldatov; Vishwanatha Subbanna
Тема: LED colors in d-bus


Hi all!

Since commit a1e70a7af by Vishwanatha Subbanna to phosphor-dbus-interfaces (see https://gerrit.openbmc-project.xyz/#/c/openbmc/phosphor-dbus-interfaces/+/1136/ ), there is a property 'Color' for leds.

However, it looks like nothing is setting that property for any of the supported platforms. So any led always has it in d-bus set to Unknown.

It is unclear to us what was the intention for adding that property. It has not been explained in the commit log for the commit. It is also unclear what could be the correct way to set that property. phosphor-led-manager operates on groups. A single led can be a part of multiple groups, so 'led.yaml' in phosphor-led-manager looks like a wrong place to attach a color property to leds. Each leds used in led.yaml is called by the name taken from Linux devicetree. However, the bindings for leds in Linux devicetree do not imply color information as well.

Are there any hints on how to set that property the right way? Can you imagine any real use cases for the color property? Maybe we should just ditch it completely? It's been 2 years since it has been introduced and nobody seems to have cared...

Thanks.

Alexander.

[-- Attachment #2: Type: text/html, Size: 3291 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-11-07 12:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-06 13:41 LED colors in d-bus Alexander Amelkin
2018-11-07 12:03 ` Alexander Soldatov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.