Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: socfpga: Fix up button mapping on VINING FPGA

Add missing buttons and signals to the VINING FPGA device tree,
so they are presented to the userspace via gpio-keys evdev.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Dinh Nguyen <dinguyen@kernel.org>
Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>

authored by

Marek Vasut and committed by
Dinh Nguyen
325ec920 67c9fd2d

+17 -5
+17 -5
arch/arm/boot/dts/socfpga_cyclone5_vining_fpga.dts
··· 36 36 37 37 hps_temp0 { 38 38 label = "BTN_0"; /* TEMP_OS */ 39 - gpios = <&portc 18 GPIO_ACTIVE_LOW>; /* HPS_GPIO60 */ 39 + gpios = <&portc 18 GPIO_ACTIVE_LOW>; /* HPS_GPI5 */ 40 40 linux,code = <BTN_0>; 41 41 }; 42 42 43 43 hps_hkey0 { 44 - label = "BTN_1"; /* DIS_PWR */ 45 - gpios = <&portc 19 GPIO_ACTIVE_LOW>; /* HPS_GPIO61 */ 44 + label = "GP_SWITCH"; /* GP_SWITCH */ 45 + gpios = <&portc 19 GPIO_ACTIVE_LOW>; /* HPS_GPI6 */ 46 46 linux,code = <BTN_1>; 47 47 }; 48 48 49 49 hps_hkey1 { 50 - label = "hps_hkey1"; /* POWER_DOWN */ 51 - gpios = <&portc 20 GPIO_ACTIVE_LOW>; /* HPS_GPIO62 */ 50 + label = "RESET_SWITCH"; /* RESET_SWITCH */ 51 + gpios = <&portc 20 GPIO_ACTIVE_LOW>; /* HPS_GPI7 */ 52 + linux,code = <BTN_2>; 53 + }; 54 + 55 + hps_hkey2 { 56 + label = "POWER_DOWN"; /* POWER_DOWN */ 57 + gpios = <&portc 4 GPIO_ACTIVE_LOW>; /* HPS_GPIO62 */ 52 58 linux,code = <KEY_POWER>; 59 + }; 60 + 61 + hps_hkey3 { 62 + label = "SENSE"; /* SENSE */ 63 + gpios = <&porta 9 GPIO_ACTIVE_LOW>; /* HPS_GPIO9 */ 64 + linux,code = <BTN_3>; 53 65 }; 54 66 }; 55 67