@@ -19,3 +19,14 @@
model = "Socionext Developer Box";
compatible = "socionext,developer-box", "socionext,synquacer";
};
+
+&gpio {
+ gpio-line-names = "DSW3-PIN1", "DSW3-PIN2", "DSW3-PIN3", "DSW3-PIN4",
+ "DSW3-PIN5", "DSW3-PIN6", "DSW3-PIN7", "DSW3-PIN8",
+ "PSIN#", "PWROFF#", "GPIO-A", "GPIO-B",
+ "GPIO-C", "GPIO-D", "PCIE1EXTINT", "PCIE0EXTINT",
+ "PHY2-INT#", "PHY1-INT#", "GPIO-E", "GPIO-F",
+ "GPIO-G", "GPIO-H", "GPIO-I", "GPIO-J",
+ "GPIO-K", "GPIO-L", "PEC-PD26", "PEC-PD27",
+ "PEC-PD28", "PEC-PD29", "PEC-PD30", "PEC-PD31";
+};
@@ -21,6 +21,9 @@
#define IRQ_TYPE_LEVEL_HIGH 4
#define IRQ_TYPE_LEVEL_LOW 8
+#define GPIO_ACTIVE_HIGH 0
+#define GPIO_ACTIVE_LOW 1
+
/ {
#address-cells = <2>;
#size-cells = <2>;
@@ -511,4 +514,13 @@
msi-map = <0x0 &its 0x10000 0x7f00>;
dma-coherent;
};
+
+ gpio: gpio@51000000 {
+ compatible = "socionext,synquacer-gpio", "fujitsu,mb86s70-gpio";
+ reg = <0x0 0x51000000 0x0 0x100>;
+ gpio-controller;
+ #gpio-cells = <2>;
+ clocks = <&clk_apb>;
+ base = <0>;
+ };
};
@@ -19,3 +19,14 @@
model = "SynQuacer Evaluation Board";
compatible = "socionext,synquacer-eval-board", "socionext,synquacer";
};
+
+&gpio {
+ gpio-line-names = "DSW3-PIN1", "DSW3-PIN2", "DSW3-PIN3", "DSW3-PIN4",
+ "DSW3-PIN5", "DSW3-PIN6", "DSW3-PIN7", "DSW3-PIN8",
+ "PEC-PD8", "PEC-PD9", "PEC-PD10", "PEC-PD11",
+ "NC", "NC", "PCIE1EXTINT", "PCIE0EXTINT",
+ "PHY_P2_2", "PHY_P1_2", "NC", "NC",
+ "NC", "NC", "NC", "NC",
+ "NC", "NC", "PEC-PD26", "PEC-PD27",
+ "PEC-PD28", "PEC-PD29", "PEC-PD30", "PEC-PD31";
+};