Re: [PATCH 1/2] dt-bindings: display: ti,am65x-dss: Add support for common1 region

2024-02-14 Thread Devarsh Thakkar
Hi Tomi, Vignesh,

On 14/02/24 14:53, Tomi Valkeinen wrote:
> On 14/02/2024 11:10, Tomi Valkeinen wrote:
>> Hi,
>>
>> On 15/01/2024 14:57, Devarsh Thakkar wrote:
>>> TI keystone display subsystem present in AM65 and other SoCs such as AM62
>>> support two separate register spaces namely "common" and "common1" which
>>> can be used by two separate hosts to program the display controller as
>>> described in respective Technical Reference Manuals [1].
>>>
>>> The common1 register space has similar set of configuration registers as
>>> supported in common register space except the global configuration
>>> registers which are exclusive to common region.
>>>
>>> This adds binding for "common1" register region too as supported by the
>>> hardware.
>>>
>>> [1]:
>>> AM62x TRM:
>>> https://www.ti.com/lit/pdf/spruiv7 (Section 14.8.9.1 DSS Registers)
>>>
>>> AM65x TRM:
>>> https://www.ti.com/lit/pdf/spruid7 (Section 12.6.5 DSS Registers)
>>>
>>> Signed-off-by: Devarsh Thakkar 
>>> ---
>>>   .../devicetree/bindings/display/ti/ti,am65x-dss.yaml   | 7 +--
>>>   1 file changed, 5 insertions(+), 2 deletions(-)
>>>
>>> diff --git a/Documentation/devicetree/bindings/display/ti/ti,am65x-dss.yaml
>>> b/Documentation/devicetree/bindings/display/ti/ti,am65x-dss.yaml
>>> index b6767ef0d24d..55e3e490d0e6 100644
>>> --- a/Documentation/devicetree/bindings/display/ti/ti,am65x-dss.yaml
>>> +++ b/Documentation/devicetree/bindings/display/ti/ti,am65x-dss.yaml
>>> @@ -37,6 +37,7 @@ properties:
>>>     - description: OVR2 overlay manager for vp2
>>>     - description: VP1 video port 1
>>>     - description: VP2 video port 2
>>> +  - description: common1 DSS register area
>>>     reg-names:
>>>   items:
>>> @@ -47,6 +48,7 @@ properties:
>>>     - const: ovr2
>>>     - const: vp1
>>>     - const: vp2
>>> +  - const: common1
>>>     clocks:
>>>   items:
>>> @@ -147,9 +149,10 @@ examples:
>>>   <0x04a07000 0x1000>, /* ovr1 */
>>>   <0x04a08000 0x1000>, /* ovr2 */
>>>   <0x04a0a000 0x1000>, /* vp1 */
>>> -    <0x04a0b000 0x1000>; /* vp2 */
>>> +    <0x04a0b000 0x1000>, /* vp2 */
>>> +    <0x04a01000 0x1000>; /* common1 */
>>>   reg-names = "common", "vidl1", "vid",
>>> -    "ovr1", "ovr2", "vp1", "vp2";
>>> +    "ovr1", "ovr2", "vp1", "vp2", "common1";
>>>   ti,am65x-oldi-io-ctrl = <_oldi_io_ctrl>;
>>>   power-domains = <_pds 67 TI_SCI_PD_EXCLUSIVE>;
>>>   clocks =    <_clks 67 1>,
>>
>> Looks fine to me, I'll apply to drm-misc-next.
> 
> Hmm, now thinking about this, doesn't this cause dtb checks to start failing,
> as the dtbs are missing one entry? Is it better to merge these kind of changes
> with the dts changes? Or does it matter?
> 

Yes if one get's applied and other doesn't then there will be such issues.
I am sending shortly both the dt-binding and device-tree patches together, as
long as both look fine and ready to be accepted by respective maintainers, I
think both can get merged to respective trees and land in linux-next without
causing any issues.

Regards
Devarsh

>  Tomi
> 


Re: [PATCH 1/2] dt-bindings: display: ti,am65x-dss: Add support for common1 region

