Skip to content

Commit

Permalink
ARM: at91/dt: sama5d4ek: add leds in DT node
Browse files Browse the repository at this point in the history
Add the leds DT node in the dts file.
In the leds, d10 is set as heartbeat led.

Signed-off-by: Josh Wu <josh.wu@atmel.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
  • Loading branch information
Josh Wu authored and Nicolas Ferre committed Mar 4, 2015
1 parent 4cc7cdf commit 1bc5465
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions arch/arm/boot/dts/at91-sama5d4ek.dts
Original file line number Diff line number Diff line change
Expand Up @@ -255,4 +255,26 @@
gpio-key,wakeup;
};
};

leds {
compatible = "gpio-leds";
status = "okay";

d8 {
label = "d8";
/* PE28, conflicts with usart4 rts pin */
gpios = <&pioE 28 GPIO_ACTIVE_LOW>;
};

d9 {
label = "d9";
gpios = <&pioE 9 GPIO_ACTIVE_HIGH>;
};

d10 {
label = "d10";
gpios = <&pioE 8 GPIO_ACTIVE_LOW>;
linux,default-trigger = "heartbeat";
};
};
};

0 comments on commit 1bc5465

Please sign in to comment.