From patchwork Wed Sep 9 17:59:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 249526 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ecf:0:0:0:0 with SMTP id i15csp56301ilk; Wed, 9 Sep 2020 11:04:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxGrogBKCYgjcvjZdfPUzB0kkFnrrmTSyV9uomdGDUVN7u4+2lZMrcQU4nBCRlJkvzmWODA X-Received: by 2002:a17:906:660f:: with SMTP id b15mr5111252ejp.333.1599674687498; Wed, 09 Sep 2020 11:04:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599674687; cv=none; d=google.com; s=arc-20160816; b=GVIGuWspDbQgXortZBnJ+w/KBuen9yHZfDyD46TBf4TuIEu0GJpsx5sbI/wBELoojR 9+02pzkHG3HeP6wnKNqVYPXg3gA/5xfkEG4yMdWMaei5yBzL/q4efOztKZGP0XxiWSQ3 iAgXHoCtk1ADavCVRG7k9YklkF4VNh1NeXa0+kQcAUf0IohjOr2UZdZMFrUWBxJDIZ4+ YLQCrNub/Ij55gySoFuc8vAymk3TLPZvKmb4MEp1JK5Ls5GbE9EMOMSVFlO7xiIUhZ11 Pu4eXogPC3KcPylu4AdUrUC1DfdkrHTkgc1IcDc/mQ4OhK72Q5Ss56BVwuVi0zVyCS2v ezVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=R59rIAKjS0WYvFtMYlAjl/6EwbXt+ftv7d2rg6KiZzw=; b=Ufb8L513o7R0YLsQWmhP4S9SF5zrd4zO2bXASuaePDG3huPUHykfkoZxxlXj64IxQk 5MXQ37ZHzbrRvDFQIX9e57ctHX4J03D/XrwKSvxXHuwGE/ViLTgooyZ8GUSJEFqOnaEd BTArLLhl4Ch/z0E2cA4U3LY1LQznnWv9NNSc/HiylettQNl5i0/8CjyOnYoaINhDV16h Gp02S0zzGDhTUcW6yivRvhS6waBXgc20e7nsBGFrCWMZ6xwmTBcqUz0TViPLYq81ifn6 mQBCcAQN5eMKAmdLYrpIMS0qEEAjI16GzTfRf89tvCnoC3w38RSbN0/aZWjNczSVgPLP LXBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=PZHtSw8k; 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 n12si1886631ejx.468.2020.09.09.11.04.47; Wed, 09 Sep 2020 11:04:47 -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=PZHtSw8k; 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 S1730025AbgIISEe (ORCPT + 6 others); Wed, 9 Sep 2020 14:04:34 -0400 Received: from mail.kernel.org ([198.145.29.99]:59138 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730128AbgIISC0 (ORCPT ); Wed, 9 Sep 2020 14:02:26 -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 3B1C221D95; Wed, 9 Sep 2020 18:02:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599674545; bh=KoEd7JhadoV/WuAlOl/OSAE8z4BEPt6pY8SVVSs0NxU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PZHtSw8k85IJskvyMcjKJL0liMzjLbmDPShxLYoLVLT24NjgAmEVPvdd1yufvgJW8 cNuXE6WqgzSZMhDUqSBV/B32lG9vr9B70ZAMU6GX9sREW7JJvayAeJZIdSD1EI693S c5PTykDlr0TpeG2vZBbski1lA68Nehd2mt2D0aE8= From: Jonathan Cameron To: linux-iio@vger.kernel.org Cc: Rob Herring , devicetree@vger.kernel.org, Jonathan Cameron , Rick Altherr , Joel Stanley , Andrew Jeffery Subject: [PATCH v2 04/20] dt-bindings:iio:adc: aspeed, ast2400 yaml conversion Date: Wed, 9 Sep 2020 18:59:30 +0100 Message-Id: <20200909175946.395313-5-jic23@kernel.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200909175946.395313-1-jic23@kernel.org> References: <20200909175946.395313-1-jic23@kernel.org> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Jonathan Cameron Simple txt to yaml conversion. Part of a general move to convert all the IIO bindings over to yaml. Signed-off-by: Jonathan Cameron Cc: Rick Altherr Cc: Joel Stanley Cc: Andrew Jeffery --- .../bindings/iio/adc/aspeed,ast2400-adc.yaml | 54 +++++++++++++++++++ .../bindings/iio/adc/aspeed_adc.txt | 22 -------- 2 files changed, 54 insertions(+), 22 deletions(-) -- 2.28.0 Acked-by: Joel Stanley Reviewed-by: Rob Herring diff --git a/Documentation/devicetree/bindings/iio/adc/aspeed,ast2400-adc.yaml b/Documentation/devicetree/bindings/iio/adc/aspeed,ast2400-adc.yaml new file mode 100644 index 000000000000..09018487d690 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/aspeed,ast2400-adc.yaml @@ -0,0 +1,54 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/adc/aspeed,ast2400-adc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ADC that forms part of an ASPEED server management processor. + +maintainers: + - Rick Altherr + +description: + This device is a 10-bit converter for 16 voltage channels. All inputs are + single ended. + +properties: + compatible: + enum: + - aspeed,ast2400-adc + - aspeed,ast2500-adc + + reg: + maxItems: 1 + + clocks: + description: + Input clock used to derive the sample clock. Expected to be the + SoC's APB clock. + + resets: true + + "#io-channel-cells": + const: 1 + +required: + - compatible + - reg + - clocks + - resets + - "#io-channel-cells" + +additionalProperties: false + +examples: + - | + #include + adc@1e6e9000 { + compatible = "aspeed,ast2400-adc"; + reg = <0x1e6e9000 0xb0>; + clocks = <&syscon ASPEED_CLK_APB>; + resets = <&syscon ASPEED_RESET_ADC>; + #io-channel-cells = <1>; + }; +... diff --git a/Documentation/devicetree/bindings/iio/adc/aspeed_adc.txt b/Documentation/devicetree/bindings/iio/adc/aspeed_adc.txt deleted file mode 100644 index 034fc2ba100e..000000000000 --- a/Documentation/devicetree/bindings/iio/adc/aspeed_adc.txt +++ /dev/null @@ -1,22 +0,0 @@ -Aspeed ADC - -This device is a 10-bit converter for 16 voltage channels. All inputs are -single ended. - -Required properties: -- compatible: Should be "aspeed,ast2400-adc" or "aspeed,ast2500-adc" -- reg: memory window mapping address and length -- clocks: Input clock used to derive the sample clock. Expected to be the - SoC's APB clock. -- resets: Reset controller phandle -- #io-channel-cells: Must be set to <1> to indicate channels are selected - by index. - -Example: - adc@1e6e9000 { - compatible = "aspeed,ast2400-adc"; - reg = <0x1e6e9000 0xb0>; - clocks = <&syscon ASPEED_CLK_APB>; - resets = <&syscon ASPEED_RESET_ADC>; - #io-channel-cells = <1>; - };