[PATCH 16/36] dt-bindings: arm: Convert Alpine board/soc bindings to json-schema

2018-10-05 Thread Rob Herring
Convert Alpine SoC bindings to DT schema format using json-schema. Cc: Tsahee Zidenberg Cc: Antoine Tenart Cc: Mark Rutland Cc: devicet...@vger.kernel.org Signed-off-by: Rob Herring --- .../devicetree/bindings/arm/al,alpine.txt | 16 -- .../devicetree/bindings/arm/al

[PATCH 15/36] dt-bindings: arm: Convert Actions Semi bindings to jsonschema

2018-10-05 Thread Rob Herring
Convert Actions Semi SoC bindings to DT schema format using json-schema. Cc: "Andreas Färber" Cc: Mark Rutland Cc: linux-arm-ker...@lists.infradead.org Cc: devicet...@vger.kernel.org Signed-off-by: Rob Herring --- .../devicetree/bindings/arm/actions.txt

[PATCH 14/36] dt-bindings: arm: Convert primecell binding to json-schema

2018-10-05 Thread Rob Herring
Convert ARM Primecell binding to DT schema format using json-schema. Cc: Mark Rutland Cc: devicet...@vger.kernel.org Signed-off-by: Rob Herring --- .../devicetree/bindings/arm/primecell.txt | 46 --- .../devicetree/bindings/arm/primecell.yaml| 35 ++ 2 files

[PATCH 13/36] dt-bindings: arm: Convert PMU binding to json-schema

2018-10-05 Thread Rob Herring
Convert ARM PMU binding to DT schema format using json-schema. Cc: Will Deacon Cc: Mark Rutland Cc: linux-arm-ker...@lists.infradead.org Cc: devicet...@vger.kernel.org Signed-off-by: Rob Herring --- Documentation/devicetree/bindings/arm/pmu.txt | 70 -- .../devicetree/bindings/arm

[PATCH 12/36] dt-bindings: arm: Convert cpu binding to json-schema

2018-10-05 Thread Rob Herring
Convert ARM CPU binding to DT schema format using json-schema. Cc: Mark Rutland Cc: Matthias Brugger Cc: devicet...@vger.kernel.org Cc: linux-arm-ker...@lists.infradead.org Cc: linux-media...@lists.infradead.org Signed-off-by: Rob Herring --- .../devicetree/bindings/arm/cpus.txt

[PATCH 11/36] dt-bindings: timer: Convert ARM timer bindings to json-schema

2018-10-05 Thread Rob Herring
Convert ARM timers to DT schema format using json-schema. Cc: Daniel Lezcano Cc: Thomas Gleixner Cc: Mark Rutland Cc: devicet...@vger.kernel.org Signed-off-by: Rob Herring --- .../bindings/timer/arm,arch_timer.txt | 112 .../bindings/timer/arm,arch_timer.yaml

[PATCH 10/36] dt-bindings: altera: Convert clkmgr binding to json-schema

2018-10-05 Thread Rob Herring
Convert Altera clkmgr to DT schema format using json-schema. Cc: Mark Rutland Cc: Dinh Nguyen Cc: devicet...@vger.kernel.org Signed-off-by: Rob Herring --- .../arm/altera/socfpga-clk-manager.txt| 11 --- .../arm/altera/socfpga-clk-manager.yaml | 30 +++ 2

[PATCH 09/36] dt-bindings: Convert trivial-devices.txt to json-schema

2018-10-05 Thread Rob Herring
Convert trivial-devices.txt to DT schema format using json-schema. Cc: Mark Rutland Cc: devicet...@vger.kernel.org Signed-off-by: Rob Herring --- .../devicetree/bindings/trivial-devices.txt | 201 - .../devicetree/bindings/trivial-devices.yaml | 414 ++ 2 files

[PATCH 08/36] dt-bindings: Add a writing DT schemas how-to and annotated example

2018-10-05 Thread Rob Herring
schema, YAML encoded DT output with dtc, and a small number of python scripts to run validation. Cc: Mark Rutland Cc: devicet...@vger.kernel.org Signed-off-by: Rob Herring --- .../devicetree/bindings/example-schema.yaml | 155 ++ Documentation/devicetree/writing-schema.md

[PATCH 07/36] kbuild: Add support for DT binding schema checks

2018-10-05 Thread Rob Herring
...@vger.kernel.org Signed-off-by: Rob Herring --- .gitignore | 1 + Documentation/Makefile | 2 +- Documentation/devicetree/bindings/.gitignore | 2 ++ Documentation/devicetree/bindings/Makefile | 30 Makefile

[PATCH 06/36] dt-bindings: arm: zte: Move sysctrl bindings to their own doc

2018-10-05 Thread Rob Herring
In preparation to convert board-level bindings to json-schema, move various misc SoC bindings out to their own file. Cc: Mark Rutland Cc: Jun Nie Cc: Baoyou Xie Cc: Shawn Guo Cc: devicet...@vger.kernel.org Cc: linux-arm-ker...@lists.infradead.org Signed-off-by: Rob Herring

[PATCH 05/36] dt-bindings: arm: renesas: Move 'renesas, prr' binding to its own doc

2018-10-05 Thread Rob Herring
In preparation to convert board-level bindings to json-schema, move various misc SoC bindings out to their own file. Cc: Mark Rutland Cc: Simon Horman Cc: Magnus Damm Cc: devicet...@vger.kernel.org Cc: linux-renesas-...@vger.kernel.org Signed-off-by: Rob Herring --- .../devicetree/bindings

[PATCH 04/36] dt-bindings: arm: fsl: Move DCFG and SCFG bindings to their own docs

2018-10-05 Thread Rob Herring
In preparation to convert board-level bindings to json-schema, move various misc SoC bindings out to their own file. Cc: Shawn Guo Cc: Mark Rutland Cc: devicet...@vger.kernel.org Signed-off-by: Rob Herring --- .../arm/freescale/fsl,layerscape-dcfg.txt | 19 + .../arm/freescale/fsl

[PATCH 03/36] dt-bindings: arm: atmel: Move various sys registers out of SoC binding doc

2018-10-05 Thread Rob Herring
In preparation to convert board-level bindings to json-schema, move various misc SoC bindings out to their own file. Cc: Mark Rutland Cc: Nicolas Ferre Cc: Alexandre Belloni Cc: devicet...@vger.kernel.org Cc: linux-arm-ker...@lists.infradead.org Signed-off-by: Rob Herring --- .../devicetree

[PATCH 02/36] dt-bindings: arm: amlogic: Move 'amlogic, meson-gx-ao-secure' binding to its own file

2018-10-05 Thread Rob Herring
-by: Rob Herring --- .../devicetree/bindings/arm/amlogic.txt | 29 --- .../amlogic/amlogic,meson-gx-ao-secure.txt| 28 ++ 2 files changed, 28 insertions(+), 29 deletions(-) create mode 100644 Documentation/devicetree/bindings/arm/amlogic/amlogic,meson-gx

[PATCH 01/36] dt-bindings: arm: alpine: Move CPU control related binding to cpu-enable-method/al, alpine-smp

2018-10-05 Thread Rob Herring
...@vger.kernel.org Signed-off-by: Rob Herring --- .../devicetree/bindings/arm/al,alpine.txt | 72 --- .../arm/cpu-enable-method/al,alpine-smp | 34 - 2 files changed, 31 insertions(+), 75 deletions(-) diff --git a/Documentation/devicetree/bindings/arm/al,alpine.txt b

[PATCH 00/36] Devicetree schema

2018-10-05 Thread Rob Herring
not perfect, but works pretty well considering the input is free form text. Rob [1] https://github.com/robherring/yaml-bindings [2] git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git yaml-bindings Rob Herring (36): dt-bindings: arm: alpine: Move CPU control related binding

Re: [PATCH 09/16] of: overlay: validate overlay properties #address-cells and #size-cells

2018-10-05 Thread Rob Herring
On Thu, Oct 4, 2018 at 11:14 PM wrote: > > From: Frank Rowand > > If overlay properties #address-cells or #size-cells are already in > the live devicetree for any given node, then the values in the > overlay must match the values in the live tree. > > If the properties are already in the live

Re: [PATCH 15/16] of: unittest: initialize args before calling of_irq_parse_one()

2018-10-05 Thread Rob Herring
On Thu, Oct 4, 2018 at 11:14 PM wrote: > > From: Frank Rowand > > Callers of of_irq_parse_one() blindly use the pointer args.np > without checking whether of_irq_parse_one() had an error and > thus did not set the value of args.np. Initialize args to > zero so that using the format "%pOF" to

Re: drivers binding to device node with multiple compatible strings

2018-10-02 Thread Rob Herring
On Fri, Sep 28, 2018 at 4:01 PM Li Yang wrote: > > On Fri, Sep 28, 2018 at 3:07 PM Rob Herring wrote: > > > > On Thu, Sep 27, 2018 at 5:25 PM Li Yang wrote: > > > > > > Hi Rob and Grant, > > > > > > Various device tree specs are recommending

[PATCH v4 7/9] powerpc: enable building all dtbs

2018-10-01 Thread Rob Herring
Enable the 'dtbs' target for powerpc. This allows building all the dts files in arch/powerpc/boot/dts/ when COMPILE_TEST and OF_ALL_DTBS are enabled. Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org Signed-off-by: Rob Herring --- arch

[PATCH v4 6/9] kbuild: consolidate Devicetree dtb build rules

2018-10-01 Thread Rob Herring
-xtensa.org Signed-off-by: Rob Herring --- v4: - Make dtbs and %.dtb rules depend on arch/$ARCH/boot/dts path rather than CONFIG_OF_EARLY_FLATTREE - Fix install path missing kernel version for dtbs_install - Fix "make CONFIG_OF_ALL_DTBS=y" for arches like ARM which selectively enable

[PATCH v4 1/9] powerpc: build .dtb files in dts directory

2018-10-01 Thread Rob Herring
of kernel config. This transition could break some scripts if they expect dtb files in the old location. Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org Signed-off-by: Rob Herring --- PPC maintainers, really need you review/ack on this. arch

[PATCH v4 0/9] Devicetree build consolidation

2018-10-01 Thread Rob Herring
el targets - PPC: remove duplicate mpc5200 dtbs from image-y targets v2: - Fix $arch/boot/dts path check for out of tree builds - Fix dtc dependency for building built-in dtbs - Fix microblaze built-in dtb building - Add dtbs target for microblaze Rob Herring (9): powerpc: build .dtb fi

