Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755344Ab2KWKrN (ORCPT ); Fri, 23 Nov 2012 05:47:13 -0500 Received: from mail-ie0-f174.google.com ([209.85.223.174]:35918 "EHLO mail-ie0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752231Ab2KWKrK (ORCPT ); Fri, 23 Nov 2012 05:47:10 -0500 MIME-Version: 1.0 In-Reply-To: <20121123104140.GP17471@gmail.com> References: <912d88b8906ce87cf5459cf3d5798e03bfce34c7.1353649737.git.viresh.kumar@linaro.org> <20121123103400.GO17471@gmail.com> <20121123104140.GP17471@gmail.com> Date: Fri, 23 Nov 2012 16:17:09 +0530 Message-ID: Subject: Re: [PATCH] gpio: stmpe: Add DT support for stmpe gpio From: Viresh Kumar To: Lee Jones Cc: linus.walleij@linaro.org, grant.likely@secretlab.ca, devicetree-discuss@lists.ozlabs.org, linux-kernel@vger.kernel.org, spear-devel@list.st.com, Vipul Kumar Samar Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1344 Lines: 42 On 23 November 2012 16:11, Lee Jones wrote: >> > +++ b/Documentation/devicetree/bindings/gpio/gpio-stmpe.txt >> > @@ -0,0 +1,18 @@ >> > +STMPE gpio >> > +---------- >> > + >> > +Required properties: >> > + - compatible: "st,stmpe-gpio" > > ... but this is wrong. > >> > +Example: >> > + stmpe_gpio { >> > + compatible = "st,stmpe-gpio"; >> > + st,norequest-mask = <0x20>; //gpio 5 can't be used >> > + }; > > As is the example. > > So will be the the DT - if you've already written it. Again, I believe these are required by the code you wrote in mfd-core.c if (parent->of_node && cell->of_compatible) { for_each_child_of_node(parent->of_node, np) { if (of_device_is_compatible(np, cell->of_compatible)) { pdev->dev.of_node = np; break; } } } This matches compatible of child node with compatible of cell. And that's why you have added that in your keypad mappings as well. -- viresh -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/