ramips: fix multi colour led handling
All boards either have a multi colour led or a single lightpipe. It makes it impossible to handle the LEDs individual. Change the LED config for these boards to take it into account. Signed-off-by: Mathias Kresin <dev@kresin.me>
This commit is contained in:
@@ -23,16 +23,19 @@
|
||||
led_blue: blue {
|
||||
label = "miwifi-mini:blue:status";
|
||||
gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
|
||||
default-state = "on";
|
||||
};
|
||||
|
||||
yellow {
|
||||
label = "miwifi-mini:yellow:status";
|
||||
gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
|
||||
default-state = "off";
|
||||
};
|
||||
|
||||
red {
|
||||
label = "miwifi-mini:red:status";
|
||||
gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
|
||||
default-state = "off";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -28,16 +28,19 @@
|
||||
status-red {
|
||||
label = "newifi-d1:red:status";
|
||||
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
|
||||
default-state = "off";
|
||||
};
|
||||
|
||||
status-green {
|
||||
label = "newifi-d1:green:status";
|
||||
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
|
||||
default-state = "off";
|
||||
};
|
||||
|
||||
led_blue: status-blue {
|
||||
label = "newifi-d1:blue:status";
|
||||
gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
|
||||
default-state = "on";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -15,16 +15,19 @@
|
||||
led_blue: blue {
|
||||
label = "psg1218a:blue:status";
|
||||
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
|
||||
default-state = "on";
|
||||
};
|
||||
|
||||
yellow {
|
||||
label = "psg1218a:yellow:status";
|
||||
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
|
||||
default-state = "off";
|
||||
};
|
||||
|
||||
red {
|
||||
label = "psg1218a:red:status";
|
||||
gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
|
||||
gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
|
||||
default-state = "off";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -15,16 +15,19 @@
|
||||
led_blue: blue {
|
||||
label = "psg1218b:blue:status";
|
||||
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
|
||||
default-state = "on";
|
||||
};
|
||||
|
||||
yellow {
|
||||
label = "psg1218b:yellow:status";
|
||||
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
|
||||
default-state = "off";
|
||||
};
|
||||
|
||||
red {
|
||||
label = "psg1218b:red:status";
|
||||
gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
|
||||
gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
|
||||
default-state = "off";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user