From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.5 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B0FCDC433E1 for ; Mon, 18 May 2020 14:32:14 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 873F120671 for ; Mon, 18 May 2020 14:32:14 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="CbzHYnhk" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 873F120671 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=RyRpevojLOu/ZyfWjZPkUkvdd3KUIj7Nm5qcXoQobk0=; b=CbzHYnhkWRwPO2 8gbvCt0u1GstDomHNQ7UJbSjfOHDOMJkNDZfP59cvurF8IOaIirzbQLymriRwMH0krrVwNysNK/mv JV0VGsKRVzUGwsLBF25Ugg0Eswm1LNAn2n2h4WS10mF98VEC3KlsgSTXV1pkEqXq3qyPzAFOLY+nM r+dYaj+9y1+Hlh+EgZhHwKpT3tdEjA8rrLeekCDqIOuAVyn4FBpMn10Iq09Dmu0FPqA23/X8nR9GT +fM6rfccpJ3UcZ/H7625aWeuPC0O1SyeGYgOgKZs0edsZ6P9jkyWg2Gi0iGgmJ4uH3N8XeeugxaaF McAntRkkhO/xHrVHqAZw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jagoI-0008DD-6f; Mon, 18 May 2020 14:32:06 +0000 Received: from mail-io1-f67.google.com ([209.85.166.67]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jagoG-0008Cn-2f; Mon, 18 May 2020 14:32:05 +0000 Received: by mail-io1-f67.google.com with SMTP id s10so10779521iog.7; Mon, 18 May 2020 07:32:03 -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:user-agent; bh=MpT+nu7nNOLKspYEkQrWYjY1RVTqlNGjWcECXgpB5yE=; b=fMtaWbDBkHkN3cfwJovXwHWrQUxftkAO3K2hMCMsmkkocKZPWq558mrbT8IH+Rw3iM tNrr1SNEtQf7znWEpfTPj/OZ/LCp1WEK9qY2XEenTpSdrNJyf3trYqn4CoF3Q0X1v8cm VZgAWid2FQfT0j2kEHSHJduipezI4A3v8L50UdTVWTqqmsMKkaEyUfLIei59rS03mqBd 0kQxiElhWycgyMiR3VuxgOLIneXVqhJkYswttdClh/9x1nlkprJQIUat21dvdQpNfbO/ qqG6OX2iclqvNEQSE9/wuL4j/E5ve8UkapYSftxhjTWfz8Sff0dtwAA11A//XCnJ8d2c oY9w== X-Gm-Message-State: AOAM5339g6EbfuNkN9gv5zsTglg3JGwqq/MU/E0hcf6uQqVXMjeGMBX7 f/IrLJVoHaNxBruiHkLjZg== X-Google-Smtp-Source: ABdhPJwvbWX1i1YobTWJ2sW5L/vNBdw/cQ7LkbFo2JKkW8/BcRUhpnwK4wzuSXXypB3KuWClTxgjbA== X-Received: by 2002:a6b:500e:: with SMTP id e14mr13295274iob.47.1589812322692; Mon, 18 May 2020 07:32:02 -0700 (PDT) Received: from rob-hp-laptop ([64.188.179.252]) by smtp.gmail.com with ESMTPSA id a17sm1572365ild.31.2020.05.18.07.31.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 May 2020 07:31:49 -0700 (PDT) Received: (nullmailer pid 24775 invoked by uid 1000); Mon, 18 May 2020 14:31:48 -0000 Date: Mon, 18 May 2020 08:31:48 -0600 From: Rob Herring To: Tomasz Figa Subject: Re: [V6, 1/2] media: dt-bindings: media: i2c: Document DW9768 bindings Message-ID: <20200518143148.GA18032@bogus> References: <20200518132731.20855-1-dongchun.zhu@mediatek.com> <20200518132731.20855-2-dongchun.zhu@mediatek.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200518_073204_120115_C6C650D1 X-CRM114-Status: GOOD ( 20.66 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , linux-devicetree , Andy Shevchenko , srv_heupstream , Linus Walleij , Shengnan Wang =?utf-8?B?KOeOi+Wco+eUtyk=?= , Louis Kuo , Bartosz Golaszewski , Sj Huang , Nicolas Boichat , "moderated list:ARM/Mediatek SoC support" , Dongchun Zhu , Sakari Ailus , Matthias Brugger , Cao Bing Bu , Mauro Carvalho Chehab , "list@263.net:IOMMU DRIVERS , Joerg Roedel , " , Linux Media Mailing List Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org On Mon, May 18, 2020 at 04:12:28PM +0200, Tomasz Figa wrote: > Hi Dongchun, > > On Mon, May 18, 2020 at 3:29 PM Dongchun Zhu wrote: > > > > Add DeviceTree binding documentation for Dongwoon Anatech DW9768 voice > > coil actuator. > > Thanks for the patch. Please see my comments below. > > > > > Signed-off-by: Dongchun Zhu > > Reviewed-by: Rob Herring > > This version includes significant changes, so the reviewed-by tag > shouldn't have been carried out. > > > --- > > .../bindings/media/i2c/dongwoon,dw9768.yaml | 105 +++++++++++++++++++++ > > MAINTAINERS | 7 ++ > > 2 files changed, 112 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/media/i2c/dongwoon,dw9768.yaml > > > > diff --git a/Documentation/devicetree/bindings/media/i2c/dongwoon,dw9768.yaml b/Documentation/devicetree/bindings/media/i2c/dongwoon,dw9768.yaml > > new file mode 100644 > > index 0000000..b909e83 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/media/i2c/dongwoon,dw9768.yaml > > @@ -0,0 +1,105 @@ > > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > > +# Copyright (c) 2020 MediaTek Inc. > > +%YAML 1.2 > > +--- > > +$id: http://devicetree.org/schemas/media/i2c/dongwoon,dw9768.yaml# > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: Dongwoon Anatech DW9768 Voice Coil Motor (VCM) Lens Device Tree Bindings > > + > > +maintainers: > > + - Dongchun Zhu > > + > > +description: |- > > + The Dongwoon DW9768 is a single 10-bit digital-to-analog (DAC) converter > > + with 100 mA output current sink capability. VCM current is controlled with > > + a linear mode driver. The DAC is controlled via a 2-wire (I2C-compatible) > > + serial interface that operates at clock rates up to 1MHz. This chip > > + integrates Advanced Actuator Control (AAC) technology and is intended for > > + driving voice coil lenses in camera modules. > > + > > +properties: > > + compatible: > > + enum: > > + # for DW9768 VCM > > + - dongwoon,dw9768 > > + # for GT9769 VCM > > + - giantec,gt9769 > > + > > + reg: > > + maxItems: 1 > > + > > + vin-supply: > > + description: > > + Definition of the regulator used as I2C I/O interface power supply. > > + > > + vdd-supply: > > + description: > > + Definition of the regulator used as VCM chip power supply. > > + > > + dongwoon,aac-mode: > > + description: > > + Indication of AAC mode select. > > + allOf: > > + - $ref: "/schemas/types.yaml#/definitions/uint32" > > + - enum: > > + - 0 # Direct (default) Default can be expressed as 'default: 0'. > > + - 1 # AAC2 (operation time# 0.48 x Tvib) > > + - 2 # AAC3 (operation time# 0.70 x Tvib) > > + - 3 # AAC4 (operation time# 0.75 x Tvib) > > + - 4 # Reserved > > + - 5 # AAC8 (operation time# 1.13 x Tvib) > > + - 6 # Reserved > > + - 7 # Reserved > > I'll ultimately leave it to DT maintainers, but is there any reason to > define the reserved values? No. > > > + > > + dongwoon,aac-timing: > > + description: > > + Indication of AAC Timing count, unit of 0.1 milliseconds. Why not just use standard units (-us)? > > + Valid values vary from 0 to 63 (default 32). Looks like constraints. > > + allOf: > > + - $ref: "/schemas/types.yaml#/definitions/uint32" > > + > > + dongwoon,clock-dividing-rate: > > + description: > > + Indication of VCM internal clock dividing rate select, as one multiple > > + factor to calculate VCM ring periodic time Tvib. > > + allOf: > > + - $ref: "/schemas/types.yaml#/definitions/uint32" > > + - enum: > > + - 0 # Dividing Rate - 2 > > + - 1 # Dividing Rate - 1 (default) > > + - 2 # Dividing Rate - 1/2 > > + - 3 # Dividing Rate - 1/4 > > + - 4 # Dividing Rate - 8 > > + - 5 # Dividing Rate - 4 > > + - 6 # Dividing Rate - Reserved > > + - 7 # Dividing Rate - Reserved > > Ditto. > > Best regards, > Tomasz _______________________________________________ Linux-mediatek mailing list Linux-mediatek@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-mediatek