From patchwork Sat Sep 5 17:29:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 249162 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp2420671ilg; Sat, 5 Sep 2020 10:32:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwaUAPMTN3cc7mD+49kF7niEelRF5V5xKvQ0ZSY9KngAiO4d+xwqzXMZsNFiFb8/6Y0UbY6 X-Received: by 2002:a50:fa94:: with SMTP id w20mr13980413edr.206.1599327163406; Sat, 05 Sep 2020 10:32:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599327163; cv=none; d=google.com; s=arc-20160816; b=a3gSVJCN2sTjTzO4LZhp8aqrJ0rDFL5mZkC3giyDgM/Yiy3pf0CAD+IYWA1A6vqiqB 5czASZH7bNujsUFfGPX+14CPt/BQ7E4qZ0Jd9Mkno9XQ1WCM1QtSQEZ2C1oRGRz8kFZz GQVkgP5hS1fI9FmBZxjL1FssBZwpLaO6vnIpSyVXfPtR17hOWZYzlN2rWvphzWvUz6Ln mpYYN35cz6nb3raDd7D5p/+e6pVqkLa56Cder58DPlX+fgDuRvWjhMvBMoXhii6n+LME jj3UBTDjT5q1Tak6scL14ST5kRecrGcZTFPwg4CxWyA2/nG78JEl7t9ZEJhKMZEp3gig LT7Q== 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=sySKnJXuJzZh6fqJQgW07F9HAE+HHPKr/6ViXvwnFhnD50LapruAzKBOFLaAMbBnv0 uYZoE9/jhO+tF+Xt52BjhgENrZxl+K/NZjUQi+vQ2EQQdU7qENpf8Dg8U8GoTooocY8N Fl+iN9Ld6vW1EbccweDXqVUb08iXxGoO9CvZUQHG8EaAlrWA349iKvfyVimUArQlMOJl YEW11LjFqu9ZcU+3Kgdv5ZdOCP7JaSbLF4N2g15IVtoy3rsgkQPLFMjTazO+BNCQ53wz rFUOaFf+sixL+q8Vx0aHYJPx/h4cgtGBdq7wv4t/FVG6fdcCxrVhr8K2YKUg0KU9wn+7 KPVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=XM6m8Ptz; 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 u17si5687486ejk.29.2020.09.05.10.32.43; Sat, 05 Sep 2020 10:32:43 -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=XM6m8Ptz; 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 S1728400AbgIERcj (ORCPT + 6 others); Sat, 5 Sep 2020 13:32:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:60218 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728257AbgIERcc (ORCPT ); Sat, 5 Sep 2020 13:32:32 -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 A05C220C09; Sat, 5 Sep 2020 17:32:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599327152; bh=KoEd7JhadoV/WuAlOl/OSAE8z4BEPt6pY8SVVSs0NxU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XM6m8PtzYabdvgh2YrS0AApxsvkrh6BzaFoGU1cWWKBJWqf0wFL+DJ+aZcRbzUed7 uEiPooVPhnN5oSPmlT3UaosyjzchnQb4pUNvei8ekwC9VSy+3l+NgHU9tFd4CY9Fmh Dt6QLTmKL0HmOnnCSlgYWfCdgXvl0MkEzPcPlk00= From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Cc: Jonathan Cameron , Rick Altherr , Joel Stanley , Andrew Jeffery Subject: [PATCH 04/20] dt-bindings:iio:adc: aspeed,ast2400 yaml conversion Date: Sat, 5 Sep 2020 18:29:48 +0100 Message-Id: <20200905173004.216081-5-jic23@kernel.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200905173004.216081-1-jic23@kernel.org> References: <20200905173004.216081-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 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>; - };