summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLei YU <mine260309@gmail.com>2017-03-15 10:13:48 +0300
committerJoel Stanley <joel@jms.id.au>2017-03-17 03:16:12 +0300
commita1d4a25efc1e8e2859992399cbffb5c4e95f7596 (patch)
treed268a66a02c4839e545d39e8701164340eb829b0
parentc72ced5a19ceae19c7d792ae3e982bee5607dab4 (diff)
downloadlinux-a1d4a25efc1e8e2859992399cbffb5c4e95f7596.tar.xz
ARM: dts: aspeed: romulus: Add GPIO hogs for nic_mode_func
GPIOD3/D4 are the "NIC_FUNC_MODE_0/1" pins connected to Broadcom 5719 which control the PCIe functions. Add GPIO hogs to pull down GPIOD3/D4 to use that function. Signed-off-by: Lei YU <mine260309@gmail.com> Signed-off-by: Joel Stanley <joel@jms.id.au>
-rw-r--r--arch/arm/boot/dts/aspeed-bmc-opp-romulus.dts15
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/aspeed-bmc-opp-romulus.dts b/arch/arm/boot/dts/aspeed-bmc-opp-romulus.dts
index b8b2d7f7839c..2266c85fe330 100644
--- a/arch/arm/boot/dts/aspeed-bmc-opp-romulus.dts
+++ b/arch/arm/boot/dts/aspeed-bmc-opp-romulus.dts
@@ -181,6 +181,21 @@
status = "disabled";
};
+&gpio {
+ nic_func_mode0 {
+ gpio-hog;
+ gpios = <ASPEED_GPIO(D, 3) GPIO_ACTIVE_HIGH>;
+ output-low;
+ line-name = "nic_func_mode0";
+ };
+ nic_func_mode1 {
+ gpio-hog;
+ gpios = <ASPEED_GPIO(D, 4) GPIO_ACTIVE_HIGH>;
+ output-low;
+ line-name = "nic_func_mode1";
+ };
+};
+
&vuart {
status = "okay";
};