Skip to contentSkip to conversation

dt-bindings: display: bridge: renesas,dsi: allow properties from dsi-controller

PATCH Applied Hugo Villeneuve 3 participants 7 messages May 20, 2025

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 dt-bindings: display: bridge: renesas,dsi: allow properties from dsi-controller

From: Hugo Villeneuve <[email protected]>

Allow to inherit valid properties from the dsi-controller. This fixes the following warning when adding a panel property:

rzg2lc.dtb: dsi@10850000: '#address-cells', '#size-cells', 'panel@0' do not
match any of the regexes: 'pinctrl-[0-9]+'
from schema $id:
http://devicetree.org/schemas/display/bridge/renesas,dsi.yaml#

Also add a panel property to the example.

---
V1 -> V2: add separate example

---
 .../bindings/display/bridge/renesas,dsi.yaml  | 67 ++++++++++++++++++-
 1 file changed, 66 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/display/bridge/renesas,dsi.yaml +66 -1
index e08c24633926b..5a99d9b9635e7 100644
@@ -128,7 +128,7 @@ required:
   - power-domains
   - ports
 
-additionalProperties: false
+unevaluatedProperties: false
 
 examples:
   - |
@@ -180,4 +180,69 @@ examples:
             };
         };
     };
+
+  - |
+    #include <dt-bindings/gpio/gpio.h>
+
+    dsi1: dsi@10860000 {
+        #address-cells = <1>;
+        #size-cells = <0>;
+        compatible = "renesas,r9a07g044-mipi-dsi", "renesas,rzg2l-mipi-dsi";
+        reg = <0x10860000 0x20000>;
+        interrupts = <GIC_SPI 142 IRQ_TYPE_LEVEL_HIGH>,
+                     <GIC_SPI 143 IRQ_TYPE_LEVEL_HIGH>,
+                     <GIC_SPI 144 IRQ_TYPE_LEVEL_HIGH>,
+                     <GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>,
+                     <GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>,
+                     <GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>,
+                     <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>;
+        interrupt-names = "seq0", "seq1", "vin1", "rcv",
+                          "ferr", "ppi", "debug";
+        clocks = <&cpg CPG_MOD R9A07G044_MIPI_DSI_PLLCLK>,
+                 <&cpg CPG_MOD R9A07G044_MIPI_DSI_SYSCLK>,
+                 <&cpg CPG_MOD R9A07G044_MIPI_DSI_ACLK>,
+                 <&cpg CPG_MOD R9A07G044_MIPI_DSI_PCLK>,
+                 <&cpg CPG_MOD R9A07G044_MIPI_DSI_VCLK>,
+                 <&cpg CPG_MOD R9A07G044_MIPI_DSI_LPCLK>;
+        clock-names = "pllclk", "sysclk", "aclk", "pclk", "vclk", "lpclk";
+        resets = <&cpg R9A07G044_MIPI_DSI_CMN_RSTB>,
+                 <&cpg R9A07G044_MIPI_DSI_ARESET_N>,
+                 <&cpg R9A07G044_MIPI_DSI_PRESET_N>;
+        reset-names = "rst", "arst", "prst";
+        power-domains = <&cpg>;
+
+        panel@0 {
+            compatible = "rocktech,jh057n00900";
+            reg = <0>;
+            vcc-supply = <&reg_2v8_p>;
+            iovcc-supply = <&reg_1v8_p>;
+            reset-gpios = <&gpio3 13 GPIO_ACTIVE_LOW>;
+
+            port {
+                panel_in: endpoint {
+                    remote-endpoint = <&dsi1_out>;
+                };
+            };
+        };
+
+        ports {
+            #address-cells = <1>;
+            #size-cells = <0>;
+
+            port@0 {
+                reg = <0>;
+                dsi1_in: endpoint {
+                    remote-endpoint = <&du_out_dsi1>;
+                };
+            };
+
+            port@1 {
+                reg = <1>;
+                dsi1_out: endpoint {
+                    data-lanes = <1 2 3 4>;
+                    remote-endpoint = <&panel_in>;
+                };
+            };
+        };
+    };
 ...