Re: [PATCH v3 6/9] kbuild: consolidate Devicetree dtb build rules

2018-10-01 Thread Rob Herring
On Mon, Oct 1, 2018 at 12:49 AM Masahiro Yamada wrote: > > Hi Rob, > > > 2018年9月29日(土) 0:43 Rob Herring : > > > +# > > --- > > +# Devicetree files > > + > > +ifneq

[PATCH v2] i2c: Convert to using %pOFn instead of device_node.name

2018-09-28 Thread Rob Herring
In preparation to remove the node name pointer from struct device_node, convert printf users to use the %pOFn format specifier. Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman Cc: Peter Rosin Cc: linux-...@vger.kernel.org Cc: linuxppc-dev@lists.ozlabs.org Signed-off-by: Rob

Re: [PATCH] tty: Convert to using %pOFn instead of device_node.name

2018-09-28 Thread Rob Herring
On Fri, Sep 28, 2018 at 5:09 PM Rob Herring wrote: > > On Mon, Aug 27, 2018 at 8:55 PM Rob Herring wrote: > > > > In preparation to remove the node name pointer from struct device_node, > > convert printf users to use the %pOFn format specifier. > > > > Cc: Gr

Re: [PATCH] tty: Convert to using %pOFn instead of device_node.name

2018-09-28 Thread Rob Herring
On Mon, Aug 27, 2018 at 8:55 PM Rob Herring wrote: > > In preparation to remove the node name pointer from struct device_node, > convert printf users to use the %pOFn format specifier. > > Cc: Greg Kroah-Hartman > Cc: Jiri Slaby > Cc: Benjamin Herrenschmidt > Cc: Paul

Re: drivers binding to device node with multiple compatible strings

2018-09-28 Thread Rob Herring
On Thu, Sep 27, 2018 at 5:25 PM Li Yang wrote: > > Hi Rob and Grant, > > Various device tree specs are recommending to include all the > potential compatible strings in the device node, with the order from > most specific to most general. But it looks like Linux kernel doesn't > provide a way to

Re: [PATCH v3 6/9] kbuild: consolidate Devicetree dtb build rules

2018-09-28 Thread Rob Herring
On Fri, Sep 28, 2018 at 12:21 PM Andreas Färber wrote: > > Hi Geert, > > Am 13.09.18 um 17:51 schrieb Geert Uytterhoeven: > > On Wed, Sep 12, 2018 at 3:02 AM Masahiro Yamada > > wrote: > >> Even x86 can enable OF and OF_UNITTEST. > >> > >> Another solution might be, > >> guard it by 'depends on

Re: [PATCH v3 6/9] kbuild: consolidate Devicetree dtb build rules

2018-09-28 Thread Rob Herring
On Sun, Sep 23, 2018 at 06:31:14AM -0400, Masahiro Yamada wrote: > 2018-09-13 11:51 GMT-04:00 Geert Uytterhoeven : > > Hi Yamada-san, > > > > On Wed, Sep 12, 2018 at 3:02 AM Masahiro Yamada > > wrote: > >> 2018-09-12 0:40 GMT+09:00 Rob Herring : > >> &

Re: [PATCH v3 1/6] dt-bindings: arm64: add compatible for LX2160A

2018-09-27 Thread Rob Herring
On Mon, 24 Sep 2018 05:38:56 +0530, Vabhav Sharma wrote: > Add compatible for LX2160A SoC,QDS and RDB board > > Signed-off-by: Vabhav Sharma > --- > Documentation/devicetree/bindings/arm/fsl.txt | 12 > 1 file changed, 12 insertions(+) > Reviewed-by: Rob Herring

Re: [PATCH v3 1/9] powerpc: build .dtb files in dts directory

2018-09-27 Thread Rob Herring
On Mon, Sep 10, 2018 at 10:04 AM Rob Herring wrote: > > Align powerpc with other architectures which build the dtb files in the > same directory as the dts files. This is also in line with most other > build targets which are located in the same directory as the source. > This

Re: [PATCH v3 3/3] dt-bindings: watchdog: add mpc8xxx-wdt support

2018-09-26 Thread Rob Herring
og/mpc8xxx-wdt.txt | 25 > ++ > 1 file changed, 25 insertions(+) > create mode 100644 Documentation/devicetree/bindings/watchdog/mpc8xxx-wdt.txt > Reviewed-by: Rob Herring

Re: [PATCH 3/3] scripts/dtc: Update to upstream version v1.4.7-14-gc86da84d30e4

2018-09-18 Thread Rob Herring
On Fri, Sep 14, 2018 at 2:32 PM Frank Rowand wrote: > > On 09/13/18 13:28, Rob Herring wrote: > > Major changes are I2C and SPI bus checks, YAML output format (for > > future validation), some new libfdt functions, and more libfdt > > validation of dtbs. > > > >

[GIT PULL] Devicetree fix for 4.19-rc

2018-09-14 Thread Rob Herring
fixes for 4.19, part 2: - Fix a regression on systems having a DT without any phandles which happens on a PowerMac G3. Rob Herring (1): of: fix phandle cache creation for DTs with no phandles drivers/of/base.c | 3 +++ 1

[PATCH 3/3] scripts/dtc: Update to upstream version v1.4.7-14-gc86da84d30e4

