diff mbox

[1/2] drm/fsl-dcu: update the panel dt binding document

Message ID 1467106748-19314-1-git-send-email-meng.yi@nxp.com (mailing list archive)
State New, archived
Headers show

Commit Message

Meng Yi June 28, 2016, 9:39 a.m. UTC
dropped the old "fsl,panel" property, using the of_graph dt
binding syntax

Signed-off-by: Meng Yi <meng.yi@nxp.com>
---
 Documentation/devicetree/bindings/display/fsl,dcu.txt | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

Comments

Rob Herring (Arm) June 28, 2016, 9:07 p.m. UTC | #1
On Tue, Jun 28, 2016 at 05:39:07PM +0800, Meng Yi wrote:
> dropped the old "fsl,panel" property, using the of_graph dt
> binding syntax
> 
> Signed-off-by: Meng Yi <meng.yi@nxp.com>
> ---
>  Documentation/devicetree/bindings/display/fsl,dcu.txt | 9 +++++++--
>  1 file changed, 7 insertions(+), 2 deletions(-)
> 
> diff --git a/Documentation/devicetree/bindings/display/fsl,dcu.txt b/Documentation/devicetree/bindings/display/fsl,dcu.txt
> index ae55cde..f44cf5b 100644
> --- a/Documentation/devicetree/bindings/display/fsl,dcu.txt
> +++ b/Documentation/devicetree/bindings/display/fsl,dcu.txt
> @@ -12,7 +12,7 @@ Required properties:
>  - clock-names:		Should be "dcu" and "pix"
>  			See ../clocks/clock-bindings.txt for details.
>  - big-endian		Boolean property, LS1021A DCU registers are big-endian.
> -- fsl,panel:		The phandle to panel node.
> +- port			Video port for the panel output
>  
>  Optional properties:
>  - fsl,tcon:		The phandle to the timing controller node.
> @@ -24,6 +24,11 @@ dcu: dcu@2ce0000 {
>  	clocks = <&platform_clk 0>, <&platform_clk 0>;
>  	clock-names = "dcu", "pix";
>  	big-endian;
> -	fsl,panel = <&panel>;
>  	fsl,tcon = <&tcon>;
> +
> +	port: port@0 {

Drop the unit address. With that,

Acked-by: Rob Herring <robh@kernel.org>

> +		dcu_out: endpoint {
> +			remote-endpoint = <&panel_out>;
> +		};
> +	};
>  };
> -- 
> 2.1.0.27.g96db324
> 
> --
> 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
Stefan Agner June 28, 2016, 9:18 p.m. UTC | #2
On 2016-06-28 14:07, Rob Herring wrote:
> On Tue, Jun 28, 2016 at 05:39:07PM +0800, Meng Yi wrote:
>> dropped the old "fsl,panel" property, using the of_graph dt
>> binding syntax
>>
>> Signed-off-by: Meng Yi <meng.yi@nxp.com>
>> ---
>>  Documentation/devicetree/bindings/display/fsl,dcu.txt | 9 +++++++--
>>  1 file changed, 7 insertions(+), 2 deletions(-)
>>
>> diff --git a/Documentation/devicetree/bindings/display/fsl,dcu.txt b/Documentation/devicetree/bindings/display/fsl,dcu.txt
>> index ae55cde..f44cf5b 100644
>> --- a/Documentation/devicetree/bindings/display/fsl,dcu.txt
>> +++ b/Documentation/devicetree/bindings/display/fsl,dcu.txt
>> @@ -12,7 +12,7 @@ Required properties:
>>  - clock-names:		Should be "dcu" and "pix"
>>  			See ../clocks/clock-bindings.txt for details.
>>  - big-endian		Boolean property, LS1021A DCU registers are big-endian.
>> -- fsl,panel:		The phandle to panel node.
>> +- port			Video port for the panel output
>>
>>  Optional properties:
>>  - fsl,tcon:		The phandle to the timing controller node.
>> @@ -24,6 +24,11 @@ dcu: dcu@2ce0000 {
>>  	clocks = <&platform_clk 0>, <&platform_clk 0>;
>>  	clock-names = "dcu", "pix";
>>  	big-endian;
>> -	fsl,panel = <&panel>;
>>  	fsl,tcon = <&tcon>;
>> +
>> +	port: port@0 {
> 
> Drop the unit address. With that,

I was going to say add a corresponding reg property and specify
address-cells.

So is it ok to also create a port without address?

If yes, we should probably be consistent and also not use the unit
address in patch 2/2 (since that panel also has only one port).

--
Stefan

> 
> Acked-by: Rob Herring <robh@kernel.org>
> 
>> +		dcu_out: endpoint {
>> +			remote-endpoint = <&panel_out>;
>> +		};
>> +	};
>>  };
>> --
>> 2.1.0.27.g96db324
>>
>> --
>> 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
Meng Yi June 29, 2016, 2:58 a.m. UTC | #3
> >>  Optional properties:
> >>  - fsl,tcon:		The phandle to the timing controller node.
> >> @@ -24,6 +24,11 @@ dcu: dcu@2ce0000 {
> >>  	clocks = <&platform_clk 0>, <&platform_clk 0>;
> >>  	clock-names = "dcu", "pix";
> >>  	big-endian;
> >> -	fsl,panel = <&panel>;
> >>  	fsl,tcon = <&tcon>;
> >> +
> >> +	port: port@0 {
> >
> > Drop the unit address. With that,
> 
> I was going to say add a corresponding reg property and specify address-cells.
> 

For now, we only have one 'remote-endpoint', you mean maybe we should
use 'ports' that prepare for multiple connections?

> So is it ok to also create a port without address?
> 

It works fine, I think it is ok.

Best Regards,
Meng
Stefan Agner June 29, 2016, 5:40 a.m. UTC | #4
On 2016-06-28 19:58, Meng Yi wrote:
>> >>  Optional properties:
>> >>  - fsl,tcon:		The phandle to the timing controller node.
>> >> @@ -24,6 +24,11 @@ dcu: dcu@2ce0000 {
>> >>  	clocks = <&platform_clk 0>, <&platform_clk 0>;
>> >>  	clock-names = "dcu", "pix";
>> >>  	big-endian;
>> >> -	fsl,panel = <&panel>;
>> >>  	fsl,tcon = <&tcon>;
>> >> +
>> >> +	port: port@0 {
>> >
>> > Drop the unit address. With that,
>>
>> I was going to say add a corresponding reg property and specify address-cells.
>>
> 
> For now, we only have one 'remote-endpoint', you mean maybe we should
> use 'ports' that prepare for multiple connections?
> 

I ment to add the address because most drivers do. But then, most
drivers support multiple ports.

>> So is it ok to also create a port without address?
>>
> 
> It works fine, I think it is ok.

I guess it is ok too since Rob suggested it. However, consequently I
also would drop the unit address of the port node inside the panel node.

--
Stefan
diff mbox

Patch

diff --git a/Documentation/devicetree/bindings/display/fsl,dcu.txt b/Documentation/devicetree/bindings/display/fsl,dcu.txt
index ae55cde..f44cf5b 100644
--- a/Documentation/devicetree/bindings/display/fsl,dcu.txt
+++ b/Documentation/devicetree/bindings/display/fsl,dcu.txt
@@ -12,7 +12,7 @@  Required properties:
 - clock-names:		Should be "dcu" and "pix"
 			See ../clocks/clock-bindings.txt for details.
 - big-endian		Boolean property, LS1021A DCU registers are big-endian.
-- fsl,panel:		The phandle to panel node.
+- port			Video port for the panel output
 
 Optional properties:
 - fsl,tcon:		The phandle to the timing controller node.
@@ -24,6 +24,11 @@  dcu: dcu@2ce0000 {
 	clocks = <&platform_clk 0>, <&platform_clk 0>;
 	clock-names = "dcu", "pix";
 	big-endian;
-	fsl,panel = <&panel>;
 	fsl,tcon = <&tcon>;
+
+	port: port@0 {
+		dcu_out: endpoint {
+			remote-endpoint = <&panel_out>;
+		};
+	};
 };