base-commit: 7c1a9408ce5f34ded5a85db81cf80e0975901685

Signature · 1 line
2.39.5
#1 lore raw
Quoted 11 lines · Hugo Villeneuve

From: Hugo Villeneuve <[email protected]>

Allow to inherit valid properties from the dsi-controller. This fixes the following warning when adding a panel property:

rzg2lc.dtb: dsi@10850000: '#address-cells', '#size-cells', 'panel@0' do not
match any of the regexes: 'pinctrl-[0-9]+'
from schema $id:
http://devicetree.org/schemas/display/bridge/renesas,dsi.yaml#

Also add a panel property to the example.

I don't think adding the example should be in the same patch as a fix.

Quoted 96 lines

---
V1 -> V2: add separate example

---
 .../bindings/display/bridge/renesas,dsi.yaml  | 67 ++++++++++++++++++-
 1 file changed, 66 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/display/bridge/renesas,dsi.yaml +66 -1
index e08c24633926b..5a99d9b9635e7 100644
@@ -128,7 +128,7 @@ required:
   - power-domains
   - ports
 
-additionalProperties: false
+unevaluatedProperties: false
 
 examples:
   - |
@@ -180,4 +180,69 @@ examples:
             };
         };
     };
+
+  - |
+    #include <dt-bindings/gpio/gpio.h>
+
+    dsi1: dsi@10860000 {
+        #address-cells = <1>;
+        #size-cells = <0>;
+        compatible = "renesas,r9a07g044-mipi-dsi", "renesas,rzg2l-mipi-dsi";
+        reg = <0x10860000 0x20000>;
+        interrupts = <GIC_SPI 142 IRQ_TYPE_LEVEL_HIGH>,
+                     <GIC_SPI 143 IRQ_TYPE_LEVEL_HIGH>,
+                     <GIC_SPI 144 IRQ_TYPE_LEVEL_HIGH>,
+                     <GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>,
+                     <GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>,
+                     <GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>,
+                     <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>;
+        interrupt-names = "seq0", "seq1", "vin1", "rcv",
+                          "ferr", "ppi", "debug";
+        clocks = <&cpg CPG_MOD R9A07G044_MIPI_DSI_PLLCLK>,
+                 <&cpg CPG_MOD R9A07G044_MIPI_DSI_SYSCLK>,
+                 <&cpg CPG_MOD R9A07G044_MIPI_DSI_ACLK>,
+                 <&cpg CPG_MOD R9A07G044_MIPI_DSI_PCLK>,
+                 <&cpg CPG_MOD R9A07G044_MIPI_DSI_VCLK>,
+                 <&cpg CPG_MOD R9A07G044_MIPI_DSI_LPCLK>;
+        clock-names = "pllclk", "sysclk", "aclk", "pclk", "vclk", "lpclk";
+        resets = <&cpg R9A07G044_MIPI_DSI_CMN_RSTB>,
+                 <&cpg R9A07G044_MIPI_DSI_ARESET_N>,
+                 <&cpg R9A07G044_MIPI_DSI_PRESET_N>;
+        reset-names = "rst", "arst", "prst";
+        power-domains = <&cpg>;
+
+        panel@0 {
+            compatible = "rocktech,jh057n00900";
+            reg = <0>;
+            vcc-supply = <&reg_2v8_p>;
+            iovcc-supply = <&reg_1v8_p>;
+            reset-gpios = <&gpio3 13 GPIO_ACTIVE_LOW>;
+
+            port {
+                panel_in: endpoint {
+                    remote-endpoint = <&dsi1_out>;
+                };
+            };
+        };
+
+        ports {
+            #address-cells = <1>;
+            #size-cells = <0>;
+
+            port@0 {
+                reg = <0>;
+                dsi1_in: endpoint {
+                    remote-endpoint = <&du_out_dsi1>;
+                };
+            };
+
+            port@1 {
+                reg = <1>;
+                dsi1_out: endpoint {
+                    data-lanes = <1 2 3 4>;
+                    remote-endpoint = <&panel_in>;
+                };
+            };
+        };
+    };
...

base-commit: 7c1a9408ce5f34ded5a85db81cf80e0975901685