2024-02-14 Thread Tomi Valkeinen

On 14/02/2024 11:10, Tomi Valkeinen wrote:

Hi,

On 15/01/2024 14:57, Devarsh Thakkar wrote:

TI keystone display subsystem present in AM65 and other SoCs such as AM62
support two separate register spaces namely "common" and "common1" which
can be used by two separate hosts to program the display controller as
described in respective Technical Reference Manuals [1].

The common1 register space has similar set of configuration registers as
supported in common register space except the global configuration
registers which are exclusive to common region.

This adds binding for "common1" register region too as supported by the
hardware.

[1]:
AM62x TRM:
https://www.ti.com/lit/pdf/spruiv7 (Section 14.8.9.1 DSS Registers)

AM65x TRM:
https://www.ti.com/lit/pdf/spruid7 (Section 12.6.5 DSS Registers)

Signed-off-by: Devarsh Thakkar 
---
  .../devicetree/bindings/display/ti/ti,am65x-dss.yaml   | 7 +--
  1 file changed, 5 insertions(+), 2 deletions(-)

diff --git 
a/Documentation/devicetree/bindings/display/ti/ti,am65x-dss.yaml 
b/Documentation/devicetree/bindings/display/ti/ti,am65x-dss.yaml

index b6767ef0d24d..55e3e490d0e6 100644
--- a/Documentation/devicetree/bindings/display/ti/ti,am65x-dss.yaml
+++ b/Documentation/devicetree/bindings/display/ti/ti,am65x-dss.yaml
@@ -37,6 +37,7 @@ properties:
    - description: OVR2 overlay manager for vp2
    - description: VP1 video port 1
    - description: VP2 video port 2
+  - description: common1 DSS register area
    reg-names:
  items:
@@ -47,6 +48,7 @@ properties:
    - const: ovr2
    - const: vp1
    - const: vp2
+  - const: common1
    clocks:
  items:
@@ -147,9 +149,10 @@ examples:
  <0x04a07000 0x1000>, /* ovr1 */
  <0x04a08000 0x1000>, /* ovr2 */
  <0x04a0a000 0x1000>, /* vp1 */
-    <0x04a0b000 0x1000>; /* vp2 */
+    <0x04a0b000 0x1000>, /* vp2 */
+    <0x04a01000 0x1000>; /* common1 */
  reg-names = "common", "vidl1", "vid",
-    "ovr1", "ovr2", "vp1", "vp2";
+    "ovr1", "ovr2", "vp1", "vp2", "common1";
  ti,am65x-oldi-io-ctrl = <_oldi_io_ctrl>;
  power-domains = <_pds 67 TI_SCI_PD_EXCLUSIVE>;
  clocks =    <_clks 67 1>,


Looks fine to me, I'll apply to drm-misc-next.


Hmm, now thinking about this, doesn't this cause dtb checks to start 
failing, as the dtbs are missing one entry? Is it better to merge these 
kind of changes with the dts changes? Or does it matter?


 Tomi



Re: [PATCH 1/2] dt-bindings: display: ti,am65x-dss: Add support for common1 region

2024-02-14 Thread Tomi Valkeinen

Hi,

On 15/01/2024 14:57, Devarsh Thakkar wrote:

TI keystone display subsystem present in AM65 and other SoCs such as AM62
support two separate register spaces namely "common" and "common1" which
can be used by two separate hosts to program the display controller as
described in respective Technical Reference Manuals [1].

The common1 register space has similar set of configuration registers as
supported in common register space except the global configuration
registers which are exclusive to common region.

This adds binding for "common1" register region too as supported by the
hardware.

[1]:
AM62x TRM:
https://www.ti.com/lit/pdf/spruiv7 (Section 14.8.9.1 DSS Registers)

AM65x TRM:
https://www.ti.com/lit/pdf/spruid7 (Section 12.6.5 DSS Registers)

Signed-off-by: Devarsh Thakkar 
---
  .../devicetree/bindings/display/ti/ti,am65x-dss.yaml   | 7 +--
  1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/Documentation/devicetree/bindings/display/ti/ti,am65x-dss.yaml 
