Skip to content

Commit

Permalink
BCM270X_DT: Make i2c-gpio usable by other overlays
Browse files Browse the repository at this point in the history
Modify the i2c-gpio overlay to export symbol i2c-gpio for use by other
overlays. Export the alias as well for good measure.

Signed-off-by: Phil Elwell <[email protected]>
  • Loading branch information
Phil Elwell authored and popcornmix committed Jun 21, 2016
1 parent 5146546 commit ce38ecc
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions arch/arm/boot/dts/overlays/i2c-gpio-overlay.dts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,21 @@
};
};
};

fragment@1 {
target-path = "/aliases";
__overlay__ {
i2c_gpio = "/i2c@0";
};
};

fragment@2 {
target-path = "/__symbols__";
__overlay__ {
i2c_gpio = "/i2c@0";
};
};

__overrides__ {
i2c_gpio_sda = <&i2c_gpio>,"gpios:4";
i2c_gpio_scl = <&i2c_gpio>,"gpios:16";
Expand Down

0 comments on commit ce38ecc

Please sign in to comment.