[HELP] How to describe the PCI device in DTS{i}

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

 



Hi all:

Excuse me.
I recently (actually I have discovered it before) found that when I
was doing dtbs_check, all nodes related to pci devices would have
warnings (at the bottom of the email).
Of course, when I first submitted the DTS{i} patch, it was normal. I
tried to analyze the changes, and I am not sure if it was caused by
this change:
https://github.com/devicetree-org/dt-schema/commit/97c59117a99e9e69c8b19d18be6d302715539f29

I tried to find an example that matches, but it seems that I couldn't
find it. So I can only come here to ask for your help and give me some
advice.

dtbs_check warning:

/kernel/github/arch/loongarch/boot/dts/loongson-2k1000-ref.dtb:
pcie@1a000000: ethernet@3,0:interrupts:0:0: 12 is not one of [1, 2, 3,
4]
        from schema $id: http://devicetree.org/schemas/pci/loongson.yaml#
/kernel/github/arch/loongarch/boot/dts/loongson-2k1000-ref.dtb:
pcie@1a000000: ethernet@3,0:interrupts:0: [12, 4] is too long
        from schema $id: http://devicetree.org/schemas/pci/loongson.yaml#
/kernel/github/arch/loongarch/boot/dts/loongson-2k1000-ref.dtb:
pcie@1a000000: ethernet@3,0:interrupts: [[12, 4], [13, 4]] is too long
        from schema $id: http://devicetree.org/schemas/pci/loongson.yaml#
/kernel/github/arch/loongarch/boot/dts/loongson-2k1000-ref.dtb:
pcie@1a000000: ethernet@3,1:interrupts:0:0: 14 is not one of [1, 2, 3,
4]
        from schema $id: http://devicetree.org/schemas/pci/loongson.yaml#
/kernel/github/arch/loongarch/boot/dts/loongson-2k1000-ref.dtb:
pcie@1a000000: ethernet@3,1:interrupts:0: [14, 4] is too long
        from schema $id: http://devicetree.org/schemas/pci/loongson.yaml#
/kernel/github/arch/loongarch/boot/dts/loongson-2k1000-ref.dtb:
pcie@1a000000: ethernet@3,1:interrupts: [[14, 4], [15, 4]] is too long
        from schema $id: http://devicetree.org/schemas/pci/loongson.yaml#
/kernel/github/arch/loongarch/boot/dts/loongson-2k1000-ref.dtb:
pcie@1a000000: usb@4,1:interrupts:0:0: 18 is not one of [1, 2, 3, 4]
        from schema $id: http://devicetree.org/schemas/pci/loongson.yaml#
/kernel/github/arch/loongarch/boot/dts/loongson-2k1000-ref.dtb:
pcie@1a000000: usb@4,1:interrupts:0: [18, 4] is too long
        from schema $id:
http://devicetree.org/schemas/pci/loongson.yaml#
/kernel/github/arch/loongarch/boot/dts/loongson-2k1000-ref.dtb:
pcie@1a000000: usb@4,2:interrupts:0:0: 19 is not one of [1, 2, 3, 4]
        from schema $id: http://devicetree.org/schemas/pci/loongson.yaml#
/kernel/github/arch/loongarch/boot/dts/loongson-2k1000-ref.dtb:
pcie@1a000000: usb@4,2:interrupts:0: [19, 4] is too long
        from schema $id: http://devicetree.org/schemas/pci/loongson.yaml#
/kernel/github/arch/loongarch/boot/dts/loongson-2k1000-ref.dtb:
pcie@1a000000: display@6,0:interrupts:0:0: 28 is not one of [1, 2, 3,
4]
        from schema $id: http://devicetree.org/schemas/pci/loongson.yaml#
/kernel/github/arch/loongarch/boot/dts/loongson-2k1000-ref.dtb:
pcie@1a000000: display@6,0:interrupts:0: [28, 4] is too long
        from schema $id: http://devicetree.org/schemas/pci/loongson.yaml#
/kernel/github/arch/loongarch/boot/dts/loongson-2k1000-ref.dtb:
pcie@1a000000: hda@7,0:interrupts:0: [4, 4] is too long
        from schema $id: http://devicetree.org/schemas/pci/loongson.yaml#
/kernel/github/arch/loongarch/boot/dts/loongson-2k1000-ref.dtb:
pcie@1a000000: sata@8,0:interrupts:0:0: 19 is not one of [1, 2, 3, 4]
        from schema $id: http://devicetree.org/schemas/pci/loongson.yaml#
/kernel/github/arch/loongarch/boot/dts/loongson-2k1000-ref.dtb:
pcie@1a000000: sata@8,0:interrupts:0: [19, 4] is too long
        from schema $id: http://devicetree.org/schemas/pci/loongson.yaml#
/kernel/github/arch/loongarch/boot/dts/loongson-2k1000-ref.dtb:
pcie@1a000000: Unevaluated properties are not allowed
('#address-cells', '#size-cells', 'bus-range', 'device_type',
'display@6,0', 'ethernet@3,0
', 'ethernet@3,1', 'hda@7,0', 'pcie@9,0', 'pcie@a,0', 'pcie@b,0',
'pcie@c,0', 'pcie@d,0', 'pcie@e,0', 'sata@8,0', 'usb@4,1', 'usb@4,2'
were unexpected)
        from schema $id: http://devicetree.org/schemas/pci/loongson.yaml#