b/Documentation/devicetree/bindings/display/ti/ti,am65x-dss.yaml
index b6767ef0d24d..55e3e490d0e6 100644
--- a/Documentation/devicetree/bindings/display/ti/ti,am65x-dss.yaml
+++ b/Documentation/devicetree/bindings/display/ti/ti,am65x-dss.yaml
@@ -37,6 +37,7 @@ properties:
- description: OVR2 overlay manager for vp2
- description: VP1 video port 1
- description: VP2 video port 2
+  - description: common1 DSS register area
  
reg-names:

  items:
@@ -47,6 +48,7 @@ properties:
- const: ovr2
- const: vp1
- const: vp2
+  - const: common1
  
clocks:

  items:
@@ -147,9 +149,10 @@ examples:
  <0x04a07000 0x1000>, /* ovr1 */
  <0x04a08000 0x1000>, /* ovr2 */
  <0x04a0a000 0x1000>, /* vp1 */
-<0x04a0b000 0x1000>; /* vp2 */
+<0x04a0b000 0x1000>, /* vp2 */
+<0x04a01000 0x1000>; /* common1 */
  reg-names = "common", "vidl1", "vid",
-"ovr1", "ovr2", "vp1", "vp2";
+"ovr1", "ovr2", "vp1", "vp2", "common1";
  ti,am65x-oldi-io-ctrl = <_oldi_io_ctrl>;
  power-domains = <_pds 67 TI_SCI_PD_EXCLUSIVE>;
  clocks =<_clks 67 1>,


Looks fine to me, I'll apply to drm-misc-next.

 Tomi



Re: [PATCH 1/2] dt-bindings: display: ti,am65x-dss: Add support for common1 region

2024-01-16 Thread Conor Dooley
On Tue, Jan 16, 2024 at 02:43:25PM +0530, Devarsh Thakkar wrote:
> Hi Conor,
> 
> Thanks for the review.
> 
> On 15/01/24 21:47, Conor Dooley wrote:
> > On Mon, Jan 15, 2024 at 06:27:15PM +0530, Devarsh Thakkar wrote:
> >> TI keystone display subsystem present in AM65 and other SoCs such as AM62
> > 
> > Do all 3 SoCs supported by this binding (am625 am62a7 am65x) have this
> > common1 register? If not, you should limit it the platforms that do have
> > it.
> > 
> 
> Yes all 3 SoCs supported by binding have common1 register space supported.

Okay, thanks.

Acked-by: Conor Dooley 

Cheers,
Conor.


signature.asc
Description: PGP signature


Re: [PATCH 1/2] dt-bindings: display: ti,am65x-dss: Add support for common1 region

2024-01-16 Thread Devarsh Thakkar
Hi Conor,

Thanks for the review.

On 15/01/24 21:47, Conor Dooley wrote:
> On Mon, Jan 15, 2024 at 06:27:15PM +0530, Devarsh Thakkar wrote:
>> TI keystone display subsystem present in AM65 and other SoCs such as AM62
> 
> Do all 3 SoCs supported by this binding (am625 am62a7 am65x) have this
> common1 register? If not, you should limit it the platforms that do have
> it.
> 

Yes all 3 SoCs supported by binding have common1 register space supported.

AM62x TRM:
https://www.ti.com/lit/pdf/spruiv7 (Section 14.8.9.1 DSS Registers)

AM65x TRM:
https://www.ti.com/lit/pdf/spruid7 (Section 12.6.5 DSS Registers)

AM62A TRM:
https://www.ti.com/lit/pdf/spruj16 (Section 14.9.9.1 DSS Registers)

Regards
Devarsh

