Skip to contentSkip to conversation

Fix warnings in display/bridge/nwl-dsi.yaml DT example

PATCH In review Ondrej Jirman 4 participants 8 messages Jul 3, 2020 – Jul 21, 2020

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

cover Fix warnings in display/bridge/nwl-dsi.yaml DT example

This patchset fixes warnings in the example in display/bridge/nwl-dsi.yaml revealed during port of display/panel/rocktech,jh057n00900.yaml to yaml.

Please take a look.

thank you and regards,
Ondrej Jirman

Ondrej Jirman (2):
dt-bindings: display: Fix example in nwl-dsi.yaml
dt-binding: display: Allow a single port node on rocktech,jh057n00900

 .../devicetree/bindings/display/bridge/nwl-dsi.yaml      | 9 +++++----
 .../bindings/display/panel/rocktech,jh057n00900.yaml     | 1 +
 2 files changed, 6 insertions(+), 4 deletions(-)
Signature · 1 line
2.27.0
#1 lore raw

PATCH 1/2 dt-bindings: display: Fix example in nwl-dsi.yaml

The example is now validated against rocktech,jh057n00900 schema that was ported to yaml, and didn't validate with:

- '#address-cells', '#size-cells', 'port@0' do not match any of the regexes: 'pinctrl-[0-9]+'
- 'vcc-supply' is a required property
- 'iovcc-supply' is a required property
- 'reset-gpios' is a required property

Fix it.

---
 .../devicetree/bindings/display/bridge/nwl-dsi.yaml      | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
Documentation/devicetree/bindings/display/bridge/nwl-dsi.yaml +5 -4
index 8aff2d68fc33..2c4c34e3bc29 100644
@@ -165,6 +165,7 @@ examples:
  - |
 
    #include <dt-bindings/clock/imx8mq-clock.h>
+   #include <dt-bindings/gpio/gpio.h>
    #include <dt-bindings/interrupt-controller/arm-gic.h>
    #include <dt-bindings/reset/imx8mq-reset.h>
 
@@ -191,12 +192,12 @@ examples:
               phy-names = "dphy";
 
               panel@0 {
-                      #address-cells = <1>;
-                      #size-cells = <0>;
                       compatible = "rocktech,jh057n00900";
                       reg = <0>;
-                      port@0 {
-                           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 = <&mipi_dsi_out>;
                            };
Signature · 1 line
2.27.0
maintainer Reviewed-by on v1 1/2
#2 lore raw

Re: [PATCH 1/2] dt-bindings: display: Fix example in nwl-dsi.yaml

Quoted 9 lines · Ondrej Jirman

The example is now validated against rocktech,jh057n00900 schema that was ported to yaml, and didn't validate with:

- '#address-cells', '#size-cells', 'port@0' do not match any of the regexes: 'pinctrl-[0-9]+'
- 'vcc-supply' is a required property
- 'iovcc-supply' is a required property
- 'reset-gpios' is a required property

Quoted 7 lines

Fix it.

---
 .../devicetree/bindings/display/bridge/nwl-dsi.yaml      | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

maintainer Reviewed-by on v1 1/2
#3 lore raw

Re: [PATCH 1/2] dt-bindings: display: Fix example in nwl-dsi.yaml

In reply to Ondrej Jirman

Hi,

Quoted 35 lines · Ondrej Jirman

The example is now validated against rocktech,jh057n00900 schema that was ported to yaml, and didn't validate with:

- '#address-cells', '#size-cells', 'port@0' do not match any of the regexes: 'pinctrl-[0-9]+'
- 'vcc-supply' is a required property
- 'iovcc-supply' is a required property
- 'reset-gpios' is a required property

Fix it.

---
 .../devicetree/bindings/display/bridge/nwl-dsi.yaml      | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
Documentation/devicetree/bindings/display/bridge/nwl-dsi.yaml +1 -2
index 8aff2d68fc33..2c4c34e3bc29 100644
@@ -165,6 +165,7 @@ examples:
  - |
 
    #include <dt-bindings/clock/imx8mq-clock.h>
+   #include <dt-bindings/gpio/gpio.h>
    #include <dt-bindings/interrupt-controller/arm-gic.h>
    #include <dt-bindings/reset/imx8mq-reset.h>
 
@@ -191,12 +192,12 @@ examples:
               phy-names = "dphy";
 
               panel@0 {
-                      #address-cells = <1>;
-                      #size-cells = <0>;
                       compatible = "rocktech,jh057n00900";

Documentation/devicetree/bindings/display/bridge/nwl-dsi.yaml examples: · line 203

Quoted 10 lines
Documentation/devicetree/bindings/display/bridge/nwl-dsi.yaml +4 -2
                       reg = <0>;
-                      port@0 {
-                           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 = <&mipi_dsi_out>;
                            };

-- Guido
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#4 lore raw

PATCH 2/2 dt-binding: display: Allow a single port node on rocktech,jh057n00900

In reply to Ondrej Jirman

The display has one port. Allow it in the binding.

---
 .../devicetree/bindings/display/panel/rocktech,jh057n00900.yaml  | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/display/panel/rocktech,jh057n00900.yaml +1 -0
index a6985cd947fb..d5733ef30954 100644
@@ -24,6 +24,7 @@ properties:
         # Xingbangda XBD599 5.99" 720x1440 TFT LCD panel
       - xingbangda,xbd599
 
+  port: true
   reg:
     maxItems: 1
     description: DSI virtual channel
Signature · 1 line
2.27.0
maintainer Reviewed-by on v1 2/2
#5 lore raw

Re: [PATCH 2/2] dt-binding: display: Allow a single port node on rocktech, jh057n00900

Quoted 7 lines · Ondrej Jirman

The display has one port. Allow it in the binding.

---
 .../devicetree/bindings/display/panel/rocktech,jh057n00900.yaml  | 1 +
 1 file changed, 1 insertion(+)
maintainer Reviewed-by on v1 2/2
#6 lore raw

Re: [PATCH 2/2] dt-binding: display: Allow a single port node on rocktech,jh057n00900

In reply to Ondrej Jirman

Hi,

Quoted 12 lines · Ondrej Jirman

The display has one port. Allow it in the binding.

---
 .../devicetree/bindings/display/panel/rocktech,jh057n00900.yaml  | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/display/panel/rocktech,jh057n00900.yaml +0 -0
index a6985cd947fb..d5733ef30954 100644

Documentation/devicetree/bindings/display/panel/rocktech,jh057n00900.yaml properties: · line 30

Quoted 7 lines
Documentation/devicetree/bindings/display/panel/rocktech,jh057n00900.yaml +1 -0
@@ -24,6 +24,7 @@ properties:
         # Xingbangda XBD599 5.99" 720x1440 TFT LCD panel
       - xingbangda,xbd599
 
+  port: true
   reg:
     maxItems: 1
     description: DSI virtual channel

-- Guido

Quoted 3 lines
Signature · 1 line
2.27.0
#7 lore raw
In reply to Ondrej Jirman
Quoted 5 lines · Ondrej Jirman

This patchset fixes warnings in the example in display/bridge/nwl-dsi.yaml revealed during port of display/panel/rocktech,jh057n00900.yaml to yaml.

Quoted 8 lines

Please take a look.

thank you and regards,
Ondrej Jirman

Ondrej Jirman (2):
dt-bindings: display: Fix example in nwl-dsi.yaml
dt-binding: display: Allow a single port node on rocktech,jh057n00900

Series applied to drm-misc.

Rob
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel