aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorAndrew Yong <me@ndoo.sg>2016-11-26 22:15:21 +0800
committerJohn Crispin <john@phrozen.org>2016-12-01 16:17:55 +0100
commit07b571a4355a27502fcadf8f81144cab8e00a42a (patch)
treecd2c7c944d1a817f752a1a3736a36a1edd562b9a /target
parentfef6a96d9e9e001a28b6a673c56ed79029457b5d (diff)
downloadupstream-07b571a4355a27502fcadf8f81144cab8e00a42a.tar.gz
upstream-07b571a4355a27502fcadf8f81144cab8e00a42a.tar.bz2
upstream-07b571a4355a27502fcadf8f81144cab8e00a42a.zip
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>
Diffstat (limited to 'target')
-rw-r--r--target/linux/ramips/base-files/etc/diag.sh2
-rw-r--r--target/linux/ramips/dts/RB750Gr3.dts13
2 files changed, 13 insertions, 2 deletions
diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh
index a7b8ae0b06..6bcdc0f5bc 100644
--- a/target/linux/ramips/base-files/etc/diag.sh
+++ b/target/linux/ramips/base-files/etc/diag.sh
@@ -191,7 +191,7 @@ get_status_led() {
status_led="$board:green:wps"
;;
rb750gr3)
- status_led="$board:green:usr"
+ status_led="$board:blue:pwr"
;;
sap-g3200u3)
status_led="$board:green:usb"
diff --git a/target/linux/ramips/dts/RB750Gr3.dts b/target/linux/ramips/dts/RB750Gr3.dts
index bf1c2ba495..756010a550 100644
--- a/target/linux/ramips/dts/RB750Gr3.dts
+++ b/target/linux/ramips/dts/RB750Gr3.dts
@@ -20,6 +20,11 @@
gpio-leds {
compatible = "gpio-leds";
+ pwr {
+ label = "rb750gr3:blue:pwr";
+ gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>;
+ };
+
usr {
label = "rb750gr3:green:usr";
gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
@@ -49,6 +54,12 @@
compatible = "gpio-export";
#size-cells = <0>;
+ buzzer {
+ gpio-export,name = "buzzer";
+ gpio-export,output = <0>;
+ gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>;
+ };
+
usb {
gpio-export,name = "usb";
gpio-export,output = <1>;
@@ -102,7 +113,7 @@
&pinctrl {
state_default: pinctrl0 {
gpio {
- ralink,group = "i2c", "rgmii2", "sdhci";
+ ralink,group = "i2c", "uart2", "uart3", "pcie", "rgmii2", "jtag";
ralink,function = "gpio";
};
};