[PATCH linux dev-4.7] ARM: dts: aspeed: romulus: Add GPIO hogs for nic_mode_func

Lei YU mine260309 at gmail.com
Wed Mar 15 18:13:48 AEDT 2017


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 at gmail.com>
---
 arch/arm/boot/dts/aspeed-bmc-opp-romulus.dts | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/arch/arm/boot/dts/aspeed-bmc-opp-romulus.dts b/arch/arm/boot/dts/aspeed-bmc-opp-romulus.dts
index b8b2d7f..2266c85 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";
 };
-- 
1.9.1



More information about the openbmc mailing list