+#define ADM5120_BUTTON_THRESHOLD 5
+#define ADM5120_BUTTON_INTERVAL 20
+
+struct gpio_button adm5120_buttons[ADM5120_NUM_BUTTONS] = {
+ {
+ .type = EV_KEY,
+ .code = BTN_0,
+ .threshold = ADM5120_BUTTON_THRESHOLD,
+ }, {
+ .type = EV_KEY,
+ .code = BTN_1,
+ .threshold = ADM5120_BUTTON_THRESHOLD,
+ }, {
+ .type = EV_KEY,
+ .code = BTN_2,
+ .threshold = ADM5120_BUTTON_THRESHOLD,
+ }, {
+ .type = EV_KEY,
+ .code = BTN_3,
+ .threshold = ADM5120_BUTTON_THRESHOLD,
+ }, {
+ .type = EV_KEY,
+ .code = BTN_4,
+ .threshold = ADM5120_BUTTON_THRESHOLD,
+ }
+};
+
+struct gpio_buttons_platform_data adm5120_buttons_data = {
+ .poll_interval = ADM5120_BUTTON_INTERVAL,
+ .nbuttons = ARRAY_SIZE(adm5120_buttons),
+ .buttons = adm5120_buttons,
+};
+
+struct platform_device adm5120_buttons_device = {
+ .name = "gpio-buttons",
+ .id = 0,
+ .dev.platform_data = &adm5120_buttons_data,
+};
+