/kernel/github/arch/loongarch/boot/dts/loongson-2k1000-ref.dtb:
pcie@1a000000: ethernet@3,0:interrupts:0:0: 12 is not one of [1, 2, 3,
4]
        from schema $id: http://devicetree.org/schemas/pci/pci-bus-common.yaml#
/kernel/github/arch/loongarch/boot/dts/loongson-2k1000-ref.dtb:
pcie@1a000000: ethernet@3,0:interrupts:0: [12, 4] is too long
        from schema $id: http://devicetree.org/schemas/pci/pci-bus-common.yaml#
/kernel/github/arch/loongarch/boot/dts/loongson-2k1000-ref.dtb:
pcie@1a000000: ethernet@3,0:interrupts: [[12, 4], [13, 4]] is too long
        from schema $id: http://devicetree.org/schemas/pci/pci-bus-common.yaml#
/kernel/github/arch/loongarch/boot/dts/loongson-2k1000-ref.dtb:
pcie@1a000000: ethernet@3,1:interrupts:0:0: 14 is not one of [1, 2, 3,
4]
        from schema $id: http://devicetree.org/schemas/pci/pci-bus-common.yaml#
/kernel/github/arch/loongarch/boot/dts/loongson-2k1000-ref.dtb:
pcie@1a000000: ethernet@3,1:interrupts:0: [14, 4] is too long
        from schema $id: http://devicetree.org/schemas/pci/pci-bus-common.yaml#
/kernel/github/arch/loongarch/boot/dts/loongson-2k1000-ref.dtb:
pcie@1a000000: ethernet@3,1:interrupts:0:0: 14 is not one of [1, 2, 3,
4]
        from schema $id: http://devicetree.org/schemas/pci/pci-bus-common.yaml#
/kernel/github/arch/loongarch/boot/dts/loongson-2k1000-ref.dtb:
pcie@1a000000: ethernet@3,1:interrupts:0: [14, 4] is too long
        from schema $id: http://devicetree.org/schemas/pci/pci-bus-common.yaml#
/kernel/github/arch/loongarch/boot/dts/loongson-2k1000-ref.dtb:
pcie@1a000000: ethernet@3,1:interrupts: [[14, 4], [15, 4]] is too long
        from schema $id: http://devicetree.org/schemas/pci/pci-bus-common.yaml#
/kernel/github/arch/loongarch/boot/dts/loongson-2k1000-ref.dtb:
pcie@1a000000: usb@4,1:interrupts:0:0: 18 is not one of [1, 2, 3, 4]
        from schema $id: http://devicetree.org/schemas/pci/pci-bus-common.yaml#
/kernel/github/arch/loongarch/boot/dts/loongson-2k1000-ref.dtb:
pcie@1a000000: usb@4,1:interrupts:0: [18, 4] is too long
        from schema $id: http://devicetree.org/schemas/pci/pci-bus-common.yaml#
/kernel/github/arch/loongarch/boot/dts/loongson-2k1000-ref.dtb:
pcie@1a000000: usb@4,2:interrupts:0:0: 19 is not one of [1, 2, 3, 4]
        from schema $id: http://devicetree.org/schemas/pci/pci-bus-common.yaml#
/kernel/github/arch/loongarch/boot/dts/loongson-2k1000-ref.dtb:
pcie@1a000000: usb@4,2:interrupts:0: [19, 4] is too long
        from schema $id: http://devicetree.org/schemas/pci/pci-bus-common.yaml#
/kernel/github/arch/loongarch/boot/dts/loongson-2k1000-ref.dtb:
pcie@1a000000: display@6,0:interrupts:0:0: 28 is not one of [1, 2, 3,
4]
        from schema $id: http://devicetree.org/schemas/pci/pci-bus-common.yaml#
/kernel/github/arch/loongarch/boot/dts/loongson-2k1000-ref.dtb:
pcie@1a000000: display@6,0:interrupts:0: [28, 4] is too long
        from schema $id: http://devicetree.org/schemas/pci/pci-bus-common.yaml#
/kernel/github/arch/loongarch/boot/dts/loongson-2k1000-ref.dtb:
pcie@1a000000: hda@7,0:interrupts:0: [4, 4] is too long
        from schema $id: http://devicetree.org/schemas/pci/pci-bus-common.yaml#
/kernel/github/arch/loongarch/boot/dts/loongson-2k1000-ref.dtb:
pcie@1a000000: sata@8,0:interrupts:0:0: 19 is not one of [1, 2, 3, 4]
        from schema $id: http://devicetree.org/schemas/pci/pci-bus-common.yaml#
/kernel/github/arch/loongarch/boot/dts/loongson-2k1000-ref.dtb:
pcie@1a000000: sata@8,0:interrupts:0: [19, 4] is too long
        from schema $id: http://devicetree.org/schemas/pci/pci-bus-common.yaml#


Thanks.
Binbin




[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