Ethernet binding: broken validation parsing of #nvmem-cell-cells ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I'm playing with "dtbs_check" and I stuck on following errors:

arch/arm/boot/dts/broadcom/bcm47094-luxul-xwr-3150-v1.dtb: ethernet@24000: nvmem-cells: [[9], [0]] is too long
        from schema $id: http://devicetree.org/schemas/net/ethernet-controller.yaml#
arch/arm/boot/dts/broadcom/bcm47094-luxul-xwr-3150-v1.dtb: ethernet-switch@18007000: ports:port@4:nvmem-cells: [[9], [5]] is too long
        from schema $id: http://devicetree.org/schemas/net/dsa/brcm,b53.yaml#


Context:

nvram@1eff0000 {
	compatible = "brcm,nvram";
	reg = <0x1eff0000 0x10000>;

	et0macaddr: et0macaddr {
		#nvmem-cell-cells = <1>;
	};
};

&gmac0 {
	nvmem-cells = <&et0macaddr 0>;
	nvmem-cell-names = "mac-address";
};


The validation error comes from ethernet-controller.yaml which contains:

nvmem-cells:
  maxItems: 1
  description:
    Reference to an nvmem node for the MAC address


If I'm not mistaken <&et0macaddr 0> gets treated as two items.

Can someone tell me what's going on here and help me with solving it,
please? I would expect it to be sth trivial but I can't see any obvious
mistake.

--
Rafał Miłecki




[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux