ramips: RB750Gr3: Add pwr LED and buzzer to DTS

use pwr LED in diag.sh
Expose unused pinmux pins as GPIOs
export power LED and buzzer pins
Use rb750gr3:blue:pwr LED in diag.sh for boot status instead of rb750gr3:green:usr

Signed-off-by: Andrew Yong <me@ndoo.sg>
This commit is contained in:
Andrew Yong 2016-11-26 22:15:21 +08:00 committed by John Crispin
parent fef6a96d9e
commit 07b571a435
2 changed files with 13 additions and 2 deletions

View file

@ -191,7 +191,7 @@ get_status_led() {
status_led="$board:green:wps" status_led="$board:green:wps"
;; ;;
rb750gr3) rb750gr3)
status_led="$board:green:usr" status_led="$board:blue:pwr"
;; ;;
sap-g3200u3) sap-g3200u3)
status_led="$board:green:usb" status_led="$board:green:usb"

View file

@ -20,6 +20,11 @@
gpio-leds { gpio-leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
pwr {
label = "rb750gr3:blue:pwr";
gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>;
};
usr { usr {
label = "rb750gr3:green:usr"; label = "rb750gr3:green:usr";
gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>; gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
@ -49,6 +54,12 @@
compatible = "gpio-export"; compatible = "gpio-export";
#size-cells = <0>; #size-cells = <0>;
buzzer {
gpio-export,name = "buzzer";
gpio-export,output = <0>;
gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>;
};
usb { usb {
gpio-export,name = "usb"; gpio-export,name = "usb";
gpio-export,output = <1>; gpio-export,output = <1>;
@ -102,7 +113,7 @@
&pinctrl { &pinctrl {
state_default: pinctrl0 { state_default: pinctrl0 {
gpio { gpio {
ralink,group = "i2c", "rgmii2", "sdhci"; ralink,group = "i2c", "uart2", "uart3", "pcie", "rgmii2", "jtag";
ralink,function = "gpio"; ralink,function = "gpio";
}; };
}; };