Skip to content

Commit

Permalink
sunxi: a10-cubieboard: Add user LEDs to the device tree
Browse files Browse the repository at this point in the history
Cubieboard has two LEDs available for use, a blue one (labeled LED1)
and a green one (labeled LED2).

Signed-off-by: Emilio López <emilio@elopez.com.ar>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
  • Loading branch information
Emilio López authored and Maxime Ripard committed Feb 3, 2013
1 parent a9d281c commit 0749a44
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions arch/arm/boot/dts/sun4i-a10-cubieboard.dts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,15 @@
};

soc {
pinctrl@01c20800 {
led_pins_cubieboard: led_pins@0 {
allwinner,pins = "PH20", "PH21";
allwinner,function = "gpio_out";
allwinner,drive = <1>;
allwinner,pull = <0>;
};
};

uart0: uart@01c28000 {
status = "okay";
};
Expand All @@ -35,4 +44,21 @@
status = "okay";
};
};

leds {
compatible = "gpio-leds";
pinctrl-names = "default";
pinctrl-0 = <&led_pins_cubieboard>;

blue {
label = "cubieboard::blue";
gpios = <&pio 7 21 0>; /* LED1 */
};

green {
label = "cubieboard::green";
gpios = <&pio 7 20 0>; /* LED2 */
linux,default-trigger = "heartbeat";
};
};
};

0 comments on commit 0749a44

Please sign in to comment.