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=-13.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham 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 5C869C388F7 for ; Sat, 31 Oct 2020 18:26:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 213DE20719 for ; Sat, 31 Oct 2020 18:26:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604168798; bh=b9Dh/bWwe6lmZSkFVinTczSbW5JZfK3sKEJgcUr6r5Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=ujFk1piAKf3wm8I8sIeZFbBoygoAyKqtz9E1L+BKAZozT3LpQEfmCa7Eae8Emeb0w qaof+6wmZCc/Q8b4VgwE6j/kA4rU3HM1Kp9zQ1DQ3PHKMogTtjH/3o5ZPRiQoopwN6 IEDaThg4rSuUbKLV68boSjT0mH5/s5BfR0QqXY9o= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728240AbgJaS0h (ORCPT ); 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 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-iio@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(-) 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: -- 2.28.0