Skip to content

SM8750: backlight: aw99706: use documented DT property names - #3174

Open
mrdidit wants to merge 1 commit into
ROCKNIX:nextfrom
mrdidit:agent/fix-aw99706-dt-properties
Open

SM8750: backlight: aw99706: use documented DT property names#3174
mrdidit wants to merge 1 commit into
ROCKNIX:nextfrom
mrdidit:agent/fix-aw99706-dt-properties

Conversation

@mrdidit

@mrdidit mrdidit commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Summary

  • What is the goal of this PR? (e.g. Bump up an emulator version, implement a new feature. )

Correct the AW99706 backlight driver’s Device Tree property lookups to use the documented unit-suffixed names.

On the KONKR Pocket FIT Elite, the mismatch caused the driver to ignore the existing 7000 µA LED-current limit and use its 20000 µA default instead. This programmed CFG2 to 0x1e rather than 0x04 and produced a concentrated, brightness-dependent hotspot above the LCD flex area.

Testing

  • How was this tested? (e.g. Built and tested on specific devices, manual testing steps, URLs for CI/CD build artifacts.)
  • Test results: (e.g. Screenshots, logs, performance metrics if applicable.)

Hardware tested on a KONKR Pocket FIT Elite:

  • Built and booted a patched Linux 7.1.3 SM8750 kernel.
  • Confirmed CFG2 was automatically programmed to 0x04 after boot without a manual register write.
  • Tested the backlight progressively at approximately 5%, 25%, 50%, and 100% brightness.
  • Confirmed stable display operation without flicker.
  • Confirmed the LED-open and LED-short fault registers remained clear.
  • At 100% brightness, the measured hotspot fell from as high as 58°C before the fix to approximately 40°C afterward.
  • Patch passed strict kernel checkpatch validation with no errors or warnings.

Additional Context

  • Add any other information that might be helpful for the reviewer (e.g., performance implications, potential risks, specific areas to focus on.)

The AW99706 Device Tree binding defines:

  • awinic,sw-freq-hz
  • awinic,sw-ilmt-microamp
  • awinic,iled-max-microamp
  • awinic,uvlo-thres-microvolt

The driver looked for shorter names without the unit suffixes, causing valid Device Tree values to be silently ignored.

The KPFE Device Tree already specifies awinic,iled-max-microamp = <7000>, so no device-specific DTS workaround is required.


AI Usage

While ROCKNIX doesn't have restrictions on AI tools in contributing, please be transparent about their usage as it
helps set the right context for reviewers.

Did you use AI tools to help write this code? YES | PARTIALLY | NO

YES

@mrdidit
mrdidit marked this pull request as ready for review August 12, 2026 22:19
@mrdidit mrdidit changed the title backlight: aw99706: use documented DT property names SM8750: backlight: aw99706: use documented DT property names Aug 12, 2026
@spycat88
spycat88 force-pushed the next branch 2 times, most recently from c93f6bd to 135d112 Compare August 13, 2026 00:00
The AW99706 binding uses unit-suffixed property names, but the driver
looks up shorter names and silently falls back to defaults.

On the KONKR Pocket Fit Elite this ignores the 7000 uA limit and uses
the 20000 uA default, programming CFG2 to 0x1e instead of 0x04.

Use the documented property names so the existing DTS values apply.

Signed-off-by: mrdidit <26687854+mrdidit@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant