Skip to content

Commit

Permalink
ARM: olinuxino: Add gpio-led support
Browse files Browse the repository at this point in the history
Olinuxino has a LED connected to MX23_PAD_SSP1_DETECT__GPIO_2_1 pin.

Add support for it.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
  • Loading branch information
Fabio Estevam authored and Shawn Guo committed Aug 23, 2012
1 parent 74b4212 commit ba5db49
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions arch/arm/boot/dts/imx23-olinuxino.dts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,21 @@
bus-width = <4>;
status = "okay";
};

pinctrl@80018000 {
pinctrl-names = "default";
pinctrl-0 = <&hog_pins_a>;

hog_pins_a: hog@0 {
reg = <0>;
fsl,pinmux-ids = <
0x2013 /* MX23_PAD_SSP1_DETECT__GPIO_2_1 */
>;
fsl,drive-strength = <0>;
fsl,voltage = <1>;
fsl,pull-up = <0>;
};
};
};

apbx@80040000 {
Expand All @@ -47,4 +62,14 @@
};
};
};

leds {
compatible = "gpio-leds";

user {
label = "green";
gpios = <&gpio2 1 0>;
linux,default-trigger = "default-on";
};
};
};

0 comments on commit ba5db49

Please sign in to comment.