dt-bindings: i2c: dw: cancel mandatory requirements for "#address-cells" and "#size...
authorZhen Lei <thunder.leizhen@huawei.com>
Mon, 14 Dec 2020 12:43:47 +0000 (20:43 +0800)
committerRob Herring <robh@kernel.org>
Mon, 14 Dec 2020 15:16:28 +0000 (09:16 -0600)
commit4aa5b78fb5460adbb876e450ec844e7c1991372d
tree228e3349c529bfd292de4e869c0874e9276bbb4b
parenta217d8711da5c87fd2862fc36759b6fafa1c4905
dt-bindings: i2c: dw: cancel mandatory requirements for "#address-cells" and "#size-cells"

The "#address-cells" and "#size-cells" are required only when the I2C
controller has subnodes. However, some I2C controllers defined in
"arch/arm64/boot/dts/amd/" and "arch/arm64/boot/dts/hisilicon/"
directories do not have child nodes. So they don't need these two
properties and don't write them explicitly.

Therefore, setting properties "#address-cells" and "#size-cells" as
"required" in this yaml file causes the following warnings:
/root/linux-next/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dt.yaml: \
i2c@f7100000: '#address-cells' is a required property
/root/linux-next/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dt.yaml: \
i2c@f7100000: '#size-cells' is a required property

Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Link: https://lore.kernel.org/r/20201214124347.2120-2-thunder.leizhen@huawei.com
Signed-off-by: Rob Herring <robh@kernel.org>
Documentation/devicetree/bindings/i2c/snps,designware-i2c.yaml