2018-09-13 Thread Rob Herring
libfdt: Clean up header checking functions 44d3efedc816 Preserve datatype information when parsing dts f0be81bd8de0 Make Property a subclass of bytearray 24b1f3f064d4 pylibfdt: Add a method to access the device tree directly Signed-off-by: Rob Herring --- As usual, this generated from a script

[PATCH 2/3] scripts/dtc: Add yamltree.c to dtc sources

2018-09-13 Thread Rob Herring
dtc has a new source file, yamltree.c, that needs to be copied when syncing dtc sources. Signed-off-by: Rob Herring --- scripts/dtc/update-dtc-source.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/dtc/update-dtc-source.sh b/scripts/dtc/update-dtc-source.sh index

[PATCH 1/3] libfdt: Ensure INT_MAX is defined in libfdt_env.h

2018-09-13 Thread Rob Herring
...@lists.infradead.org Cc: linuxppc-dev@lists.ozlabs.org Signed-off-by: Rob Herring --- arch/arm/boot/compressed/libfdt_env.h | 2 ++ arch/powerpc/boot/libfdt_env.h| 2 ++ include/linux/libfdt_env.h| 1 + 3 files changed, 5 insertions(+) diff --git a/arch/arm/boot/compressed

Re: [PATCH v3 6/9] kbuild: consolidate Devicetree dtb build rules

2018-09-11 Thread Rob Herring
On Mon, Sep 10, 2018 at 10:04 AM Rob Herring wrote: > > There is nothing arch specific about building dtb files other than their > location under /arch/*/boot/dts/. Keeping each arch aligned is a pain. > The dependencies and supported targets are all slightly different. > Also, a

[PATCH] of: fix phandle cache creation for DTs with no phandles

2018-09-11 Thread Rob Herring
: Finn Thain Tested-by: Stan Johnson Cc: Frank Rowand Cc: Benjamin Herrenschmidt Signed-off-by: Rob Herring --- Here's a formal patch of what Stan tested. Will send to Linus this week. Rob drivers/of/base.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/of/base.c b/drivers/of/base.

[PATCH v3 7/9] powerpc: enable building all dtbs

2018-09-10 Thread Rob Herring
Enable the 'dtbs' target for powerpc. This allows building all the dts files in arch/powerpc/boot/dts/ when COMPILE_TEST and OF_ALL_DTBS are enabled. Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org Signed-off-by: Rob Herring --- arch

[PATCH v3 6/9] kbuild: consolidate Devicetree dtb build rules

2018-09-10 Thread Rob Herring
-xtensa.org Signed-off-by: Rob Herring --- Makefile | 35 ++- arch/arc/Makefile | 6 -- arch/arm/Makefile | 20 +- arch/arm64/Makefile | 17 +-- arch/c6x/Makefile

[PATCH v3 1/9] powerpc: build .dtb files in dts directory

2018-09-10 Thread Rob Herring
of kernel config. This transition could break some scripts if they expect dtb files in the old location. Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org Signed-off-by: Rob Herring --- v3: - Remove duplicate mpc5200 dtbs from image-y targets

[PATCH v3 0/9] Devicetree build consolidation

2018-09-10 Thread Rob Herring
targets v2: - Fix $arch/boot/dts path check for out of tree builds - Fix dtc dependency for building built-in dtbs - Fix microblaze built-in dtb building - Add dtbs target for microblaze Rob Herring (9): powerpc: build .dtb files in dts directory nios2: build .dtb files in dts directory nios2

Re: [PATCH v2 6/9] kbuild: consolidate Devicetree dtb build rules

2018-09-10 Thread Rob Herring
On Sun, Sep 9, 2018 at 6:28 PM Masahiro Yamada wrote: > > 2018-09-06 8:53 GMT+09:00 Rob Herring : > > There is nothing arch specific about building dtb files other than their > > location under /arch/*/boot/dts/. Keeping each arch aligned is a pain. > > The dependenci

Re: v4.17 regression: PowerMac G3 won't boot, was Re: [PATCH v5 1/3] of: cache phandle nodes to reduce cost of of_find_node_by_phandle()

