Merge tag 'devicetree-for-6.4-2' of git://git.kernel.org/pub/scm/linux/kernel/git...
authorLinus Torvalds <torvalds@linux-foundation.org>
Thu, 27 Apr 2023 17:09:05 +0000 (10:09 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 27 Apr 2023 17:09:05 +0000 (10:09 -0700)
Pull more devicetree updates from Rob Herring:

 - First part of DT header detangling dropping cpu.h from of_device.h
   and replacing some includes with forward declarations. A handful of
   drivers needed some adjustment to their includes as a result.

 - Refactor of_device.h to be used by bus drivers rather than various
   device drivers. This moves non-bus related functions out of
   of_device.h. The end goal is for of_platform.h and of_device.h to
   stop including each other.

 - Refactor open coded parsing of "ranges" in some bus drivers to use DT
   address parsing functions

 - Add some new address parsing functions of_property_read_reg(),
   of_range_count(), and of_range_to_resource() in preparation to
   convert more open coded parsing of DT addresses to use them.

 - Treewide clean-ups to use of_property_read_bool() and
   of_property_present() as appropriate. The ones here are the ones that
   didn't get picked up elsewhere.

* tag 'devicetree-for-6.4-2' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux: (34 commits)
  bus: tegra-gmi: Replace of_platform.h with explicit includes
  hte: Use of_property_present() for testing DT property presence
  w1: w1-gpio: Use of_property_read_bool() for boolean properties
  virt: fsl: Use of_property_present() for testing DT property presence
  soc: fsl: Use of_property_present() for testing DT property presence
  sbus: display7seg: Use of_property_read_bool() for boolean properties
  sparc: Use of_property_read_bool() for boolean properties
  sparc: Use of_property_present() for testing DT property presence
  bus: mvebu-mbus: Remove open coded "ranges" parsing
  of/address: Add of_property_read_reg() helper
  of/address: Add of_range_count() helper
  of/address: Add support for 3 address cell bus
  of/address: Add of_range_to_resource() helper
  of: unittest: Add bus address range parsing tests
  of: Drop cpu.h include from of_device.h
  OPP: Adjust includes to remove of_device.h
  irqchip: loongson-eiointc: Add explicit include for cpuhotplug.h
  cpuidle: Adjust includes to remove of_device.h
  cpufreq: sun50i: Add explicit include for cpu.h
  cpufreq: Adjust includes to remove of_device.h
  ...

16 files changed:
1  2 
arch/riscv/kernel/setup.c
drivers/base/cacheinfo.c
drivers/cpufreq/acpi-cpufreq.c
drivers/cpufreq/cpufreq-dt-platdev.c
drivers/cpufreq/pcc-cpufreq.c
drivers/cpufreq/pmac32-cpufreq.c
drivers/cpufreq/qcom-cpufreq-hw.c
drivers/cpufreq/tegra124-cpufreq.c
drivers/cpufreq/tegra20-cpufreq.c
drivers/cpuidle/cpuidle-riscv-sbi.c
drivers/irqchip/irq-loongson-eiointc.c
drivers/of/address.c
drivers/of/unittest.c
drivers/opp/of.c
drivers/soc/mediatek/mtk-svs.c
include/linux/cpufreq.h

Simple merge
Simple merge
index e1a5384cf21c89aeef96f7517efd598aee725039,78adfb2ffff6e7d09111304057a689cd08fbd310..29904395e95f9ca3b6c24d845584a5da141a99b0
@@@ -20,6 -20,6 +20,7 @@@
  #include <linux/dmi.h>
  #include <linux/slab.h>
  #include <linux/string_helpers.h>
++#include <linux/platform_device.h>
  
  #include <linux/acpi.h>
  #include <linux/io.h>
Simple merge
index 0c362932ca6002b9b00124bfbed46cba581ca534,9f3fc7a073d075ba50ae3e3f72be03070db59316..1d2cfea9858afc121d8ecf4048d5bf2bfc9afe4a
@@@ -31,6 -31,6 +31,7 @@@
  #include <linux/cpufreq.h>
  #include <linux/compiler.h>
  #include <linux/slab.h>
++#include <linux/platform_device.h>
  
  #include <linux/acpi.h>
  #include <linux/io.h>
Simple merge
index eb54f7f17ab507a71772baba47f1ebaddf1485b4,df165a078d141ffebe88cf9df9560a4c404c3341..a78d7a27b4b56fd45da8423ef4776c0514358efc
  #include <linux/interrupt.h>
  #include <linux/kernel.h>
  #include <linux/module.h>
- #include <linux/of_address.h>
- #include <linux/of_platform.h>
+ #include <linux/of.h>
+ #include <linux/platform_device.h>
  #include <linux/pm_opp.h>
 -#include <linux/pm_qos.h>
  #include <linux/slab.h>
  #include <linux/spinlock.h>
  #include <linux/units.h>
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge