diff options
author | Enric Balletbo i Serra <eballetbo@iseebcn.com> | 2013-11-26 18:03:38 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2013-11-26 18:03:38 -0500 |
commit | f3689fd6dd30974d5b5ccf1daea964440ca5955f (patch) | |
tree | 3f3239738d2dacdee29fe15419b2bca08e5c9d25 /arch | |
parent | 0710b679862dc730eb9900592649929da3ec824e (diff) |
ARM: dts: AM33XX BASE0033: add pinmux and user led support
Enable the user leds on the IGEP AQUILA EXPANSION. The has two leds,
one green and one red, that are controllable by software.
Signed-off-by: Enric Balletbo i Serra <eballetbo@iseebcn.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/boot/dts/am335x-base0033.dts | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/am335x-base0033.dts b/arch/arm/boot/dts/am335x-base0033.dts index 620970c0c99a..ffae1482d954 100644 --- a/arch/arm/boot/dts/am335x-base0033.dts +++ b/arch/arm/boot/dts/am335x-base0033.dts | |||
@@ -22,6 +22,25 @@ | |||
22 | pinctrl-1 = <&nxp_hdmi_off_pins>; | 22 | pinctrl-1 = <&nxp_hdmi_off_pins>; |
23 | status = "okay"; | 23 | status = "okay"; |
24 | }; | 24 | }; |
25 | |||
26 | leds_base { | ||
27 | pinctrl-names = "default"; | ||
28 | pinctrl-0 = <&leds_base_pins>; | ||
29 | |||
30 | compatible = "gpio-leds"; | ||
31 | |||
32 | led@0 { | ||
33 | label = "base:red:user"; | ||
34 | gpios = <&gpio1 21 GPIO_ACTIVE_HIGH>; /* gpio1_21 */ | ||
35 | default-state = "off"; | ||
36 | }; | ||
37 | |||
38 | led@1 { | ||
39 | label = "base:green:user"; | ||
40 | gpios = <&gpio2 0 GPIO_ACTIVE_HIGH>; /* gpio2_0 */ | ||
41 | default-state = "off"; | ||
42 | }; | ||
43 | }; | ||
25 | }; | 44 | }; |
26 | 45 | ||
27 | &am33xx_pinmux { | 46 | &am33xx_pinmux { |
@@ -55,6 +74,13 @@ | |||
55 | 0x1b0 (PIN_OUTPUT | MUX_MODE3) /* xdma_event_intr0.clkout1 */ | 74 | 0x1b0 (PIN_OUTPUT | MUX_MODE3) /* xdma_event_intr0.clkout1 */ |
56 | >; | 75 | >; |
57 | }; | 76 | }; |
77 | |||
78 | leds_base_pins: pinmux_leds_base_pins { | ||
79 | pinctrl-single,pins = < | ||
80 | 0x54 (PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_a5.gpio1_21 */ | ||
81 | 0x88 (PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_csn3.gpio2_0 */ | ||
82 | >; | ||
83 | }; | ||
58 | }; | 84 | }; |
59 | 85 | ||
60 | &lcdc { | 86 | &lcdc { |