All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-next:master 4287/7938] arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-peb-av-10.dtb: bridge@2d (ti,sn65dsi83): ports:port@2:endpoint:ti,lvds-vod-swing-clock-microvolt:0: 200000 is not of type 'array'
@ 2025-05-02 11:20 kernel test robot
  2025-05-20 11:00 ` Andrej Picej
  0 siblings, 1 reply; 3+ messages in thread
From: kernel test robot @ 2025-05-02 11:20 UTC (permalink / raw)
  To: Andrej Picej; +Cc: oe-kbuild-all, Shawn Guo

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   3e039dcc9c1320c0d33ddd51c372dcc91d3ea3c7
commit: 7ed7d1ed852d8f4c4dee7a4d4f7807ad59c7915d [4287/7938] arm64: dts: imx8mm-phyboard-polis-peb-av-10: Set lvds-vod-swing
config: arm64-randconfig-052-20250428 (https://download.01.org/0day-ci/archive/20250502/202505021937.efnQPPqx-lkp@intel.com/config)
compiler: clang version 21.0.0git (https://github.com/llvm/llvm-project f819f46284f2a79790038e1f6649172789734ae8)
dtschema version: 2025.3.dev21+ge6ea659
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250502/202505021937.efnQPPqx-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202505021937.efnQPPqx-lkp@intel.com/

dtcheck warnings: (new ones prefixed by >>)
>> arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-peb-av-10.dtb: bridge@2d (ti,sn65dsi83): ports:port@2:endpoint:ti,lvds-vod-swing-clock-microvolt:0: 200000 is not of type 'array'
   	from schema $id: http://devicetree.org/schemas/display/bridge/ti,sn65dsi83.yaml#
>> arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-peb-av-10.dtb: bridge@2d (ti,sn65dsi83): ports:port@2:endpoint:ti,lvds-vod-swing-clock-microvolt: [200000, 600000] is too long
   	from schema $id: http://devicetree.org/schemas/display/bridge/ti,sn65dsi83.yaml#
>> arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-peb-av-10.dtb: bridge@2d (ti,sn65dsi83): ports:port@2:endpoint:ti,lvds-vod-swing-data-microvolt:0: 200000 is not of type 'array'
   	from schema $id: http://devicetree.org/schemas/display/bridge/ti,sn65dsi83.yaml#
>> arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-peb-av-10.dtb: bridge@2d (ti,sn65dsi83): ports:port@2:endpoint:ti,lvds-vod-swing-data-microvolt: [200000, 600000] is too long
   	from schema $id: http://devicetree.org/schemas/display/bridge/ti,sn65dsi83.yaml#
>> arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-peb-av-10.dtb: bridge@2d (ti,sn65dsi83): ports:port@2:endpoint: Unevaluated properties are not allowed ('ti,lvds-vod-swing-clock-microvolt', 'ti,lvds-vod-swing-data-microvolt' were unexpected)
   	from schema $id: http://devicetree.org/schemas/display/bridge/ti,sn65dsi83.yaml#
   arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-peb-av-10.dtb: endpoint: ti,lvds-vod-swing-data-microvolt:0: 200000 is not of type 'array'
   	from schema $id: http://devicetree.org/schemas/property-units.yaml#
   arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-peb-av-10.dtb: endpoint: ti,lvds-vod-swing-data-microvolt:1: 600000 is not of type 'array'
   	from schema $id: http://devicetree.org/schemas/property-units.yaml#
   arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-peb-av-10.dtb: endpoint: ti,lvds-vod-swing-clock-microvolt:0: 200000 is not of type 'array'
   	from schema $id: http://devicetree.org/schemas/property-units.yaml#
   arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-peb-av-10.dtb: endpoint: ti,lvds-vod-swing-clock-microvolt:1: 600000 is not of type 'array'
   	from schema $id: http://devicetree.org/schemas/property-units.yaml#

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

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

* Re: [linux-next:master 4287/7938] arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-peb-av-10.dtb: bridge@2d (ti,sn65dsi83): ports:port@2:endpoint:ti,lvds-vod-swing-clock-microvolt:0: 200000 is not of type 'array'
  2025-05-02 11:20 [linux-next:master 4287/7938] arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-peb-av-10.dtb: bridge@2d (ti,sn65dsi83): ports:port@2:endpoint:ti,lvds-vod-swing-clock-microvolt:0: 200000 is not of type 'array' kernel test robot
@ 2025-05-20 11:00 ` Andrej Picej
  2025-05-27 20:12   ` Rob Herring
  0 siblings, 1 reply; 3+ messages in thread
From: Andrej Picej @ 2025-05-20 11:00 UTC (permalink / raw)
  To: kernel test robot
  Cc: oe-kbuild-all, Shawn Guo, devicetree@vger.kernel.org,
	krzk+dt@kernel.org, Rob Herring

Hi all,

On 2. 05. 25 13:20, kernel test robot wrote:
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
> head:   3e039dcc9c1320c0d33ddd51c372dcc91d3ea3c7
> commit: 7ed7d1ed852d8f4c4dee7a4d4f7807ad59c7915d [4287/7938] arm64: dts: imx8mm-phyboard-polis-peb-av-10: Set lvds-vod-swing
> config: arm64-randconfig-052-20250428 (https://download.01.org/0day-ci/archive/20250502/202505021937.efnQPPqx-lkp@intel.com/config)
> compiler: clang version 21.0.0git (https://github.com/llvm/llvm-project f819f46284f2a79790038e1f6649172789734ae8)
> dtschema version: 2025.3.dev21+ge6ea659
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250502/202505021937.efnQPPqx-lkp@intel.com/reproduce)
> 
> If you fix the issue in a separate patch/commit (i.e. not just a new version of
> the same patch/commit), kindly add following tags
> | Reported-by: kernel test robot <lkp@intel.com>
> | Closes: https://lore.kernel.org/oe-kbuild-all/202505021937.efnQPPqx-lkp@intel.com/
> 
> dtcheck warnings: (new ones prefixed by >>)
>>> arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-peb-av-10.dtb: bridge@2d (ti,sn65dsi83): ports:port@2:endpoint:ti,lvds-vod-swing-clock-microvolt:0: 200000 is not of type 'array'
>     	from schema $id: http://devicetree.org/schemas/display/bridge/ti,sn65dsi83.yaml#
>>> arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-peb-av-10.dtb: bridge@2d (ti,sn65dsi83): ports:port@2:endpoint:ti,lvds-vod-swing-clock-microvolt: [200000, 600000] is too long
>     	from schema $id: http://devicetree.org/schemas/display/bridge/ti,sn65dsi83.yaml#
>>> arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-peb-av-10.dtb: bridge@2d (ti,sn65dsi83): ports:port@2:endpoint:ti,lvds-vod-swing-data-microvolt:0: 200000 is not of type 'array'
>     	from schema $id: http://devicetree.org/schemas/display/bridge/ti,sn65dsi83.yaml#
>>> arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-peb-av-10.dtb: bridge@2d (ti,sn65dsi83): ports:port@2:endpoint:ti,lvds-vod-swing-data-microvolt: [200000, 600000] is too long
>     	from schema $id: http://devicetree.org/schemas/display/bridge/ti,sn65dsi83.yaml#
>>> arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-peb-av-10.dtb: bridge@2d (ti,sn65dsi83): ports:port@2:endpoint: Unevaluated properties are not allowed ('ti,lvds-vod-swing-clock-microvolt', 'ti,lvds-vod-swing-data-microvolt' were unexpected)
>     	from schema $id: http://devicetree.org/schemas/display/bridge/ti,sn65dsi83.yaml#
>     arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-peb-av-10.dtb: endpoint: ti,lvds-vod-swing-data-microvolt:0: 200000 is not of type 'array'
>     	from schema $id: http://devicetree.org/schemas/property-units.yaml#
>     arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-peb-av-10.dtb: endpoint: ti,lvds-vod-swing-data-microvolt:1: 600000 is not of type 'array'
>     	from schema $id: http://devicetree.org/schemas/property-units.yaml#
>     arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-peb-av-10.dtb: endpoint: ti,lvds-vod-swing-clock-microvolt:0: 200000 is not of type 'array'
>     	from schema $id: http://devicetree.org/schemas/property-units.yaml#
>     arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-peb-av-10.dtb: endpoint: ti,lvds-vod-swing-clock-microvolt:1: 600000 is not of type 'array'
>     	from schema $id: http://devicetree.org/schemas/property-units.yaml#
> 

apologies for the delayed response, and thank you for the report.

I've investigated the DT schema validation errors reported for my patch. 
The issue stems from using "$ref: 
/schemas/types.yaml#/definitions/uint32-array" for the 
"ti,lvds-vod-swing-clock-microvolt" and 
"ti,lvds-vod-swing-data-microvolt" properties, which seems to expect a 
different structure than what the DTS provides (a standard 2-element 
uint32 array).

Replacing the "$ref" with an explicit array schema resolves the errors:

> 
>   type: array
>   items:
>     type: integer
>   minItems: 2
>   maxItems: 2


This matches the intended "<min max>" format in the DTS and passes 
validation.

Would this be the preferred way to describe such properties, or is there 
another recommended style for handling this case?

Best regards,
Andrej

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

* Re: [linux-next:master 4287/7938] arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-peb-av-10.dtb: bridge@2d (ti,sn65dsi83): ports:port@2:endpoint:ti,lvds-vod-swing-clock-microvolt:0: 200000 is not of type 'array'
  2025-05-20 11:00 ` Andrej Picej
