drm/panel: add WLED supply support
Subsystems (4)
cover drm/panel: add WLED supply support
This is a follow-up to the applied ILI7807S panel support series.
Some boards, such as the Qualcomm Shikra CQS EVK and Shikra CQM EVK, drive the panel's backlight from an external WLED driver whose enable input is wired through a supply, typically modeled as a fixed regulator (e.g. vreg_wled).
Platforms without this hardware may omit wled-supply and use the existing DCS or external backlight handling.
---
Arpit Saini (2):
dt-bindings: display: panel: add optional wled-supply drm/panel: ili7807s: Add WLED supply
.../devicetree/bindings/display/panel/ilitek,ili7807s.yaml | 12 ++++++++++++ drivers/gpu/drm/panel/panel-ilitek-ili7807s.c | 1 + 2 files changed, 13 insertions(+)
---
base-commit: 6375e61c01e93e35ee7acd336a689ac1fae4b509
change-id: 20260929-wled-supply-series-e10b2c5d5103
Best regards,
Signature · 1 line
Arpit Saini <[email protected]>
PATCH 1/2 dt-bindings: display: panel: add optional wled-supply
Some boards drive the ILI7807S panel's backlight from an external WLED driver whose enable input is wired to a GPIO, typically modeled as a fixed regulator (e.g. vreg_wled).
Document the optional wled-supply property for the ILI7807S panel binding. When present, the supply can be used to control the enable input of the external WLED driver.
Platforms without an external WLED enable supply can omit this property and continue to use the existing backlight handling.
--- .../devicetree/bindings/display/panel/ilitek,ili7807s.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+)
Documentation/devicetree/bindings/display/panel/ilitek,ili7807s.yaml +12 -0
@@ -34,6 +34,10 @@ properties: description: Negative LCD bias supply (AVEE), typically -5.5V (range -6.3V to -4.5V) + wled-supply: + description: Optional Supply for the WLED driver that provides the + panel backlight + required: - compatible - reg
@@ -49,6 +53,13 @@ examples: - | #include <dt-bindings/gpio/gpio.h> + vreg_wled: regulator-wled { + compatible = "regulator-fixed"; + regulator-name = "vreg_wled"; + gpio = <&tlmm 91 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + dsi { #address-cells = <1>; #size-cells = <0>;
@@ -61,6 +72,7 @@ examples: vddi-supply = <&pm4125_l15>; avdd-supply = <&avdd>; avee-supply = <&avee>; + wled-supply = <&vreg_wled>; port { panel_in: endpoint {
Signature · 1 line
2.34.1
Re: [PATCH 1/2] dt-bindings: display: panel: add optional wled-supply
Quoted 3 lines · Arpit Saini
Some boards drive the ILI7807S panel's backlight from an external WLED driver whose enable input is wired to a GPIO, typically modeled as a fixed regulator (e.g.
vreg_wled).
You describe something else. What's fixed regulator should not matter here. Which pin is it in ILI7807S?
It seems you just want to represent GPIO with a regulator. This is just confusing and typical downstream workaround.
Quoted 30 lines
Document the optional wled-supply property for the ILI7807S panel binding. When present, the supply can be used to control the enable input of the external WLED driver.
Platforms without an external WLED enable supply can omit this property and continue to use the existing backlight handling.
Fixes 447a76a99e24 ("dt-bindings: display: panel: add Ilitek ILI7807S panel controller")Signed-off-by Arpit Saini <[email protected]>--- .../devicetree/bindings/display/panel/ilitek,ili7807s.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+)Documentation/devicetree/bindings/display/panel/ilitek,ili7807s.yaml +4
-0@@ -34,6 +34,10 @@ properties: description: Negative LCD bias supply (AVEE), typically -5.5V (range -6.3V to -4.5V) + wled-supply: + description: Optional Supply for the WLED driver that provides the + panel backlight + required: - compatible - reg
Documentation/devicetree/bindings/display/panel/ilitek,ili7807s.yaml examples: · line 61
Quoted 9 lines
Documentation/devicetree/bindings/display/panel/ilitek,ili7807s.yaml +6
-0@@ -49,6 +53,13 @@ examples: - | #include <dt-bindings/gpio/gpio.h> + vreg_wled: regulator-wled { + compatible = "regulator-fixed"; + regulator-name = "vreg_wled"; + gpio = <&tlmm 91 GPIO_ACTIVE_HIGH>; + enable-active-high; + };
Irrelevant here
Best regards,
Krzysztof
Re: [PATCH 1/2] dt-bindings: display: panel: add optional wled-supply
Quoted 10 lines · Krzysztof Kozlowski
Quoted 3 lines · Arpit Saini
Some boards drive the ILI7807S panel's backlight from an external WLED driver whose enable input is wired to a GPIO, typically modeled as a fixed regulator (e.g.
vreg_wled).You describe something else. What's fixed regulator should not matter here. Which pin is it in ILI7807S?
It seems you just want to represent GPIO with a regulator. This is just confusing and typical downstream workaround.
What's more, you basically REVERT the review YOU RECEIVED in v1. Really, just sneak the same stuff 3 months after like the review never happened.
NAK
Best regards,
Krzysztof
Re: [PATCH 1/2] dt-bindings: display: panel: add optional wled-supply
Quoted 9 lines · Krzysztof Kozlowski
Quoted 8 lines · Krzysztof Kozlowski
Quoted 3 lines · Arpit Saini
Some boards drive the ILI7807S panel's backlight from an external WLED driver whose enable input is wired to a GPIO, typically modeled as a fixed regulator (e.g.
vreg_wled).You describe something else. What's fixed regulator should not matter here. Which pin is it in ILI7807S?
Quoted 7 lines
Quoted 2 lines
It seems you just want to represent GPIO with a regulator. This is just confusing and typical downstream workaround.
What's more, you basically REVERT the review YOU RECEIVED in v1. Really, just sneak the same stuff 3 months after like the review never happened.
NAK
After discussing this offline with Krzysztof. It's not a supply (my fault), it's an LCD driver. So, the best way to handle your displaycard seems to add a gpio-backlight, reference it from the panel and then in the driver check for the backlight's max_brightness level. If it's 1, then you have to send extra DCS commands to control PWM. If it's higher, use normal backlight class controls.
Signature · 2 lines
With best wishes Dmitry
Re: [PATCH 1/2] dt-bindings: display: panel: add optional wled-supply
Quoted 16 lines · Dmitry Baryshkov
Quoted 15 lines · Krzysztof Kozlowski
Quoted 10 lines · Krzysztof Kozlowski
Quoted 3 lines · Arpit Saini
Some boards drive the ILI7807S panel's backlight from an external WLED driver whose enable input is wired to a GPIO, typically modeled as a fixed regulator (e.g.
vreg_wled).You describe something else. What's fixed regulator should not matter here. Which pin is it in ILI7807S?
It seems you just want to represent GPIO with a regulator. This is just confusing and typical downstream workaround.
What's more, you basically REVERT the review YOU RECEIVED in v1. Really, just sneak the same stuff 3 months after like the review never happened.
Quoted 9 lines
Quoted 1 line
NAK
After discussing this offline with Krzysztof. It's not a supply (my fault), it's an LCD driver. So, the best way to handle your displaycard seems to add a gpio-backlight, reference it from the panel and then in the driver check for the backlight's
max_brightnesslevel. If it's 1, then you have to send extra DCS commands to control PWM. If it's higher, use normal backlight class controls.
Hi Dmitry, Krzysztof
I have a few clarifying questions regarding the proposed approach. Please let me know if I've misunderstood anything.
panel_backlight: backlight {
compatible = "gpio-backlight";
gpios = <&tlmm 91 GPIO_ACTIVE_HIGH>;
default-on;
};1) Adding gpio-backlight and check for max_brightness level if its 1,
If we model LCD_BKLT_EN using gpio-backlight, the backlight device effectively exposes only on/off control (max_brightness = 1), we can't support the full range of brightness i.e 0 to 16383 (0x3FFF)
2) Adding gpio-backlight and based upon max_brightness level of 1 , are you suggesting to register another backlight device that can actually drive DCS brightness. In that case we can actually have the MIPI DCS controlled brightness
If so, wouldn't that result in two backlight devices associated with the same panel:
gpio-backlight device for enable/disable panel backlight device for DCS brightness control
Is that the expected design?
3) I previously tried modeling LCD_BKLT_EN using pinctrl states (panel_bl_en / panel_bl_suspend) for the enable GPIO itself. However, Dmitry suggested modeling it as a regulator instead:
4) Modeled optional regulator wled-supply: a regulator that only gates the external backlight driver chip's power/enable, with DCS remaining the sole brightness path in this current patch , the panel-himax-hx83121a.c does exactly the same.
Would this can be the preferred modeling for such panels?
Please refer to this Hardware diagram I explained earlier ,
Please let me know your suggestions.
Thanks,
Arpit
Neil Armstrong
maintainerRe: [PATCH 1/2] dt-bindings: display: panel: add optional wled-supply
Quoted 47 lines · Arpit Saini
Quoted 16 lines · Dmitry Baryshkov
Quoted 15 lines · Krzysztof Kozlowski
Quoted 10 lines · Krzysztof Kozlowski
Quoted 3 lines · Arpit Saini
Some boards drive the ILI7807S panel's backlight from an external WLED driver whose enable input is wired to a GPIO, typically modeled as a fixed regulator (e.g.
vreg_wled).You describe something else. What's fixed regulator should not matter here. Which pin is it in ILI7807S?
It seems you just want to represent GPIO with a regulator. This is just confusing and typical downstream workaround.
What's more, you basically REVERT the review YOU RECEIVED in v1. Really, just sneak the same stuff 3 months after like the review never happened.
Quoted 9 lines
Quoted 1 line
NAK
After discussing this offline with Krzysztof. It's not a supply (my fault), it's an LCD driver. So, the best way to handle your displaycard seems to add a gpio-backlight, reference it from the panel and then in the driver check for the backlight's
max_brightnesslevel. If it's 1, then you have to send extra DCS commands to control PWM. If it's higher, use normal backlight class controls.Hi Dmitry, Krzysztof
I have a few clarifying questions regarding the proposed approach. Please let me know if I've misunderstood anything.
panel_backlight: backlight { compatible = "gpio-backlight"; gpios = <&tlmm 91 GPIO_ACTIVE_HIGH>; default-on; };1) Adding gpio-backlight and check for
max_brightnesslevel if its 1,If we model
LCD_BKLT_ENusing gpio-backlight, the backlight device effectively exposes only on/off control (max_brightness= 1), we can't support the full range of brightness i.e 0 to 16383 (0x3FFF)2) Adding gpio-backlight and based upon
max_brightnesslevel of 1 , are you suggesting to register another backlight device that can actually drive DCS brightness. In that case we can actually have the MIPI DCS controlled brightness
Quoted 6 lines
If so, wouldn't that result in two backlight devices associated with the same panel:
gpio-backlight device for enable/disable panel backlight device for DCS brightness control
Is that the expected design?
It's a great question because there's a large variety of how backlight is implemented, and some panels can drive a PWM to an actually backlight controller which uses external pwm. In this case we should model the backlight IC as backlight driver with only 1 or 0 capability and use the DCS to program the PWM.
So it leads exactly to your issue. So perhaps one way would be to either:
- call into the gpio-backlight from the DCS callback, we may need to fix some locking issues
- add way to "link" backlight devices so the backlight value can be propagated
In any case the problem remains that both backlight devices will be exposed to userspace, which we don't want. So additional changes will be needed.
Quoted 24 lines
3) I previously tried modeling
LCD_BKLT_ENusing pinctrl states (panel_bl_en/panel_bl_suspend) for the enable GPIO itself. However, Dmitry suggested modeling it as a regulator instead:4) Modeled optional regulator wled-supply: a regulator that only gates the external backlight driver chip's power/enable, with DCS remaining the sole brightness path in this current patch , the
panel-himax-hx83121a.cdoes exactly the same.Would this can be the preferred modeling for such panels?
Please refer to this Hardware diagram I explained earlier ,
Please let me know your suggestions.
Thanks,
Arpit
Re: [PATCH 1/2] dt-bindings: display: panel: add optional wled-supply
Quoted 59 lines · Neil Armstrong
Quoted 43 lines · Arpit Saini
Quoted 16 lines · Dmitry Baryshkov
Quoted 15 lines · Krzysztof Kozlowski
Quoted 10 lines · Krzysztof Kozlowski
Quoted 3 lines · Arpit Saini
Some boards drive the ILI7807S panel's backlight from an external WLED driver whose enable input is wired to a GPIO, typically modeled as a fixed regulator (e.g.
vreg_wled).You describe something else. What's fixed regulator should not matter here. Which pin is it in ILI7807S?
It seems you just want to represent GPIO with a regulator. This is just confusing and typical downstream workaround.
What's more, you basically REVERT the review YOU RECEIVED in v1. Really, just sneak the same stuff 3 months after like the review never happened.
Quoted 9 lines
Quoted 1 line
NAK
After discussing this offline with Krzysztof. It's not a supply (my fault), it's an LCD driver. So, the best way to handle your displaycard seems to add a gpio-backlight, reference it from the panel and then in the driver check for the backlight's
max_brightnesslevel. If it's 1, then you have to send extra DCS commands to control PWM. If it's higher, use normal backlight class controls.Hi Dmitry, Krzysztof
I have a few clarifying questions regarding the proposed approach. Please let me know if I've misunderstood anything.
panel_backlight: backlight {
compatible = "gpio-backlight";
gpios = <&tlmm 91GPIO_ACTIVE_HIGH>;
default-on;
};1) Adding gpio-backlight and check for
max_brightnesslevel if its 1,If we model
LCD_BKLT_ENusing gpio-backlight, the backlight device effectively exposes only on/off control (max_brightness= 1), we can't support the full range of brightness i.e 0 to 16383 (0x3FFF)Quoted 8 lines
2) Adding gpio-backlight and based upon
max_brightnesslevel of 1 , are you suggesting to register another backlight device that can actually drive DCS brightness. In that case we can actually have the MIPI DCS controlled brightnessIf so, wouldn't that result in two backlight devices associated with the same panel:
gpio-backlight device for enable/disable panel backlight device for DCS brightness control Is that the expected design?
It's a great question because there's a large variety of how backlight is implemented, and some panels can drive a PWM to an actually backlight controller which uses external pwm. In this case we should model the backlight IC as backlight driver with only 1 or 0 capability and use the DCS to program the PWM.
Quoted 17 lines
So it leads exactly to your issue. So perhaps one way would be to either:
- call into the gpio-backlight from the DCS callback, we may need to fix some locking issues
- add way to "link" backlight devices so the backlight value can be propagatedIn any case the problem remains that both backlight devices will be exposed to userspace, which we don't want. So additional changes will be needed.
Quoted 9 lines
3) I previously tried modeling
LCD_BKLT_ENusing pinctrl states (panel_bl_en/panel_bl_suspend) for the enable GPIO itself. However, Dmitry suggested modeling it as a regulator instead:4) Modeled optional regulator wled-supply: a regulator that only gates the external backlight driver chip's power/enable, with DCS remaining the sole brightness path in this current patch , the
panel-himax-hx83121a.cdoes exactly the same. Would this can be the preferred modeling for such panels?
Hi Neil,
Could you please help me understand why we cannot model the external WLED enable path similarly to panel-himax-hx83121a.c using an optional bl_supply?
In our case, this supply would only enable or disable the external WLED driver through LCD_BKLT_EN/GPIO91, while the panel’s existing MIPI DCS backlight would continue to control the brightness.
This approach would also avoid exposing a second backlight device to userspace. Would this be an acceptable way to model the ILI7807S panel?
Thanks,
Arpit
Quoted 14 lines
Quoted 13 lines
Please refer to this Hardware diagram I explained earlier ,
Please let me know your suggestions.
Thanks,
Arpit
Re: [PATCH 1/2] dt-bindings: display: panel: add optional wled-supply
Quoted 84 lines · Arpit Saini
Quoted 59 lines · Neil Armstrong
Quoted 43 lines · Arpit Saini
Quoted 16 lines · Dmitry Baryshkov
Quoted 15 lines · Krzysztof Kozlowski
Quoted 10 lines · Krzysztof Kozlowski
Quoted 3 lines · Arpit Saini
Some boards drive the ILI7807S panel's backlight from an external WLED driver whose enable input is wired to a GPIO, typically modeled as a fixed regulator (e.g.
vreg_wled).You describe something else. What's fixed regulator should not matter here. Which pin is it in ILI7807S?
It seems you just want to represent GPIO with a regulator. This is just confusing and typical downstream workaround.
What's more, you basically REVERT the review YOU RECEIVED in v1. Really, just sneak the same stuff 3 months after like the review never happened.
Quoted 9 lines
Quoted 1 line
NAK
After discussing this offline with Krzysztof. It's not a supply (my fault), it's an LCD driver. So, the best way to handle your displaycard seems to add a gpio-backlight, reference it from the panel and then in the driver check for the backlight's
max_brightnesslevel. If it's 1, then you have to send extra DCS commands to control PWM. If it's higher, use normal backlight class controls.Hi Dmitry, Krzysztof
I have a few clarifying questions regarding the proposed approach. Please let me know if I've misunderstood anything.
panel_backlight: backlight {
compatible = "gpio-backlight";
gpios = <&tlmm 91GPIO_ACTIVE_HIGH>;
default-on;
};1) Adding gpio-backlight and check for
max_brightnesslevel if its 1,If we model
LCD_BKLT_ENusing gpio-backlight, the backlight device effectively exposes only on/off control (max_brightness= 1), we can't support the full range of brightness i.e 0 to 16383 (0x3FFF)Quoted 8 lines
2) Adding gpio-backlight and based upon
max_brightnesslevel of 1 , are you suggesting to register another backlight device that can actually drive DCS brightness. In that case we can actually have the MIPI DCS controlled brightnessIf so, wouldn't that result in two backlight devices associated with the same panel:
gpio-backlight device for enable/disable panel backlight device for DCS brightness control Is that the expected design?
It's a great question because there's a large variety of how backlight is implemented, and some panels can drive a PWM to an actually backlight controller which uses external pwm. In this case we should model the backlight IC as backlight driver with only 1 or 0 capability and use the DCS to program the PWM.
Quoted 17 lines
So it leads exactly to your issue. So perhaps one way would be to either:
- call into the gpio-backlight from the DCS callback, we may need to fix some locking issues
- add way to "link" backlight devices so the backlight value can be propagatedIn any case the problem remains that both backlight devices will be exposed to userspace, which we don't want. So additional changes will be needed.
Quoted 9 lines
3) I previously tried modeling
LCD_BKLT_ENusing pinctrl states (panel_bl_en/panel_bl_suspend) for the enable GPIO itself. However, Dmitry suggested modeling it as a regulator instead:4) Modeled optional regulator wled-supply: a regulator that only gates the external backlight driver chip's power/enable, with DCS remaining the sole brightness path in this current patch , the
panel-himax-hx83121a.cdoes exactly the same. Would this can be the preferred modeling for such panels?Hi Neil,
Could you please help me understand why we cannot model the external WLED enable path similarly to
panel-himax-hx83121a.cusing an optionalbl_supply?
Quoted 7 lines
In our case, this supply would only enable or disable the external WLED driver through LCD_BKLT_EN/GPIO91, while the panel’s existing MIPI DCS backlight would continue to control the brightness.
This approach would also avoid exposing a second backlight device to userspace. Would this be an acceptable way to model the ILI7807S panel?
Thanks,
Arpit
Hi Dmitry, Krzysztof, Neil,
Could you please clarify why we cannot model the ILI7807S backlight similarly to the approach used in panel-himax-hx83121a.c?
Reference:
https://lore.kernel.org/all/[email protected]/
Our hardware has a similar split-control arrangement:
- The panel driver controls brightness through MIPI DCS commands.
- An external WLED driver powers the panel backlight LEDs.
- LCD_BKLT_EN / GPIO91 only enables or disables the external WLED driver.
- No separate backlight device is required for brightness control.
Therefore, could LCD_BKLT_EN be modeled as an optional bl-supply,
with the panel driver enabling or disabling it while continuing to use DCS for brightness?
This would also avoid exposing a second backlight device to userspace.
If this approach is not suitable, could you please clarify what differs from the accepted panel-himax-hx83121a.c model, and advise on the preferred way to represent it ?
Thanks,
Arpit
Re: [PATCH 1/2] dt-bindings: display: panel: add optional wled-supply
Quoted 112 lines · Arpit Saini
Quoted 84 lines · Arpit Saini
Quoted 59 lines · Neil Armstrong
Quoted 43 lines · Arpit Saini
Quoted 16 lines · Dmitry Baryshkov
Quoted 15 lines · Krzysztof Kozlowski
Quoted 10 lines · Krzysztof Kozlowski
Quoted 3 lines · Arpit Saini
Some boards drive the ILI7807S panel's backlight from an external WLED driver whose enable input is wired to a GPIO, typically modeled as a fixed regulator (e.g.
vreg_wled).You describe something else. What's fixed regulator should not matter here. Which pin is it in ILI7807S?
It seems you just want to represent GPIO with a regulator. This is just confusing and typical downstream workaround.
What's more, you basically REVERT the review YOU RECEIVED in v1. Really, just sneak the same stuff 3 months after like the review never happened.
Quoted 9 lines
Quoted 1 line
NAK
After discussing this offline with Krzysztof. It's not a supply (my fault), it's an LCD driver. So, the best way to handle your displaycard seems to add a gpio-backlight, reference it from the panel and then in the driver check for the backlight's
max_brightnesslevel. If it's 1, then you have to send extra DCS commands to control PWM. If it's higher, use normal backlight class controls.Hi Dmitry, Krzysztof
I have a few clarifying questions regarding the proposed approach. Please let me know if I've misunderstood anything.
panel_backlight: backlight {
compatible = "gpio-backlight";
gpios = <&tlmm 91GPIO_ACTIVE_HIGH>;
default-on;
};1) Adding gpio-backlight and check for
max_brightnesslevel if its 1,If we model
LCD_BKLT_ENusing gpio-backlight, the backlight device effectively exposes only on/off control (max_brightness= 1), we can't support the full range of brightness i.e 0 to 16383 (0x3FFF)Quoted 8 lines
2) Adding gpio-backlight and based upon
max_brightnesslevel of 1 , are you suggesting to register another backlight device that can actually drive DCS brightness. In that case we can actually have the MIPI DCS controlled brightnessIf so, wouldn't that result in two backlight devices associated with the same panel:
gpio-backlight device for enable/disable panel backlight device for DCS brightness control Is that the expected design?
It's a great question because there's a large variety of how backlight is implemented, and some panels can drive a PWM to an actually backlight controller which uses external pwm. In this case we should model the backlight IC as backlight driver with only 1 or 0 capability and use the DCS to program the PWM.
Quoted 17 lines
So it leads exactly to your issue. So perhaps one way would be to either:
- call into the gpio-backlight from the DCS callback, we may need to fix some locking issues
- add way to "link" backlight devices so the backlight value can be propagatedIn any case the problem remains that both backlight devices will be exposed to userspace, which we don't want. So additional changes will be needed.
Quoted 9 lines
3) I previously tried modeling
LCD_BKLT_ENusing pinctrl states (panel_bl_en/panel_bl_suspend) for the enable GPIO itself. However, Dmitry suggested modeling it as a regulator instead:4) Modeled optional regulator wled-supply: a regulator that only gates the external backlight driver chip's power/enable, with DCS remaining the sole brightness path in this current patch , the
panel-himax-hx83121a.cdoes exactly the same. Would this can be the preferred modeling for such panels?Hi Neil,
Could you please help me understand why we cannot model the external WLED enable path similarly to
panel-himax-hx83121a.cusing an optionalbl_supply?Quoted 7 lines
In our case, this supply would only enable or disable the external WLED driver through LCD_BKLT_EN/GPIO91, while the panel’s existing MIPI DCS backlight would continue to control the brightness.
This approach would also avoid exposing a second backlight device to userspace. Would this be an acceptable way to model the ILI7807S panel?
Thanks,
ArpitHi Dmitry, Krzysztof, Neil,
Could you please clarify why we cannot model the ILI7807S backlight similarly to the approach used in
panel-himax-hx83121a.c?Reference:
https://lore.kernel.org/all/[email protected]/Our hardware has a similar split-control arrangement:
- The panel driver controls brightness through MIPI DCS commands.
- An external WLED driver powers the panel backlight LEDs.
-LCD_BKLT_EN/ GPIO91 only enables or disables the external WLED driver.
- No separate backlight device is required for brightness control.Therefore, could
LCD_BKLT_ENbe modeled as an optional bl-supply,
with the panel driver enabling or disabling it while continuing to use DCS for brightness?
Quoted 7 lines
This would also avoid exposing a second backlight device to userspace.
If this approach is not suitable, could you please clarify what differs from the accepted
panel-himax-hx83121a.cmodel, and advise on the preferred way to represent it ?Thanks,
Arpit
Hi Dmitry, Krzysztof, Neil,
A gentle follow-up on the backlight modeling discussion below.
I understand the concern that using a separate gpio-backlight could expose a second backlight device, and that additional changes might be needed to avoid that.
Could you help me understand why the external WLED enable path here cannot be modeled similarly to panel-himax-hx83121a.c, using an optional bl-supply?
In this design, the supply would only enable or disable the external WLED driver through LCD_BKLT_EN/GPIO91; brightness would remain controlled through MIPI DCS, with no separate backlight device for brightness.
If that approach is not suitable, could you please advise what differs from the panel-himax-hx83121a.c case and what model you would recommend? I’m happy to revise the series based on your guidance.
Thanks,
Arpit
PATCH 2/2 drm/panel: ili7807s: Add WLED supply
In reply to Arpit SainiSome boards drive the panel's backlight from an external WLED driver whose enable input is wired through a supply, typically modeled as a fixed regulator (e.g. vreg_wled).
Add the WLED supply to the panel's bulk regulator list so it can be enabled/disabled along with the other panel supplies.
--- drivers/gpu/drm/panel/panel-ilitek-ili7807s.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/panel/panel-ilitek-ili7807s.c +1 -0
@@ -38,6 +38,7 @@ static const struct regulator_bulk_data ili7807s_supplies[] = { { .supply = "vddi" }, { .supply = "avdd" }, { .supply = "avee" }, + { .supply = "wled" }, };static inline struct ili7807s *to_ili7807s (struct drm_panel *panel)
Signature · 1 line
2.34.1
Re: [PATCH 2/2] drm/panel: ili7807s: Add WLED supply
Quoted 8 lines · Arpit Saini
Some boards drive the panel's backlight from an external WLED driver whose enable input is wired through a supply, typically modeled as a fixed regulator (e.g.
vreg_wled).Add the WLED supply to the panel's bulk regulator list so it can be enabled/disabled along with the other panel supplies.
Fixes dd7ec83f4567 ("drm/panel: add Ilitek ILI7807S panel driver")
Not a fix. Read review you already received four months ago.
Best regards,
Krzysztof