linux_dsm_epyc7002/drivers/of
Uwe Kleine-König e42ee61017 of: Let of_for_each_phandle fallback to non-negative cell_count
Referencing device tree nodes from a property allows to pass arguments.
This is for example used for referencing gpios. This looks as follows:

	gpio_ctrl: gpio-controller {
		#gpio-cells = <2>
		...
	}

	someothernode {
		gpios = <&gpio_ctrl 5 0 &gpio_ctrl 3 0>;
		...
	}

To know the number of arguments this must be either fixed, or the
referenced node is checked for a $cells_name (here: "#gpio-cells")
property and with this information the start of the second reference can
be determined.

Currently regulators are referenced with no additional arguments. To
allow some optional arguments without having to change all referenced
nodes this change introduces a way to specify a default cell_count. So
when a phandle is parsed we check for the $cells_name property and use
it as before if present. If it is not present we fall back to
cells_count if non-negative and only fail if cells_count is smaller than
zero.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Rob Herring <robh@kernel.org>
2019-09-13 16:55:12 -05:00
..
unittest-data
address.c
base.c of: Let of_for_each_phandle fallback to non-negative cell_count 2019-09-13 16:55:12 -05:00
device.c
dynamic.c
fdt_address.c
fdt.c of/fdt: pass early_init_dt_reserve_memory_arch() with bool type nomap 2019-07-08 15:28:15 -06:00
irq.c of: irq: fix a trivial typo in a doc comment 2019-08-14 20:12:16 -06:00
Kconfig
kobj.c
Makefile
of_mdio.c Driver Core and debugfs changes for 5.3-rc1 2019-07-12 12:24:03 -07:00
of_net.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 428 2019-06-05 17:37:16 +02:00
of_numa.c
of_private.h
of_reserved_mem.c of: reserved-memory: ignore disabled memory-region nodes 2019-05-24 15:53:23 -05:00
overlay.c
pdt.c
platform.c Driver Core and debugfs changes for 5.3-rc1 2019-07-12 12:24:03 -07:00
property.c
resolver.c of: resolver: Add of_node_put() before return and break 2019-08-12 16:52:24 -06:00
unittest.c of: unittest: Add of_node_put() before return 2019-08-27 11:21:54 -05:00