@ 2025-05-27 20:12   ` Rob Herring
  0 siblings, 0 replies; 3+ messages in thread
From: Rob Herring @ 2025-05-27 20:12 UTC (permalink / raw)
  To: Andrej Picej
  Cc: kernel test robot, oe-kbuild-all, Shawn Guo,
	devicetree@vger.kernel.org, krzk+dt@kernel.org

On Tue, May 20, 2025 at 6:00 AM Andrej Picej <andrej.picej@norik.com> wrote:
>
> Hi all,
>
> On 2. 05. 25 13:20, kernel test robot wrote:
> > tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
> > head:   3e039dcc9c1320c0d33ddd51c372dcc91d3ea3c7
> > commit: 7ed7d1ed852d8f4c4dee7a4d4f7807ad59c7915d [4287/7938] arm64: dts: imx8mm-phyboard-polis-peb-av-10: Set lvds-vod-swing
> > config: arm64-randconfig-052-20250428 (https://download.01.org/0day-ci/archive/20250502/202505021937.efnQPPqx-lkp@intel.com/config)
> > compiler: clang version 21.0.0git (https://github.com/llvm/llvm-project f819f46284f2a79790038e1f6649172789734ae8)
> > dtschema version: 2025.3.dev21+ge6ea659
> > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250502/202505021937.efnQPPqx-lkp@intel.com/reproduce)
> >
> > If you fix the issue in a separate patch/commit (i.e. not just a new version of
> > the same patch/commit), kindly add following tags
> > | Reported-by: kernel test robot <lkp@intel.com>
> > | Closes: https://lore.kernel.org/oe-kbuild-all/202505021937.efnQPPqx-lkp@intel.com/
> >
> > dtcheck warnings: (new ones prefixed by >>)
> >>> arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-peb-av-10.dtb: bridge@2d (ti,sn65dsi83): ports:port@2:endpoint:ti,lvds-vod-swing-clock-microvolt:0: 200000 is not of type 'array'
> >       from schema $id: http://devicetree.org/schemas/display/bridge/ti,sn65dsi83.yaml#
> >>> arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-peb-av-10.dtb: bridge@2d (ti,sn65dsi83): ports:port@2:endpoint:ti,lvds-vod-swing-clock-microvolt: [200000, 600000] is too long
> >       from schema $id: http://devicetree.org/schemas/display/bridge/ti,sn65dsi83.yaml#
> >>> arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-peb-av-10.dtb: bridge@2d (ti,sn65dsi83): ports:port@2:endpoint:ti,lvds-vod-swing-data-microvolt:0: 200000 is not of type 'array'
> >       from schema $id: http://devicetree.org/schemas/display/bridge/ti,sn65dsi83.yaml#
> >>> arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-peb-av-10.dtb: bridge@2d (ti,sn65dsi83): ports:port@2:endpoint:ti,lvds-vod-swing-data-microvolt: [200000, 600000] is too long
> >       from schema $id: http://devicetree.org/schemas/display/bridge/ti,sn65dsi83.yaml#
> >>> arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-peb-av-10.dtb: bridge@2d (ti,sn65dsi83): ports:port@2:endpoint: Unevaluated properties are not allowed ('ti,lvds-vod-swing-clock-microvolt', 'ti,lvds-vod-swing-data-microvolt' were unexpected)
> >       from schema $id: http://devicetree.org/schemas/display/bridge/ti,sn65dsi83.yaml#
> >     arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-peb-av-10.dtb: endpoint: ti,lvds-vod-swing-data-microvolt:0: 200000 is not of type 'array'
> >       from schema $id: http://devicetree.org/schemas/property-units.yaml#
> >     arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-peb-av-10.dtb: endpoint: ti,lvds-vod-swing-data-microvolt:1: 600000 is not of type 'array'
> >       from schema $id: http://devicetree.org/schemas/property-units.yaml#
> >     arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-peb-av-10.dtb: endpoint: ti,lvds-vod-swing-clock-microvolt:0: 200000 is not of type 'array'
> >       from schema $id: http://devicetree.org/schemas/property-units.yaml#
> >     arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-peb-av-10.dtb: endpoint: ti,lvds-vod-swing-clock-microvolt:1: 600000 is not of type 'array'
> >       from schema $id: http://devicetree.org/schemas/property-units.yaml#
> >
>
> apologies for the delayed response, and thank you for the report.
>
> I've investigated the DT schema validation errors reported for my patch.
> The issue stems from using "$ref:
> /schemas/types.yaml#/definitions/uint32-array" for the
> "ti,lvds-vod-swing-clock-microvolt" and
> "ti,lvds-vod-swing-data-microvolt" properties, which seems to expect a
> different structure than what the DTS provides (a standard 2-element
> uint32 array).
>
> Replacing the "$ref" with an explicit array schema resolves the errors:
>
> >
> >   type: array
> >   items:
> >     type: integer
> >   minItems: 2
> >   maxItems: 2
>
>
> This matches the intended "<min max>" format in the DTS and passes
> validation.
>
> Would this be the preferred way to describe such properties, or is there
> another recommended style for handling this case?

All you should need is 'maxItems: 2'

Rob

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

end of thread, other threads:[~2025-05-27 20:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-02 11:20 [linux-next:master 4287/7938] arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-peb-av-10.dtb: bridge@2d (ti,sn65dsi83): ports:port@2:endpoint:ti,lvds-vod-swing-clock-microvolt:0: 200000 is not of type 'array' kernel test robot
2025-05-20 11:00 ` Andrej Picej
2025-05-27 20:12   ` Rob Herring

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.