All of lore.kernel.org
 help / color / mirror / Atom feed
* display: bcm2835-dpi: warning about #address-cells', '#size-cells'
@ 2022-06-06 11:40 Stefan Wahren
  2022-06-06 13:47 ` Maxime Ripard
  0 siblings, 1 reply; 3+ messages in thread
From: Stefan Wahren @ 2022-06-06 11:40 UTC (permalink / raw)
  To: Maxime Ripard, Rob Herring; +Cc: devicetree

Hi,

recently i noticed the following warning during "make dtbs_check"

arch/arm/boot/dts/bcm2835-rpi-b.dtb: dpi@7e208000: '#address-cells', 
'#size-cells' do not match any of the regexes: 'pinctrl-[0-9]+'

During conversion to DT schema 094536003e06 "dt-bindings: display: 
Convert VC4 bindings to schemas" the properties has been dropped from 
the example.

But i'm not sure how to fix this properly (drop them from the 
bcm283x.dtsi file or add the properties to brcm,bcm2835-dpi.yaml).

Best regards


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: display: bcm2835-dpi: warning about #address-cells', '#size-cells'
  2022-06-06 11:40 display: bcm2835-dpi: warning about #address-cells', '#size-cells' Stefan Wahren
@ 2022-06-06 13:47 ` Maxime Ripard
  2022-06-06 14:07   ` Stefan Wahren
  0 siblings, 1 reply; 3+ messages in thread
From: Maxime Ripard @ 2022-06-06 13:47 UTC (permalink / raw)
  To: Stefan Wahren; +Cc: Rob Herring, devicetree

[-- Attachment #1: Type: text/plain, Size: 1057 bytes --]

On Mon, Jun 06, 2022 at 01:40:19PM +0200, Stefan Wahren wrote:
> Hi,
> 
> recently i noticed the following warning during "make dtbs_check"
> 
> arch/arm/boot/dts/bcm2835-rpi-b.dtb: dpi@7e208000: '#address-cells',
> '#size-cells' do not match any of the regexes: 'pinctrl-[0-9]+'
> 
> During conversion to DT schema 094536003e06 "dt-bindings: display: Convert
> VC4 bindings to schemas" the properties has been dropped from the example.
> 
> But i'm not sure how to fix this properly (drop them from the bcm283x.dtsi
> file or add the properties to brcm,bcm2835-dpi.yaml).

So #address-cells and #size-cells are used to get the children register
address and size.

However, for DPI, it's not clear what the child node is going to be in
the first place. The only one that stands out is the port node, but
there's a single one. So we don't need a reg property to differentiate
between multiple ports, and thus we don't need #address-cells or
#size-cells.

The proper fix would be to remove them from the bcm283x device tree.

Maxime

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: display: bcm2835-dpi: warning about #address-cells', '#size-cells'
  2022-06-06 13:47 ` Maxime Ripard
@ 2022-06-06 14:07   ` Stefan Wahren
  0 siblings, 0 replies; 3+ messages in thread
From: Stefan Wahren @ 2022-06-06 14:07 UTC (permalink / raw)
  To: Maxime Ripard; +Cc: Rob Herring, devicetree

Hi Maxime,

Am 06.06.22 um 15:47 schrieb Maxime Ripard:
> On Mon, Jun 06, 2022 at 01:40:19PM +0200, Stefan Wahren wrote:
>> Hi,
>>
>> recently i noticed the following warning during "make dtbs_check"
>>
>> arch/arm/boot/dts/bcm2835-rpi-b.dtb: dpi@7e208000: '#address-cells',
>> '#size-cells' do not match any of the regexes: 'pinctrl-[0-9]+'
>>
>> During conversion to DT schema 094536003e06 "dt-bindings: display: Convert
>> VC4 bindings to schemas" the properties has been dropped from the example.
>>
>> But i'm not sure how to fix this properly (drop them from the bcm283x.dtsi
>> file or add the properties to brcm,bcm2835-dpi.yaml).
> So #address-cells and #size-cells are used to get the children register
> address and size.
>
> However, for DPI, it's not clear what the child node is going to be in
> the first place. The only one that stands out is the port node, but
> there's a single one. So we don't need a reg property to differentiate
> between multiple ports, and thus we don't need #address-cells or
> #size-cells.
>
> The proper fix would be to remove them from the bcm283x device tree.
thanks. I will send a patch soon.
>
> Maxime

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-06-06 14:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-06 11:40 display: bcm2835-dpi: warning about #address-cells', '#size-cells' Stefan Wahren
2022-06-06 13:47 ` Maxime Ripard
2022-06-06 14:07   ` Stefan Wahren

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.