From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933071AbeBVPhx (ORCPT ); Thu, 22 Feb 2018 10:37:53 -0500 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:18432 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932919AbeBVPho (ORCPT ); Thu, 22 Feb 2018 10:37:44 -0500 From: Amelie DELAUNAY To: Linus Walleij 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 Subject: Re: [PATCH 5/6] ARM: dts: stm32: add joystick support on stm32746g-eval Thread-Topic: [PATCH 5/6] ARM: dts: stm32: add joystick support on stm32746g-eval Thread-Index: AQHToOkH6lDu2TxtlUC3foCv3rgif6Owdj+AgAAcswA= Date: Thu, 22 Feb 2018 15:35:28 +0000 Message-ID: References: <1518100057-23234-1-git-send-email-amelie.delaunay@st.com> <1518100057-23234-6-git-send-email-amelie.delaunay@st.com> In-Reply-To: Accept-Language: fr-FR, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.75.127.44] Content-Type: text/plain; charset="utf-8" Content-ID: <903C948E0C2F20429AC9EA9E2E0A4A8D@st.com> MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-02-22_05:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by mail.home.local id w1MFc0R2011959 On 02/22/2018 02:52 PM, Linus Walleij wrote: > 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. > Sure! I keep this in mind, thanks! Regards, Amelie > Yours, > Linus Walleij >