Skip to contentSkip to conversation

dt-bindings: fix warnings in xinpeng,xpp055c272.yaml

PATCH Sam Ravnborg 2 participants 3 messages Jan 6, 2020

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

The reg property in the example caused following warnings:

xinpeng,xpp055c272.example.dts:20.17-27: Warning (reg_format): /example-0/dsi@ff450000/panel@0:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)

xinpeng,xpp055c272.example.dt.yaml: Warning (pci_device_bus_num): Failed prerequisite 'reg_format' xinpeng,xpp055c272.example.dt.yaml: Warning (i2c_bus_reg): Failed prerequisite 'reg_format' xinpeng,xpp055c272.example.dt.yaml: Warning (spi_bus_reg): Failed prerequisite 'reg_format' xinpeng,xpp055c272.example.dts:18.21-24.15: Warning (avoid_default_addr_size): /example-0/dsi@ff450000/panel@0: Relying on default #address-cells value xinpeng,xpp055c272.example.dts:18.21-24.15: Warning (avoid_default_addr_size): /example-0/dsi@ff450000/panel@0: Relying on default #size-cells value

Added #address-cells and #size-cells to silence the warning.

Cc Heiko Stuebner <[email protected]>
Cc Maxime Ripard <[email protected]>
Cc Rob Herring <[email protected]>

---

I forgot to push this fixed while applying the patch.

Sam

 .../devicetree/bindings/display/panel/xinpeng,xpp055c272.yaml   | 2 ++
 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/display/panel/xinpeng,xpp055c272.yaml +2 -0
index 378cf9e2549d..186e5e1c8fa3 100644
@@ -35,6 +35,8 @@ additionalProperties: false
 examples:
   - |
     dsi@ff450000 {
+        #address-cells = <1>;
+        #size-cells = <0>;
         panel@0 {
             compatible = "xinpeng,xpp055c272";
             reg = <0>;
Signature · 1 line
2.20.1
Reviewed-by
#1 lore raw

Am Montag, 6. Januar 2020, 19:17:31 CET schrieb Sam Ravnborg:

Quoted 10 lines

The reg property in the example caused following warnings:

xinpeng,xpp055c272.example.dts:20.17-27: Warning (reg_format): /example-0/dsi@ff450000/panel@0:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)

xinpeng,xpp055c272.example.dt.yaml: Warning (pci_device_bus_num): Failed prerequisite 'reg_format' xinpeng,xpp055c272.example.dt.yaml: Warning (i2c_bus_reg): Failed prerequisite 'reg_format' xinpeng,xpp055c272.example.dt.yaml: Warning (spi_bus_reg): Failed prerequisite 'reg_format' xinpeng,xpp055c272.example.dts:18.21-24.15: Warning (avoid_default_addr_size): /example-0/dsi@ff450000/panel@0: Relying on default #address-cells value xinpeng,xpp055c272.example.dts:18.21-24.15: Warning (avoid_default_addr_size): /example-0/dsi@ff450000/panel@0: Relying on default #size-cells value

Quoted 7 lines

Added #address-cells and #size-cells to silence the warning.

Cc Heiko Stuebner <[email protected]>
Cc Maxime Ripard <[email protected]>
Cc Rob Herring <[email protected]>
#2 lore raw

Hi Heiko.

Quoted 13 lines · Heiko Stuebner

Am Montag, 6. Januar 2020, 19:17:31 CET schrieb Sam Ravnborg:

Quoted 12 lines

The reg property in the example caused following warnings:

xinpeng,xpp055c272.example.dts:20.17-27: Warning (reg_format): /example-0/dsi@ff450000/panel@0:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)

xinpeng,xpp055c272.example.dt.yaml: Warning (pci_device_bus_num): Failed prerequisite 'reg_format' xinpeng,xpp055c272.example.dt.yaml: Warning (i2c_bus_reg): Failed prerequisite 'reg_format' xinpeng,xpp055c272.example.dt.yaml: Warning (spi_bus_reg): Failed prerequisite 'reg_format' xinpeng,xpp055c272.example.dts:18.21-24.15: Warning (avoid_default_addr_size): /example-0/dsi@ff450000/panel@0: Relying on default #address-cells value xinpeng,xpp055c272.example.dts:18.21-24.15: Warning (avoid_default_addr_size): /example-0/dsi@ff450000/panel@0: Relying on default #size-cells value

Added #address-cells and #size-cells to silence the warning.

Quoted 7 lines
Quoted 5 lines
Cc Heiko Stuebner <[email protected]>
Cc Maxime Ripard <[email protected]>
Cc Rob Herring <[email protected]>

Thanks, pushed to drm-misc-next.

Sam