diff mbox series

[1/2] dt-bindings: analogix-dp: Add backlight-pwm-passthru

Message ID 20180316025659.217423-2-amstan@chromium.org
State Changes Requested, archived
Headers show
Series Add backlight-pwm-passthru in analogix DP driver | expand

Commit Message

Alexandru M Stan March 16, 2018, 2:56 a.m. UTC
Documentation for the optional backlight-pwm-passthru property.
Tells the EDP panel to folow the input pwm frequency instead
of generating its own.

Signed-off-by: Alexandru M Stan <amstan@chromium.org>
---

 Documentation/devicetree/bindings/display/bridge/analogix_dp.txt | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Archit Taneja March 16, 2018, 9:26 a.m. UTC | #1
On Friday 16 March 2018 08:26 AM, Alexandru M Stan wrote:
> Documentation for the optional backlight-pwm-passthru property.
> Tells the EDP panel to folow the input pwm frequency instead

s/folow/follow

It would be nice if we could add the details you mentioned in
patch #0 in either this or the next patch.

> of generating its own.

This is one of those bindings which is more a knob than a HW property,
but I can't think of any easy way to figure this out in SW. So, I guess
it's okay to have.

One thing I was wondering about was whether this prop should belong to
the eDP controller or the eDP panel. I don't have any strong opinion
about it, though.

Reviewed-by: Archit Taneja <architt@codeaurora.org>

Thanks,
Archit


> 
> Signed-off-by: Alexandru M Stan <amstan@chromium.org>
> ---
> 
>   Documentation/devicetree/bindings/display/bridge/analogix_dp.txt | 4 ++++
>   1 file changed, 4 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/display/bridge/analogix_dp.txt b/Documentation/devicetree/bindings/display/bridge/analogix_dp.txt
> index 0c7473dd0e51..3c15242f6ce3 100644
> --- a/Documentation/devicetree/bindings/display/bridge/analogix_dp.txt
> +++ b/Documentation/devicetree/bindings/display/bridge/analogix_dp.txt
> @@ -23,6 +23,10 @@ Required properties for dp-controller:
>   		from general PHY binding: Should be "dp".
>   
>   Optional properties for dp-controller:
> +	-backlight-pwm-passthru:
> +		Directly pass the PWM frequency applied to the BL_PWM_DIM
> +		pin to the backlight current source. Done via
> +		EDP_BACKLIGHT_MODE_SET_REGISTER on DPCD.
>   	-force-hpd:
>   		Indicate driver need force hpd when hpd detect failed, this
>   		is used for some eDP screen which don't have hpd signal.
> 
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Rob Herring March 18, 2018, 12:52 p.m. UTC | #2
On Fri, Mar 16, 2018 at 02:56:09PM +0530, Archit Taneja wrote:
> 
> 
> On Friday 16 March 2018 08:26 AM, Alexandru M Stan wrote:
> > Documentation for the optional backlight-pwm-passthru property.
> > Tells the EDP panel to folow the input pwm frequency instead
> 
> s/folow/follow
> 
> It would be nice if we could add the details you mentioned in
> patch #0 in either this or the next patch.
> 
> > of generating its own.
> 
> This is one of those bindings which is more a knob than a HW property,
> but I can't think of any easy way to figure this out in SW. So, I guess
> it's okay to have.
> 
> One thing I was wondering about was whether this prop should belong to
> the eDP controller or the eDP panel. I don't have any strong opinion
> about it, though.

Seems to me, it should be the panel. It's a setting in the panel, right?

Is this generic to DP panels or something specific to a certain panel? 
The naming (vendor prefix or not) and doc location should match 
whatever the answer to that is.

> 
> Reviewed-by: Archit Taneja <architt@codeaurora.org>
> 
> Thanks,
> Archit
> 
> 
> > 
> > Signed-off-by: Alexandru M Stan <amstan@chromium.org>
> > ---
> > 
> >   Documentation/devicetree/bindings/display/bridge/analogix_dp.txt | 4 ++++
> >   1 file changed, 4 insertions(+)
> > 
> > diff --git a/Documentation/devicetree/bindings/display/bridge/analogix_dp.txt b/Documentation/devicetree/bindings/display/bridge/analogix_dp.txt
> > index 0c7473dd0e51..3c15242f6ce3 100644
> > --- a/Documentation/devicetree/bindings/display/bridge/analogix_dp.txt
> > +++ b/Documentation/devicetree/bindings/display/bridge/analogix_dp.txt
> > @@ -23,6 +23,10 @@ Required properties for dp-controller:
> >   		from general PHY binding: Should be "dp".
> >   Optional properties for dp-controller:
> > +	-backlight-pwm-passthru:
> > +		Directly pass the PWM frequency applied to the BL_PWM_DIM
> > +		pin to the backlight current source. Done via
> > +		EDP_BACKLIGHT_MODE_SET_REGISTER on DPCD.
> >   	-force-hpd:
> >   		Indicate driver need force hpd when hpd detect failed, this
> >   		is used for some eDP screen which don't have hpd signal.
> > 
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Laurent Pinchart March 20, 2018, 2:07 p.m. UTC | #3
Hello,

