Skip to contentSkip to conversation

arm: socfpga: cyclone5-socdk: Enable ports A & C

PATCH New Georges Savoundararadj 2 participants 2 messages Mar 28, 2017 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: socfpga: cyclone5-socdk: Enable ports A & C

With the port C enabled, we can read the GPI input state of:
* the DIP switches (USER_DIPSW_HPS[3:0]/HPS_GPI[7:4])
* the push buttons (USER_PB_HPS[3:0]/HPS_GPI[11:8])

Signed-off by: Sid-Ali Teir <[email protected]>
Cc: Dinh Nguyen <[email protected]>
Cc: Marek Vasut <[email protected]>

---
 arch/arm/dts/socfpga_cyclone5_socdk.dts | 8 ++++++++
 1 file changed, 8 insertions(+)
arch/arm/dts/socfpga_cyclone5_socdk.dts +8 -0
index d4df1a14da..f175ef2ead 100644
@@ -54,10 +54,18 @@
 	rxc-skew-ps = <2000>;
 };
 
+&gpio0 {
+	status = "okay";
+};
+
 &gpio1 {
 	status = "okay";
 };
 
+&gpio2 {
+	status = "okay";
+};
+
 &i2c0 {
 	status = "okay";
 
Signature · 1 line
2.12.1
#1 lore raw

PATCH 1/1 arm: socfpga: cyclone5-socdk: Enable ports A & C

Quoted 8 lines · Georges Savoundararadj

With the port C enabled, we can read the GPI input state of:
* the DIP switches (USER_DIPSW_HPS[3:0]/HPS_GPI[7:4])
* the push buttons (USER_PB_HPS[3:0]/HPS_GPI[11:8])

Signed-off by: Sid-Ali Teir <[email protected]>
Cc: Dinh Nguyen <[email protected]>
Cc: Marek Vasut <[email protected]>

Dinh ?

Quoted 28 lines
---
 arch/arm/dts/socfpga_cyclone5_socdk.dts | 8 ++++++++
 1 file changed, 8 insertions(+)
arch/arm/dts/socfpga_cyclone5_socdk.dts +8 -0
index d4df1a14da..f175ef2ead 100644
@@ -54,10 +54,18 @@
 	rxc-skew-ps = <2000>;
 };
 
+&gpio0 {
+	status = "okay";
+};
+
 &gpio1 {
 	status = "okay";
 };
 
+&gpio2 {
+	status = "okay";
+};
+
 &i2c0 {
 	status = "okay";
 
Signature · 2 lines
Best regards,
Marek Vasut