From b14788a72b7399f03aad2cdcced2e3b91ae15810 Mon Sep 17 00:00:00 2001 From: mrdidit <26687854+mrdidit@users.noreply.github.com> Date: Sat, 15 Aug 2026 00:12:03 +0100 Subject: [PATCH] SM8750: backlight: aw99706: use documented DT property names 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> --- ...w99706-use-dt-binding-property-names.patch | 52 +++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 projects/ROCKNIX/devices/SM8750/patches/linux/0065-backlight-aw99706-use-dt-binding-property-names.patch diff --git a/projects/ROCKNIX/devices/SM8750/patches/linux/0065-backlight-aw99706-use-dt-binding-property-names.patch b/projects/ROCKNIX/devices/SM8750/patches/linux/0065-backlight-aw99706-use-dt-binding-property-names.patch new file mode 100644 index 00000000000..05ae6830982 --- /dev/null +++ b/projects/ROCKNIX/devices/SM8750/patches/linux/0065-backlight-aw99706-use-dt-binding-property-names.patch @@ -0,0 +1,52 @@ +From: mrdidit <26687854+mrdidit@users.noreply.github.com> +Date: Wed, 12 Aug 2026 00:00:00 +0000 +Subject: [PATCH] backlight: aw99706: use documented DT property names + +The binding names the frequency, current and voltage properties with unit +suffixes, but the driver looked up shorter names. As a result, valid DT +values were silently ignored and the defaults were used. + +This is particularly harmful on the KONKR Pocket Fit Elite: its DT limits +ILED_MAX to 7000 uA, while the ignored property makes the driver select its +20000 uA default (CFG2 0x1e instead of 0x04), overheating the display area. + +Make the driver lookups match the binding and existing DTS users. +Signed-off-by: mrdidit <26687854+mrdidit@users.noreply.github.com> +--- + drivers/video/backlight/aw99706.c | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +diff --git a/drivers/video/backlight/aw99706.c b/drivers/video/backlight/aw99706.c +index 938f352..5340c2d 100644 +--- a/drivers/video/backlight/aw99706.c ++++ b/drivers/video/backlight/aw99706.c +@@ -130,23 +130,23 @@ static const struct aw99706_dt_prop aw99706_dt_props[] = { + AW99706_CFG0_REG, AW99706_DIM_MODE_MASK, 1, + }, + { +- "awinic,sw-freq", aw99706_dt_property_lookup, ++ "awinic,sw-freq-hz", aw99706_dt_property_lookup, + aw99706_sw_freq_tbl, ARRAY_SIZE(aw99706_sw_freq_tbl), + AW99706_CFG1_REG, AW99706_SW_FREQ_MASK, 750000, + }, + { +- "awinic,sw-ilmt", aw99706_dt_property_lookup, ++ "awinic,sw-ilmt-microamp", aw99706_dt_property_lookup, + aw99706_sw_ilmt_tbl, ARRAY_SIZE(aw99706_sw_ilmt_tbl), + AW99706_CFG1_REG, AW99706_SW_ILMT_MASK, 3000000, + }, + { +- "awinic,iled-max", aw99706_dt_property_iled_max_convert, ++ "awinic,iled-max-microamp", aw99706_dt_property_iled_max_convert, + NULL, 0, + AW99706_CFG2_REG, AW99706_ILED_MAX_MASK, 20000, + + }, + { +- "awinic,uvlo-thres", aw99706_dt_property_lookup, ++ "awinic,uvlo-thres-microvolt", aw99706_dt_property_lookup, + aw99706_ulvo_thres_tbl, ARRAY_SIZE(aw99706_ulvo_thres_tbl), + AW99706_CFG2_REG, AW99706_UVLOSEL_MASK, 2200000, + }, +-- +2.51.0