Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4652224ybb; Tue, 24 Mar 2020 02:46:24 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtB8y8l5+vSp1vb8/q45rSMQdssF+lJ4qkFyIqgzlnsQpmhWG+mkX/HaUT6/LtRyM3EyLYc X-Received: by 2002:a9d:5888:: with SMTP id x8mr20325110otg.361.1585043184424; Tue, 24 Mar 2020 02:46:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585043184; cv=none; d=google.com; s=arc-20160816; b=A7/KjzKdGURAiFLu41pq8s+yVs9J5va//U3/U3DVRVdW16Q/7OBKaGd+HyEEiYiJ6I Y1aw8TUf5+ocSLIQfE+R4at0ynTLjSHcN3dtgEus+JIazNX/KqEKaC2lTV+HWXCWV86V GOxQ6hbfxfputyQVq8bSLR58H1C/fjrQq3xKN/tZyWbem6xRnGWfETxitL1vFWguVEqn A2FnYso3EFcpUuhwhreswEg9rjyDRkJWHQ31U3WE/AbtgNpPKQnWykaW8REk9Eek17Re 2VJd3qzOKwMsZY5kkIYXQQkE+2ETkFm6yQmd9x+cJ0EGF+FFliCbjZZphyjYcB7YL+bw Ghew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=uM18km3Th0Jw6bpef+O+0T17nlZssWOcenYTQl7zvIo=; b=bkyEFRFE7wDeRtYpwjtaVyCZGC04D93/64yS8BD9TaSF/n8gd2iLigbY6aBrWjAq+6 OUPW4+tDG9GgmCTrnEbjwKtOmB7KsQgOQYUdkWmNasdNUlZFR5gMGENV8DAjHIprrAN8 fxb+LFE6Vce7KNKKJupxit9u1ZOZVpJ+5S5SOkoT7kOhlpfjWeoVFHv7ExMkQwUI9QUb uXcD300wxJUESTemlO/JdMKWgW23qEDmQPTgTZDXjfbtPYWCZJXct6CPtZSqq8pKuWXv iSY2asmb3LTyfJU4+mKZ4DszD8KLW7XerEfIpyAVMBj0XyGGvkSOT3h9QGFnoRGk9x6M f45A== 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 d63si8930919oib.224.2020.03.24.02.46.12; Tue, 24 Mar 2020 02:46:24 -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 S1727249AbgCXJpk (ORCPT + 99 others); Tue, 24 Mar 2020 05:45:40 -0400 Received: from mx0a-00128a01.pphosted.com ([148.163.135.77]:12252 "EHLO mx0a-00128a01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727063AbgCXJpg (ORCPT ); Tue, 24 Mar 2020 05:45:36 -0400 Received: from pps.filterd (m0167089.ppops.net [127.0.0.1]) by mx0a-00128a01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 02O9fb1f030395; Tue, 24 Mar 2020 05:45:34 -0400 Received: from nwd2mta4.analog.com ([137.71.173.58]) by mx0a-00128a01.pphosted.com with ESMTP id 2ywfu593hc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 24 Mar 2020 05:45:33 -0400 Received: from ASHBMBX8.ad.analog.com (ashbmbx8.ad.analog.com [10.64.17.5]) by nwd2mta4.analog.com (8.14.7/8.14.7) with ESMTP id 02O9jWl0025046 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=FAIL); Tue, 24 Mar 2020 05:45:32 -0400 Received: from ASHBCASHYB5.ad.analog.com (10.64.17.133) by ASHBMBX8.ad.analog.com (10.64.17.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1779.2; Tue, 24 Mar 2020 05:45:32 -0400 Received: from ASHBMBX9.ad.analog.com (10.64.17.10) by ASHBCASHYB5.ad.analog.com (10.64.17.133) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1779.2; Tue, 24 Mar 2020 05:45:31 -0400 Received: from zeus.spd.analog.com (10.64.82.11) by ASHBMBX9.ad.analog.com (10.64.17.10) with Microsoft SMTP Server id 15.1.1779.2 via Frontend Transport; Tue, 24 Mar 2020 05:45:31 -0400 Received: from localhost.localdomain ([10.48.65.12]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 02O9jRKi027422; Tue, 24 Mar 2020 05:45:30 -0400 From: To: , , CC: , Subject: [RESEND PATCH 2/2] dt-bindings: iio: dac: AD5570R fix bindings errors Date: Tue, 24 Mar 2020 11:45:06 +0200 Message-ID: <20200324094506.55938-3-alexandru.tachici@analog.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200324094506.55938-1-alexandru.tachici@analog.com> References: <20200324094506.55938-1-alexandru.tachici@analog.com> MIME-Version: 1.0 Content-Type: text/plain X-ADIRoutedOnPrem: True X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.645 definitions=2020-03-24_02:2020-03-23,2020-03-24 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 bulkscore=0 clxscore=1015 impostorscore=0 adultscore=0 malwarescore=0 priorityscore=1501 spamscore=0 suspectscore=0 phishscore=0 lowpriorityscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2003240051 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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 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 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