Re: [PATCH RESEND 02/10] ARM: dts: AM33XX: Add matrix keypad device tree data to am335x-evm
A == AnilKumar Ch anilku...@ti.com writes: A Add matrix keypad device tree data to am335x-evm by adding all A the necessary parameters like keymap, row column gpios and etc. A Signed-off-by: AnilKumar Ch anilku...@ti.com A --- A arch/arm/boot/dts/am335x-evm.dts | 20 A 1 file changed, 20 insertions(+) A diff --git a/arch/arm/boot/dts/am335x-evm.dts b/arch/arm/boot/dts/am335x-evm.dts A index 9199456..8076e66 100644 A --- a/arch/arm/boot/dts/am335x-evm.dts A +++ b/arch/arm/boot/dts/am335x-evm.dts A @@ -110,6 +110,26 @@ A regulator-name = lis3_reg; A regulator-boot-on; A }; A + A + matrix_keypad: matrix_keypad@0 { A + compatible = gpio-matrix-keypad; A + debounce-delay-ms = 5; A + col-scan-delay-us = 2; A + A + row-gpios = gpio2 25 0/* Bank1, pin25 */ A +gpio2 26 0/* Bank1, pin26 */ A +gpio2 27 0; /* Bank1, pin27 */ Sigh, can we PLEASE change am33xx.dtsi to use zero based index like the TRM and get rid of this madness? -- Bye, Peter Korsgaard -- To unsubscribe from this list: send the line unsubscribe linux-omap in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
[PATCH RESEND 02/10] ARM: dts: AM33XX: Add matrix keypad device tree data to am335x-evm
Add matrix keypad device tree data to am335x-evm by adding all the necessary parameters like keymap, row column gpios and etc. Signed-off-by: AnilKumar Ch anilku...@ti.com --- arch/arm/boot/dts/am335x-evm.dts | 20 1 file changed, 20 insertions(+) diff --git a/arch/arm/boot/dts/am335x-evm.dts b/arch/arm/boot/dts/am335x-evm.dts index 9199456..8076e66 100644 --- a/arch/arm/boot/dts/am335x-evm.dts +++ b/arch/arm/boot/dts/am335x-evm.dts @@ -110,6 +110,26 @@ regulator-name = lis3_reg; regulator-boot-on; }; + + matrix_keypad: matrix_keypad@0 { + compatible = gpio-matrix-keypad; + debounce-delay-ms = 5; + col-scan-delay-us = 2; + + row-gpios = gpio2 25 0/* Bank1, pin25 */ +gpio2 26 0/* Bank1, pin26 */ +gpio2 27 0; /* Bank1, pin27 */ + + col-gpios = gpio2 21 0/* Bank1, pin21 */ +gpio2 22 0; /* Bank1, pin22 */ + + linux,keymap = 0x008b /* MENU */ + 0x019e /* BACK */ + 0x0269 /* LEFT */ + 0x0001006a /* RIGHT */ + 0x0101001c /* ENTER */ + 0x0201006c;/* DOWN */ + }; }; /include/ tps65910.dtsi -- 1.7.9.5 -- To unsubscribe from this list: send the line unsubscribe linux-omap in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html