1
0
Fork 0
alistair23-linux/arch/arm64/boot/dts/broadcom
Zhen Lei 8ed74a0122 arm64: dts: broadcom: clear the warnings caused by empty dma-ranges
[ Upstream commit 2013a4b684 ]

The scripts/dtc/checks.c requires that the node have empty "dma-ranges"
property must have the same "#address-cells" and "#size-cells" values as
the parent node. Otherwise, the following warnings is reported:

arch/arm64/boot/dts/broadcom/stingray/stingray-usb.dtsi:7.3-14: Warning \
(dma_ranges_format): /usb:dma-ranges: empty "dma-ranges" property but \
its #address-cells (1) differs from / (2)
arch/arm64/boot/dts/broadcom/stingray/stingray-usb.dtsi:7.3-14: Warning \
(dma_ranges_format): /usb:dma-ranges: empty "dma-ranges" property but \
its #size-cells (1) differs from / (2)

Arnd Bergmann figured out why it's necessary:
Also note that the #address-cells=<1> means that any device under
this bus is assumed to only support 32-bit addressing, and DMA will
have to go through a slow swiotlb in the absence of an IOMMU.

Suggested-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Link: https://lore.kernel.org/r/20201016090833.1892-2-thunder.leizhen@huawei.com'
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-12-16 10:56:55 +01:00
..
northstar2 arm64: dts: ns2: Fixed QSPI compatible string 2020-09-17 13:47:45 +02:00
stingray arm64: dts: broadcom: clear the warnings caused by empty dma-ranges 2020-12-16 10:56:55 +01:00
Makefile arm64: dts: broadcom: Add reference to RPi 3 A+ 2019-02-01 23:35:26 +01:00
bcm2837-rpi-3-a-plus.dts arm64: dts: broadcom: Add reference to RPi 3 A+ 2019-02-01 23:35:26 +01:00
bcm2837-rpi-3-b-plus.dts arm64: dts: broadcom: Add reference to Raspberry Pi 3 B+ 2018-04-23 15:03:07 -07:00
bcm2837-rpi-3-b.dts License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
bcm2837-rpi-cm3-io3.dts arm64: dts: broadcom: Add reference to Compute Module IO Board V3 2018-08-31 07:01:34 +02:00