2018-09-10 Thread Rob Herring
On Sun, Sep 09, 2018 at 07:04:25PM +0200, Benjamin Herrenschmidt wrote: > On Fri, 2018-08-31 at 14:58 +1000, Benjamin Herrenschmidt wrote: > > > > > A long shot, but something to consider, is that I failed to cover the > > > cases of dynamic devicetree updates (removing nodes that contain a > > >

Re: [PATCH 00/21] DT cpu node iterator

2018-09-07 Thread Rob Herring
On Fri, Sep 7, 2018 at 7:54 AM Michal Simek wrote: > > Hi Rob, > > 2018-09-05 21:37 GMT+02:00 Rob Herring : >> >> This series adds an iterator for cpu nodes and converts users over to use >> it or of_get_cpu_node in some cases. This allows us to remove the >>

Re: [PATCH v2 6/9] kbuild: consolidate Devicetree dtb build rules

2018-09-07 Thread Rob Herring
On Fri, Sep 7, 2018 at 5:33 AM Masahiro Yamada wrote: > > 2018-09-06 8:53 GMT+09:00 Rob Herring : > > There is nothing arch specific about building dtb files other than their > > location under /arch/*/boot/dts/. Keeping each arch aligned is a pain. > > The dependenci

[PATCH v2 7/9] powerpc: enable building all dtbs

2018-09-05 Thread Rob Herring
Enable the 'dtbs' target for powerpc. This allows building all the dts files in arch/powerpc/boot/dts/ when COMPILE_TEST and OF_ALL_DTBS are enabled. Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org Signed-off-by: Rob Herring --- Please ack

[PATCH v2 6/9] kbuild: consolidate Devicetree dtb build rules

2018-09-05 Thread Rob Herring
-by: Rob Herring --- Please ack so I can take the whole series via the DT tree. v2: - Fix $arch/boot/dts path check for out of tree builds - Fix dtc dependency for building built-in dtbs - Fix microblaze built-in dtb building Makefile | 32

[PATCH v2 1/9] powerpc: build .dtb files in dts directory

2018-09-05 Thread Rob Herring
of kernel config. This transition could break some scripts if they expect dtb files in the old location. Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org Signed-off-by: Rob Herring --- Please ack so I can take the whole series via the DT tree

[PATCH v2 0/9] Devicetree build consolidation

2018-09-05 Thread Rob Herring
check for out of tree builds - Fix dtc dependency for building built-in dtbs - Fix microblaze built-in dtb building - Add dtbs target for microblaze Rob Herring (9): powerpc: build .dtb files in dts directory nios2: build .dtb files in dts directory nios2: use common rules to build built

[PATCH 13/21] powerpc: 8xx: get cpu node with of_get_cpu_node

2018-09-05 Thread Rob Herring
a missing of_node_put. Cc: Vitaly Bordug Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org Signed-off-by: Rob Herring --- Please ack and I will take via the DT tree. This is dependent on the first 2 patches. arch/powerpc/platforms/8xx/m8xx_s

[PATCH 12/21] powerpc: 4xx: get cpu node with of_get_cpu_node

2018-09-05 Thread Rob Herring
kerras Cc: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org Signed-off-by: Rob Herring --- Please ack and I will take via the DT tree. This is dependent on the first 2 patches. arch/powerpc/platforms/4xx/soc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/pla

[PATCH 11/21] powerpc: use for_each_of_cpu_node iterator

2018-09-05 Thread Rob Herring
an Cc: linuxppc-dev@lists.ozlabs.org Signed-off-by: Rob Herring --- Please ack and I will take via the DT tree. This is dependent on the first 2 patches. arch/powerpc/platforms/powermac/feature.c | 51 --- arch/powerpc/platforms/powermac/setup.c | 15 +++ 2 files changed,

[PATCH 00/21] DT cpu node iterator

2018-09-05 Thread Rob Herring
more strict by only looking in /cpus child nodes rather than any node with the device_type == cpu. The iterator also honors the status property which is often forgotten. I've only tested on ARM under QEMU and compiled powerpc. Rob Rob Herring (21): of: Add cpu node iterator for_each_of_cpu_node

Re: [RFC PATCH 07/29] memblock: remove _virt from APIs returning virtual address

2018-09-05 Thread Rob Herring
On Wed, Sep 5, 2018 at 11:00 AM Mike Rapoport wrote: > > The conversion is done using > > sed -i 's@memblock_virt_alloc@memblock_alloc@g' \ > $(git grep -l memblock_virt_alloc) What's the reason to do this? It seems like a lot of churn even if a mechanical change. Rob

[PATCH v3] macintosh: Convert to using %pOFn instead of device_node.name

2018-09-04 Thread Rob Herring
In preparation to remove the node name pointer from struct device_node, convert printf users to use the %pOFn format specifier. Cc: Benjamin Herrenschmidt Cc: linuxppc-dev@lists.ozlabs.org Signed-off-by: Rob Herring --- v3: - Fix dev_name handling. Using "%.*p" syntax throws

[PATCH v2] macintosh: Convert to using %pOFn instead of device_node.name

2018-09-04 Thread Rob Herring
In preparation to remove the node name pointer from struct device_node, convert printf users to use the %pOFn format specifier. Cc: Benjamin Herrenschmidt Cc: linuxppc-dev@lists.ozlabs.org Signed-off-by: Rob Herring --- v2: Add setting dev_name in macio_asic.c drivers/macintosh/macio_asic.c

Re: [PATCH 2/3] Documentation: dt: binding: fsl: update property description for RCPM

2018-09-04 Thread Rob Herring
On Fri, Aug 31, 2018 at 11:52:18AM +0800, Ran Wang wrote: > Add property 'big-endian' and supportted IP's configuration info. > Remove property 'fsl,#rcpm-wakeup-cell'. "dt-bindings: soc: ..." for the subject It is obvious reading the diff you are removing fsl,#rcpm-wakeup-cell. What is not

Re: v4.17 regression: PowerMac G3 won't boot, was Re: [PATCH v5 1/3] of: cache phandle nodes to reduce cost of of_find_node_by_phandle()

2018-08-29 Thread Rob Herring
On Wed, Aug 29, 2018 at 7:44 PM Finn Thain wrote: > > Hi Frank, > > Linux v4.17 and later will no longer boot on a G3 PowerMac. The boot hangs > very early, before any video driver loads. > > Stan and I were able to bisect the regression between v4.16 and v4.17 and > arrived at commit

Re: [PATCH] i2c: Convert to using %pOFn instead of device_node.name

2018-08-29 Thread Rob Herring
On Wed, Aug 29, 2018 at 7:25 PM Peter Rosin wrote: > > On 2018-08-29 20:42, Rob Herring wrote: > > On Wed, Aug 29, 2018 at 1:03 PM Peter Rosin wrote: > >> > >> On 2018-08-28 03:52, Rob Herring wrote: > >>> In preparation to remove the node name poin

[PATCH] soc: fsl/qe: Use of_get_child_by_name helper

2018-08-29 Thread Rob Herring
Use the of_get_child_by_name() helper instead of open coding searching for the 'firmware' child node. This removes directly accessing the name pointer as well. Cc: Qiang Zhao Cc: Li Yang Cc: linuxppc-dev@lists.ozlabs.org Cc: linux-arm-ker...@lists.infradead.org Signed-off-by: Rob Herring

[PATCH] hwmon: drop unnecessary OF name NULL checks

2018-08-29 Thread Rob Herring
Checking the child node names is pointless as the DT node name can never be NULL, so remove it. Cc: Jean Delvare Cc: Guenter Roeck Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman Cc: linux-hw...@vger.kernel.org Cc: linuxppc-dev@lists.ozlabs.org Signed-off-by: Rob Herring

[PATCH] mtd: Convert to using %pOFn instead of device_node.name

2018-08-29 Thread Rob Herring
Cc: linux-...@lists.infradead.org Cc: linuxppc-dev@lists.ozlabs.org Signed-off-by: Rob Herring --- One more %pOFn conversion for MTD. Please apply to MTD tree. drivers/mtd/devices/powernv_flash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/devices

[PATCH] of: make PowerMac cache node search conditional on CONFIG_PPC_PMAC

2018-08-29 Thread Rob Herring
Cache nodes under the cpu node(s) is PowerMac specific according to the comment above, so make the code enforce that. Signed-off-by: Rob Herring --- drivers/of/base.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/of/base.c b/drivers/of/base.c index 466e3c8582f0

Re: [PATCH] i2c: Convert to using %pOFn instead of device_node.name

2018-08-29 Thread Rob Herring
On Wed, Aug 29, 2018 at 1:03 PM Peter Rosin wrote: > > On 2018-08-28 03:52, Rob Herring wrote: > > In preparation to remove the node name pointer from struct device_node, > > convert printf users to use the %pOFn format specifier. > > > > Cc: Benjamin Herrenschmidt

[PATCH v2] sound: Convert to using %pOFn instead of device_node.name

2018-08-28 Thread Rob Herring
In preparation to remove the node name pointer from struct device_node, convert printf users to use the %pOFn format specifier. Cc: Johannes Berg Cc: Jaroslav Kysela Cc: Takashi Iwai Cc: linuxppc-dev@lists.ozlabs.org Cc: alsa-de...@alsa-project.org Signed-off-by: Rob Herring --- v2: - Fix

[PATCH v2] ASoC: Convert to using %pOFn instead of device_node.name

2018-08-28 Thread Rob Herring
Hilman Cc: Olivier Moysan Cc: Arnaud Pouliquen Cc: Maxime Coquelin Cc: Alexandre Torgue Cc: alsa-de...@alsa-project.org Cc: linuxppc-dev@lists.ozlabs.org Cc: linux-arm-ker...@lists.infradead.org Cc: linux-amlo...@lists.infradead.org Signed-off-by: Rob Herring --- v2: - stm32_sai_sub: Unwrap

[PATCH] ASoC: Convert to using %pOFn instead of device_node.name

2018-08-27 Thread Rob Herring
Hilman Cc: Olivier Moysan Cc: Arnaud Pouliquen Cc: Maxime Coquelin Cc: Alexandre Torgue Cc: alsa-de...@alsa-project.org Cc: linuxppc-dev@lists.ozlabs.org Cc: linux-arm-ker...@lists.infradead.org Cc: linux-amlo...@lists.infradead.org Signed-off-by: Rob Herring --- sound/soc/fsl/fsl_esai.c

[PATCH] sound: Convert to using %pOFn instead of device_node.name

2018-08-27 Thread Rob Herring
In preparation to remove the node name pointer from struct device_node, convert printf users to use the %pOFn format specifier. Cc: Johannes Berg Cc: Jaroslav Kysela Cc: Takashi Iwai Cc: linuxppc-dev@lists.ozlabs.org Cc: alsa-de...@alsa-project.org Signed-off-by: Rob Herring --- sound/aoa

[PATCH] tty: Convert to using %pOFn instead of device_node.name

2018-08-27 Thread Rob Herring
@lists.ozlabs.org Signed-off-by: Rob Herring --- drivers/tty/ehv_bytechan.c | 12 ++-- drivers/tty/serial/cpm_uart/cpm_uart_core.c | 8 drivers/tty/serial/pmac_zilog.c | 4 ++-- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/tty

[PATCH] soc: Convert to using %pOFn instead of device_node.name

2018-08-27 Thread Rob Herring
@lists.ozlabs.org Cc: linux-arm-ker...@lists.infradead.org Cc: linux-...@vger.kernel.org Signed-off-by: Rob Herring --- drivers/soc/dove/pmu.c| 8 +++--- drivers/soc/fsl/qe/qe_tdm.c | 4 +-- drivers/soc/qcom/apr.c| 2 +- drivers/soc/rockchip/pm_domains.c | 44

[PATCH] misc: Convert to using %pOFn instead of device_node.name

2018-08-27 Thread Rob Herring
In preparation to remove the node name pointer from struct device_node, convert printf users to use the %pOFn format specifier. Cc: Frederic Barrat Cc: Andrew Donnellan Cc: Arnd Bergmann Cc: Greg Kroah-Hartman Cc: linuxppc-dev@lists.ozlabs.org Signed-off-by: Rob Herring --- drivers/misc/cxl

[PATCH] macintosh: Convert to using %pOFn instead of device_node.name

2018-08-27 Thread Rob Herring
In preparation to remove the node name pointer from struct device_node, convert printf users to use the %pOFn format specifier. Cc: Benjamin Herrenschmidt Cc: linuxppc-dev@lists.ozlabs.org Signed-off-by: Rob Herring --- drivers/macintosh/macio_sysfs.c | 8 +++- drivers/macintosh

[PATCH] i2c: Convert to using %pOFn instead of device_node.name

2018-08-27 Thread Rob Herring
In preparation to remove the node name pointer from struct device_node, convert printf users to use the %pOFn format specifier. Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman Cc: Peter Rosin Cc: linux-...@vger.kernel.org Cc: linuxppc-dev@lists.ozlabs.org Signed-off-by: Rob

[PATCH] powerpc: Convert to using %pOFn instead of device_node.name

2018-08-27 Thread Rob Herring
In preparation to remove the node name pointer from struct device_node, convert printf users to use the %pOFn format specifier. Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman Cc: Arnd Bergmann Cc: linuxppc-dev@lists.ozlabs.org Signed-off-by: Rob Herring --- arch/powerpc

Re: [PATCH 6/8] kbuild: consolidate Devicetree dtb build rules

2018-08-26 Thread Rob Herring
On Sat, Aug 25, 2018 at 9:06 PM Masahiro Yamada wrote: > > Hi Rob, > > > 2018-08-22 6:55 GMT+09:00 Rob Herring : > > There is nothing arch specific about building dtb files other than their > > location under /arch/*/boot/dts/. Keeping each arch aligned is a

Re: [PATCH 5/5] arm64: dts: add LX2160ARDB board support

2018-08-24 Thread Rob Herring
On Thu, Aug 23, 2018 at 10:08 AM Vabhav Sharma wrote: [...] > > > + i2c@3 { > > > + #address-cells = <1>; > > > + #size-cells = <0>; > > > + reg = <0x3>; > > > + > > > + sa56004@4c { > > > >

Re: DT case sensitivity

2018-08-24 Thread Rob Herring
On Thu, Aug 23, 2018 at 7:37 AM Segher Boessenkool wrote: > > On Thu, Aug 23, 2018 at 11:29:01AM +1000, Benjamin Herrenschmidt wrote: > > On Wed, 2018-08-22 at 20:26 -0500, Rob Herring wrote: > > > On Wed, Aug 22, 2018 at 8:14 PM Benjamin Herrenschmidt > > > wrote

Re: DT case sensitivity

2018-08-23 Thread Rob Herring
On Thu, Aug 23, 2018 at 6:48 AM Benjamin Herrenschmidt wrote: > > On Thu, 2018-08-23 at 06:43 -0500, Rob Herring wrote: > > On Thu, Aug 23, 2018 at 4:02 AM Grant Likely wrote: > > > > > > > > > What problem are you trying to solve? > > > >

Re: DT case sensitivity

2018-08-23 Thread Rob Herring
On Thu, Aug 23, 2018 at 4:02 AM Grant Likely wrote: > > On 23/08/2018 02:29, Benjamin Herrenschmidt wrote: > > On Wed, 2018-08-22 at 20:26 -0500, Rob Herring wrote: > >> On Wed, Aug 22, 2018 at 8:14 PM Benjamin Herrenschmidt > >> wrote: > >>> > >&

Re: DT case sensitivity

2018-08-22 Thread Rob Herring
On Wed, Aug 22, 2018 at 8:14 PM Benjamin Herrenschmidt wrote: > > On Wed, 2018-08-22 at 19:47 -0500, Rob Herring wrote: > > The default DT string handling in the kernel is node names and > > compatibles are case insensitive and property names are case sensitive > >

DT case sensitivity

2018-08-22 Thread Rob Herring
The default DT string handling in the kernel is node names and compatibles are case insensitive and property names are case sensitive (Sparc is the the only variation and is opposite). It seems only PPC (and perhaps only Power Macs?) needs to support case insensitive comparisons. It was probably a

[PATCH 7/8] powerpc: enable building all dtbs

2018-08-21 Thread Rob Herring
Enable the 'dtbs' target for powerpc. This allows building all the dts files in arch/powerpc/boot/dts/ when COMPILE_TEST and OF_ALL_DTBS are enabled. Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org Signed-off-by: Rob Herring --- arch

[PATCH 6/8] kbuild: consolidate Devicetree dtb build rules

2018-08-21 Thread Rob Herring
-by: Rob Herring --- Makefile | 30 ++ arch/arc/Makefile| 6 -- arch/arm/Makefile| 20 +--- arch/arm64/Makefile | 17 + arch/c6x/Makefile| 2 -- arch/h8300/Makefile | 11

[PATCH 0/8] Devicetree build consolidation

2018-08-21 Thread Rob Herring
finding small differences such as target dependencies and dtbs_install support across architectures. Instead of trying to align all these, I've consolidated the build targets moving them out of the arch makefiles. I'd like to take the series via the DT tree. Rob Rob Herring (8): powerpc: build

[PATCH 1/8] powerpc: build .dtb files in dts directory

2018-08-21 Thread Rob Herring
of kernel config. This transition could break some scripts if they expect dtb files in the old location. Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org Signed-off-by: Rob Herring --- arch/powerpc/Makefile | 2 +- arch/powerpc/boot

Re: [PATCH 5/5] arm64: dts: add LX2160ARDB board support

2018-08-21 Thread Rob Herring
On Mon, Aug 20, 2018 at 1:52 PM Vabhav Sharma wrote: > > LX2160A reference design board (RDB) is a high-performance > computing, evaluation, and development platform with LX2160A > SoC. > > Signed-off-by: Priyanka Jain > Signed-off-by: Sriram Dash > Signed-off-by: Vabhav Sharma > --- >

Re: [RFC 3/5] powerpc/mpic: Add support for non-contiguous irq ranges

2018-08-07 Thread Rob Herring
On Fri, Jul 27, 2018 at 03:17:59PM +0530, Bharat Bhushan wrote: > Freescale MPIC h/w may not support all interrupt sources reported > by hardware, "last-interrupt-source" or platform. On these platforms > a misconfigured device tree that assigns one of the reserved > interrupts leaves a

Re: [PATCH 1/4] treewide: convert ISO_8859-1 text comments to utf-8

2018-07-31 Thread Rob Herring
@ -2,7 +2,7 @@ > > Required properties: > - compatible: Should be "nxp,pn544-i2c". > -- clock-frequency: I�C work frequency. > +- clock-frequency: I²C work frequency. I'd prefer just plain ASCII 'I2C' here, but either way: Acked-by: Rob Herring Rob

Re: phandle_cache vs of_detach_node (was Re: [PATCH] powerpc/mobility: Fix node detach/rename problem)

2018-07-31 Thread Rob Herring
This patch implements the cache updates. Fixes: 0b3ce78e90fc ("of: cache phandle nodes to reduce cost of of_find_node_by_phandle()") Reported-by: Alan Tull Suggested-by: Alan Tull Signed-off-by: Frank Rowand Signed-off-by: Rob Herring Really what we need here

Re: [PATCH] of/fdt: Remove PPC32 longtrail hack in memory scan

2018-07-30 Thread Rob Herring
On Mon, Jul 30, 2018 at 4:47 AM Michael Ellerman wrote: > > Rob Herring writes: > > On Thu, Jul 26, 2018 at 11:36 PM Michael Ellerman > > wrote: > >> When the OF code was originally made common by Grant in commit > >> 51975db0b733 ("of/flattree:

Re: [PATCH 2/2] powerpc: Use of_machine_compatible_match()

2018-07-30 Thread Rob Herring
> arch/powerpc/platforms/85xx/corenet_generic.c | 2 +- > arch/powerpc/platforms/85xx/tqm85xx.c | 2 +- > 10 files changed, 10 insertions(+), 10 deletions(-) Acked-by: Rob Herring Rob

Re: [PATCH 1/2] of: Add of_machine_compatible_match()

2018-07-30 Thread Rob Herring
On Mon, Jul 30, 2018 at 7:15 AM Michael Ellerman wrote: > > We have of_machine_is_compatible() to check if a machine is compatible > with a single compatible string. However some code is able to support > multiple compatible boards, and so wants to check for one of many > compatible strings. > >

Re: [PATCH] of/fdt: Remove PPC32 longtrail hack in memory scan

2018-07-27 Thread Rob Herring
On Thu, Jul 26, 2018 at 11:36 PM Michael Ellerman wrote: > > When the OF code was originally made common by Grant in commit > 51975db0b733 ("of/flattree: merge early_init_dt_scan_memory() common > code") (Feb 2010), the common code inherited a hack to handle > PPC "longtrail" machines, which had

Re: [v3, 03/10] dt-binding: ptp_qoriq: add DPAA FMan support

2018-06-11 Thread Rob Herring
- None. > Changes for v3: > - None. > --- > Documentation/devicetree/bindings/net/fsl-fman.txt | 25 > +--- > .../devicetree/bindings/ptp/ptp-qoriq.txt | 15 +-- > 2 files changed, 13 insertions(+), 27 deletions(-) Reviewed-by: Rob Herring

Re: [PATCH v4 2/6] iommu: of: make of_pci_map_rid() available for other devices too

2018-05-01 Thread Rob Herring
| 5 +-- > drivers/pci/of.c | 101 -- > include/linux/of.h | 11 + > include/linux/of_pci.h | 10 - > 6 files changed, 117 insertions(+), 117 deletions(-) Reviewed-by: Rob Herring <r...@kernel.org>

Re: [PATCH 1/6 v3] Docs: dt: add fsl-mc iommu-map device-tree binding

2018-04-27 Thread Rob Herring
d-off-by: Nipun Gupta <nipun.gu...@nxp.com> > --- > .../devicetree/bindings/misc/fsl,qoriq-mc.txt | 39 > ++ > 1 file changed, 39 insertions(+) Reviewed-by: Rob Herring <r...@kernel.org>

<    3   4   5   6   7   8   9   10   11   12   >