Przeglądaj źródła

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: Georges Savoundararadj <savoundg@gmail.com>
Signed-off by: Sid-Ali Teir <git.syedelec@gmail.com>
Cc: Dinh Nguyen <dinguyen@kernel.org>
Cc: Marek Vasut <marex@denx.de>
Georges Savoundararadj 8 lat temu
rodzic
commit
45fa6f1dd5
1 zmienionych plików z 8 dodań i 0 usunięć
  1. 8 0
      arch/arm/dts/socfpga_cyclone5_socdk.dts

+ 8 - 0
arch/arm/dts/socfpga_cyclone5_socdk.dts

@@ -54,10 +54,18 @@
 	rxc-skew-ps = <2000>;
 };
 
+&gpio0 {
+	status = "okay";
+};
+
 &gpio1 {
 	status = "okay";
 };
 
+&gpio2 {
+	status = "okay";
+};
+
 &i2c0 {
 	status = "okay";