Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp316197yba; Sat, 30 Mar 2019 23:43:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqwGF020tgd8t+RXotmJrTwB7I/+NuM7M9pBLnP4zrFGyyvlW+tCRb6A3rNBr4m5HiaYwcWj X-Received: by 2002:a63:c64a:: with SMTP id x10mr24764976pgg.12.1554014628421; Sat, 30 Mar 2019 23:43:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554014628; cv=none; d=google.com; s=arc-20160816; b=JmROEATnCE7Sswj4clOV6RyDwFD7QG6US61SZ92GQla41SnKtUjWOOWoMfZWEjscFc J8nr3+z378y9W0XthteHbdCT+6o9BSGaCKsYOTN6bczS2inHpMEglPlTVh7efbd7juOK JSXCCC2BU1+8tMH8MsSn6zcyRT2hcdmf7Z8glh2lY6+cvo/WsU68kE9tfzJ2IHWN1ZNF dE40VoQWsY9X9Xh/ITfGDDFLzAIM77OexKccbNMiFkn5rEMcX5sfqtJOKkSifNtLApio VbW+gZdQ3qIbuNExhsEJjXtpSDD+hXCHqk8SjQHVUPDQs5fHXStcvRpNgQVmE72XOPTA MSig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=zgWlWhNebV4DAis4oYThAM+4V5ib2u6j9U07JrmMSZQ=; b=eprgxdRicli3flvsDg91fzxYZShRumTwlD5zxWxg0Q6ozCmGw5uzIEXVnuiNlsKN13 QZSFiWRlzcTbPM/rU2RQbEIxRmXI0UvCk1DFCDGk66/faZ81yE21DkLDv/xP2plGd3rQ yRSU84hvwogWF4m4hT58g5Z36RMv0iD3a3Q+vyEnUXG2zSio5/G4FB4yjVQ8sLE/M6nW a2WMqhR27G6jBjW0+MkNANgGQWo94+dBXbMlbruH4VmW2MYUg30OYhvdfiShkYKwJiAx misM5e9qWBSqrMcfbDrc1zPxxILPAAcPuar/2hLKKVsvJhQxIhF90cZsP/ubWfZL7q2G pgeA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f1si6309277plb.396.2019.03.30.23.43.33; Sat, 30 Mar 2019 23:43:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731391AbfCaGmI (ORCPT + 99 others); Sun, 31 Mar 2019 02:42:08 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:33442 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731371AbfCaGmH (ORCPT ); Sun, 31 Mar 2019 02:42:07 -0400 Received: by mail-pf1-f195.google.com with SMTP id i19so2990005pfd.0; Sat, 30 Mar 2019 23:42:07 -0700 (PDT) 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=zgWlWhNebV4DAis4oYThAM+4V5ib2u6j9U07JrmMSZQ=; b=rEEN7xj0PYWRR2UWEqmQ9AvNQRQpeRC6pXsQvXB1Z9IGnWixcYzqhBN2LWZSZ6fgLe oSzpX4s1r1mC/rUsSmmm19rak+fqNO7096QmG62llyK1fIrbdosUiz5EpksSStR09uxR liM6hPKsdgDuhSQxiPZrPuNxupiLrcXOOcmS2KrIFho5Fsq0Ef4KZLhBHP6gqiYXyJDF vVqR8FMbhVswpRqTUdXQBs9bwWQAzt9KgryEVkscExsdZoZmKNDWAXqP0h2svK1LPVyi EH+2NrawFe4mIuNq2E+8pMvJZXo/4IoBdEXJlgWsH6XVcHDT6Nq5zqr9epyOg6+3vmu5 FaWg== X-Gm-Message-State: APjAAAVO1QqmLFHqbb/1wjcPmxgnkGFk4y3S24Fjj9WEBTmEcCBzPOcy ERjP0uuVPHkXTHb16342wA== X-Received: by 2002:a63:c605:: with SMTP id w5mr16749080pgg.355.1554014526923; Sat, 30 Mar 2019 23:42:06 -0700 (PDT) Received: from localhost ([210.160.217.68]) by smtp.gmail.com with ESMTPSA id a129sm19398038pfa.152.2019.03.30.23.42.05 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 30 Mar 2019 23:42:06 -0700 (PDT) Date: Sun, 31 Mar 2019 01:42:04 -0500 From: Rob Herring To: Shinji Kanematsu Cc: jic23@kernel.org, mark.rutland@arm.com, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, masami.hiramatsu@linaro.org, jaswinder.singh@linaro.org, orito.takao@socionext.com, sugaya.taichi@socionext.com, kasai.kazuhiro@socionext.com Subject: Re: [PATCH 1/2] dt-bindings: iio: counter: Add Milbeaut Updown Counter Message-ID: <20190331015228.GA27625@bogus> References: <1553581989-13525-1-git-send-email-kanematsu.shinji@socionext.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1553581989-13525-1-git-send-email-kanematsu.shinji@socionext.com> X-Mutt-References: <1553581989-13525-1-git-send-email-kanematsu.shinji@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 26, 2019 at 03:33:09PM +0900, Shinji Kanematsu wrote: > Add documentation for Milbeaut Updown Counter device > quadrature encoder and counter binding. > > Signed-off-by: Shinji Kanematsu > --- > .../bindings/iio/counter/milbeaut-updown_cnt.txt | 22 ++++++++++++++++++++++ > 1 file changed, 22 insertions(+) > create mode 100644 Documentation/devicetree/bindings/iio/counter/milbeaut-updown_cnt.txt > > diff --git a/Documentation/devicetree/bindings/iio/counter/milbeaut-updown_cnt.txt b/Documentation/devicetree/bindings/iio/counter/milbeaut-updown_cnt.txt > new file mode 100644 > index 0000000..6771567 > --- /dev/null > +++ b/Documentation/devicetree/bindings/iio/counter/milbeaut-updown_cnt.txt > @@ -0,0 +1,22 @@ > +SOCIONEXT Milbeaut Updown counter > + > +Required properties: > +- compatible: Must be "socionext,milbeaut-updown-counter". > +- reg: Offset and length of the device's register set. > +- clocks: Phandle to the clock used by the Updown counter module. > +- clock-names: Must be "mux". > +- interrupts: SPI number of the device's set. > +- cms_type: connected_device > + 1: updown button (updown counter mode) > + 2: rotary encoder (phase difference counter mode) We should have a common property for describing what's attached. IIRC, just had a similar binding recently. > + > +Example: > + > + updown0: updown@1e002000 { > + compatible = "socionext,milbeaut-updown-counter"; > + reg = <0x1e002000 0x20>; > + clocks = <&clk 4>; > + clock-names = "mux"; > + interrupts = <0 104 0x4>; > + cms_type = <1>; > + }; > -- > 1.9.1 >