From patchwork Sun Aug 9 11:17:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 247567 Delivered-To: patch@linaro.org Received: by 2002:a92:cc90:0:0:0:0:0 with SMTP id x16csp3995584ilo; Sun, 9 Aug 2020 04:20:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxQyPwFFzSVRPzgs+0GiaNWmz15topzFWD/Toi5c6QjoH8s5XHtih43cmpiAntMw7utF+7q X-Received: by 2002:a17:906:3890:: with SMTP id q16mr16751398ejd.107.1596972008819; Sun, 09 Aug 2020 04:20:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596972008; cv=none; d=google.com; s=arc-20160816; b=QrJ5eL+RI2I7xvCt3sEQemIb5h7sAHISVPq8rev+uo8LYhT220b7viP0BDMY0euBEl QwJ8WEqzY0gflyXSr47HyPL/zA6VgHocTqDzItsUq+LxGB0efbJPyqsBfULA1JbFiBLu h+MLe1NikCb8u63ZddzSDK+XHkRIHKZv204RLb+6VJTGXaKj4OE+giERhd7VVUtI2e7g T7775NZuEL0lFd/SB3GQ9SGHFN0/SO7YPx6N6q/daK6SPxSwygohM9xlbgFYrfFq4KlM h5tWQP0+AoHq14SCAVP/p2XbLvo6UnZ1lZBXltK/NLTR2R/b8N2tP7HK16nqCWb4Lc9F TRwg== 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=gkDjnnzpRN4Vc7ELFU+OCKm8C9j7CwmbfdmwgKNFBZU=; b=flVPrf3vQ8g5MHY/mmjSw8o2pAcFBYWRka4EwpDGfcp9xS1hpQqVwK98Qx8Bvubva4 yvW80IvGxBD5UWwTgtsm6xxmKJCUATQI1LT1DV6vHiKdZdzQ9f62X4xyu+q9B9URifSq 6Wo/PvvAa003GJ7Z6SVTQc00u/+7JDyZ6+0okANq5hbnd+XdCCg4BWMlkYpb1NbdTMAB 84I1GBntzO5NKukSX/bUWHL3FXTuXAwFHOLpCzfOlWSntWW/h456n9lAidhkNHrE7PhK cNdKD+JaNzvsF9UfNudNykdMGTkjzJOetC+xh0xo+0TtViijzw4C1P/VEp7Uak+Njime gI3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=RbcHddB7; 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 dt16si8833177ejb.353.2020.08.09.04.20.08; Sun, 09 Aug 2020 04:20:08 -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=RbcHddB7; 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 S1726386AbgHILUH (ORCPT + 6 others); Sun, 9 Aug 2020 07:20:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:54052 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726350AbgHILUG (ORCPT ); Sun, 9 Aug 2020 07:20:06 -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 1AB15206D8; Sun, 9 Aug 2020 11:20:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1596972006; bh=Yi7NOX20oAGRIEcrgpDQgWZBLUpOfCrio5toa1FhB1U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RbcHddB7h0KN8m50oja2Vs0a246hI/R0IONtVVLsW6iwyOnPYhaNMVQfXckcgC04E EFDvpF4VfaZadC2bu2v+3V0c6T1SaT+It4VoR8980UjVekA3Lbg/zqIaWr/Ubv+g2K vWPRXnwFN05DefOAI2/97SRusRWkSQNXzBrU6GJQ= From: Jonathan Cameron To: linux-iio@vger.kernel.org Cc: Rob Herring , devicetree@vger.kernel.org, Jonathan Cameron , Matt Ranostay Subject: [PATCH 05/13] dt-bindings: iio: adc: ti, adc161s626 yaml conversion. Date: Sun, 9 Aug 2020 12:17:45 +0100 Message-Id: <20200809111753.156236-6-jic23@kernel.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200809111753.156236-1-jic23@kernel.org> References: <20200809111753.156236-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 conversion for this ADC driver. Note that I haven't put limits on the spi-max-sampling-frequency because the adc161s626 doesn't state one clearly defined value. Added the #io-channel-cells property to allow for consumers. Signed-off-by: Jonathan Cameron Cc: Matt Ranostay --- .../bindings/iio/adc/ti,adc161s626.yaml | 51 +++++++++++++++++++ .../bindings/iio/adc/ti-adc161s626.txt | 18 ------- 2 files changed, 51 insertions(+), 18 deletions(-) -- 2.28.0 Acked-by: Matt Ranostay Reviewed-by: Rob Herring diff --git a/Documentation/devicetree/bindings/iio/adc/ti,adc161s626.yaml b/Documentation/devicetree/bindings/iio/adc/ti,adc161s626.yaml new file mode 100644 index 000000000000..3f4f334d6f73 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/ti,adc161s626.yaml @@ -0,0 +1,51 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/adc/ti,adc161s626.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments ADC141S626 and ADC161S626 ADCs + +maintainers: + - Matt Ranostay + +description: | + Single channel 14/16bit differential ADCs + +properties: + compatible: + enum: + - ti,adc141s626 + - ti,adc161s626 + + reg: + maxItems: 1 + + spi-max-frequency: true + + vdda-supply: true + + "#io-channel-cells": + const: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + + adc@0 { + compatible = "ti,adc161s626"; + vdda-supply = <&vdda_fixed>; + reg = <0>; + spi-max-frequency = <4300000>; + #io-channel-cells = <1>; + }; + }; +... diff --git a/Documentation/devicetree/bindings/iio/adc/ti-adc161s626.txt b/Documentation/devicetree/bindings/iio/adc/ti-adc161s626.txt deleted file mode 100644 index 3d25011f0c99..000000000000 --- a/Documentation/devicetree/bindings/iio/adc/ti-adc161s626.txt +++ /dev/null @@ -1,18 +0,0 @@ -* Texas Instruments ADC141S626 and ADC161S626 chips - -Required properties: - - compatible: Should be "ti,adc141s626" or "ti,adc161s626" - - reg: spi chip select number for the device - - vdda-supply: supply voltage to VDDA pin - -Recommended properties: - - spi-max-frequency: Definition as per - Documentation/devicetree/bindings/spi/spi-bus.txt - -Example: -adc@0 { - compatible = "ti,adc161s626"; - vdda-supply = <&vdda_fixed>; - reg = <0>; - spi-max-frequency = <4300000>; -};