Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp63730pxk; Thu, 10 Sep 2020 23:55:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwFwl7nwl9eE6nZ8N3JzMEbH+wxGIPt/UPv6e0y1s/XOwiS+9LcghCp79bS1wYzcu0t4nnJ X-Received: by 2002:a17:906:9591:: with SMTP id r17mr702499ejx.424.1599807338579; Thu, 10 Sep 2020 23:55:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599807338; cv=none; d=google.com; s=arc-20160816; b=X4le7LFiyDCIjL8J43aEX+BrhoFs2tRjd/aaXN8iTS2LI13/XZFykfqkADmBMdZJS4 KOPK5zL0Bvi0nc4/xuJEh/4kH8zzsg7Epi42MZml2+cOC3eUFw64X/1C5N6cEKTke+Hn XIscBRzxHvDTv/qEfPYt3pzBIncsfd2jXXyWe8rFI6LFYZgR1tdgCKRz74uP/PBruvWU HsVgRYPBm/7V+l31v4ba3iTsRgPMgBGbe0IHjX+UkKAfJB2Q2nOvdrUMKz+ZVRa3lqXS uRd1rUEsRV3CVrlAczGimMFyfUFTy0TDZwNLCCCkxyVCJbSoWCNEIbafs5Xjg9DfdCcv A/og== 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 :in-reply-to:references:mime-version:dkim-signature; bh=RtbOKIKYa0yAK4yQ21P8Df4lBxB1I6fCHWYK2WzRuSk=; b=qsgUkfIh3he3nP8y/6J+nN18zmC9HpZ/kfoCRSstTRsElqZunskdTwAajAxbAjcX1Q 6r5ZGsMqCWtqk9uWpFzByCQmQyMWZM/7PgknQVs5pDitROIdrk565Ipand9P4Q0Z4ifw oKWTh1r4pz7eVKPvmPObdyDUX7omD5iovR9D1wfNPuL73iF+Y3xN0Cr8Rn72ihDgwMih WOqczR6cp8RP8oDunzGDB9Qvnil+igUeTXfHgrkNtMwDrPoEnJREg8IIiya8jQiaT9l6 4opO5EMTsrzj7WBO5YBTnIVuUBSsmr2dphjhr5EHj4ug9bpYLDwSbrCS3f7Q+EmYHcqX OPUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=dkCscqbJ; 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 b2si696130eje.61.2020.09.10.23.55.15; Thu, 10 Sep 2020 23:55:38 -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=dkCscqbJ; 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 S1725801AbgIKGwR (ORCPT + 99 others); Fri, 11 Sep 2020 02:52:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:46718 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725536AbgIKGwQ (ORCPT ); Fri, 11 Sep 2020 02:52:16 -0400 Received: from mail-ej1-f47.google.com (mail-ej1-f47.google.com [209.85.218.47]) (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 625F0221EB; Fri, 11 Sep 2020 06:52:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599807135; bh=PvPqMWHR4rTZyg0mx7guwNSzHx2gYCEab6A1OsvoQGs=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=dkCscqbJ3BxxdnaZ/s6BEfah6323j4W+ukH0h4kgXUSZBGSjPNCszgETLQuOlSPY+ hHHXjPeIlp/SzfcWA71QsgsxVyqpB3JKnaxx/jDzyjpc1piRf3TCeZ52f9cJLoW0M9 h+RhyvvwFCHIqbOUMC6NMBXmO6EsGTjTqgCsKeBo= Received: by mail-ej1-f47.google.com with SMTP id o8so12302758ejb.10; Thu, 10 Sep 2020 23:52:15 -0700 (PDT) X-Gm-Message-State: AOAM531nqmF0We8Bd4DOP58iWZoDLnPuEaMbPLIuOuSziapMQ8viB/pw o92HaWmdDtkZe5A9uQ9H1X6h5zZSRwLrHO9uEV8= X-Received: by 2002:a17:906:4046:: with SMTP id y6mr722021ejj.148.1599807133943; Thu, 10 Sep 2020 23:52:13 -0700 (PDT) MIME-Version: 1.0 References: <20200910175733.11046-1-krzk@kernel.org> <20200910175733.11046-2-krzk@kernel.org> In-Reply-To: From: Krzysztof Kozlowski Date: Fri, 11 Sep 2020 08:52:01 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 01/15] dt-bindings: gpio: convert bindings for NXP PCA953x family to dtschema To: Joel Stanley Cc: Linus Walleij , Bartosz Golaszewski , Rob Herring , =?UTF-8?Q?Beno=C3=AEt_Cousson?= , Tony Lindgren , Russell King , Jason Cooper , Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Andrew Jeffery , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , NXP Linux Team , Matthias Brugger , Geert Uytterhoeven , Magnus Damm , Tero Kristo , Nishanth Menon , Michal Simek , Guenter Roeck , devicetree , Linux Kernel Mailing List , linux-omap@vger.kernel.org, Linux ARM , linux-aspeed , linux-mediatek@lists.infradead.org, linux-renesas-soc@vger.kernel.org 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 On Fri, 11 Sep 2020 at 08:24, Joel Stanley wrote: > > On Thu, 10 Sep 2020 at 17:57, Krzysztof Kozlowski wrote: > > > > Convert the NXP PCA953x family of GPIO expanders bindings to device tree > > schema. > > > > Signed-off-by: Krzysztof Kozlowski > > > +patternProperties: > > + "^(hog-[0-9]+|.+-hog(-[0-9]+)?)$": > > + type: object > > + properties: > > + gpio-hog: true > > + gpios: true > > + input: true > > + output-high: true > > + output-low: true > > + line-name: true > > + > > + required: > > + - gpio-hog > > + - gpios > > + > > > + usb3-sata-sel-hog { > > + gpio-hog; > > + gpios = <4 GPIO_ACTIVE_HIGH>; > > + output-low; > > + line-name = "usb3_sata_sel"; > > I would prefer we didn't require the addition of hte -hog prefix. It's > mostly just a matter of taste, but I can think of a few more concrete > reasons: > > We don't require -high or -low prefixes, so the node name doesn't need > to describe the properties that will be found below. Thanks for the comments. It is not about properties (high or low) but the role of a device node. The node names should represent a generic class of device (ePAPR and device tree spec) and "hog" is such class. The Documentation/devicetree/bindings/gpio/fsl-imx-gpio.yaml already uses such naming so the best would be to unify. > > Changing around node names for existing boards carries with it the > chance of userspace breakage (as sysfs paths change). I would prefer > we avoid that if possible. The impact on userspace is indeed important, but are you sure that hogs are visible to user-space via sysfs and configurable? I guess you think of deprecated CONFIG_GPIO_SYSFS? Rob, Any hints from you about hog-naming? Best regards, Krzysztof