Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp3341295pxx; Mon, 2 Nov 2020 06:31:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJwoO4xPxMH3PND/kw793f6SPA5elOQ9bvNd+H3GVoqteJ7TiDYqQoHjxuHGPuM4FR3P8o12 X-Received: by 2002:a17:906:7c4b:: with SMTP id g11mr16161064ejp.469.1604327473902; Mon, 02 Nov 2020 06:31:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604327473; cv=none; d=google.com; s=arc-20160816; b=BjxiOj6bWkoqSDDAuLiuXH+q/5m5n3sEEd3pUf0pSNz8JM6cJCftCXijlkxPKEZggv a0E5Z46mxVdvz9k9yuy99zCG4rreysK5uK0Ezheq7D52oyVSmBvWOBNAAcBI4D80Ly6r /i2M7y+BvRWSfHaBnepR6I2Qt96jDCGSoDgeUjbjgkk+T6nisQICX/Te/u5zhxleFhK6 cGxT9G3xyIxr5gQWaxm2LNNbvXOP5CVbd6Uaxedq/vzY7GuvqscTxMLLlCXYLJZ16XUd XFahyldvoVy/gFC2oxvcXBHeoKrH/NozqhKIRfBOzxrXphRgS+UU7JZ9b0fcu93vEHsU v9Xw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=p978W76lxjymjUgBMbtpRdMZ6YPJWXc1/RtRnZQpEzo=; b=ac1wY1LnwikW62iW9M4ydaO8WIt/2tLXas37TIOskzkj4w3gqKbUWkZ9vc6eEIcz37 Y9FpfBL8P3ktLTAdtK9H+Fn3eOqr9G9wAGdFurumspUGi7ckFanH/X/2NN158NK+DrPv mEt50fkjjuTY16vVMaiUHLMw4qTlEMpH5y2Xgupxgftb7FowXsCITykspvlpkoPM/DC7 wRdDufOQzrCjxzGNQpE2aODHOL+EJGpZKSaAZaG/od7huqG4GKZMx8oj8Qj+ImiyGdqc yzDKN7QxkYx1SpIznG5RD5sFR5+TnSdY6/+1Yhrcy2vDJlIYcWhdbADPh93+TTpF+KEe F46w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analog.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x9si293572edj.415.2020.11.02.06.30.50; Mon, 02 Nov 2020 06:31:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analog.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726255AbgKBO0e (ORCPT + 99 others); Mon, 2 Nov 2020 09:26:34 -0500 Received: from mx0a-00128a01.pphosted.com ([148.163.135.77]:16026 "EHLO mx0a-00128a01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725983AbgKBOOD (ORCPT ); Mon, 2 Nov 2020 09:14:03 -0500 Received: from pps.filterd (m0167088.ppops.net [127.0.0.1]) by mx0a-00128a01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 0A2EA3sS022112; Mon, 2 Nov 2020 09:14:02 -0500 Received: from nwd2mta4.analog.com ([137.71.173.58]) by mx0a-00128a01.pphosted.com with ESMTP id 34h1s4xmj5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 02 Nov 2020 09:14:02 -0500 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 0A2EE0lx044388 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=FAIL); Mon, 2 Nov 2020 09:14:00 -0500 Received: from ASHBCASHYB4.ad.analog.com (10.64.17.132) 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; Mon, 2 Nov 2020 09:13:59 -0500 Received: from ASHBMBX9.ad.analog.com (10.64.17.10) by ASHBCASHYB4.ad.analog.com (10.64.17.132) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1779.2; Mon, 2 Nov 2020 09:13:59 -0500 Received: from zeus.spd.analog.com (10.66.68.11) by ASHBMBX9.ad.analog.com (10.64.17.10) with Microsoft SMTP Server id 15.1.1779.2 via Frontend Transport; Mon, 2 Nov 2020 09:13:59 -0500 Received: from localhost.localdomain ([10.48.65.12]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 0A2EDbsI027259; Mon, 2 Nov 2020 09:13:58 -0500 From: Cristian Pop To: , CC: , , , Cristian Pop Subject: [PATCH v7 4/5] dt-bindings:iio:adc:adi,ad7768-1: Add documentation for channel label Date: Mon, 2 Nov 2020 16:16:58 +0200 Message-ID: <20201102141659.41875-4-cristian.pop@analog.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201102141659.41875-1-cristian.pop@analog.com> References: <20201102141659.41875-1-cristian.pop@analog.com> MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.312,18.0.737 definitions=2020-11-02_07:2020-11-02,2020-11-02 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 priorityscore=1501 mlxlogscore=999 clxscore=1015 bulkscore=0 spamscore=0 adultscore=0 suspectscore=0 phishscore=0 impostorscore=0 lowpriorityscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2011020113 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Optional attribute for better identification of the channels. Signed-off-by: Cristian Pop --- Changes in v7: - Add "additionalProperties: false" for channel child nodes. - Fix "reg" spelling. .../bindings/iio/adc/adi,ad7768-1.yaml | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad7768-1.yaml b/Documentation/devicetree/bindings/iio/adc/adi,ad7768-1.yaml index d3733ad8785a..6be43bf5c1e0 100644 --- a/Documentation/devicetree/bindings/iio/adc/adi,ad7768-1.yaml +++ b/Documentation/devicetree/bindings/iio/adc/adi,ad7768-1.yaml @@ -29,6 +29,12 @@ properties: interrupts: maxItems: 1 + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + vref-supply: description: ADC reference voltage supply @@ -61,6 +67,24 @@ required: - spi-cpha - adi,sync-in-gpios +patternProperties: + "^channel@([0-9]|1[0-5])$": + type: object + description: | + Represents the external channels which are connected to the device. + + properties: + reg: + description: | + The channel number. + + label: + description: | + Unique name to identify which channel this is. + required: + - reg + additionalProperties: false + additionalProperties: false examples: @@ -84,6 +108,14 @@ examples: reset-gpios = <&gpio 27 GPIO_ACTIVE_LOW>; clocks = <&ad7768_mclk>; clock-names = "mclk"; + + #address-cells = <1>; + #size-cells = <0>; + + channel@0 { + reg = <0>; + label = "channel_0"; + }; }; }; ... -- 2.17.1