[PATCH linux v3 3/3] devicetree: Add devicetree changes to support seven segment display on zaius

Jaghathiswari Rankappagounder Natarajan jaghu at google.com
Tue Nov 1 10:49:12 AEDT 2016


Add clock, data and clear signal lines to control seven segment display on
zaius platform

Signed-off-by: Jaghathiswari Rankappagounder Natarajan <jaghu at google.com>
---
 arch/arm/boot/dts/aspeed-bmc-opp-zaius.dts | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/aspeed-bmc-opp-zaius.dts b/arch/arm/boot/dts/aspeed-bmc-opp-zaius.dts
index 4c4754b..cdead36 100644
--- a/arch/arm/boot/dts/aspeed-bmc-opp-zaius.dts
+++ b/arch/arm/boot/dts/aspeed-bmc-opp-zaius.dts
@@ -1,7 +1,7 @@
 /dts-v1/;

 #include "aspeed-g5.dtsi"
-
+#include <dt-bindings/gpio/aspeed-gpio.h>
 / {
 	model = "Zaius BMC";
 	compatible = "ingrasys,zaius-bmc", "aspeed,ast2500";
@@ -58,6 +58,14 @@
 			};
 		};
 	};
+
+	seven-seg-disp {
+		compatible = "seven-seg-gpio-dev";
+		refresh-interval-ms = "1000";
+		clock-gpios = <&gpio ASPEED_GPIO(J, 0) GPIO_ACTIVE_HIGH>;
+		data-gpios = <&gpio ASPEED_GPIO(J, 2) GPIO_ACTIVE_HIGH>;
+		clear-gpios = <&gpio ASPEED_GPIO(J, 1) GPIO_ACTIVE_HIGH>;
+	};
 };

 &uart5 {
--
2.8.0.rc3.226.g39d4020



More information about the openbmc mailing list