Skip to content

Commit

Permalink
overlays: Make the i2c-gpio overlay safe again
Browse files Browse the repository at this point in the history
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: Phil Elwell <[email protected]>
  • Loading branch information
pelwell committed May 1, 2020
1 parent f72d18f commit dde08eb
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions arch/arm/boot/dts/overlays/i2c-gpio-overlay.dts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
target-path = "/";

__overlay__ {
#address-cells = <1>;
#size-cells = <0>;

i2c_gpio: i2c@0 {
reg = <0xffffffff>;
compatible = "i2c-gpio";
Expand Down

0 comments on commit dde08eb

Please sign in to comment.