All of lore.kernel.org
 help / color / mirror / Atom feed
From: Geert Uytterhoeven <geert@linux-m68k.org>
To: linux-sh@vger.kernel.org
Subject: Re: [PATCH v4 5/9] ARM: shmobile: marzen: Enable DU device in DT
Date: Mon, 27 Oct 2014 09:18:16 +0000	[thread overview]
Message-ID: <CAMuHMdU2RiAv0LB0+=WS0Ufw0O9yOX4wWc_ESRJMWA7ssVMrsg@mail.gmail.com> (raw)
In-Reply-To: <1414152241-5390-6-git-send-email-laurent.pinchart+renesas@ideasonboard.com>

On Mon, Oct 27, 2014 at 2:23 AM, Simon Horman <horms@verge.net.au> wrote:
> I have this patch queued up but I notice that it seems to introduce
> the following warnings. Can this be addressed somehow?
>
> Warning (reg_format): "reg" property in /lvds-encoder/ports/port@0 has invalid length (4 bytes) (#address-cells = 2, #size-cells = 1)
> Warning (reg_format): "reg" property in /lvds-encoder/ports/port@1 has invalid length (4 bytes) (#address-cells = 2, #size-cells = 1)
> Warning (avoid_default_addr_size): Relying on default #address-cells value for /lvds-encoder/ports/port@0
> Warning (avoid_default_addr_size): Relying on default #size-cells value for /lvds-encoder/ports/port@0
> Warning (avoid_default_addr_size): Relying on default #address-cells value for /lvds-encoder/ports/port@1
> Warning (avoid_default_addr_size): Relying on default #size-cells value for /lvds-encoder/ports/port@1

>> ---
>>  arch/arm/boot/dts/r8a7779-marzen.dts | 81 ++++++++++++++++++++++++++++++++++++
>>  1 file changed, 81 insertions(+)
>>
>> diff --git a/arch/arm/boot/dts/r8a7779-marzen.dts b/arch/arm/boot/dts/r8a7779-marzen.dts
>> index 9e1b859190ca..64a5d634edc1 100644
>> --- a/arch/arm/boot/dts/r8a7779-marzen.dts
>> +++ b/arch/arm/boot/dts/r8a7779-marzen.dts
>> @@ -69,6 +69,76 @@
>>                       gpios = <&gpio4 31 GPIO_ACTIVE_HIGH>;
>>               };
>>       };
>> +
>> +     vga-encoder {
>> +             compatible = "adi,adv7123";
>> +
>> +             ports {
>> +                     #address-cells = <1>;
>> +                     #size-cells = <0>;
>> +
>> +                     port@0 {
>> +                             reg = <0>;
>> +                             vga_enc_in: endpoint {
>> +                                     remote-endpoint = <&du_out_rgb0>;
>> +                             };
>> +                     };
>> +                     port@1 {
>> +                             reg = <1>;
>> +                             vga_enc_out: endpoint {
>> +                                     remote-endpoint = <&vga_in>;
>> +                             };
>> +                     };
>> +             };
>> +     };
>> +
>> +     vga {
>> +             compatible = "vga-connector";
>> +
>> +             port {
>> +                     vga_in: endpoint {
>> +                             remote-endpoint = <&vga_enc_out>;
>> +                     };
>> +             };
>> +     };
>> +
>> +     lvds-enc {
>> +             compatible = "thine,thc63lvdm83d";
>> +
>> +             #address-cells = <1>;
>> +             #size-cells = <0>;

I think the two properties above should be moved to the ports node below.

>> +
>> +             ports {

---> HERE.

Yes, this can be a real PITA. I had to sprinkle lots of #address-cells = <1>
and #size-cells = <0> to the hierarchical PM domain nodes, too.

>> +                     port@0 {
>> +                             lvds_enc_in: endpoint {
>> +                                     remote-endpoint = <&du_out_rgb1>;
>> +                             };
>> +                     };
>> +                     port@1 {
>> +                             lvds_connector: endpoint {
>> +                             };
>> +                     };
>> +             };
>> +     };

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

  parent reply	other threads:[~2014-10-27  9:18 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-24 12:03 [PATCH v4 5/9] ARM: shmobile: marzen: Enable DU device in DT Laurent Pinchart
2014-10-24 12:36 ` Sergei Shtylyov
2014-10-26 12:49 ` Laurent Pinchart
2014-10-26 13:04 ` Sergei Shtylyov
2014-10-26 13:16 ` Laurent Pinchart
2014-10-27  1:23 ` Simon Horman
2014-10-27  9:18 ` Geert Uytterhoeven [this message]
2014-10-27  9:27 ` Laurent Pinchart

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAMuHMdU2RiAv0LB0+=WS0Ufw0O9yOX4wWc_ESRJMWA7ssVMrsg@mail.gmail.com' \
    --to=geert@linux-m68k.org \
    --cc=linux-sh@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.