On Sunday, 18 March 2018 14:52:45 EET Rob Herring wrote:
> On Fri, Mar 16, 2018 at 02:56:09PM +0530, Archit Taneja wrote:
> > On Friday 16 March 2018 08:26 AM, Alexandru M Stan wrote:
> > > Documentation for the optional backlight-pwm-passthru property.
> > > Tells the EDP panel to folow the input pwm frequency instead
> > 
> > s/folow/follow
> > 
> > It would be nice if we could add the details you mentioned in
> > patch #0 in either this or the next patch.
> > 
> > > of generating its own.
> > 
> > This is one of those bindings which is more a knob than a HW property,
> > but I can't think of any easy way to figure this out in SW. So, I guess
> > it's okay to have.
> > 
> > One thing I was wondering about was whether this prop should belong to
> > the eDP controller or the eDP panel. I don't have any strong opinion
> > about it, though.
> 
> Seems to me, it should be the panel. It's a setting in the panel, right?

As this aims at fixing an issue with the panel, I agree it should be a panel 
property.

Stupid question (I'm not too familiar with eDP panels), couldn't we set 
EDP_BACKLIGHT_FREQ_PWM_PIN_PASSTHRU unconditionally ?

> Is this generic to DP panels or something specific to a certain panel?
> The naming (vendor prefix or not) and doc location should match
> whatever the answer to that is.
> 
> > Reviewed-by: Archit Taneja <architt@codeaurora.org>
> > 
> > Thanks,
> > Archit
> > 
> > > Signed-off-by: Alexandru M Stan <amstan@chromium.org>
> > > ---
> > > 
> > >   Documentation/devicetree/bindings/display/bridge/analogix_dp.txt | 4
> > >   ++++
> > >   1 file changed, 4 insertions(+)
> > > 
> > > diff --git
> > > a/Documentation/devicetree/bindings/display/bridge/analogix_dp.txt
> > > b/Documentation/devicetree/bindings/display/bridge/analogix_dp.txt
> > > index 0c7473dd0e51..3c15242f6ce3 100644
> > > --- a/Documentation/devicetree/bindings/display/bridge/analogix_dp.txt
> > > +++ b/Documentation/devicetree/bindings/display/bridge/analogix_dp.txt
> > > 
> > > @@ -23,6 +23,10 @@ Required properties for dp-controller:
> > >   		from general PHY binding: Should be "dp".
> > >   
> > >   Optional properties for dp-controller:
> > > +	-backlight-pwm-passthru:
> > > +		Directly pass the PWM frequency applied to the BL_PWM_DIM
> > > +		pin to the backlight current source. Done via
> > > +		EDP_BACKLIGHT_MODE_SET_REGISTER on DPCD.
> > > 
> > >   	-force-hpd:
> > >   		Indicate driver need force hpd when hpd detect failed, this
> > >   		is used for some eDP screen which don't have hpd signal.
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/display/bridge/analogix_dp.txt b/Documentation/devicetree/bindings/display/bridge/analogix_dp.txt
index 0c7473dd0e51..3c15242f6ce3 100644
--- a/Documentation/devicetree/bindings/display/bridge/analogix_dp.txt
+++ b/Documentation/devicetree/bindings/display/bridge/analogix_dp.txt
@@ -23,6 +23,10 @@  Required properties for dp-controller:
 		from general PHY binding: Should be "dp".
 
 Optional properties for dp-controller:
+	-backlight-pwm-passthru:
+		Directly pass the PWM frequency applied to the BL_PWM_DIM
+		pin to the backlight current source. Done via
+		EDP_BACKLIGHT_MODE_SET_REGISTER on DPCD.
 	-force-hpd:
 		Indicate driver need force hpd when hpd detect failed, this
 		is used for some eDP screen which don't have hpd signal.