Skip to content

Commit

Permalink
firmware/dt: Update LED to match the official led colors
Browse files Browse the repository at this point in the history
First DT was written for the LED I bodged onto my icebreaker
rev 1.0b, but newer version have a footprints that have colors
mapped differently. Use that as the "default" scheme.

Signed-off-by: Sylvain Munaut <[email protected]>
  • Loading branch information
smunaut committed Aug 22, 2021
1 parent 524e7ef commit 9a28d6a
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions firmware/dt/ice40linux.dts
Original file line number Diff line number Diff line change
Expand Up @@ -149,28 +149,28 @@
#size-cells = <0>;

led@0 {
label = "red";
reg = <0>;
color = <1>; // LED_COLOR_ID_RED
linux,default-trigger = "panic";
// panic trigger doesn't support brightness control ... none/full only
};

led@1 {
label = "blue";
reg = <1>;
reg = <0>;
color = <3>; // LED_COLOR_ID_BLUE
linux,default-trigger = "heartbeat";
blink-brightness = <20>;
};

led@2 {
led@1 {
label = "green";
reg = <2>;
reg = <1>;
color = <2>; // LED_COLOR_ID_GREEN
linux,default-trigger = "mtd";
blink-brightness = <20>;
};

led@2 {
label = "red";
reg = <2>;
color = <1>; // LED_COLOR_ID_RED
linux,default-trigger = "panic";
// panic trigger doesn't support brightness control ... none/full only
};
};
};

Expand Down

0 comments on commit 9a28d6a

Please sign in to comment.