OSDN Git Service

of/address: Add support for 3 address cell bus
authorRob Herring <robh@kernel.org>
Tue, 28 Mar 2023 20:15:58 +0000 (15:15 -0500)
committerRob Herring <robh@kernel.org>
Thu, 13 Apr 2023 22:46:35 +0000 (17:46 -0500)
commit3d5089c4263d3594dc055e0f9c5cb990505cdd64
tree99361f102a9855e01b31001be05216f1f8b5da21
parentc75a79491835c50ca61938ae1ebd3ba5598f7410
of/address: Add support for 3 address cell bus

There's a few custom bus bindings (e.g. fsl,qoriq-mc) which use a
3 cell format with custom flags in the high cell. We can match these
buses as a fallback if we didn't match on PCI bus which is the only
standard bus binding with 3 address cells.

Link: https://lore.kernel.org/r/20230328-dt-address-helpers-v1-3-e2456c3e77ab@kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/address.c
drivers/of/unittest-data/tests-address.dtsi
drivers/of/unittest.c