Received: by 10.223.185.116 with SMTP id b49csp1947566wrg; Thu, 22 Feb 2018 05:54:42 -0800 (PST) X-Google-Smtp-Source: AH8x227yayZEN3/MTvANmo417nzQR0A6i7ESjiHZcB4J0rOBUjB8fYyFYZ8QertgVNOd66ehyoBT X-Received: by 2002:a17:902:aa8d:: with SMTP id d13-v6mr6636265plr.114.1519307682886; Thu, 22 Feb 2018 05:54:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519307682; cv=none; d=google.com; s=arc-20160816; b=UJnPwokr4s4w07v9fSJvm/tfPKKZSOk7gmOmlEwwSYzHbq4HZw/VHCgoVvAo3MBffD ftgwLEYZetX17pnZSew7RBFeurHkv0gv9t87yOzazHbW1HFFgfVre0tqlJJtA2vyZ/pd m88JpqslMWbScqRlwELLsN2y9Dokvd9wQvSzQYOiQ/ntEpmeuv64jO4SrfJ2v50vCt0v uYlbV0hFSzx97z4hj8b1V8LlymoAeMiN2HoNrDyXYaFAHvDuvxjnmDlI3vw+kSafK1iy jcwX6fQZy+xQLlD9PFCSmeO8XOPi3eV7hSqZM5SAg/hg7YyOhVag5WkmC1ju7asT6kR8 Gi0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=GfagwF0bs9g21j9MV7Ro4/Pny7O+BmP1KOvPDy65R98=; b=PHYAPc41jO9NUgbLbS1ClStkddFnHEQ0T+LZdSdnPdfzuQ7Vh737VPsqUgQdayxal9 78SiD63XCSHi5RCeX5xT38eSfTR+3FiIoLjhlTcvXw7PxJ/ck9BhNwPkrrQogMHKY8IR fWla/ONIDtqdSy3eirupbnhX0g93fqOSffakJWsJt2mR86mm/mBNsEpKNlA17BUhQbil JD/0RP7OFd8MbFHl45kQ8/ZvN93vAgt3I5AxYRnSe1ryUYeWPypHiI0+6wNkEwKRVkIs PxosTyqHhcGRcVSVQYcqTNMZJlOQe6zkUjytEp8wXkHX3Gpeww28NqCQWkphyNATbKzz KACw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jXCUkr9G; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a66si82657pfl.219.2018.02.22.05.54.28; Thu, 22 Feb 2018 05:54:42 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jXCUkr9G; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932625AbeBVNws (ORCPT + 99 others); Thu, 22 Feb 2018 08:52:48 -0500 Received: from mail-io0-f195.google.com ([209.85.223.195]:45468 "EHLO mail-io0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932491AbeBVNwq (ORCPT ); Thu, 22 Feb 2018 08:52:46 -0500 Received: by mail-io0-f195.google.com with SMTP id m22so6060125iob.12 for ; Thu, 22 Feb 2018 05:52:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=GfagwF0bs9g21j9MV7Ro4/Pny7O+BmP1KOvPDy65R98=; b=jXCUkr9GYvDj0bjXh6pAhJbwp3aWzRAzo9HQ4f7nVHjpeoiOAlZgHPPfNn/U8nDyzY cc5/f7thXhYD1BpUW7thyq4iiKOFO0uXxXRre/fx5wobq2F/PeJOXQ7h4R6WNFlxUgl/ 8Ab1mOnStYt9b9re5il/O7sM5G3uUFjKMILmU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=GfagwF0bs9g21j9MV7Ro4/Pny7O+BmP1KOvPDy65R98=; b=hAVtHOCWB2ESrdQXY3KkNemlsWviw9Ss+YmBzfmAkUbcyJC8B3DxsE6sw+kynv6dfE fDWCluB+/jf+eyRPbpsM+8Bq6hdxGIRQXyE8XeFUYmTbo3nK7jm7aB0K28beX7qwxi7U o07r9LtQpPhs1v/Qie7/v8xdyp9Snupo0em5hzWwGXuaPMxW+xMDapowJ9C6ICH7Imz3 5M0jFCJmQLEMqDtCtBAatwC06n6+4TXBkDj8y5/eak3WP3qlWhtpOFiS91F8FTgLZ7W0 fQVtGozX5KqaqFAtd1QsCTrsBJMLmok2ccx+x80pf6VpLT63Elwmv1F44iRolywLCz7S QSKw== X-Gm-Message-State: APf1xPDcgv3sF3Ns3GgXdM3ev2TeMtBH4Wacu59+YOosa/6XpDMAxyEH NCXUAg4DVwB6n71vMG11Txu2KspVLj9nX4Apj/HRPA== X-Received: by 10.107.161.200 with SMTP id k191mr8343759ioe.270.1519307565601; Thu, 22 Feb 2018 05:52:45 -0800 (PST) MIME-Version: 1.0 Received: by 10.79.230.25 with HTTP; Thu, 22 Feb 2018 05:52:45 -0800 (PST) In-Reply-To: <1518100057-23234-6-git-send-email-amelie.delaunay@st.com> References: <1518100057-23234-1-git-send-email-amelie.delaunay@st.com> <1518100057-23234-6-git-send-email-amelie.delaunay@st.com> From: Linus Walleij Date: Thu, 22 Feb 2018 14:52:45 +0100 Message-ID: Subject: Re: [PATCH 5/6] ARM: dts: stm32: add joystick support on stm32746g-eval To: Amelie Delaunay Cc: Lee Jones , Rob Herring , Mark Rutland , Russell King , Alexandre Torgue , Maxime Coquelin , linux-gpio@vger.kernel.org, "linux-kernel@vger.kernel.org" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux ARM Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Amelie, thanks for your patch. On Thu, Feb 8, 2018 at 3:27 PM, Amelie Delaunay wrote: > The joystick on stm32746g-eval uses gpios on MFX gpio expander. > > Signed-off-by: Amelie Delaunay (...) > + joystick { > + compatible = "gpio-keys"; > + #address-cells = <1>; > + #size-cells = <0>; > + button@1 { > + label = "JoySel"; > + linux,code = ; > + gpios = <&mfxgpio 0 (GPIO_ACTIVE_LOW | GPIO_IN_PUSH_PULL | GPIO_PULL_UP)>; > + }; As I think this should not all be handled by GPIO, the joystick on gpio-keys needs a pin control handle pointing back to pin control states on the respective pins in the pin control/GPIO driver, where it can set up these properties. For the individual lines the pushing and pulling flags should be removed. Yours, Linus Walleij