#906
RISC-V device-tree in non-conformant with Linux device-tree schema
I ran this against the 6.18 kernel:
dt-mk-schema ~/workspace/kernel/linux/Documentation/devicetree/bindings/ > processed-schema.json
to get the device-tree schema and then checked the device-tree with
dt-validate -s processed-schema.json fdtIt found multiple issues:
/ (linux,dummy-virt): 'model' is a required property
from schema $id: http://devicetree.org/schemas/root-node.yaml
cpu@0 (riscv): mmu-type:0: 'sv48' is not one of ['riscv,sv32', 'riscv,sv39', 'riscv,sv48', 'riscv,sv57', 'riscv,none']
from schema $id: http://devicetree.org/schemas/riscv/cpus.yaml
cpu@1 (riscv): mmu-type:0: 'sv48' is not one of ['riscv,sv32', 'riscv,sv39', 'riscv,sv48', 'riscv,sv57', 'riscv,none']
from schema $id: http://devicetree.org/schemas/riscv/cpus.yaml
cpu@2 (riscv): mmu-type:0: 'sv48' is not one of ['riscv,sv32', 'riscv,sv39', 'riscv,sv48', 'riscv,sv57', 'riscv,none']
from schema $id: http://devicetree.org/schemas/riscv/cpus.yaml
cpu@3 (riscv): mmu-type:0: 'sv48' is not one of ['riscv,sv32', 'riscv,sv39', 'riscv,sv48', 'riscv,sv57', 'riscv,none']
from schema $id: http://devicetree.org/schemas/riscv/cpus.yaml
imsics@4000000 (riscv,imsics): $nodename:0: 'imsics@4000000' does not match '^interrupt-controller(@[0-9a-f,]+)*$'
from schema $id: http://devicetree.org/schemas/interrupt-controller/riscv,imsics.yaml
imsics@4000000 (riscv,imsics): compatible:0: 'riscv,imsics' is not one of ['qemu,imsics']
from schema $id: http://devicetree.org/schemas/interrupt-controller/riscv,imsics.yaml
imsics@4000000 (riscv,imsics): compatible: ['riscv,imsics'] is too short
from schema $id: http://devicetree.org/schemas/interrupt-controller/riscv,imsics.yaml
imsics@4000000 (riscv,imsics): '#msi-cells' is a required property
from schema $id: http://devicetree.org/schemas/interrupt-controller/riscv,imsics.yaml
aplic@0 (riscv,aplic): $nodename:0: 'aplic@0' does not match '^interrupt-controller(@[0-9a-f,]+)*$'
from schema $id: http://devicetree.org/schemas/interrupt-controller/riscv,aplic.yaml
aplic@0 (riscv,aplic): compatible:0: 'riscv,aplic' is not one of ['qemu,aplic']
from schema $id: http://devicetree.org/schemas/interrupt-controller/riscv,aplic.yaml
aplic@0 (riscv,aplic): compatible: ['riscv,aplic'] is too short
from schema $id: http://devicetree.org/schemas/interrupt-controller/riscv,aplic.yamlActivity
0No activity yet.