From patchwork Sat Oct 31 18:24:22 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 320111 Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp2440064ilc; Sat, 31 Oct 2020 11:26:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxeY3IbonXRJUHdtV/OlP3I88kOytw+NKfNcT2iFGBIWBaXInYv9r5Yx7zONxdGRm+ln1n7 X-Received: by 2002:a17:906:6d99:: with SMTP id h25mr8143792ejt.281.1604168798570; Sat, 31 Oct 2020 11:26:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604168798; cv=none; d=google.com; s=arc-20160816; b=unKQvX6xtg2aHFdZ7bj68W0AwtdnQZr1U9d2g26ej2g37mROlT+elTkWVcocfVJtuG CsPDTaXu+fZ2bZamldr9gYvZ61rV0j3fjiSIdH4na04qgyvoApnAGFXYC5WJGnxy+j54 tKdnIKv1y+ULRGTSpUpIYISG/9DyKczsbf0TDMHGX763cbg1Cs7yfJkvE5VzlMhNmZwz 81KSITMgZ0zMq6WkleAznd9j+gv7DIjiaa7AVeu28/DJ9pYIsyl6zD7YuUKc6iEmZik7 8XjXVqnoZdxARORrLyPCghH+RDKJpNe/nwG00Vq9pKPQyMw0kdcBYAnzSyQ818JA94ja 7svg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=wrVAiSwIRdmFGd0Fa1XKOW4wane1IIUF/proE1FMP3Q=; b=KXPGsIWAvBbfJ3bcJ4H/7JP6lCkcFfkIs+sY63WMPuPvPo4VgXmzVKin/vxPxbS/eH FY8WdzoHCwJSPd9+8S9kiwFir+nPxjcinNQ/Z956c5bySGcYC1XkQT+W6wplAOd4hzNg dV8C19oIShsw7J7XtNCIVIvA9guDle+cC7iSYTbyg9TMjczPcanr0kTll9UkSjOgAnJe DpwImMQoKVp7sl+n+bl2Y3vRpjZNgRp3bhcuoTzwMUKcjdwawzXqMIxOzKwP0Nqt/H4C q4nBLAqM6zm3TTdTJsLv/FYgTxtRDanwV2Bc63bciolB4+NCC9oSPYsu63aBa2X1ui7M zyEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=rmRU2eXv; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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. [23.128.96.18]) by mx.google.com with ESMTP id cc20si7216082edb.341.2020.10.31.11.26.38; Sat, 31 Oct 2020 11:26:38 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=rmRU2eXv; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S1728248AbgJaS0h (ORCPT + 6 others); Sat, 31 Oct 2020 14:26:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:51506 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727967AbgJaS0h (ORCPT ); Sat, 31 Oct 2020 14:26:37 -0400 Received: from localhost.localdomain (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (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 17EB0206E3; Sat, 31 Oct 2020 18:26:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604168797; bh=b9Dh/bWwe6lmZSkFVinTczSbW5JZfK3sKEJgcUr6r5Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rmRU2eXv5KRFzNrbMzv2zZcJ1d6i0OqyifW9bpuf0xtrI/OwYav7W/QWiCyQR8Snk VrlTrAW6LHKfM8HYHy4rMgRHgaPPIZmcIAIpLiAbzlsCE9zCP/pe1+XIKlbYjPRPMa 1PS6lU4CnEdmKi6Wvj93IpuPjDxu6L8mReLBCoOo= From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Cc: Jonathan Cameron , Michael Hennerich Subject: [PATCH 2/3] dt-bindings:iio:adc:adi, ad7124: Use the new adc.yaml channel binding Date: Sat, 31 Oct 2020 18:24:22 +0000 Message-Id: <20201031182423.742798-3-jic23@kernel.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201031182423.742798-1-jic23@kernel.org> References: <20201031182423.742798-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Jonathan Cameron This both ensures this binding is compliant with the generic properties and reduces the amount we need to specify in this separate binding. Whilst here mark the child node as additionalProperties: false Signed-off-by: Jonathan Cameron Cc: Michael Hennerich --- .../devicetree/bindings/iio/adc/adi,ad7124.yaml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) -- 2.28.0 diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad7124.yaml b/Documentation/devicetree/bindings/iio/adc/adi,ad7124.yaml index f1c574c896cb..fb3d0dae9bae 100644 --- a/Documentation/devicetree/bindings/iio/adc/adi,ad7124.yaml +++ b/Documentation/devicetree/bindings/iio/adc/adi,ad7124.yaml @@ -63,10 +63,10 @@ required: patternProperties: "^channel@([0-9]|1[0-5])$": + $ref: "adc.yaml" type: object description: | Represents the external channels which are connected to the ADC. - See Documentation/devicetree/bindings/iio/adc/adc.txt. properties: reg: @@ -88,15 +88,9 @@ patternProperties: $ref: /schemas/types.yaml#/definitions/uint32 enum: [0, 1, 3] - diff-channels: - description: see Documentation/devicetree/bindings/iio/adc/adc.txt - items: - minimum: 0 - maximum: 15 + diff-channels: true - bipolar: - description: see Documentation/devicetree/bindings/iio/adc/adc.txt - type: boolean + bipolar: true adi,buffered-positive: description: Enable buffered mode for positive input. @@ -110,6 +104,8 @@ patternProperties: - reg - diff-channels + additionalProperties: false + additionalProperties: false examples: