提交 8e166510 编写于 作者: P Patrick Delaunay 提交者: Tom Rini

stm32mp1: add gpio led support

This patch add the 4 LED available on the ED1 board and activated
gpio led driver.
Reviewed-by: NSimon Glass <sjg@chromium.org>
Signed-off-by: NPatrick Delaunay <patrick.delaunay@st.com>
上级 cdec3ea7
......@@ -13,6 +13,30 @@
mmc1 = &sdmmc2;
i2c3 = &i2c4;
};
led {
compatible = "gpio-leds";
red {
label = "stm32mp:red:status";
gpios = <&gpioa 13 GPIO_ACTIVE_LOW>;
default-state = "off";
};
green {
label = "stm32mp:green:user";
gpios = <&gpioa 14 GPIO_ACTIVE_LOW>;
default-state = "on";
};
orange {
label = "stm32mp:orange:status";
gpios = <&gpioh 7 GPIO_ACTIVE_HIGH>;
default-state = "off";
};
blue {
label = "stm32mp:blue:user";
gpios = <&gpiod 11 GPIO_ACTIVE_HIGH>;
};
};
};
&uart4_pins_a {
......
......@@ -31,6 +31,8 @@ CONFIG_CMD_EXT4_WRITE=y
CONFIG_STM32_ADC=y
CONFIG_DM_I2C=y
CONFIG_SYS_I2C_STM32F7=y
CONFIG_LED=y
CONFIG_LED_GPIO=y
CONFIG_DM_MMC=y
CONFIG_STM32_SDMMC2=y
# CONFIG_PINCTRL_FULL is not set
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册