From 99045dfc5989e732f671de5d145532f0fe8c0ce1 Mon Sep 17 00:00:00 2001 From: Mathias Kresin Date: Sat, 18 Aug 2018 11:38:13 +0200 Subject: ramips: express diag led handling via devicetree Use the default-state property to express the desired led handling in the devicetree source file instead of the userspace. Signed-off-by: Mathias Kresin --- target/linux/ramips/dts/DCH-M225.dts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'target/linux/ramips/dts/DCH-M225.dts') diff --git a/target/linux/ramips/dts/DCH-M225.dts b/target/linux/ramips/dts/DCH-M225.dts index 1e32c6d194..b218436929 100644 --- a/target/linux/ramips/dts/DCH-M225.dts +++ b/target/linux/ramips/dts/DCH-M225.dts @@ -36,11 +36,13 @@ led_power: power { label = "dch-m225:green:power"; gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; + default-state = "on"; }; status { label = "dch-m225:red:status"; gpios = <&gpio1 0 GPIO_ACTIVE_LOW>; + default-state = "off"; }; }; -- cgit v1.2.3