> Thanks,
> Conor.
> 
>> support two separate register spaces namely "common" and "common1" which
>> can be used by two separate hosts to program the display controller as
>> described in respective Technical Reference Manuals [1].
>>
>> The common1 register space has similar set of configuration registers as
>> supported in common register space except the global configuration
>> registers which are exclusive to common region.
>>
>> This adds binding for "common1" register region too as supported by the
>> hardware.
>>
>> [1]:
>> AM62x TRM:
>> https://www.ti.com/lit/pdf/spruiv7 (Section 14.8.9.1 DSS Registers)
>>
>> AM65x TRM:
>> https://www.ti.com/lit/pdf/spruid7 (Section 12.6.5 DSS Registers)
>>
>> Signed-off-by: Devarsh Thakkar 
>> ---
>>  .../devicetree/bindings/display/ti/ti,am65x-dss.yaml   | 7 +--
>>  1 file changed, 5 insertions(+), 2 deletions(-)
>>
>> diff --git a/Documentation/devicetree/bindings/display/ti/ti,am65x-dss.yaml 
>> b/Documentation/devicetree/bindings/display/ti/ti,am65x-dss.yaml
>> index b6767ef0d24d..55e3e490d0e6 100644
>> --- a/Documentation/devicetree/bindings/display/ti/ti,am65x-dss.yaml
>> +++ b/Documentation/devicetree/bindings/display/ti/ti,am65x-dss.yaml
>> @@ -37,6 +37,7 @@ properties:
>>- description: OVR2 overlay manager for vp2
>>- description: VP1 video port 1
>>- description: VP2 video port 2
>> +  - description: common1 DSS register area
>>  
>>reg-names:
>>  items:
>> @@ -47,6 +48,7 @@ properties:
>>- const: ovr2
>>- const: vp1
>>- const: vp2
>> +  - const: common1
>>  
>>clocks:
>>  items:
>> @@ -147,9 +149,10 @@ examples:
>>  <0x04a07000 0x1000>, /* ovr1 */
>>  <0x04a08000 0x1000>, /* ovr2 */
>>  <0x04a0a000 0x1000>, /* vp1 */
>> -<0x04a0b000 0x1000>; /* vp2 */
>> +<0x04a0b000 0x1000>, /* vp2 */
>> +<0x04a01000 0x1000>; /* common1 */
>>  reg-names = "common", "vidl1", "vid",
>> -"ovr1", "ovr2", "vp1", "vp2";
>> +"ovr1", "ovr2", "vp1", "vp2", "common1";
>>  ti,am65x-oldi-io-ctrl = <_oldi_io_ctrl>;
>>  power-domains = <_pds 67 TI_SCI_PD_EXCLUSIVE>;
>>  clocks =<_clks 67 1>,
>> -- 
>> 2.34.1
>>


Re: [PATCH 1/2] dt-bindings: display: ti,am65x-dss: Add support for common1 region

2024-01-15 Thread Conor Dooley
On Mon, Jan 15, 2024 at 06:27:15PM +0530, Devarsh Thakkar wrote:
> TI keystone display subsystem present in AM65 and other SoCs such as AM62

Do all 3 SoCs supported by this binding (am625 am62a7 am65x) have this
common1 register? If not, you should limit it the platforms that do have
it.

Thanks,
Conor.

