提交 3f964f61 编写于 作者: P Phil Elwell 提交者: Zheng Zengkai

overlays: Make the i2c-gpio overlay safe again

raspberrypi inclusion
category: feature
bugzilla: 50432

--------------------------------

Like many overlays, the i2c-gpio overlay goes to efforts to avoid
generating warnings about #address-cells and #size-cells not
being defined, which it does by defining them. Unfortunately this
is fatal if they don't match what the system requires, and the
recent switch to #size-cells = 2 on 2711 made i2c-gpio very
dangerous.

In the absence of the knowledge of a clean way to fix this, just delete
the declarations and suffer the warnings.
Signed-off-by: NPhil Elwell <phil@raspberrypi.com>
Signed-off-by: NFang Yafen <yafen@iscas.ac.cn>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 678bfe79
...@@ -11,9 +11,6 @@ ...@@ -11,9 +11,6 @@
target-path = "/"; target-path = "/";
__overlay__ { __overlay__ {
#address-cells = <1>;
#size-cells = <0>;
i2c_gpio: i2c@0 { i2c_gpio: i2c@0 {
reg = <0xffffffff>; reg = <0xffffffff>;
compatible = "i2c-gpio"; compatible = "i2c-gpio";
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册