[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <4F958645.4080200@wwwdotorg.org>
Date: Mon, 23 Apr 2012 10:41:41 -0600
From: Stephen Warren <swarren@...dotorg.org>
To: "Poddar, Sourav" <sourav.poddar@...com>
CC: devicetree-discuss@...ts.ozlabs.org,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
linux-input@...r.kernel.org, Benoit Cousson <b-cousson@...com>,
Rob Herring <rob.herring@...xeda.com>,
Grant Likely <grant.likely@...retlab.ca>,
Felipe Balbi <balbi@...com>,
Dmitry Torokhov <dmitry.torokhov@...il.com>,
Randy Dunlap <rdunlap@...otime.net>
Subject: Re: [PATCHv3 1/2] drivers: input: keypad: Add device tree support
On 04/23/2012 09:40 AM, Poddar, Sourav wrote:
> Hi Stephen,
>
> On Mon, Apr 23, 2012 at 8:56 PM, Stephen Warren <swarren@...dotorg.org> wrote:
>> On 04/23/2012 09:27 AM, Sourav Poddar wrote:
>>> Update the Documentation with omap4 keypad device tree
>>> binding information.
>>> Add device tree support for omap4 keypad driver.
>>
>> Shouldn't this use the already-defined matrix keyboard bindings at
>> Documentation/devicetree/bindings/input/matrix-keymap.txt?
>>
> True, that is one way of describing the linux-keymap, but i think it can be
> done either ways.
Well, there certainly is more than one way to represent the data.
However, it'd be best to avoid creating new bindings for every piece of
hardware when there's already an existing binding that can be used. By
reusing the binding, different HW can be configured in the same way thus
re-using any knowledge someone has of the binding.
> Are you hinting at getting rid of Documentation for each seperate modules and
> just use a single Documentation/devicetree/bindings/input/matrix-keymap.txt?
You'd probably still need a device-specific binding in order to define
which compatible values were necessary, which reg values were necessary,
to reference the common binding documentation, to document any required
additional custom properties, and document any limitations. For example,
see how Olof wrote Documentation/devicetree/bindings/input/tegra-kbc.txt
based on the common matrix keyboard binding.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists