From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B9113C433E1 for ; Wed, 26 Aug 2020 14:37:25 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 822C8214F1 for ; Wed, 26 Aug 2020 14:37:25 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="e25mS0yq" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 822C8214F1 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.intel.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=74l+3we9YSY4Hdh8N8Do4OVaNMS5f62OR95wR1z3RXA=; b=e25mS0yqHovMDNAdkzDBrCczK jYJculqj725DHs8zlXw3mr2QNLiz/3UwhFQ5icWSCaKtIJFHlFsCqtTcoMbxfI3CDtIl/nERPNuVc 4Dmi2bGyQTfGgdYd0WtmXXlYNXUhjftl4UiBGlTIdgS7vjMlHmwNgYyci+DXZW2hJKF9dcF52a9kx rq7l0Bsu8iyO8G63D319UkYopoOF4hW4nLvsRh74HTA7Gqi0spJMeReikVAVZhBlluLxscMk2VyR/ /+y9DM/wesCFMb+dRSukYLCa/RhmU8i+OuXAxAlPULnjSoBBatrtmw1DeY99nNHkGmoggKoWhC0tH MC3Fs8tlQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kAwWo-0006WG-0a; Wed, 26 Aug 2020 14:35:54 +0000 Received: from mga02.intel.com ([134.134.136.20]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kAwWk-0006VK-TT for linux-arm-kernel@lists.infradead.org; Wed, 26 Aug 2020 14:35:51 +0000 IronPort-SDR: fQtIkt2WLRPWt1p3VLbCXTpi/8PwkpdsaY52tvVaIHYKYWO9zsTPRMdAGpFz0eXcxk1jP59tg1 Jaj3J46Wo23w== X-IronPort-AV: E=McAfee;i="6000,8403,9725"; a="144066467" X-IronPort-AV: E=Sophos;i="5.76,355,1592895600"; d="scan'208";a="144066467" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Aug 2020 07:35:47 -0700 IronPort-SDR: ERO3Vp223nHcwzMdJu2q8LBV95WtT65p2adjpKW7iXxrfjdtOKBAMMu135xURYqyiifn+VXH4+ HA9aIRmjQBmA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,355,1592895600"; d="scan'208";a="403080252" Received: from kuha.fi.intel.com ([10.237.72.162]) by fmsmga001.fm.intel.com with SMTP; 26 Aug 2020 07:35:44 -0700 Received: by kuha.fi.intel.com (sSMTP sendmail emulation); Wed, 26 Aug 2020 17:35:43 +0300 Date: Wed, 26 Aug 2020 17:35:43 +0300 From: Heikki Krogerus To: Linus Walleij , Dmitry Torokhov Subject: Re: [PATCH 0/5] Make gpio_keys accept board descriptors Message-ID: <20200826143543.GC813478@kuha.fi.intel.com> References: <20171124093045.5961-1-linus.walleij@linaro.org> <20171125233324.afdt4netamvkrkm2@dtor-ws> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200826_103551_111643_4A63153D X-CRM114-Status: GOOD ( 33.55 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Linux ARM , Linux Input Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, Aug 26, 2020 at 03:20:14PM +0200, Linus Walleij wrote: > Hi Dmitry, > > On Sun, Nov 26, 2017 at 12:33 AM Dmitry Torokhov > wrote: > > On Fri, Nov 24, 2017 at 10:30:40AM +0100, Linus Walleij wrote: > > > > The goal I'm working toward is to rid the kernel of the global > > > GPIO numberspace. > > > > > > This means GPIO lines should be references by the local offset > > > on the GPIO chip. > > > > > > This patch set starts to move gpio_keys toward using GPIO > > > look-up tables instead of global GPIO numbers to find their > > > GPIOs. > > > > > > As an example I did (I think) the necessary patches to > > > convert DaVinci and i.MX to use this. There are several users > > > also x86 platform devices. > (...) > > I think this is a worthy goal, but I wonder if we could get static GPIO > > descriptors work with fwnode_get_named_gpiod() so we could retire the > > platform data parsing altogether. We'd need to extend static device > > properties to have notion of children though. > > Do we have this now? I've looked at Heikki's et al work > on software nodes but I cannot see whether we are there now. > > We have fwnode_create_software_node() and friends, but > I haven't seen if this can be used with input and GPIO descriptors > are still a bit on the side. I can create a lot of properties but > not really add a descriptor table as a software node as far as > I can tell. I'm also a bit lost on whether it will be possible > to get there sadly :/ I'm sorry but I'm not completely sure what is this about? Are software nodes still missing something that would prevent us from for example using them to describe the GPIO information exactly the same way it is described in DT? I don't know if that is what we want, but I'm just trying to understand what is still missing? Dmitry? If there is still something missing, then let's fix that. thanks, -- heikki _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel