Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp1430122pxu; Fri, 16 Oct 2020 11:44:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx8tO3zwQBz/91wnCBpvVh+5XrnHiujyUhBiqAL/I1Tp7xMu14N4k2EusuOIf1aqx5k+jWt X-Received: by 2002:a17:906:a198:: with SMTP id s24mr5122717ejy.154.1602873850988; Fri, 16 Oct 2020 11:44:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602873850; cv=none; d=google.com; s=arc-20160816; b=RIKmePhje/ACEAeDBlOQwPTlWrqBxMEqLK8nTFwl2SvYwUaATj16VHibK+vzNTPmzv hQS6mr1eYYh61iuTSAMorv2e4BX0WjgoL2QPMEuRTqzp7SDjBLVDUGX5YheWJkDzgGId DQWu4EEq7OnGEEaSCdeIHK4n9N68bEHWjmBOLUw6TII0x3dHxAd1LNdEtYm6JDdRZM6w 3mcoyLxZeWI82DLS5Hl5j5sfF9XJQlhK9qCxOpQ7QkfbKcpMPkD10cSPd+/cqOOdZDSY cPRYocMVPVJNL9RNRfH7GarjuNfd5exoiJNCb9X04QtdEMcAgTzCaxuLiNTitBCvfzb1 6HkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=3VomugIgtX6uspOQI4ZrAOcurGhFKwVLFVnDZkIhNCs=; b=oBi35S8ZLa/kFkNhC6Sz7Xt4IjnUXnXwIQJX4iHDnxnVk5h3CUJ5Vxrwfs3kX96X61 BSy0Avx+0LVDzE3Am7ABqy+Hz/Senzp84uHNk4guWwz05Z4k0oM36vhV6UG3G28oB80p jzcJLpwaLNfMztQKSQZGA8NvRTdAHfjEWMEA9eoAKfMjdeOePpuJH7mcyqZDPkqc8cOA n7sgRvwnssnv8qjHnTs30ANuOctYIIliEeL/NP0ZJ6Ijyn2UOuBWFMwDSQYfec7Ysaav Z5G0uQHAygXR+H2Odd7PwQ15uswqHagkcStzfZUh+hirVG3Cmfk0NpcBIkyrdocC+wc3 athg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=GvfirHos; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t21si2142507ejr.71.2020.10.16.11.43.48; Fri, 16 Oct 2020 11:44:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=GvfirHos; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406154AbgJPOOE (ORCPT + 99 others); Fri, 16 Oct 2020 10:14:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:52542 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2395282AbgJPOOD (ORCPT ); Fri, 16 Oct 2020 10:14:03 -0400 Received: from mail-oi1-f180.google.com (mail-oi1-f180.google.com [209.85.167.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7339321527; Fri, 16 Oct 2020 14:14:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1602857642; bh=/Wy1dqxW7oC6Qye976pyOHB3NEyzVajEMIVxWnNoiWI=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=GvfirHosPoQlrZ9dHvK/MiR7ld0pnZ1gIqpgnPDdlppchrxHv71dL73zET/FkkRbX tpqynbY8hwuhIjWFSMFkHjBO9r32xo2deIPkDs7E/9OfxpB5pjmz47kNzImHNVhmWP Gky4SSBzFgYnYuDePGs3dGZiWfdwrzyOS730N2ug= Received: by mail-oi1-f180.google.com with SMTP id h10so2597082oie.5; Fri, 16 Oct 2020 07:14:02 -0700 (PDT) X-Gm-Message-State: AOAM5332Zt9j9+/2e3ssCOcDCWxTZ2BFwwWZRU0xSKaHVO8SRA8RNBNQ it5k5E9hTlDFu4inXIjklq1Mv4BeEcGzLm2SBg== X-Received: by 2002:aca:4c52:: with SMTP id z79mr2691947oia.147.1602857641568; Fri, 16 Oct 2020 07:14:01 -0700 (PDT) MIME-Version: 1.0 References: <20201013160845.1772-1-thunder.leizhen@huawei.com> <20201013160845.1772-7-thunder.leizhen@huawei.com> <4f5f9b55-9fad-9318-82d4-6b258643738b@huawei.com> <20201014135019.GA1563910@bogus> <49b680f8-d7d7-8ea3-894c-73cbfacc5ba4@huawei.com> In-Reply-To: <49b680f8-d7d7-8ea3-894c-73cbfacc5ba4@huawei.com> From: Rob Herring Date: Fri, 16 Oct 2020 09:13:49 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 6/6] dt-bindings: misc: correct the property name cmd-gpios to cmd-gpio To: "Leizhen (ThunderTown)" Cc: Dan Murphy , Pavel Machek , linux-leds , Lee Jones , Benson Leung , Enric Balletbo i Serra , Guenter Roeck , Mark Brown , linux-spi , Lubomir Rintel , devicetree , linux-arm-kernel , linux-kernel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 14, 2020 at 10:23 PM Leizhen (ThunderTown) wrote: > > > > On 2020/10/14 21:50, Rob Herring wrote: > > On Wed, Oct 14, 2020 at 09:29:26AM +0800, Leizhen (ThunderTown) wrote: > >> > >> > >> On 2020/10/14 1:32, Dan Murphy wrote: > >>> Zhen > >>> > >>> On 10/13/20 11:08 AM, Zhen Lei wrote: > >>>> The property name used in arch/arm/boot/dts/mmp2-olpc-xo-1-75.dts is > >>>> cmd-gpio. > >>>> > >>>> arch/arm/boot/dts/mmp2-olpc-xo-1-75.dts:235: > >>>> cmd-gpio = <&gpio 155 GPIO_ACTIVE_HIGH>; > >>>> > >>>> Signed-off-by: Zhen Lei > >>>> --- > >>>> Documentation/devicetree/bindings/misc/olpc,xo1.75-ec.yaml | 6 +++--- > >>>> 1 file changed, 3 insertions(+), 3 deletions(-) > >>>> > >>>> diff --git a/Documentation/devicetree/bindings/misc/olpc,xo1.75-ec.yaml b/Documentation/devicetree/bindings/misc/olpc,xo1.75-ec.yaml > >>>> index b3c45c046ba5e37..c7a06a9650db2ed 100644 > >>>> --- a/Documentation/devicetree/bindings/misc/olpc,xo1.75-ec.yaml > >>>> +++ b/Documentation/devicetree/bindings/misc/olpc,xo1.75-ec.yaml > >>>> @@ -24,7 +24,7 @@ properties: > >>>> compatible: > >>>> const: olpc,xo1.75-ec > >>>> - cmd-gpios: > >>>> + cmd-gpio: > >>> > >>> Preference is gpios not gpio. But Rob H accept or reject > >> > >> Look at the search result below. It seems that the driver have not been merged into mainline. > > > > Yes, in drivers/platform/olpc/olpc-xo175-ec.c. > > > > Your mistake is the gpiod api takes just 'cmd' as the GPIO core handles > > both forms. > > OK, thanks for your information. I have found that it defined by gpio_suffixes[]. > > > > >> But the property name is really used as cmd-gpio at mmp2-olpc-xo-1-75.dts:235, I don't think > >> the mmp2-olpc-xo-1-75.dts can make a mistake. Otherwise, the driver will not work properly. > >> Meanwhile, Both names cmd-gpios and cmd-gpio seem to be in use. But I prefer cmd-gpio, after > >> all, only one gpio is assigned now. The motorola,cmd-gpios add "s" because it contains 3 gpio. > > > > The preference is it is always '-gpios' just like it's always > > 'interrupts' or 'clocks'. > > > > However, whether to change this is really up to the OLPC folks. Given > > the driver has always supported both forms, it should be okay to change > > the dts. Though there could be other users besides the kernel. > > If both "cmd-gpios" and "cmd-gpio" are supported, should we use enum to list both > of them in yaml? or use patternProperties? No, we pick one or the other. Given Lubomir is okay with a dts change, we should use just 'cmd-gpios'. Rob