Skip to content

Commit

Permalink
dt-overlay: add wittypi-overlay.dts
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalogy authored and popcornmix committed Jan 27, 2016
1 parent 1c65499 commit 293a18f
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions arch/arm/boot/dts/overlays/wittypi-overlay.dts
@@ -0,0 +1,44 @@
/*
* Device Tree overlay for Witty Pi extension board by UUGear
*
*/

/dts-v1/;
/plugin/;

/ {

compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";

fragment@0 {
target = <&leds>;
__overlay__ {
compatible = "gpio-leds";
wittypi_led: wittypi_led {
label = "wittypi_led";
linux,default-trigger = "default-on";
gpios = <&gpio 17 0>;
};
};
};

fragment@1 {
target = <&i2c1>;
__overlay__ {
#address-cells = <1>;
#size-cells = <0>;

rtc: ds1337@68 {
compatible = "dallas,ds1337";
reg = <0x68>;
wakeup-source;
};
};
};

__overrides__ {
led_gpio = <&wittypi_led>,"gpios:4";
led_trigger = <&wittypi_led>,"linux,default-trigger";
};

};

0 comments on commit 293a18f

Please sign in to comment.