diff options
author | Vikas Manocha <vikas.manocha@st.com> | 2017-04-10 15:03:00 -0700 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-05-08 11:57:21 -0400 |
commit | 2f80a9f72ecf4cfee68279a45e3c155f6516faa1 (patch) | |
tree | 20decea52c6dcf8052e6eb8a48cb1596d93f4615 /arch/arm | |
parent | 280057bd7dd623420b2d8b383fe5bbe26820bc93 (diff) |
stm32f746: to switch on user LED1 & read user button
All discovery boards have one user button & one user LED. Here we are
just reading the button status & switching ON the user LED.
Signed-off-by: Vikas Manocha <vikas.manocha@st.com>
cc: Christophe KERELLO <christophe.kerello@st.com>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/dts/stm32f746-disco.dts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/dts/stm32f746-disco.dts b/arch/arm/dts/stm32f746-disco.dts index f830aa90ef..8e4576bdc1 100644 --- a/arch/arm/dts/stm32f746-disco.dts +++ b/arch/arm/dts/stm32f746-disco.dts @@ -78,6 +78,16 @@ gpio9 = &gpioj; gpio10 = &gpiok; }; + + led1 { + compatible = "st,led1"; + led-gpio = <&gpioi 1 0>; + }; + + button1 { + compatible = "st,button1"; + button-gpio = <&gpioi 11 0>; + }; }; &clk_hse { |