Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp923220ybb; Wed, 25 Mar 2020 12:08:50 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtjbexM6/bfAYPERvBXJXksv/x65qoglFQy+HV3D/br70y3/Qm99XkaCRQR5RGdNTp++WHG X-Received: by 2002:aca:5d8a:: with SMTP id r132mr3664483oib.129.1585163329705; Wed, 25 Mar 2020 12:08:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585163329; cv=none; d=google.com; s=arc-20160816; b=a+oFI4v0kL480GGe/Rcw88xibG9Sp0ftGq17eB6FKb4bizpVPGCAbMhgcMKiEQgKDa 18bo3h7jMU67+t5yFXtGmJobRGNRuqJ89XbI5RXDlXWdUCGTxVHQzZCQV+X320yrwV6A voJSHtIHVJ9Wj6XuqGhqUftW/eTvsPyML0b3ZkE8a2XIQ7QthAnWEpXt9MwalmiScW1z AfFQ8Q77v7Nc3cVRzTuxYNVhZQSxM6itoaPUrZNC34xH9MZDGPYC8xv9gZDoXi82ZE3b cAF2dBKV4t519YYYnWGEenN9EMpTY03rtkvWMRTW/S2zgIznJrkxjnpn+opq6zIn6Msy lqhg== 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:dkim-signature; bh=lLmWZ55M3w3bkohcAN26s2qa5erBFNpdRaxcdFHLinI=; b=ewmSoQmWPZBo7XdRqBx8HcuhQPqJEcuz9gLH6xg1Ihil7/RCpyRjpXh2ouliTswNPR 0fc9wnZlqgOaLjdhWxru6y+0A0eBubbd3bum2u6JO+3IVIHcqo+2/LXc1BPyxw8JEi9a 26gUCU2Obcr9PsSlEkbc6yfMQESmsIzzsLwjrRusHPg03xUCrqUbEgRWVCnbszj4uIJr FehDGdE/2X4lJYSu2RMHsprno2ScWo21JwFDJASiX+xjR3gpefHsmvwG7COsmG843Dc4 kU2LiZ0NkMwZ3zoF0S3XON8aAz1Ar+KCHrpr1Vi9tvb2n64+u6feJcSNSsIZh/A9sYxF FUwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=kqV2+isT; 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=pass (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 y25si13671372otj.304.2020.03.25.12.08.23; Wed, 25 Mar 2020 12:08:49 -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; dkim=pass header.i=@kernel.org header.s=default header.b=kqV2+isT; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727928AbgCYTFt (ORCPT + 99 others); Wed, 25 Mar 2020 15:05:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:58046 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727279AbgCYTFs (ORCPT ); Wed, 25 Mar 2020 15:05:48 -0400 Received: from mail-qv1-f51.google.com (mail-qv1-f51.google.com [209.85.219.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C86522076F; Wed, 25 Mar 2020 19:05:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585163147; bh=++J1l22iODPsdFUfxz8jQjkKIYHE5X8erMXa2/ilh3o=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=kqV2+isT+3mowQAoVTiPQgQ2DjtFWvGZpTKQwUYikcmB/fWfPgUOzc28y2M7gktVI w9tzmg7fhk5C331Kc/oMpWM1lLNsHzDQFQvRYDdyCdR87r7160m86Jcs369tMsYf4c TwyDfgeNuVOacPiiJrzD7oOc/pPLFvQrdRNJADYU= Received: by mail-qv1-f51.google.com with SMTP id v38so1662572qvf.6; Wed, 25 Mar 2020 12:05:47 -0700 (PDT) X-Gm-Message-State: ANhLgQ16jCYPmu0lN2Sh5en7ug2ds8Z/wJC70bUK3PzGZpr0DsHAH57x CM6D6q9a28uGAZBm6inuyhm68po2AR16OHyixg== X-Received: by 2002:ad4:4bc3:: with SMTP id l3mr4462107qvw.79.1585163146836; Wed, 25 Mar 2020 12:05:46 -0700 (PDT) MIME-Version: 1.0 References: <20200324094506.55938-1-alexandru.tachici@analog.com> <20200324094506.55938-3-alexandru.tachici@analog.com> In-Reply-To: <20200324094506.55938-3-alexandru.tachici@analog.com> From: Rob Herring Date: Wed, 25 Mar 2020 13:05:35 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RESEND PATCH 2/2] dt-bindings: iio: dac: AD5570R fix bindings errors To: Alexandru Tachici Cc: "open list:IIO SUBSYSTEM AND DRIVERS" , "linux-kernel@vger.kernel.org" , devicetree@vger.kernel.org, Jonathan Cameron 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 On Tue, Mar 24, 2020 at 3:45 AM wrote: > > From: Alexandru Tachici > > Replaced num property with reg property, fixed errors > reported by dt-binding-check. > > Fixes: ea52c21268e6 ("iio: dac: ad5770r: Add AD5770R support") > Signed-off-by: Alexandru Tachici > --- > .../bindings/iio/dac/adi,ad5770r.yaml | 77 ++++++++++--------- > 1 file changed, 40 insertions(+), 37 deletions(-) > > diff --git a/Documentation/devicetree/bindings/iio/dac/adi,ad5770r.yaml b/Documentation/devicetree/bindings/iio/dac/adi,ad5770r.yaml > index d9c25cf4b92f..d1755dbc1a41 100644 > --- a/Documentation/devicetree/bindings/iio/dac/adi,ad5770r.yaml > +++ b/Documentation/devicetree/bindings/iio/dac/adi,ad5770r.yaml > @@ -2,7 +2,7 @@ > # Copyright 2020 Analog Devices Inc. > %YAML 1.2 > --- > -$id: http://devicetree.org/schemas/bindings/iio/dac/adi,ad5770r.yaml# > +$id: http://devicetree.org/schemas/iio/dac/adi,ad5770r.yaml# > $schema: http://devicetree.org/meta-schemas/core.yaml# > > title: Analog Devices AD5770R DAC device driver > @@ -49,83 +49,84 @@ properties: > asserted during driver probe. > maxItems: 1 > > - channel0: > + channel@0: > description: Represents an external channel which are > connected to the DAC. Channel 0 can act both as a current > source and sink. > type: object > > properties: > - num: > + reg: > description: This represents the channel number. > - items: > - const: 0 > > adi,range-microamp: > description: Output range of the channel. > oneOf: > - - $ref: /schemas/types.yaml#/definitions/int32-array > - items: > - - enum: [0 300000] > - - enum: [-60000 0] > - - enum: [-60000 300000] > + - const: 0 > + - const: 300000 > + - items: > + - const: -60000 > + - const: 0 > + - items: > + - const: -60000 > + - const: 300000 > > - channel1: > + channel@1: > description: Represents an external channel which are > connected to the DAC. > type: object > > properties: > - num: > + reg: > description: This represents the channel number. > - items: > - const: 1 This should be: reg: const: 1 > > adi,range-microamp: > description: Output range of the channel. > oneOf: > - - $ref: /schemas/types.yaml#/definitions/uint32-array > - items: > - - enum: [0 140000] > - - enum: [0 250000] > + - const: 0 > + - const: 140000 > + - items: > + - const: 0 > + - const: 250000 > > - channel2: > + channel@2: > description: Represents an external channel which are > connected to the DAC. > type: object > > properties: > - num: > + reg: > description: This represents the channel number. > - items: > - const: 2 > > adi,range-microamp: > description: Output range of the channel. > oneOf: > - - $ref: /schemas/types.yaml#/definitions/uint32-array > - items: > - - enum: [0 140000] > - - enum: [0 250000] > + - const: 0 > + - const: 55000 > + - items: > + - const: 0 > + - const: 150000 > > patternProperties: > "^channel@([3-5])$": > type: object > description: Represents the external channels which are connected to the DAC. > properties: > - num: > + reg: > description: This represents the channel number. > - items: > - minimum: 3 > - maximum: 5 reg: minimum: 3 maximum: 5 > > adi,range-microamp: > description: Output range of the channel. > oneOf: > - - $ref: /schemas/types.yaml#/definitions/uint32-array > - items: > - - enum: [0 45000] > - - enum: [0 100000] > + - const: 0 > + - const: 45000 > + - items: > + - const: 0 > + - const: 100000 This can be simplified to: items: - const: 0 - enum: [ 45000, 100000 ] > > required: > - reg > @@ -150,34 +151,36 @@ examples: > vref-supply = <&vref>; > adi,external-resistor; > reset-gpios = <&gpio 22 0>; > + #address-cells = <1>; > + #size-cells = <0>; > > channel@0 { > - num = <0>; > - adi,range-microamp = <(-60000) 300000>; > + reg = <0>; > + adi,range-microamp = <0 300000>; > }; > > channel@1 { > - num = <1>; > + reg = <1>; > adi,range-microamp = <0 140000>; > }; > > channel@2 { > - num = <2>; > + reg = <2>; > adi,range-microamp = <0 55000>; > }; > > channel@3 { > - num = <3>; > + reg = <3>; > adi,range-microamp = <0 45000>; > }; > > channel@4 { > - num = <4>; > + reg = <4>; > adi,range-microamp = <0 45000>; > }; > > channel@5 { > - num = <5>; > + reg = <5>; > adi,range-microamp = <0 45000>; > }; > }; > -- > 2.20.1 >