summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2019-05-24 18:16:46 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2019-05-24 18:16:46 -0400
commite7bd3e248bc36451fdbf2a2e3a3c5a23cd0b1f6f (patch)
tree3d64fa8c37300561936ddbb0b17ab3a0cc71a365 /scripts
parent86c2f5d653058798703549e1be39a819fcac0d5d (diff)
parent852d095d16a6298834839f441593f59d58a31978 (diff)
Merge tag 'devicetree-fixes-for-5.2' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux
Pull Devicetree fixes from Rob Herring: - Update checkpatch.pl to use DT vendor-prefixes.yaml - Fix DT binding references to files converted to DT schema - Clean-up Arm CPU binding examples to match schema - Add Sifive block versioning scheme documentation - Pass binding directory base to validation tools for reference lookups * tag 'devicetree-fixes-for-5.2' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux: checkpatch.pl: Update DT vendor prefix check dt: bindings: mtd: replace references to nand.txt with nand-controller.yaml dt-bindings: interrupt-controller: arm,gic: Fix schema errors in example dt-bindings: arm: Clean up CPU binding examples dt: fix refs that were renamed to json with the same file name dt-bindings: Pass binding directory to validation tools dt-bindings: sifive: describe sifive-blocks versioning
Diffstat (limited to 'scripts')
-rw-r--r--scripts/Makefile.lib2
-rwxr-xr-xscripts/checkpatch.pl4
2 files changed, 3 insertions, 3 deletions
diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib
index 1b412d4394ae..f1f38c8cdc74 100644
--- a/scripts/Makefile.lib
+++ b/scripts/Makefile.lib
@@ -298,7 +298,7 @@ DT_BINDING_DIR := Documentation/devicetree/bindings
298DT_TMP_SCHEMA := $(objtree)/$(DT_BINDING_DIR)/processed-schema.yaml 298DT_TMP_SCHEMA := $(objtree)/$(DT_BINDING_DIR)/processed-schema.yaml
299 299
300quiet_cmd_dtb_check = CHECK $@ 300quiet_cmd_dtb_check = CHECK $@
301 cmd_dtb_check = $(DT_CHECKER) -p $(DT_TMP_SCHEMA) $@ ; 301 cmd_dtb_check = $(DT_CHECKER) -u $(srctree)/$(DT_BINDING_DIR) -p $(DT_TMP_SCHEMA) $@ ;
302 302
303define rule_dtc_dt_yaml 303define rule_dtc_dt_yaml
304 $(call cmd_and_fixdep,dtc,yaml) 304 $(call cmd_and_fixdep,dtc,yaml)
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index bb28b178d929..342c7c781ba5 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -3027,7 +3027,7 @@ sub process {
3027 my @compats = $rawline =~ /\"([a-zA-Z0-9\-\,\.\+_]+)\"/g; 3027 my @compats = $rawline =~ /\"([a-zA-Z0-9\-\,\.\+_]+)\"/g;
3028 3028
3029 my $dt_path = $root . "/Documentation/devicetree/bindings/"; 3029 my $dt_path = $root . "/Documentation/devicetree/bindings/";
3030 my $vp_file = $dt_path . "vendor-prefixes.txt"; 3030 my $vp_file = $dt_path . "vendor-prefixes.yaml";
3031 3031
3032 foreach my $compat (@compats) { 3032 foreach my $compat (@compats) {
3033 my $compat2 = $compat; 3033 my $compat2 = $compat;
@@ -3042,7 +3042,7 @@ sub process {
3042 3042
3043 next if $compat !~ /^([a-zA-Z0-9\-]+)\,/; 3043 next if $compat !~ /^([a-zA-Z0-9\-]+)\,/;
3044 my $vendor = $1; 3044 my $vendor = $1;
3045 `grep -Eq "^$vendor\\b" $vp_file`; 3045 `grep -Eq "\\"\\^\Q$vendor\E,\\.\\*\\":" $vp_file`;
3046 if ( $? >> 8 ) { 3046 if ( $? >> 8 ) {
3047 WARN("UNDOCUMENTED_DT_STRING", 3047 WARN("UNDOCUMENTED_DT_STRING",
3048 "DT compatible string vendor \"$vendor\" appears un-documented -- check $vp_file\n" . $herecurr); 3048 "DT compatible string vendor \"$vendor\" appears un-documented -- check $vp_file\n" . $herecurr);