scripts/getver.sh: avoid use of git rev-list --count
[openwrt/staging/dedeckeh.git] / target / linux / brcm2708 / patches-4.4 / 0377-BCM270X_DT-Make-i2c-gpio-usable-by-other-overlays.patch
1 From 432f47525a7916c723a80679b608f9bc0b4375b0 Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.org>
3 Date: Mon, 6 Jun 2016 09:23:37 +0100
4 Subject: [PATCH 377/381] BCM270X_DT: Make i2c-gpio usable by other overlays
5
6 Modify the i2c-gpio overlay to export symbol i2c-gpio for use by other
7 overlays. Export the alias as well for good measure.
8
9 Signed-off-by: Phil Elwell <phil@raspberrypi.org>
10 ---
11 arch/arm/boot/dts/overlays/i2c-gpio-overlay.dts | 15 +++++++++++++++
12 1 file changed, 15 insertions(+)
13
14 --- a/arch/arm/boot/dts/overlays/i2c-gpio-overlay.dts
15 +++ b/arch/arm/boot/dts/overlays/i2c-gpio-overlay.dts
16 @@ -19,6 +19,21 @@
17 };
18 };
19 };
20 +
21 + fragment@1 {
22 + target-path = "/aliases";
23 + __overlay__ {
24 + i2c_gpio = "/i2c@0";
25 + };
26 + };
27 +
28 + fragment@2 {
29 + target-path = "/__symbols__";
30 + __overlay__ {
31 + i2c_gpio = "/i2c@0";
32 + };
33 + };
34 +
35 __overrides__ {
36 i2c_gpio_sda = <&i2c_gpio>,"gpios:4";
37 i2c_gpio_scl = <&i2c_gpio>,"gpios:16";