Signature · 1 line
2.39.5
#2 lore raw
Quoted 6 lines · Conor Dooley
Quoted 5 lines · Hugo Villeneuve

From: Hugo Villeneuve <[email protected]>

Allow to inherit valid properties from the dsi-controller. This fixes the following warning when adding a panel property:

Quoted 8 lines
Quoted 6 lines

rzg2lc.dtb: dsi@10850000: '#address-cells', '#size-cells', 'panel@0' do not
match any of the regexes: 'pinctrl-[0-9]+'
from schema $id:
http://devicetree.org/schemas/display/bridge/renesas,dsi.yaml#

Also add a panel property to the example.

I don't think adding the example should be in the same patch as a fix.

Or am I misunderstanding, and this is a new type of usage, rather than a fix?

#3 lore raw
Quoted 12 lines · On Tue, 20 May 2025 17:00:11 +0100 Conor Dooley <[email protected]> wrote:
Quoted 11 lines · Conor Dooley
Quoted 10 lines · Hugo Villeneuve

From: Hugo Villeneuve <[email protected]>

Allow to inherit valid properties from the dsi-controller. This fixes the following warning when adding a panel property:

rzg2lc.dtb: dsi@10850000: '#address-cells', '#size-cells', 'panel@0' do not
match any of the regexes: 'pinctrl-[0-9]+'
from schema $id:
http://devicetree.org/schemas/display/bridge/renesas,dsi.yaml#

Quoted 6 lines
Quoted 3 lines
Quoted 1 line

Also add a panel property to the example.

I don't think adding the example should be in the same patch as a fix.

Or am I misunderstanding, and this is a new type of usage, rather than a fix?

Hi Conor,
it is more like a new type of usage.

Signature · 1 line
Hugo Villeneuve
#4 lore raw
Quoted 17 lines · Hugo Villeneuve
Quoted 14 lines · On Tue, 20 May 2025 17:00:11 +0100 Conor Dooley <[email protected]> wrote:
Quoted 13 lines · Conor Dooley
Quoted 11 lines · Hugo Villeneuve

From: Hugo Villeneuve <[email protected]>

Allow to inherit valid properties from the dsi-controller. This fixes the following warning when adding a panel property:

rzg2lc.dtb: dsi@10850000: '#address-cells', '#size-cells', 'panel@0' do not
match any of the regexes: 'pinctrl-[0-9]+'
from schema $id:
http://devicetree.org/schemas/display/bridge/renesas,dsi.yaml#

Also add a panel property to the example.

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

I don't think adding the example should be in the same patch as a fix.

Or am I misunderstanding, and this is a new type of usage, rather than a fix?

Hi Conor,
it is more like a new type of usage.

Then it's fine.

Acked-by on v2 1/1
#5 lore raw
In reply to Hugo Villeneuve
Quoted 5 lines · Hugo Villeneuve

From: Hugo Villeneuve <[email protected]>

Allow to inherit valid properties from the dsi-controller. This fixes the following warning when adding a panel property:

Quoted 8 lines

rzg2lc.dtb: dsi@10850000: '#address-cells', '#size-cells', 'panel@0' do not
match any of the regexes: 'pinctrl-[0-9]+'
from schema $id:
http://devicetree.org/schemas/display/bridge/renesas,dsi.yaml#

Also add a panel property to the example.

maintainer Applied
#6 lore raw
In reply to Hugo Villeneuve
Quoted 10 lines · Hugo Villeneuve

From: Hugo Villeneuve <[email protected]>

Allow to inherit valid properties from the dsi-controller. This fixes the following warning when adding a panel property:

rzg2lc.dtb: dsi@10850000: '#address-cells', '#size-cells', 'panel@0' do not
match any of the regexes: 'pinctrl-[0-9]+'
from schema $id:
http://devicetree.org/schemas/display/bridge/renesas,dsi.yaml#

Quoted 9 lines

Also add a panel property to the example.

---
V1 -> V2: add separate example

---
 .../bindings/display/bridge/renesas,dsi.yaml  | 67 ++++++++++++++++++-
 1 file changed, 66 insertions(+), 1 deletion(-)

Applied, thanks!