Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp58640pxk; Thu, 10 Sep 2020 23:43:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzbJ59NHzcu4bQfwTxkvKbCfRM8sXYHVgynNP8TqW5gjG5lbsRgncy4lAFYxjYY01b+GL4e X-Received: by 2002:a17:906:4093:: with SMTP id u19mr647123ejj.520.1599806582690; Thu, 10 Sep 2020 23:43:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599806582; cv=none; d=google.com; s=arc-20160816; b=NZD/K9ZDIiEwJQDBajzBamO5RECXB0kbeOlemLb5o0ndVypDctjimBiffzi0Yve3A1 5K9CDUjA+N3A0ZWbyG8Y4FBLG9LYHGZpS+tu/cCizzPVccymUYrKvTizFpxfZ33X7LZE /2RqGsnnsKBQb3A9GeOA38mdbWHXHR+4sjcAy14uuhEDE+gb4xvfRltl68iYRETrD1Bv 9ixeIe+EKEkUkbwkQdxLHLM1wIgOwFplZpNi+xeSwLQ6a0+XCRyRbETr3e2KNJWsZFHu 1lKasBYYpKN7Hjn4mnn1xYN4BaHm3bIrw4EwLDOfAueiJWxF0Y3AUNdt/LamwWRDnBnq Gpew== 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; bh=Fd37rPIKQ8kE2t3AwO5/OmIuIXHedyKotPXtUMjyF2w=; b=RBN1UPReihDh58LQRQUyDctwj9z6nsjJQM4PKBxucdfBr/vCEXxwfVAKXv5YJeIc90 aNTZANzGzkgikqB15WyC5Y02zRQjNviipcu5S58jaQjcoERiglh+PjY86+YtiGCX/dgT HqVmQ9de4Y7RaNciePIBjF28gQTbsnVQJ9i+2MXIvonpLv82xSOg5YofXYPmkBHnVYUg pz0av68fMWzKyegHHN7NuGpqTDczl24mHwDs46KZbZ/WarFRZrk3SpC47fylRWHY2s1z 4fXsOJ/+tqJ64xsm0cW+ioWbl4Gx8DxcTyMpxzulOOcweUB+iz7CgJ6J0GR6xyhdoEUV eaZw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h2si553317ejy.315.2020.09.10.23.42.39; Thu, 10 Sep 2020 23:43:02 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725613AbgIKGmJ (ORCPT + 99 others); Fri, 11 Sep 2020 02:42:09 -0400 Received: from mail-ot1-f68.google.com ([209.85.210.68]:38112 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725468AbgIKGmE (ORCPT ); Fri, 11 Sep 2020 02:42:04 -0400 Received: by mail-ot1-f68.google.com with SMTP id y5so7497325otg.5; Thu, 10 Sep 2020 23:42:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Fd37rPIKQ8kE2t3AwO5/OmIuIXHedyKotPXtUMjyF2w=; b=ssEj5ur118J6k2Ced/Zj0T1013SX/my+1L6sa+YyX2ltxckYZb9ARvDEDkeg2Wfo1E k6It8szDwFkVsCjOiyo/QDdRz8ACwg9HF377zNch/lowKsOnWe3sjdgQ7dpt0cKfJry1 DXfmTaNwE8tIs9q7QzlisKsr+TpayhVx5wZl0oNMldEBfg04RfFnDO1c0Ek8qmCcaO7A 7wjkopTQB46LymkwA4we9COpW3uoUcCcp6UbZ78H7AzyBmRyH6yJ+BHeo/5CVABtWXQ+ k/L0YpI22NZY/NTsxjCx0caNMrMuO0qcWUTrNmy3LSovbXVVc1XaeHls9P2A6aN3MfdN Apew== X-Gm-Message-State: AOAM5318K2LN1z46Ybx0Sh0+VgKvcETAqMlkZc0GMstXGUY6T+4HcZzP gVFdxj8gbpTY7B4+CkvPdTYdFPjSifUY74l4quI= X-Received: by 2002:a05:6830:1008:: with SMTP id a8mr296058otp.107.1599806523827; Thu, 10 Sep 2020 23:42:03 -0700 (PDT) MIME-Version: 1.0 References: <20200910175733.11046-1-krzk@kernel.org> <20200910175733.11046-2-krzk@kernel.org> <20200910182814.veviax3n377undkv@akan> In-Reply-To: From: Geert Uytterhoeven Date: Fri, 11 Sep 2020 08:41:52 +0200 Message-ID: Subject: Re: [PATCH v2 01/15] dt-bindings: gpio: convert bindings for NXP PCA953x family to dtschema To: Krzysztof Kozlowski Cc: Nishanth Menon , 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 , Joel Stanley , Andrew Jeffery , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , NXP Linux Team , Matthias Brugger , Geert Uytterhoeven , Magnus Damm , Tero Kristo , Michal Simek , Guenter Roeck , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "linux-kernel@vger.kernel.org" , "open list:TI ETHERNET SWITCH DRIVER (CPSW)" , Linux ARM , linux-aspeed@lists.ozlabs.org, linux-mediatek@lists.infradead.org, Linux-Renesas 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 Krzysztof, On Thu, Sep 10, 2020 at 8:54 PM Krzysztof Kozlowski wrote: > On Thu, 10 Sep 2020 at 20:28, Nishanth Menon wrote: > > On 19:57-20200910, Krzysztof Kozlowski wrote: > > [...] > > > + wakeup-source: > > > + $ref: /schemas/types.yaml#/definitions/flag > > > + > > > +patternProperties: > > > + "^(hog-[0-9]+|.+-hog(-[0-9]+)?)$": > > > > I wonder if "hog" is too generic and might clash with "something-hog" in > > the future? > > This pattern is already used in > Documentation/devicetree/bindings/gpio/fsl-imx-gpio.yaml. It will > match only children and so far it did not find any other nodes in ARM > and ARM64 dts. I don't expect clashes. Also the question is then - if > one adds a child of GPIO expander named "foobar-hog" and it is not a > GPIO hog, then what is it? Perhaps you didn't find any other nodes as children of pca953x controllers? There are other hog nodes in other types of GPIO controllers. Typically they're named after the purpose, e.g. "wifi-disable", "i2c3_mux_oe_n", "pcie_sata_switch", "lcd0_mux". IMHO it's a hog if it contains a "gpio-hog" property, regardless of node naming. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds