mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-16 23:45:31 +08:00
3d5089c426
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>
56 lines
1.2 KiB
Plaintext
56 lines
1.2 KiB
Plaintext
// SPDX-License-Identifier: GPL-2.0
|
|
|
|
/ {
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
|
|
testcase-data {
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
ranges;
|
|
|
|
address-tests {
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
/* ranges here is to make sure we don't use it for
|
|
* dma-ranges translation */
|
|
ranges = <0x70000000 0x70000000 0x50000000>,
|
|
<0x00000000 0xd0000000 0x20000000>;
|
|
dma-ranges = <0x0 0x20000000 0x40000000>;
|
|
|
|
device@70000000 {
|
|
reg = <0x70000000 0x1000>;
|
|
};
|
|
|
|
bus@80000000 {
|
|
#address-cells = <2>;
|
|
#size-cells = <2>;
|
|
ranges = <0x0 0x0 0x80000000 0x0 0x100000>;
|
|
dma-ranges = <0x1 0x0 0x0 0x20 0x0>;
|
|
|
|
device@1000 {
|
|
reg = <0x0 0x1000 0x0 0x1000>;
|
|
};
|
|
};
|
|
|
|
pci@90000000 {
|
|
device_type = "pci";
|
|
#address-cells = <3>;
|
|
#size-cells = <2>;
|
|
reg = <0x90000000 0x1000>;
|
|
ranges = <0x42000000 0x0 0x40000000 0x40000000 0x0 0x10000000>;
|
|
dma-ranges = <0x42000000 0x0 0x80000000 0x00000000 0x0 0x10000000>,
|
|
<0x42000000 0x0 0xc0000000 0x20000000 0x0 0x10000000>;
|
|
};
|
|
|
|
bus@a0000000 {
|
|
#address-cells = <3>;
|
|
#size-cells = <2>;
|
|
ranges = <0xf00baa 0x0 0x0 0xa0000000 0x0 0x100000>,
|
|
<0xf00bee 0x1 0x0 0xb0000000 0x0 0x200000>;
|
|
};
|
|
|
|
};
|
|
};
|
|
};
|