-
-
Notifications
You must be signed in to change notification settings - Fork 9.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LED controller (LP5523) fails ASUS Lyra (MAP-AC2200) on 22.03.0-rc1 and r19605-203ffc4ca7 #9851
Comments
The MR33 was in a similar pinch with the lp5562: 85a42fa The MAP-AC2200 device-tree file will need an update. Can you please check if the following patch: |
I have applied the patch on master and uploaded - I can confirm, that the patch fixes the problem This time, the led is not "breathing" - but a low-intensive led is on after startup. The driver is found and initialized (it seems):
And I can control the leds:
I am not sure, that "ath10k-phy0" is an acutal led. Maybe it is only visible on the pcb - og not mounted at all.
Should I just close this issue - or should I wait until the patch is merged into master? |
This is good to know. Does the device behave as it did with 21.2 there, or feels something "off" with regards to the LEDs?
(If possible, OpenWrt tries to stick with what the vendor had in mind with the LED and what the color could mean.) For the future it would be great to know which of the 9 channels is part of which individual RGB-LED. I suspect that there are three independent RGB-LEDs on this device. If that's the case, the binding should be extended to have the newfangled LED_RGB too which bundles them together as RGB-LEDs.
This LED is a dd-wrt/openwrt enhancement for ath10k. Both ath10k-ct and ath10k will register a LED for the pcie chip variants, even if no leds is present.
Just leave it open. It's best to reference the fix with the closing comment. BTW: If you want, you can provide a Reported-By: / Tested-By: Tag for the patch. For this tags your name and a valid e-mail is reguired. If you want to stay anonymous, that's OK too. (The patch will in both cases contain a BugLink reference to the issue.) |
I dont think there leds has any order defined. As I understand it, there are 3 blue led's somehow coupled together. So it is impossible to see, if you turn on blue-0,blue-1 or blue-2. When using them together, you can increase the brightness way more than would be possible with a single led
Yes, for all 9 leds I can select on/off (0/255) or any value between.
The vendor has 5 led colors defined:
When the device boots in OpenWrt with the patch, it blinks, and when boot is finished, it shows the steady blue-0 with brightness 255
I will try to figure out how to create such a tag, but I would like some more detailed help. |
If I remember the details correctly, the different per-colour LEDs slightly affect how wide the light focus goes (smaller diameter to full diameter, but those differences are indeed rather small).
This is simply providing a (text-) tag:
It's meant to attribute the efforts to report/ test the changes to a user (and maybe provide a means to come back for further testing, should any issues arise with the change later on). |
Did som testing - the differneces are smaller than I can detect. I'm afraid I am complete noob regarding providing tags. Is it something I should do on github? https://git.openwrt.org?. |
No, it's rather free-form, you just add the (adapted) two lines I mentioned above in a response to this issue report. chunkeey can then add them (copy'n'paste) to the commit message when applying the patch to OpenWrt. The intention behind it is you just 'officially' providing the tags (name/ mail address) to be used in the commit message, providing an 'audit trail' in the version control system/ git history. This is important for marking the author of a commit (From/ Signed-off-by), while Reported-by/ Tested-by are more optional and mostly meant to attribute the efforts going into reporting/ testing to a person. See https://git.openwrt.org/?p=openwrt/openwrt.git;a=commitdiff_plain;h=98bb26f9f762408e42bd8a906f0eb01c41ada10a for a random (recent) example of how this might end up in the git history. Technically these tags are free-form, just part of the text of the commit message, but these well-known tags can be parsed by higher level tools. So yes, you simply state
as a response (or you don't, if you don't want those to become these part of the git history, as -other than From/ Signed-off-by of the author/ committer- Reported-by/ Tested-by are not mandatory and 'just' encouraged). |
Reported-By: Thomas Bøge <thomas@boegenielsen.dk> |
Updated the patch with migration scripts (to update the previous color:chan$i -> color-$i)
From what I can tell based on the description+picture this should be accurate (i.e. 9 channels for one single RGB-LED), Bonding several channels together is something new. I think upstream hasn't thought about that when they were designing the RGB/MULTILED support?! That said, I noticed that the led-cur + max-cur for each individual LED looked very high and "odd". => ASUS is maxing out what the output stage of the led-controller could deliver. |
Add the reg and color property to each channel node. This update is to accommodate the multicolor framework. Refer to: <https://lore.kernel.org/all/20200622185919.2131-9-dmurphy@ti.com> <https://lore.kernel.org/all/20210818070209.1540451-1-michal.vokac@ysoft.com> Note: There is only a single extremely bright RGB-LED. The RGB-color channels (i.e.: blue-0, blue-1 and blue-2) are running in parallel to increase the current delivery beyond what a single PWM-output on the LED controller could do. BugLink: #9851 Reported-By: Thomas Bøge <thomas@boegenielsen.dk> Tested-By: Thomas Bøge <thomas@boegenielsen.dk> Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
(queued for 22.03 too, but not yet pushed |
Add the reg and color property to each channel node. This update is to accommodate the multicolor framework. Refer to: <https://lore.kernel.org/all/20200622185919.2131-9-dmurphy@ti.com> <https://lore.kernel.org/all/20210818070209.1540451-1-michal.vokac@ysoft.com> Note: There is only a single extremely bright RGB-LED. The RGB-color channels (i.e.: blue-0, blue-1 and blue-2) are running in parallel to increase the current delivery beyond what a single PWM-output on the LED controller could do. BugLink: #9851 Reported-By: Thomas Bøge <thomas@boegenielsen.dk> Tested-By: Thomas Bøge <thomas@boegenielsen.dk> Signed-off-by: Christian Lamparter <chunkeey@gmail.com> (cherry picked from commit 834c9b3)
Add the reg and color property to each channel node. This update is to accommodate the multicolor framework. Refer to: <https://lore.kernel.org/all/20200622185919.2131-9-dmurphy@ti.com> <https://lore.kernel.org/all/20210818070209.1540451-1-michal.vokac@ysoft.com> Note: There is only a single extremely bright RGB-LED. The RGB-color channels (i.e.: blue-0, blue-1 and blue-2) are running in parallel to increase the current delivery beyond what a single PWM-output on the LED controller could do. BugLink: openwrt#9851 Reported-By: Thomas Bøge <thomas@boegenielsen.dk> Tested-By: Thomas Bøge <thomas@boegenielsen.dk> Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
I can confirm, that the LED's now work as expected, so I close this issue. Thank you to everyone who contributed to the fix. |
Add the reg and color property to each channel node. This update is to accommodate the multicolor framework. Refer to: <https://lore.kernel.org/all/20200622185919.2131-9-dmurphy@ti.com> <https://lore.kernel.org/all/20210818070209.1540451-1-michal.vokac@ysoft.com> Note: There is only a single extremely bright RGB-LED. The RGB-color channels (i.e.: blue-0, blue-1 and blue-2) are running in parallel to increase the current delivery beyond what a single PWM-output on the LED controller could do. BugLink: openwrt#9851 Reported-By: Thomas Bøge <thomas@boegenielsen.dk> Tested-By: Thomas Bøge <thomas@boegenielsen.dk> Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
in 22.03.0-rc1
Running v 21.02.3 the led's works fine. But on both 22.03.0-rc1 and snapshot from today, 20220705, 19605-203ffc4ca7 the initialization of lp5523 failes with
[ 1.969494] lp5523x: probe of 0-0032 failed with error -22
So I cannot control the LED's on the newer versions, and is is just "Random Breathing"
The text was updated successfully, but these errors were encountered: