]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blob - arch/arm/boot/dts/overlays/i2c-gpio-overlay.dts
BCM2708: Add core Device Tree support
[mirror_ubuntu-artful-kernel.git] / arch / arm / boot / dts / overlays / i2c-gpio-overlay.dts
1 // Overlay for i2c_gpio bitbanging host bus.
2 /dts-v1/;
3 /plugin/;
4
5 / {
6 compatible = "brcm,bcm2708";
7
8 fragment@0 {
9 target-path = "/";
10 __overlay__ {
11 i2c_gpio: i2c@0 {
12 compatible = "i2c-gpio";
13 gpios = <&gpio 23 0 /* sda */
14 &gpio 24 0 /* scl */
15 >;
16 i2c-gpio,delay-us = <2>; /* ~100 kHz */
17 #address-cells = <1>;
18 #size-cells = <0>;
19 };
20 };
21 };
22
23 fragment@1 {
24 target-path = "/aliases";
25 __overlay__ {
26 i2c_gpio = "/i2c@0";
27 };
28 };
29
30 fragment@2 {
31 target-path = "/__symbols__";
32 __overlay__ {
33 i2c_gpio = "/i2c@0";
34 };
35 };
36
37 __overrides__ {
38 i2c_gpio_sda = <&i2c_gpio>,"gpios:4";
39 i2c_gpio_scl = <&i2c_gpio>,"gpios:16";
40 i2c_gpio_delay_us = <&i2c_gpio>,"i2c-gpio,delay-us:0";
41 };
42 };
43