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

Jaghathiswari Rankappagounder Natarajan jaghu at google.com
Tue Oct 18 04:10:48 AEDT 2016


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

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

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

 #include "aspeed-g5.dtsi"
+#include <dt-bindings/gpio/aspeed-gpio.h>

 / {
 	model = "Zaius BMC";
@@ -58,6 +59,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