From: jacmet@sunsite.dk (Peter Korsgaard) Date: Wed, 21 Nov 2012 09:58:15 +0100 Subject: [PATCH RESEND 02/10] ARM: dts: AM33XX: Add matrix keypad device tree data to am335x-evm In-Reply-To: <1352209718-5586-3-git-send-email-anilkumar@ti.com> (AnilKumar Ch's message of "Tue, 6 Nov 2012 19:18:30 +0530") References: <1352209718-5586-1-git-send-email-anilkumar@ti.com> <1352209718-5586-3-git-send-email-anilkumar@ti.com> Message-ID: <87624zjpso.fsf@dell.be.48ers.dk> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org >>>>> "A" == AnilKumar Ch 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 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 at 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