From patchwork Sat Sep 5 17:29:49 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 249179 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp2420970ilg; Sat, 5 Sep 2020 10:33:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzEJ6NiJEOjrOaGbxpAHXSdObD0apTl4wPQV9X2KjWKHVcvd56FVEUqrJzeXe1PX2TSbYJy X-Received: by 2002:a17:907:40c1:: with SMTP id nv1mr6613601ejb.318.1599327193630; Sat, 05 Sep 2020 10:33:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599327193; cv=none; d=google.com; s=arc-20160816; b=bUNt2gL4fcJmGcmDVotUp5ZlSEFj7kogl6sWONVx3c+h17RtVgGCZbsPMOFmDVQydQ mQWZ/lTIA0kBuaqrM8i97SPdZIydqPE4qHYyyirV8fbjk8M8INpxb6Ot3+GfrYVg7OZg zHLyN0T21bJO4Oii+OXPrYMgjm7kWdjhE9Si5UMxQI90UXEy5nV28HMhdHXSlAxEU1wZ uWwVIjxtTU1juIKXhbLxRX/RrU+8TCla4AvwFBC96jAgmpA654o01Ft+f3+jN+B25YQS NJ6/rydKSKPXhVb8CVHxJHrJbri0jOFpyIriB0yuJw44W38SEXSauKcp3CiVt/WlD69O VUiQ== 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=OQJfqhlCL/Oi78vZv2d9I8ZP7RH42sunmTudNgPGa5w=; b=gUWnNgxskyxtQbRZllvhiI0aWZaZVFgUhnMMVNd8GJ9l/SwUJYlaB/+rBIIN2hUXIV s/Y963bwzLeRNlADHDFsI58gF+iSRAOLo56N7NJ1LahI7k0NdqO+2mc7LIjEnphU57/N 9uhNF+oYzFxEEWyyy4+EtB/+kW5T1+gALFuFfcC/Pu8QYvBKq5X2a8kq+bR0N83hjIXt BnKr/p2tguPETU8mqf1VTjSLwVJet8kjeXgdkT2BW/27pxnFv+NfhBF38cw1eM9cR92R 11Bh39hcy/pGWfCd+xsaKmccm4rJdXzgYf+egPO4hVPRWlTGQDKdCZ+KEEy7U6G34yJX hCnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=YwHFc6O4; 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.33.13; Sat, 05 Sep 2020 10:33:13 -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=YwHFc6O4; 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 S1728470AbgIERdK (ORCPT + 6 others); Sat, 5 Sep 2020 13:33:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:60230 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728376AbgIERce (ORCPT ); Sat, 5 Sep 2020 13:32:34 -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 5702C208FE; Sat, 5 Sep 2020 17:32:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599327153; bh=dj7sY8XR4e2NJSncNf247eOtg7Oz4MBwoP7y68zXUEM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YwHFc6O4rgNmkW7IF5Jn+2eZqlt7LO4PpniTqIgKBk78wAv76EsPj7QpmdvJ8ssYp M3n1HdWxLLKMCxuJjx0My3m/xXF+1U+HDNC49asauLg53nEo3Tj1mywWdzuIgFj7up eMYZTJgGNKZshwo2GhYWd8rBWgWjr1ZKeCxrCZtw= From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Cc: Jonathan Cameron , Antoine Tenart Subject: [PATCH 05/20] dt-bindings:iio:adc:marvell, berlin2-adc yaml conversion Date: Sat, 5 Sep 2020 18:29:49 +0100 Message-Id: <20200905173004.216081-6-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 Part of a general move of IIO bindings over to yaml. Signed-off-by: Jonathan Cameron Cc: Antoine Tenart --- .../bindings/iio/adc/berlin2_adc.txt | 19 ------- .../bindings/iio/adc/marvell,berlin2-adc.yaml | 50 +++++++++++++++++++ 2 files changed, 50 insertions(+), 19 deletions(-) -- 2.28.0 diff --git a/Documentation/devicetree/bindings/iio/adc/berlin2_adc.txt b/Documentation/devicetree/bindings/iio/adc/berlin2_adc.txt deleted file mode 100644 index 908334c6b07f..000000000000 --- a/Documentation/devicetree/bindings/iio/adc/berlin2_adc.txt +++ /dev/null @@ -1,19 +0,0 @@ -* Berlin Analog to Digital Converter (ADC) - -The Berlin ADC has 8 channels, with one connected to a temperature sensor. -It is part of the system controller register set. The ADC node should be a -sub-node of the system controller node. - -Required properties: -- compatible: must be "marvell,berlin2-adc" -- interrupts: the interrupts for the ADC and the temperature sensor -- interrupt-names: should be "adc" and "tsen" - -Example: - -adc: adc { - compatible = "marvell,berlin2-adc"; - interrupt-parent = <&sic>; - interrupts = <12>, <14>; - interrupt-names = "adc", "tsen"; -}; diff --git a/Documentation/devicetree/bindings/iio/adc/marvell,berlin2-adc.yaml b/Documentation/devicetree/bindings/iio/adc/marvell,berlin2-adc.yaml new file mode 100644 index 000000000000..496cddbe96ca --- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/marvell,berlin2-adc.yaml @@ -0,0 +1,50 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/adc/marvell,belin2-adc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Berlin 2 Analog to Digital Convertor (ADC) + +maintainers: + - Antoine Tenart + +description: + The Berlin ADC has 8 channels, with one connected to a temperature sensor. + It is part of the system controller register set. The ADC node should be a + sub-node of the system controller node. + +properties: + compatible: + const: marvell,berlin2-adc + + interrupts: + minItems: 2 + maxItems: 2 + + interrupt-names: + items: + - const: adc + - const: tsen + + "#io-channel-cells": + const: 1 + +required: + - compatible + - interrupts + - interrupt-names + +additionalProperties: false + +examples: + - | + sysctrl { + adc { + compatible = "marvell,berlin2-adc"; + interrupt-parent = <&sic>; + interrupts = <12>, <14>; + interrupt-names = "adc", "tsen"; + }; + }; +...