> support two separate register spaces namely "common" and "common1" which
> can be used by two separate hosts to program the display controller as
> described in respective Technical Reference Manuals [1].
> 
> The common1 register space has similar set of configuration registers as
> supported in common register space except the global configuration
> registers which are exclusive to common region.
> 
> This adds binding for "common1" register region too as supported by the
> hardware.
> 
> [1]:
> AM62x TRM:
> https://www.ti.com/lit/pdf/spruiv7 (Section 14.8.9.1 DSS Registers)
> 
> AM65x TRM:
> https://www.ti.com/lit/pdf/spruid7 (Section 12.6.5 DSS Registers)
> 
> Signed-off-by: Devarsh Thakkar 
> ---
>  .../devicetree/bindings/display/ti/ti,am65x-dss.yaml   | 7 +--
>  1 file changed, 5 insertions(+), 2 deletions(-)
> 
> diff --git a/Documentation/devicetree/bindings/display/ti/ti,am65x-dss.yaml 
> b/Documentation/devicetree/bindings/display/ti/ti,am65x-dss.yaml
> index b6767ef0d24d..55e3e490d0e6 100644
> --- a/Documentation/devicetree/bindings/display/ti/ti,am65x-dss.yaml
> +++ b/Documentation/devicetree/bindings/display/ti/ti,am65x-dss.yaml
> @@ -37,6 +37,7 @@ properties:
>- description: OVR2 overlay manager for vp2
>- description: VP1 video port 1
>- description: VP2 video port 2
> +  - description: common1 DSS register area
>  
>reg-names:
>  items:
> @@ -47,6 +48,7 @@ properties:
>- const: ovr2
>- const: vp1
>- const: vp2
> +  - const: common1
>  
>clocks:
>  items:
> @@ -147,9 +149,10 @@ examples:
>  <0x04a07000 0x1000>, /* ovr1 */
>  <0x04a08000 0x1000>, /* ovr2 */
>  <0x04a0a000 0x1000>, /* vp1 */
> -<0x04a0b000 0x1000>; /* vp2 */
> +<0x04a0b000 0x1000>, /* vp2 */
> +<0x04a01000 0x1000>; /* common1 */
>  reg-names = "common", "vidl1", "vid",
> -"ovr1", "ovr2", "vp1", "vp2";
> +"ovr1", "ovr2", "vp1", "vp2", "common1";
>  ti,am65x-oldi-io-ctrl = <_oldi_io_ctrl>;
>  power-domains = <_pds 67 TI_SCI_PD_EXCLUSIVE>;
>  clocks =<_clks 67 1>,
> -- 
> 2.34.1
> 


signature.asc
Description: PGP signature


[PATCH 1/2] dt-bindings: display: ti, am65x-dss: Add support for common1 region

2024-01-15 Thread Devarsh Thakkar
TI keystone display subsystem present in AM65 and other SoCs such as AM62
support two separate register spaces namely "common" and "common1" which
can be used by two separate hosts to program the display controller as
described in respective Technical Reference Manuals [1].

The common1 register space has similar set of configuration registers as
supported in common register space except the global configuration
registers which are exclusive to common region.

This adds binding for "common1" register region too as supported by the
hardware.

[1]:
AM62x TRM:
https://www.ti.com/lit/pdf/spruiv7 (Section 14.8.9.1 DSS Registers)

AM65x TRM:
https://www.ti.com/lit/pdf/spruid7 (Section 12.6.5 DSS Registers)

Signed-off-by: Devarsh Thakkar 
---
 .../devicetree/bindings/display/ti/ti,am65x-dss.yaml   | 7 +--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/Documentation/devicetree/bindings/display/ti/ti,am65x-dss.yaml 
b/Documentation/devicetree/bindings/display/ti/ti,am65x-dss.yaml
index b6767ef0d24d..55e3e490d0e6 100644
--- a/Documentation/devicetree/bindings/display/ti/ti,am65x-dss.yaml
+++ b/Documentation/devicetree/bindings/display/ti/ti,am65x-dss.yaml
@@ -37,6 +37,7 @@ properties:
   - description: OVR2 overlay manager for vp2
   - description: VP1 video port 1
   - description: VP2 video port 2
+  - description: common1 DSS register area
 
   reg-names:
 items:
@@ -47,6 +48,7 @@ properties:
   - const: ovr2
   - const: vp1
   - const: vp2
+  - const: common1
 
   clocks:
 items:
@@ -147,9 +149,10 @@ examples:
 <0x04a07000 0x1000>, /* ovr1 */
 <0x04a08000 0x1000>, /* ovr2 */
 <0x04a0a000 0x1000>, /* vp1 */
-<0x04a0b000 0x1000>; /* vp2 */
+<0x04a0b000 0x1000>, /* vp2 */
+<0x04a01000 0x1000>; /* common1 */
 reg-names = "common", "vidl1", "vid",
-"ovr1", "ovr2", "vp1", "vp2";
+"ovr1", "ovr2", "vp1", "vp2", "common1";
 ti,am65x-oldi-io-ctrl = <_oldi_io_ctrl>;
 power-domains = <_pds 67 TI_SCI_PD_EXCLUSIVE>;
 clocks =<_clks 67 1>,
-- 
2.34.1