devicetree-org / dt-schema

Devicetree schema tools
http://www.devicetree.org
BSD 2-Clause "Simplified" License
67 stars 67 forks source link

DT_SCHEMA_FILES=Documentation/full/path stopped working #107

Closed krzk closed 1 year ago

krzk commented 1 year ago

On recent next (e.g. next-20230720):

cd out
dt-validate -l /bindings/extcon/siliconmitus,sm5502-muic.yaml -u ../Documentation/devicetree/bindings -p ./Documentation/devicetree/bindings/processed-schema.json arch/arm64/boot/dts/qcom/msm8916-samsung-serranove.dtb

Expected:

/home/krzk/dev/linux/linux/out/arch/arm64/boot/dts/qcom/msm8916-samsung-serranove.dtb: extcon@14: 'connector' does not match any of the regexes: 'pinctrl-[0-9]+'
    From schema: /home/krzk/dev/linux/linux/Documentation/devicetree/bindings/extcon/siliconmitus,sm5502-muic.yaml

Result: Nothing (success)

Bisection pointed to dtschema commit: bc164f9dc87e ("Split DTValidator class into 2 classes")

robherring commented 1 year ago

Fixed in commit 87f43e6.