-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
nrf52840_m2 add backlight configuration and pinctrl #3119
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
base: main
Are you sure you want to change the base?
Conversation
petejohanson
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this! A few comments.
|
Hi there, unfortunate timing has meant that this PR needs to be updated to match our Zephyr 4.1 bump. Could you make the necessary changes and then I'll take a look? |
|
Yes, I was happy to see that the PR for Zephyr 4.1 was merged ! |
|
@BarbUk |
|
@hyx0329 please check: #3119 (comment). The PWM backlight is only on the m2 board. Last time I worked on it, the zephyr is31fl3733 driver was also only capable of handling brightness ( white color, led ON / OFF, and brightness levels). I have a working branch here that can toggle all keys leds and change the brightness if you want to check it: https://github.com/BarbUk/zmk/commits/m60_backlight. I will have some time to rebase this PR on the 4.1 zmk new release next week. |
|
Marking the PR as draft while testing zmk with zephyr 4.1 |
|
Building without issue in local environnement and with github action: https://github.com/BarbUk/zmk-config/actions/runs/20410490018. Flashed my keyboard with the new firmware, all feature are working. |
@nmunnich, I've rebased the PR against the main branch. |
|
@BarbUk I guess you didn't understand my concern. Quote from doc:
Those leds on the core module are NOT backlight leds but indicators at best, and are very likely to be hidden in the case. For this reason, I don't think it's appropriate to configure them as backlight( Below are my other thoughts. The i2c led driver is on the carrier board and I think you can put related dts code in Any reason to remove |
Yeah, I was to remove a warning from the build step: I've added it back in 58eee39
Thanks for the review.
They are two set of leds on this keyboard:
Having the pwleds defined by default is useful, as the led turn on by default when you enter the bootloader. I guess it was overreach from working with the core module on a dev kit + having a transparent case :D. |
Hi !
Following the dev page available at:
I've added the necessary pinctrl for the nrf52840_m2 board.
pwm configuration come from:

Spi config from:

I've also added the i2c pinctrl to add a mapping with the is31fl3733 driver in a futur PR.
PR check-list