Skip to content

Commit

Permalink
add LEDs to dts
Browse files Browse the repository at this point in the history
  • Loading branch information
oshalk committed Jun 5, 2018
1 parent 78e181c commit 5673dd1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
14 changes: 14 additions & 0 deletions arch/arm/boot/dts/nuvoton-npcm750-evb.dts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,20 @@
reg = <0 0x40000000>;
};

leds {
compatible = "gpio-leds";

heartbeat {
label = "heartbeat";
gpios = <&pinctrl 146 0>;
};

identify {
label = "identify";
gpios = <&pinctrl 147 0>;
};
};

ahb {
gmac0: eth@f0802000 {
status = "okay";
Expand Down
2 changes: 2 additions & 0 deletions arch/arm/boot/dts/nuvoton-npcm750-gpio.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

/ {
pinctrl: pinctrl@0 {
#gpio-cells = <2>;

gpio0o_pins: gpio0o_pins {
pins = "GPIO0/IOX1DI";
output-high;
Expand Down

0 comments on commit 5673dd1

Please sign in to comment.