Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2483893pxb; Fri, 5 Feb 2021 21:05:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJzUDJuY1JDXBwFDj+AaAw2VzmnpXN40R2qAe1/4XoiUWQvta6YfzirdYtu+jqQjKUQDU63S X-Received: by 2002:a17:906:1956:: with SMTP id b22mr7567508eje.114.1612587942368; Fri, 05 Feb 2021 21:05:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612587942; cv=none; d=google.com; s=arc-20160816; b=LP5wCWIVlDUTwyry5yafFIcxUb7FcSfs49dbOWnAjpPDTXR+HoX5IludF8ZAWaBtoB W4T41mkOyOw66IUmNXG84sV6Bw9BVObcj2DCS5D7902flG7comLpz4cW0N7ld3pK++Ml bsWSx4oqCuLJV85Lkr6bmA0CrW8ob7XAxuqmrMxXT9/HfUAEpK90uXPQ1gFcyuyQiieX wkNJUglBxQKtPvjhzdNHRL6hiD3SyacG+7bWp5GPTRItGJ1ayj7afD//K6DiQFXY8h6S wYXpcUtTxNv5VgD9mUS1g4HvXnw/vOkNhJAZ1KHXWzyvuaw4yyugzk/pm2gc/nTEo+xs X7XA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=AcoHueHL4Wy2Pr1abC9BKUiPNmDLmBdlWfI1XWRBONM=; b=uP9jJoCXIodxeFGJmrUF3RGkZF/eCC0ofyZxbtgPX4b1663X9gG4XFhJnyKHRDLtLC qJ2QFfqErMwEUkTREX3wtj7tsqGvXsZIytHMqIPCwXJ5pMwqNyF8lpGvGQnTCSTbfhZx r6jd+YsIX37aEe7H5jxl5jgeDhntmxuIlb1BOl9rghYDpo06/6LcQd78OLi6O9RCIBSh 70JpDovc8IOAb7LvlhtFoKpQHZr4WJ1jtp5QlOoENApVCY1Gx/ynb9i7vNxF2js1NXZl 3hMa+K8nIqhxBkLfY+v0jn3Nm9/3tDqZoBZBerfg4nKogYtyh5KJEDzKs+2bGotjQ9dj JRWQ== 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; 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 ec1si6653488ejb.598.2021.02.05.21.05.18; Fri, 05 Feb 2021 21:05:42 -0800 (PST) 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230188AbhBFFBw (ORCPT + 99 others); Sat, 6 Feb 2021 00:01:52 -0500 Received: from mail-yb1-f173.google.com ([209.85.219.173]:44540 "EHLO mail-yb1-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232297AbhBFDqB (ORCPT ); Fri, 5 Feb 2021 22:46:01 -0500 Received: by mail-yb1-f173.google.com with SMTP id r2so8753338ybk.11; Fri, 05 Feb 2021 19:45:45 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=AcoHueHL4Wy2Pr1abC9BKUiPNmDLmBdlWfI1XWRBONM=; b=mzcx5IqU/FXiySpZJNqVXesUlFsT46cWaStGdRJ2RbJruaAojZAuEY9MCaZ6HQIZKC krsRxNiqgNF89cXO9qWRS4Y1QAcEIyXmUkfi0DFUFY9rHRhd+tj8PeerRTN025wrHUYR YonK/pmMyd23q9IzqNtD1Lfo/qBZtAtQCfr0Qzxqj8+EYtO6tpEQsaIrGHgtJJ+ljYqF yizglPyTVJvrw1wHNxUrfDq1wSwzhZEdKs3Vf7GmueAuKd5SMw17fIUa76BmiVG5wz6R 0jjtYp/64tmobuUiyQ/OrxF1GMkPj+Bq9DgthXpqSAOBeBHvM3JhaaKz3RzkZIsNXp9T /BeA== X-Gm-Message-State: AOAM531RO545iule3qjvRk/5/Vtz6NB706PI77xF6XRfVp/F+143OtFS uH7lf9p9XCbJg7r5x433WVEnzXVKVw== X-Received: by 2002:a9d:2035:: with SMTP id n50mr4917292ota.44.1612568066555; Fri, 05 Feb 2021 15:34:26 -0800 (PST) Received: from robh.at.kernel.org (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id 36sm2096266oty.62.2021.02.05.15.34.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Feb 2021 15:34:25 -0800 (PST) Received: (nullmailer pid 3971304 invoked by uid 1000); Fri, 05 Feb 2021 23:34:24 -0000 Date: Fri, 5 Feb 2021 17:34:24 -0600 From: Rob Herring To: Oleksij Rempel Cc: Linus Walleij , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , linux-iio , Robin van der Gracht , William Breathitt Gray , "linux-kernel@vger.kernel.org" , Pengutronix Kernel Team , David Jander , Jonathan Cameron Subject: Re: [PATCH v4 1/2] dt-bindings: counter: add pulse-counter binding Message-ID: <20210205233424.GA3955177@robh.at.kernel.org> References: <20210126131239.8335-1-o.rempel@pengutronix.de> <20210126131239.8335-2-o.rempel@pengutronix.de> <20210128133922.khkb4zyccoxdnlyp@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210128133922.khkb4zyccoxdnlyp@pengutronix.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 28, 2021 at 02:39:22PM +0100, Oleksij Rempel wrote: > On Thu, Jan 28, 2021 at 09:17:23AM +0100, Linus Walleij wrote: > > Hi Oleksij, > > > > thanks for your patch! > > > > On Tue, Jan 26, 2021 at 2:15 PM Oleksij Rempel wrote: > > > > > Add binding for the pulse counter node > > > > > > Signed-off-by: Oleksij Rempel > > (...) > > > > > +properties: > > > + compatible: > > > + const: virtual,pulse-counter > > > > What is so virtual about this? The device seems very real. > > Currently there are two ways: > 1. use "virtual" or "linux" vendor. Same as "virtual,mdio-gpio" virtual is used by exactly one case. linux for a few more, mostly linux,spdif-dit and extcon (deprecated). > 2. Extend the list of "not vendor" prefixes in the prefixes list: > Documentation/devicetree/bindings/vendor-prefixes.yaml Pretty sure that says 'DON'T ADD MORE'. Maybe I forgot to scream it. > > Since both ways seems to be valid, i personally prefer to use existing > prefix instead of maintaining the vendor-prefixes.yaml > > @Rob, what do you prefer? For vendorless bindings, no vendor prefix! 'gpio-counter' if only gpio interfaced. No idea what other options would be. > > > However it is certainly a GPIO counter. > > This was my first implementation. @Jonathan you suggest to use GPIO-free > way, can you and Linus please decide what is the way to go. > > I personally can imagine that this driver can be attached to any IRQ > source, including drivers/iio/trigger/iio-trig-sysfs.c > > > I would call it "gpio-counter" simply. > > > > Define: > > $nodename: > > pattern: "^counter(@.*)?$" > > > > > + counter-0 { > > > > counter@0 { > > > > > + counter-1 { > > > > counter@1 { > > In this case the dtc compiler will say: > /counter@0: node has a unit name, but no reg property counter-0 then. > > Regards, > Oleksij > -- > Pengutronix e.K. | | > Steuerwalder Str. 21 | http://www.pengutronix.de/ | > 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | > Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |