mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Fix the gpio-leds node to match the LEDs on RPI2.
The 'pwr' LED is connected to GPIO pin 35 (active high) and the 'act' LED is connected to GPIO pin 47 (active high). Remove the GPIO pin 47 from reserved pins list, previously it was used to signaling the SD Card presence and now it is used by act LED.
This commit is contained in:
parent
b7dee41fd4
commit
b7ce14b99c
2 changed files with 10 additions and 14 deletions
|
|
@ -131,11 +131,11 @@
|
|||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pins_reserved>;
|
||||
|
||||
/* Pins that can short 3.3V to GND in output mode: 46-47
|
||||
/* Pins that can short 3.3V to GND in output mode: 46
|
||||
* Pins used by VideoCore: 48-53
|
||||
*/
|
||||
broadcom,read-only = <46>, <47>, <48>, <49>, <50>,
|
||||
<51>, <52>, <53>;
|
||||
broadcom,read-only = <46>, <48>, <49>, <50>,
|
||||
<51>, <52>, <53>;
|
||||
|
||||
/* BSC0 */
|
||||
pins_bsc0_a: bsc0_a {
|
||||
|
|
|
|||
|
|
@ -322,18 +322,14 @@
|
|||
leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
ok {
|
||||
label = "ok";
|
||||
gpios = <&gpio 16 1>;
|
||||
pwr {
|
||||
label = "pwr";
|
||||
gpios = <&gpio 35 0>;
|
||||
};
|
||||
|
||||
/* Don't change this - it configures
|
||||
* how the led driver determines if
|
||||
* the led is on or off when it loads.
|
||||
*/
|
||||
default-state = "keep";
|
||||
|
||||
/* This is the real default state. */
|
||||
linux,default-trigger = "default-on";
|
||||
act {
|
||||
label = "act";
|
||||
gpios = <&gpio 47 0>;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue