Merge tag 'devicetree-fixes-for-4.14' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux

Pull DeviceTree fixes from Rob Herring:

- fix build for !OF providing empty of_find_device_by_node

- fix Abracon vendor prefix

- sync dtx_diff include paths (again)

- a stm32h7 clock binding doc fix

* tag 'devicetree-fixes-for-4.14' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux:
dt-bindings: clk: stm32h7: fix clock-cell size
scripts/dtc: dtx_diff - 2nd update of include dts paths to match build
dt-bindings: fix vendor prefix for Abracon
of: provide inline helper for of_find_device_by_node

Changed files
+18 -15
Documentation
devicetree
include
scripts
dtc
+1 -1
Documentation/devicetree/bindings/clock/st,stm32h7-rcc.txt
··· 32 32 compatible = "st,stm32h743-rcc", "st,stm32-rcc"; 33 33 reg = <0x58024400 0x400>; 34 34 #reset-cells = <1>; 35 - #clock-cells = <2>; 35 + #clock-cells = <1>; 36 36 clocks = <&clk_hse>, <&clk_lse>, <&clk_i2s_ckin>; 37 37 38 38 st,syscfg = <&pwrcfg>;
+1 -1
Documentation/devicetree/bindings/vendor-prefixes.txt
··· 3 3 This isn't an exhaustive list, but you should add new prefixes to it before 4 4 using them to avoid name-space collisions. 5 5 6 - abcn Abracon Corporation 7 6 abilis Abilis Systems 7 + abracon Abracon Corporation 8 8 actions Actions Semiconductor Co., Ltd. 9 9 active-semi Active-Semi International Inc 10 10 ad Avionic Design GmbH
+7
include/linux/of_platform.h
··· 57 57 extern struct platform_device *of_device_alloc(struct device_node *np, 58 58 const char *bus_id, 59 59 struct device *parent); 60 + #ifdef CONFIG_OF 60 61 extern struct platform_device *of_find_device_by_node(struct device_node *np); 62 + #else 63 + static inline struct platform_device *of_find_device_by_node(struct device_node *np) 64 + { 65 + return NULL; 66 + } 67 + #endif 61 68 62 69 /* Platform devices and busses creation */ 63 70 extern struct platform_device *of_platform_device_create(struct device_node *np,
+9 -13
scripts/dtc/dtx_diff
··· 86 86 compile_to_dts() { 87 87 88 88 dtx="$1" 89 + dtc_include="$2" 89 90 90 91 if [ -d "${dtx}" ] ; then 91 92 ··· 114 113 # ----- input is DTS (source) 115 114 116 115 if ( cpp ${cpp_flags} -x assembler-with-cpp ${dtx} \ 117 - | ${DTC} -I dts ) ; then 116 + | ${DTC} ${dtc_include} -I dts ) ; then 118 117 return 119 118 fi 120 119 ··· 321 320 322 321 cpp_flags="\ 323 322 -nostdinc \ 324 - -I${srctree}/arch/${ARCH}/boot/dts \ 325 323 -I${srctree}/scripts/dtc/include-prefixes \ 326 - -I${srctree}/drivers/of/testcase-data \ 327 324 -undef -D__DTS__" 328 325 329 - dtc_flags="\ 330 - -i ${srctree}/arch/${ARCH}/boot/dts/ \ 331 - -i ${srctree}/kernel/dts \ 332 - ${dtx_path_1_dtc_include} \ 333 - ${dtx_path_2_dtc_include}" 334 - 335 - DTC="${DTC} ${dtc_flags} -O dts -qq -f ${dtc_sort} -o -" 326 + DTC="\ 327 + ${DTC} \ 328 + -i ${srctree}/scripts/dtc/include-prefixes \ 329 + -O dts -qq -f ${dtc_sort} -o -" 336 330 337 331 338 332 # ----- do the diff or decompile ··· 335 339 if (( ${cmd_diff} )) ; then 336 340 337 341 diff ${diff_flags} --label "${dtx_file_1}" --label "${dtx_file_2}" \ 338 - <(compile_to_dts "${dtx_file_1}") \ 339 - <(compile_to_dts "${dtx_file_2}") 342 + <(compile_to_dts "${dtx_file_1}" "${dtx_path_1_dtc_include}") \ 343 + <(compile_to_dts "${dtx_file_2}" "${dtx_path_2_dtc_include}") 340 344 341 345 else 342 346 343 - compile_to_dts "${dtx_file_1}" 347 + compile_to_dts "${dtx_file_1}" "${dtx_path_1_dtc_include}" 344 348 345 349 fi