Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1027979yba; Tue, 2 Apr 2019 00:19:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqypBYI5nDlwbAKmB31FxcagpcrdTG4SJQOegM+96wE82IaUkHtZ3wyvgWcC1g+njw9Zz4lD X-Received: by 2002:a63:ff18:: with SMTP id k24mr66226209pgi.140.1554189597978; Tue, 02 Apr 2019 00:19:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554189597; cv=none; d=google.com; s=arc-20160816; b=Z2PW1AVtu5pb7araIpOrqB0ds7uqhUHo5LPU/BcFexFOdvG9MEg/TPbIHZpjsR+388 mvaY/zm8Ka6QvomzuCLKSxTuKaMoVSB1L+r/ARqBg2DH/fKftjnDE7hx6ByA2hMZlSHC CM2S0TTkP4U0Z5gnX8w9KRn/AGFiAhizQcD8bHc6EwiEha7M75aGz/3tKudglHmFDnUF NJdlfVPqfLf2u/Bu2qu5Yokkewbo9jaUmZbquUjxkHQzHAesRMlrppIQhyhCX2SNbsjL Cl/194/V21SGP2E8ynx91ZZ+PiACI2lbcUO16KVOMvO2VYfUwTO1t1IE/xxZMd0w0CbD 1Pew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:cc; bh=yuVF5Wu7Wqy2A2R8R4mFrBtlmkfcirq8C6J0hL5MLKs=; b=zPm3SouwRRz9dzmUfMpwxczNPpXKlsXjhnolUrkAubrtqcxgs/bxfwvqCX6qvNhjl7 mJF6zKnKZnLUKj+JFC0CZyP/qB9FJRHPwwgpGn6yKMsNX7fh9Y/RD5YsDZs+JC2Xfxwq J/F8ngRkE/F8ptPN2mEQQgYNsvbRKVKNn3egiEmbW5DlaFv7zmIxkuVQOeOYFvAvc8/8 ylYLQxuD08Esa4IG6Ly4hKUH0BBxkM9s7E2IgUKiLwpP9P99Ia0V2jzxsAjWO79e8guT 6WanpZ81kxRI69eRH4tQj6k4GRQZLQCU4woz73d66LNOHc6O7Zo+dh5G67k7igdfHHoD tsxw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ay11si10635770plb.360.2019.04.02.00.19.42; Tue, 02 Apr 2019 00:19:57 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728913AbfDBG0M (ORCPT + 99 others); Tue, 2 Apr 2019 02:26:12 -0400 Received: from mx.socionext.com ([202.248.49.38]:39671 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725920AbfDBG0K (ORCPT ); Tue, 2 Apr 2019 02:26:10 -0400 Received: from unknown (HELO iyokan-ex.css.socionext.com) ([172.31.9.54]) by mx.socionext.com with ESMTP; 02 Apr 2019 15:26:08 +0900 Received: from mail.mfilter.local (m-filter-2 [10.213.24.62]) by iyokan-ex.css.socionext.com (Postfix) with ESMTP id 6356F6117D; Tue, 2 Apr 2019 15:26:08 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Tue, 2 Apr 2019 15:26:08 +0900 Received: from yuzu.css.socionext.com (yuzu [172.31.8.45]) by kinkan.css.socionext.com (Postfix) with ESMTP id 0F6C41A04E0; Tue, 2 Apr 2019 15:26:08 +0900 (JST) Received: from [127.0.0.1] (unknown [10.213.234.213]) by yuzu.css.socionext.com (Postfix) with ESMTP id D340C120487; Tue, 2 Apr 2019 15:26:07 +0900 (JST) Cc: kanematsu.shinji@socionext.com, 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 To: Rob Herring References: <1553581989-13525-1-git-send-email-kanematsu.shinji@socionext.com> <20190331015228.GA27625@bogus> From: =?UTF-8?B?S2FuZW1hdHN1LCBTaGluamkv5YW85p2+IOS8uOasoQ==?= Message-ID: <976d5e2a-4bb8-3314-453b-921d06ba8ec6@socionext.com> Date: Tue, 2 Apr 2019 15:26:07 +0900 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.3.2 MIME-Version: 1.0 In-Reply-To: <20190331015228.GA27625@bogus> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob, Thank you for your review. On 2019/03/31 15:42, Rob Herring wrote: > 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. > OK, I search the similar binding. Thank you, Kanematsu >> + >> +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 >> >