From patchwork Sun Aug 9 11:17:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 247563 Delivered-To: patch@linaro.org Received: by 2002:a92:cc90:0:0:0:0:0 with SMTP id x16csp3995533ilo; Sun, 9 Aug 2020 04:20:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzAe1QkehwxfhGfmefjAwHS7brwkugS31U7h2+DF2pSyouGC+94H9avtZ5OqNwQtRrzaz7A X-Received: by 2002:a05:6402:e:: with SMTP id d14mr16908646edu.262.1596972003138; Sun, 09 Aug 2020 04:20:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596972003; cv=none; d=google.com; s=arc-20160816; b=X2JOIyFWw1oznStF1gPcjL8ZBquBqWOArliM0bPnI1oS6z3szJzxK0Ya+Tui7ZVSl5 qb5RzdJPDzZzkymmPFzqFN65Cr28G+DjmVEYfrVguKNNq+D590JbEW4ouElraz4uzZX+ NvBMRyvfB/U9sj4g8jMr2MYYZIrrFQN2ZkfksmLWm14bWJrQ/70nBufcs1K6WhMVwU7W arhlo7IYBayLXcNC6pjyjquMru5cG1EX0KvUmC64CpO123i9xxLCGZgcXFBMQVFcy7SU eIrlyIh1MONleYyIo1SCX7tm5uEN2W1JYX9l6sxas0AEUXm0o7O1gJePAqA7QzFrIcqv JYuA== 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=BjcxLvEZDgYJtcfFOkeCpkuAOZtA/o2iGEUUfI3hm2k=; b=QA2WvsYjbZrinAyIpA5vm61wmn7dFF96828PDPMlV8WXWOIXge42tAvVUJVHX0c72Q 2qV6BLHFz1XvS7ibHbryRKQDytWfQsv9lliFn5X8irgtP4JtzRZYc5TMEYSlrzShEwty aKllU06ZVKJNHVYlB4JKE9IEkQJ4KjJz/wNysMeZFjbiA0I7ETV5wqri2QexP+f/nZcQ 0C98MFM0WDE1JxlcIvOV+3Bket/vrDf1LYDqSkua6v4Abyur6rY76vrPDV1PENV50tdO EfXN+nkcJmSmFz/Kc7BZqU6P+stcF1r8oXCicCPnt1/uhhgZGMNqX/4xkYOGQrEEIwR7 TYhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=hXUpfyjZ; 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 x18si8375699eds.427.2020.08.09.04.20.02; Sun, 09 Aug 2020 04:20:03 -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=hXUpfyjZ; 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 S1726322AbgHILUB (ORCPT + 6 others); Sun, 9 Aug 2020 07:20:01 -0400 Received: from mail.kernel.org ([198.145.29.99]:53920 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726199AbgHILUB (ORCPT ); Sun, 9 Aug 2020 07:20:01 -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 61CFD206E9; Sun, 9 Aug 2020 11:19:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1596972000; bh=v5q4uRk0HDMOm1sRyCARO2rfzcScDo6WU31sLgpF0sk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hXUpfyjZEwoVX20nXwoTGr4MyiylW0Gkk+mHU+z/IYTYe8sUBXzQkIL8n+FIIa5YI cg7XDbM+5TysgypReB2+POwl9fib/cKeVF02VLzR8l2XtL1yVlpmlHsmd8n25x/DDR YBCIUeUytRpLZKSzrn9yYzPkIDpPRvdyLorCenZY= From: Jonathan Cameron To: linux-iio@vger.kernel.org Cc: Rob Herring , devicetree@vger.kernel.org, Jonathan Cameron , Oskar Andero Subject: [PATCH 01/13] dt-bindings: iio: adc: microchip, mcp3201 yaml conversion. Date: Sun, 9 Aug 2020 12:17:41 +0100 Message-Id: <20200809111753.156236-2-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 Drops the deprecated compatibles without the vendor name. Whilst the driver continues to support these for old dt blobs, any dt bindings that are actuallly verified against this document should be fixed to add the vendor name. Enforces rule that spi-cpol == spi-cpha. Is there a cleaner way to do this? Added the #io-channel-cells property to allow for consumers. Signed-off-by: Jonathan Cameron Cc: Oskar Andero --- .../devicetree/bindings/iio/adc/mcp320x.txt | 57 ------------ .../bindings/iio/adc/microchip,mcp3201.yaml | 93 +++++++++++++++++++ 2 files changed, 93 insertions(+), 57 deletions(-) -- 2.28.0 Reviewed-by: Rob Herring diff --git a/Documentation/devicetree/bindings/iio/adc/mcp320x.txt b/Documentation/devicetree/bindings/iio/adc/mcp320x.txt deleted file mode 100644 index 56373d643f76..000000000000 --- a/Documentation/devicetree/bindings/iio/adc/mcp320x.txt +++ /dev/null @@ -1,57 +0,0 @@ -* Microchip Analog to Digital Converter (ADC) - -The node for this driver must be a child node of a SPI controller, hence -all mandatory properties described in - - Documentation/devicetree/bindings/spi/spi-bus.txt - -must be specified. - -Required properties: - - compatible: Must be one of the following, depending on the - model: - "mcp3001" (DEPRECATED) - "mcp3002" (DEPRECATED) - "mcp3004" (DEPRECATED) - "mcp3008" (DEPRECATED) - "mcp3201" (DEPRECATED) - "mcp3202" (DEPRECATED) - "mcp3204" (DEPRECATED) - "mcp3208" (DEPRECATED) - "mcp3301" (DEPRECATED) - - "microchip,mcp3001" - "microchip,mcp3002" - "microchip,mcp3004" - "microchip,mcp3008" - "microchip,mcp3201" - "microchip,mcp3202" - "microchip,mcp3204" - "microchip,mcp3208" - "microchip,mcp3301" - "microchip,mcp3550-50" - "microchip,mcp3550-60" - "microchip,mcp3551" - "microchip,mcp3553" - - NOTE: The use of the compatibles with no vendor prefix - is deprecated and only listed because old DT use them. - - - spi-cpha, spi-cpol (boolean): - Either SPI mode (0,0) or (1,1) must be used, so specify - none or both of spi-cpha, spi-cpol. The MCP3550/1/3 - is more efficient in mode (1,1) as only 3 instead of - 4 bytes need to be read from the ADC, but not all SPI - masters support it. - - - vref-supply: Phandle to the external reference voltage supply. - -Examples: -spi_controller { - mcp3x0x@0 { - compatible = "microchip,mcp3002"; - reg = <0>; - spi-max-frequency = <1000000>; - vref-supply = <&vref_reg>; - }; -}; diff --git a/Documentation/devicetree/bindings/iio/adc/microchip,mcp3201.yaml b/Documentation/devicetree/bindings/iio/adc/microchip,mcp3201.yaml new file mode 100644 index 000000000000..38dfb856da62 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/microchip,mcp3201.yaml @@ -0,0 +1,93 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/adc/microchip,mcp3201.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Microchip mcp3201 and similar ADCs + +maintainers: + - Oskar Andero + +description: | + Family of simple ADCs with an I2C inteface. + +properties: + compatible: + enum: + - microchip,mcp3001 + - microchip,mcp3002 + - microchip,mcp3004 + - microchip,mcp3008 + - microchip,mcp3201 + - microchip,mcp3202 + - microchip,mcp3204 + - microchip,mcp3208 + - microchip,mcp3301 + - microchip,mcp3550-50 + - microchip,mcp3550-60 + - microchip,mcp3551 + - microchip,mcp3553 + + reg: + maxItems: 1 + + spi-max-frequency: true + spi-cpha: true + spi-cpol: true + + vref-supply: + description: External reference. + + "#io-channel-cells": + const: 1 + +allOf: + - if: + required: + - spi-cpha + then: + required: + - spi-cpol + else: + properties: + spi-cpol: false + - if: + required: + - spi-cpol + then: + required: + - spi-cpha + else: + properties: + spi-cpha: false + +required: + - compatible + - reg + - vref-supply + +additionalProperties: false + +examples: + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + + adc@0 { + compatible = "microchip,mcp3002"; + reg = <0>; + vref-supply = <&vref_reg>; + spi-cpha; + spi-cpol; + #io-channel-cells = <1>; + }; + adc@1 { + compatible = "microchip,mcp3002"; + reg = <1>; + vref-supply = <&vref_reg>; + spi-max-frequency = <1500000>; + }; + }; +... From patchwork Sun Aug 9 11:17:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 247564 Delivered-To: patch@linaro.org Received: by 2002:a92:cc90:0:0:0:0:0 with SMTP id x16csp3995547ilo; Sun, 9 Aug 2020 04:20:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyoMmGFUm2T7oAWfLx41eeSXPnfN2cB4JrkSZ8RakuPEdeDqupuXHjCFpCr+l8Wpg2R5W7E X-Received: by 2002:a17:906:c8d2:: with SMTP id gc18mr18494586ejb.24.1596972005312; Sun, 09 Aug 2020 04:20:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596972005; cv=none; d=google.com; s=arc-20160816; b=VnAfiHSEEtrl8h1vqko6RvabbSPntfvhMck+d6NKXpB3+ixvbBPzKPu9caBy4sTt2v S0HNQLQjNxy9191sNw7RJJavZ5IGkOG8XEotCJvEO6rGlDEOrdz5jKEiJkZmM4At9i/z rGSgtz6jTdJ80iGvAbuhurepimVrVKwymb60jIHjmd8anicY0VYp9gBFk8EKr/taRDkn nHNgCzDkfSzjpUIb8xSSqqWlhkom8UCfgSOs6KMNwhGbRdoTJ9UMpfN1NMTJlloMLqUJ epE3vi6g+6eLoucbGuTtJ0mYSSCeCqeWXzDVfv7D74/iywu7n/I2XfvR+ER89cVFNQR8 woyQ== 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=ertWJhOlIbMfsKBvYqFF4wTurqyCMXcOCALwuM+fIjE=; b=ppycAgiu/EmegXjmvrClbde4oEcBQxV2sXIaZxW6HBrm2RjYaqkJFa/UWA2KbvxWNQ Yw5WGSqNTWkZd1sHDelNdKkdwpZCUEmb1f4ODpeLOjiWH+cIiFvD5EgfvwIiw0i3OuNu zEnwmZDVHbVLApIZ5wVwGbTOxTCTlg5mQgBJCJa08nxG+8sN3RfkKejQh2D81FzRgugC VGW7RheOTs2wL4WRvUo5uoOpCeR+9ELV47sD8FIASGMrmXNkM1KL8CHDd8v6NEZpdNJA qBNoTQ23qYwAWvRQA/JcEre/ngIwK5KqjI0nDWeSFAm3y+8cNEBMMZd1Za4I3cDwaxnq eWCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=T3PDVTw+; 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 qw24si9128505ejb.416.2020.08.09.04.20.05; Sun, 09 Aug 2020 04:20:05 -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=T3PDVTw+; 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 S1726335AbgHILUC (ORCPT + 6 others); Sun, 9 Aug 2020 07:20:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:53936 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726199AbgHILUC (ORCPT ); Sun, 9 Aug 2020 07:20:02 -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 C95F920716; Sun, 9 Aug 2020 11:20:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1596972001; bh=YzI06x2VtwyLUH1SPEtarEcOok5X9Xg6xMPI3fOMg1k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=T3PDVTw+IyIiacQJjOgMAktxiJNuniHdmMrvqgAF6tawyP5D3Ddsgafi9A4WbavO+ McbWrEFHk+ZymTTMrFVGFEROaFt8lOAr2kD6+/ePh/VYEG6+DkBbOHogQ1zFAYq4Ag Fu6jo95lf1PKIjOSwVEz6AWmKaJNDal9TFhKkrr8= From: Jonathan Cameron To: linux-iio@vger.kernel.org Cc: Rob Herring , devicetree@vger.kernel.org, Jonathan Cameron , Angelo Compagnucci Subject: [PATCH 02/13] dt-bindings: trivial-devices: Add mcp342x ADCs and drop separate binding doc. Date: Sun, 9 Aug 2020 12:17:42 +0100 Message-Id: <20200809111753.156236-3-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 These i2c devices have simple bindings, well described by trivial-device.yaml so rather than convert the binding doc to yaml, let us just add them to trivial devices and drop the old binding document. Signed-off-by: Jonathan Cameron Cc: Angelo Compagnucci --- .../devicetree/bindings/iio/adc/mcp3422.txt | 19 ------------------- .../devicetree/bindings/trivial-devices.yaml | 16 ++++++++++++++++ 2 files changed, 16 insertions(+), 19 deletions(-) -- 2.28.0 Reviewed-by: Rob Herring diff --git a/Documentation/devicetree/bindings/iio/adc/mcp3422.txt b/Documentation/devicetree/bindings/iio/adc/mcp3422.txt deleted file mode 100644 index 82bcce07255d..000000000000 --- a/Documentation/devicetree/bindings/iio/adc/mcp3422.txt +++ /dev/null @@ -1,19 +0,0 @@ -* Microchip mcp3421/2/3/4/6/7/8 chip family (ADC) - -Required properties: - - compatible: Should be - "microchip,mcp3421" or - "microchip,mcp3422" or - "microchip,mcp3423" or - "microchip,mcp3424" or - "microchip,mcp3425" or - "microchip,mcp3426" or - "microchip,mcp3427" or - "microchip,mcp3428" - - reg: I2C address for the device - -Example: -adc@0 { - compatible = "microchip,mcp3424"; - reg = <0x68>; -}; diff --git a/Documentation/devicetree/bindings/trivial-devices.yaml b/Documentation/devicetree/bindings/trivial-devices.yaml index 4165352a590a..837592ec62aa 100644 --- a/Documentation/devicetree/bindings/trivial-devices.yaml +++ b/Documentation/devicetree/bindings/trivial-devices.yaml @@ -130,6 +130,22 @@ properties: - mcube,mc3230 # MEMSIC 2-axis 8-bit digital accelerometer - memsic,mxc6225 + # Microchip differential I2C ADC, 1 Channel, 18 bit + - microchip,mcp3421 + # Microchip differential I2C ADC, 2 Channel, 18 bit + - microchip,mcp3422 + # Microchip differential I2C ADC, 2 Channel, 18 bit + - microchip,mcp3423 + # Microchip differential I2C ADC, 4 Channel, 18 bit + - microchip,mcp3424 + # Microchip differential I2C ADC, 1 Channel, 16 bit + - microchip,mcp3425 + # Microchip differential I2C ADC, 2 Channel, 16 bit + - microchip,mcp3426 + # Microchip differential I2C ADC, 2 Channel, 16 bit + - microchip,mcp3427 + # Microchip differential I2C ADC, 4 Channel, 16 bit + - microchip,mcp3428 # Microchip 7-bit Single I2C Digital POT (5k) - microchip,mcp4017-502 # Microchip 7-bit Single I2C Digital POT (10k) From patchwork Sun Aug 9 11:17:43 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 247565 Delivered-To: patch@linaro.org Received: by 2002:a92:cc90:0:0:0:0:0 with SMTP id x16csp3995560ilo; Sun, 9 Aug 2020 04:20:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwD0esPn5FMxD+BzsA+5W6DFQB3wbcFteoUHNyiAR1lojaYTZYYiw6Us3IbxYjcN6YGfSKj X-Received: by 2002:a17:906:248d:: with SMTP id e13mr16749084ejb.169.1596972006798; Sun, 09 Aug 2020 04:20:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596972006; cv=none; d=google.com; s=arc-20160816; b=EIrDl90TnACD7moqO6puZ7QyagQY1TFMcBm8zNkOwSRAhyO+oafXjXcuiaWEFg7J7/ gPugkRoQl+cAYhmTx/acCisEfH4rHpHYhTggGzzpCZ0DJRCMaYlrePYrKrGpMIDDNYJZ aK9ngqYLE2heSAAxIVcDZ3n9/8OF2YVa7OM2tiChf40Uwu3iqEnKJnHGMvKEapXabPVp BA7RcyUkGV7XMG2UXSLM8Sb5oanP7gyZRPISMpSnFm6NQTwZiLT4WrqH7sr1eTJB1s0R nT2MI+XcDnDCKayR8oGDvH/juIoyZIPaii44zxCFmsph5hQsg2lBWavyHWLwIv/S/bPH TuoA== 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=mucf3DwvBpfy1t+GiE24Juw7BnqCwbndvq2LpTNkKRY=; b=J14P+zVtQstfRQEpuIhM52fcvktNIm6DiVz9FxZzMxU2k7TDE3JS088nkYdXXMqygG BbEDv6a+1x9o/dJm9aMbJigWBt0JyKeGoRJFFXMpxavk60GD1nCT0zQVOPcvt4e5sbYc QGvHjdv4abrfyEKy6DAQJE9B9Gg2g3N+Vbkg7DfvGXQ/kSeJEDHt8zC9huloTgsb2AWx xPBYk9WnsZUDD7TqIqQ2zk18eiXfqXUfu+p2CwMQ0HX3g8Bv1bN1WNWlV/mG8IZ1Jw5O 4bjX5sAU4pcWxshnWaYsAtmexOX/a8AwxGfZDiDYZ9lwhS05dVKQ7rgB20odilzTIYXG 4Efg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HAs6g7Gq; 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.06; Sun, 09 Aug 2020 04:20:06 -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=HAs6g7Gq; 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 S1726377AbgHILUE (ORCPT + 6 others); Sun, 9 Aug 2020 07:20:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:53962 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726199AbgHILUD (ORCPT ); Sun, 9 Aug 2020 07:20:03 -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 3AA6B20729; Sun, 9 Aug 2020 11:20:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1596972003; bh=WbQLTXNbjRMQftFIIOZ4GiMYlCKeyiFb4uALYzHXB4M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HAs6g7GqIqdYEfCex97mPrbW5xmGnJVKkD1CkghjUUS+uq3KiFfvtLakmdxv/o4D4 cm/RatgTSVNp0oZNCpPW946MkyqdYYGEeV9lmuKn1BcsM+qnGtc+WB/6e4KzgaVbtR PC1/SwQqKYtbyG8AgVZhBsqW5Zd5BDsPIowNxcSk= From: Jonathan Cameron To: linux-iio@vger.kernel.org Cc: Rob Herring , devicetree@vger.kernel.org, Jonathan Cameron , Jan Kiszka Subject: [PATCH 03/13] dt-bindings: iio: adc: ti,adc108s102 yaml conversion Date: Sun, 9 Aug 2020 12:17:43 +0100 Message-Id: <20200809111753.156236-4-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 Very simple conversion of spi device with reference supply. Added the #io-channel-cells property to allow for consumers. Signed-off-by: Jonathan Cameron Cc: Jan Kiszka --- .../bindings/iio/adc/ti,adc108s102.yaml | 47 +++++++++++++++++++ .../bindings/iio/adc/ti-adc108s102.txt | 18 ------- 2 files changed, 47 insertions(+), 18 deletions(-) -- 2.28.0 Reviewed-by: Rob Herring diff --git a/Documentation/devicetree/bindings/iio/adc/ti,adc108s102.yaml b/Documentation/devicetree/bindings/iio/adc/ti,adc108s102.yaml new file mode 100644 index 000000000000..54955f03df93 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/ti,adc108s102.yaml @@ -0,0 +1,47 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/adc/ti,adc108s102.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments ADC108S102 and ADC128S102 + +maintainers: + - Bogdan Pricop + +description: | + Family of 8 channel, 10/12 bit, SPI, single ended ADCs. + +properties: + compatible: + const: + ti,adc108s102 + + reg: true + vref-supply: true + spi-max-frequency: true + "#io-channel-cells": + const: 1 + +required: + - compatible + - reg + - vref-supply + +additionalProperties: false + +examples: + - | + spi { + #address-cells= <1>; + #size-cells = <0>; + + adc@0 { + compatible = "ti,adc108s102"; + reg = <0>; + vref-supply = <&vdd_supply>; + spi-max-frequency = <1000000>; + #io-channel-cells = <1>; + }; + }; +... diff --git a/Documentation/devicetree/bindings/iio/adc/ti-adc108s102.txt b/Documentation/devicetree/bindings/iio/adc/ti-adc108s102.txt deleted file mode 100644 index bbbbb4a9f58f..000000000000 --- a/Documentation/devicetree/bindings/iio/adc/ti-adc108s102.txt +++ /dev/null @@ -1,18 +0,0 @@ -* Texas Instruments' ADC108S102 and ADC128S102 ADC chip - -Required properties: - - compatible: Should be "ti,adc108s102" - - reg: spi chip select number for the device - - vref-supply: The regulator supply for ADC reference voltage - -Recommended properties: - - spi-max-frequency: Definition as per - Documentation/devicetree/bindings/spi/spi-bus.txt - -Example: -adc@0 { - compatible = "ti,adc108s102"; - reg = <0>; - vref-supply = <&vdd_supply>; - spi-max-frequency = <1000000>; -}; From patchwork Sun Aug 9 11:17:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 247566 Delivered-To: patch@linaro.org Received: by 2002:a92:cc90:0:0:0:0:0 with SMTP id x16csp3995567ilo; Sun, 9 Aug 2020 04:20:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy2/Qg/AIJga22XjZz3XiaxytTeDjUjQW8E7hheU4z1QNFLpajqVAYM1OG1YBTCHlfDBICf X-Received: by 2002:a17:906:364e:: with SMTP id r14mr16371783ejb.295.1596972007151; Sun, 09 Aug 2020 04:20:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596972007; cv=none; d=google.com; s=arc-20160816; b=a2KIiszB48PDi8Wn3oxLhWG0mTjRdOB/K6ZSFEUrlqYAzgc3nP7WUraEhXE874Vp2B rjGRrfidCj9BOeEkvPhSlsLJvOa2jaKSlwQ/crWuB8UE3AMILfx4eAqVawHB27zfHFJA cfEV3fNJ0ldrMz83Nba+sh1Tb/+12B3rGfJR+iPbn/mv1I6OejbckE5CFsz6hOoJP8yO T7g6t1k+2r5zKlClrb8z8g4agi6z6Z3RnNQxJUAvn23VqO04XqdiSfTUD+vSiyymD7Q+ pB7XlnBLdWy85wm+F4rFETBaWZvdDv2LF+Tjvvp2xH+TIyU9Nyq8vm/LzcHnBPGiALE7 rgfQ== 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=MKP4z1l758T9bpQkG9pUICmQCx4dvqY5UYVZ2zoXvBc=; b=yFrG8yt5vVS74o9DioRxexjIvPfYszPjkUPlDhxR5ZFfP0Tsycp0H9J5h9tSCJtfDo 8HoPI1FUYhXlN/0V7vZDyP+buf4bTBp00IRjYABQD3QEGZDzTnuowr5fwI871CFU1BqS 9GTgwbBxtKfvKnEuUjNW31hPOH33AzLtgIOYsdbtzRm2afGXhkwIy+tFbvTKPOj60WIk 1AZg/IOlIV955Q8esALkcKtl2NwP4TYBIleI2DjyotwF2GZvmGzcwEwcmK6mXMSE8LMy giU2FQ4wwnanWZY8CtHbLKycfkLc7f0aZ0k3GFakFlfU1OmNepzgdnNbDUNqAOP4mgaN meeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=c9XRpL4i; 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.07; Sun, 09 Aug 2020 04:20:07 -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=c9XRpL4i; 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 S1726199AbgHILUF (ORCPT + 6 others); Sun, 9 Aug 2020 07:20:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:54022 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726350AbgHILUF (ORCPT ); Sun, 9 Aug 2020 07:20:05 -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 A103C20748; Sun, 9 Aug 2020 11:20:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1596972004; bh=fFjRg4u2O6rIsnmb5QeqklxTxGScNwRug1+xq9CT+p0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=c9XRpL4iWTFkrLxl5H//i2fokGeZPU0w1XWxyYUoCgx22XO6pN/NOjoNrxOkbtz7w ty7xAdr5PiWp/Y4WhjqT/LCtXez2KpIY01JVz2hrfMOjyA3HcCwYRJ1BV6Nl5b4pIe 0wDi20TRDL/BttaDA9xEPSFBG6N9AIkuJMF14dD4= From: Jonathan Cameron To: linux-iio@vger.kernel.org Cc: Rob Herring , devicetree@vger.kernel.org, Jonathan Cameron , Michael Hennerich Subject: [PATCH 04/13] dt-bindings: iio: adc: lltc,ltc2497 yaml conversion. Date: Sun, 9 Aug 2020 12:17:44 +0100 Message-Id: <20200809111753.156236-5-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 Very simple binding for this i2c device with a reference supply. Added the #io-channel-cells property to allow for consumers. Signed-off-by: Jonathan Cameron Cc: Michael Hennerich --- .../bindings/iio/adc/lltc,ltc2497.yaml | 44 +++++++++++++++++++ .../devicetree/bindings/iio/adc/ltc2497.txt | 13 ------ 2 files changed, 44 insertions(+), 13 deletions(-) -- 2.28.0 Reviewed-by: Rob Herring diff --git a/Documentation/devicetree/bindings/iio/adc/lltc,ltc2497.yaml b/Documentation/devicetree/bindings/iio/adc/lltc,ltc2497.yaml new file mode 100644 index 000000000000..6a176f551d75 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/lltc,ltc2497.yaml @@ -0,0 +1,44 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/adc/lltc,ltc2497.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Linear Technology / Analog Devices LTC2497 ADC + +maintainers: + - Michael Hennerich + +description: | + 16bit ADC supporting up to 16 single ended or 8 differential inputs. + I2C interface. + +properties: + compatible: + const: + lltc,ltc2497 + + reg: true + vref-supply: true + "#io-channel-cells": + const: 1 + +required: + - compatible + - reg + - vref-supply + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + adc@76 { + compatible = "lltc,ltc2497"; + reg = <0x76>; + vref-supply = <<c2497_reg>; + #io-channel-cells = <1>; + }; + }; +... diff --git a/Documentation/devicetree/bindings/iio/adc/ltc2497.txt b/Documentation/devicetree/bindings/iio/adc/ltc2497.txt deleted file mode 100644 index a237ed99c0d8..000000000000 --- a/Documentation/devicetree/bindings/iio/adc/ltc2497.txt +++ /dev/null @@ -1,13 +0,0 @@ -* Linear Technology / Analog Devices LTC2497 ADC - -Required properties: - - compatible: Must be "lltc,ltc2497" - - reg: Must contain the ADC I2C address - - vref-supply: The regulator supply for ADC reference voltage - -Example: - ltc2497: adc@76 { - compatible = "lltc,ltc2497"; - reg = <0x76>; - vref-supply = <<c2497_reg>; - }; 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>; -}; From patchwork Sun Aug 9 11:17:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 247568 Delivered-To: patch@linaro.org Received: by 2002:a92:cc90:0:0:0:0:0 with SMTP id x16csp3995590ilo; Sun, 9 Aug 2020 04:20:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxm1hOqTSVbjwAWEsEuXXZtd3TdhrKnmDZrbvMe/Ke6WFeWo1YrCYdTbuzHrtKDg7nyMVJT X-Received: by 2002:a50:af86:: with SMTP id h6mr17141209edd.132.1596972009543; Sun, 09 Aug 2020 04:20:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596972009; cv=none; d=google.com; s=arc-20160816; b=soA0Qokf9YH3u0bl4GDuYX8aaKtEBDCqlJxl1mMUZQN/NL0OXJR/ivFSgGd3YIy1o3 eaJxBbySypzTo/wDpohXetxAL/WOtf4y1xKtzxjpM2MkVIMTZXgbY588rukKuEGrIoKA vvfblFPQPMi5SWU8LOt+VYxmM8St4R/4o8GTUcBonqb6eY6IkIUfTF1+HNUmMS1mWMSe pgfDIvhd7tv66rvhvBoflM74ZjdhlyHnZ0gQlhyTDdKqdEJiuqysgH2Nzec0/bkbUtvg i45pdTHc+xiEzrCwfYrazKdNQf0hTwd+dgNnbbktEEqLOmFcts5yRRvI1v6RiNOGSi4c 0j1A== 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=OmQdoQh3u82+5qNgWHbOzRY47+jCgFQX1+dvJNO1dK4=; b=OdUSW2yNoqVnmsB4dixhQ2HGjZfd0gBI7ENuKTcebe7mOq5VuEKtMj4F0UXfdaGANg m2qf5+27uvNjxV5TG/Tq6uyKDZriEZFY1BqRZiCtCmQGv7sNUtBXtVHB+MZNvMMF1H/z Qlq/GSdoQUwxxN0f5hywnGhiVjiSd8xk1oV41A049JZ5XpL3Zp/oQgFL4wNRRucHju/B xBcBLyhRip41xUTdGNEFH8eRdPAhtHDSi4AzpBrFonLvHsKThg9/qr03HQvxFZcfwI+F QIpVfo2E24Iv6hX1QIdXZUAbxAB875YIhWg9NuQehJdLsrzbFvPBTvRHiAHs1XcA6hPK XGvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=cVPjdETg; 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.09; Sun, 09 Aug 2020 04:20:09 -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=cVPjdETg; 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 S1726392AbgHILUI (ORCPT + 6 others); Sun, 9 Aug 2020 07:20:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:54092 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726350AbgHILUI (ORCPT ); Sun, 9 Aug 2020 07:20:08 -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 7D8F92078D; Sun, 9 Aug 2020 11:20:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1596972007; bh=C27VUfhRi25GeeObvS3kCP/nI3TO5p769C0N1WNJtZ4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cVPjdETgavHuC98ssCQ4WZMTLwtRabgITT0pBO1zV2ZEuC5m7t4AyMbMYxLb4uFq7 3BOFHF0fgUjbKKww8pCl/1PtjsGCXFutxkFgJhhD90xQiAES4ZX4/Q7PfiE+oAyTGh trgXHtCnxN+tCx4/UDML650r8oNeZZeqlxlJeiNE= From: Jonathan Cameron To: linux-iio@vger.kernel.org Cc: Rob Herring , devicetree@vger.kernel.org, Jonathan Cameron , Akinobu Mita Subject: [PATCH 06/13] dt-bindings: iio: adc: ti,adc0832 yaml conversion. Date: Sun, 9 Aug 2020 12:17:46 +0100 Message-Id: <20200809111753.156236-7-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 binding conversion of this SPI ADC binding, with reference voltage. Added the optional property #io-channel-cells to allow for consumers of channels if that makes sense for a given board. Signed-off-by: Jonathan Cameron Cc: Akinobu Mita --- .../bindings/iio/adc/ti,adc0832.yaml | 56 +++++++++++++++++++ .../bindings/iio/adc/ti-adc0832.txt | 19 ------- 2 files changed, 56 insertions(+), 19 deletions(-) -- 2.28.0 Reviewed-by: Rob Herring diff --git a/Documentation/devicetree/bindings/iio/adc/ti,adc0832.yaml b/Documentation/devicetree/bindings/iio/adc/ti,adc0832.yaml new file mode 100644 index 000000000000..f5a923cc847f --- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/ti,adc0832.yaml @@ -0,0 +1,56 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/adc/ti,adc0832.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments ADC0832 and similar ADCs + +maintainers: + - Akinobu Mita + +description: | + 8 bit ADCs with 1, 2, 4 or 8 inputs for single ended or differential + conversion. + +properties: + compatible: + enum: + - ti,adc0831 + - ti,adc0832 + - ti,adc0834 + - ti,adc0838 + + reg: + maxItems: 1 + + spi-max-frequency: true + + vref-supply: + description: External reference, needed to establish input scaling + + "#io-channel-cells": + const: 1 + +required: + - compatible + - reg + - vref-supply + +additionalProperties: false + +examples: + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + + adc@0 { + compatible = "ti,adc0832"; + reg = <0>; + vref-supply = <&vdd_supply>; + spi-max-frequency = <200000>; + #io-channel-cells = <1>; + }; + }; +... diff --git a/Documentation/devicetree/bindings/iio/adc/ti-adc0832.txt b/Documentation/devicetree/bindings/iio/adc/ti-adc0832.txt deleted file mode 100644 index d91130587d01..000000000000 --- a/Documentation/devicetree/bindings/iio/adc/ti-adc0832.txt +++ /dev/null @@ -1,19 +0,0 @@ -* Texas Instruments' ADC0831/ADC0832/ADC0832/ADC0838 - -Required properties: - - compatible: Should be one of - * "ti,adc0831" - * "ti,adc0832" - * "ti,adc0834" - * "ti,adc0838" - - reg: spi chip select number for the device - - vref-supply: The regulator supply for ADC reference voltage - - spi-max-frequency: Max SPI frequency to use (< 400000) - -Example: -adc@0 { - compatible = "ti,adc0832"; - reg = <0>; - vref-supply = <&vdd_supply>; - spi-max-frequency = <200000>; -}; From patchwork Sun Aug 9 11:17:47 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 247569 Delivered-To: patch@linaro.org Received: by 2002:a92:cc90:0:0:0:0:0 with SMTP id x16csp3995616ilo; Sun, 9 Aug 2020 04:20:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyhmaGqASMCtDJ5KhjVqmyw64vaMpwqb5puFhCtk2wshsEkBiJCG2jNe7rV2zrIrhhmvcH7 X-Received: by 2002:a50:f311:: with SMTP id p17mr15049691edm.37.1596972011255; Sun, 09 Aug 2020 04:20:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596972011; cv=none; d=google.com; s=arc-20160816; b=fnGnD39Sk+nyZ5ACYLDgqQ7bzGkDN81NC52ObrfHEUn6j3sk2+YwOGmgtmEmMyDyc2 QVOIGXcQsF+v6jYjP57c0EUZOu1rMFw+g5qhMXc5yQvjNyUSCSiW2mKGQsYTYTeDHxbH gGRiug4qAzl/KBRWSCl+o/ZPzeP8+bc73LgwP1D88UZXppjR18k6Ndfg4z5K6H2jz1rk TT0V5zSOgQcbyh5o06olQzzXzTGswn+LjjDxmyA1QMPN9E3NPfrs/eF/tyB3TTgfLadI /+FyoJIgYNmyCE0VFAonkGNBQqc6RKZOE8btT7RPKXKzVF3Dg26r8Kld1ju9J5mEhAc6 DhCw== 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=5iLHMqIouuNm52b/131lk19NKtVdV8q5FJZIJllLq8k=; b=mfDg1lSgvZLWAM8d+DTwDr0R3rnOxl83aurKnbP8Xg5NolvC6Bz1/iLANJg/SIDAyV FbgOudWefTqQzz3J6KvO+6Z6LGUa7O3D1N+PCCfwoGC3hO50AqBDzBFXkuxSdh5eK3Q+ oBj367LQoIL55lpWMVMOrBSzLk6L+O6ExCIBg8ygQgmiZBg+FRnqrYtEfsrRndazi3vI fnGsWIZUQPE6Ca/Q33SHecTyU6lIJUDAlPmp3axi/2owuU2uZUkZ68E+npFETDdoREwM 0oP3KqEAzTMtwWzT3BlPIvdMQyIw0c1NPGH0SamGEwnsCXUX4/qBo08umnP3GbgpdbTe kILw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=fYBcKbNz; 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.10; Sun, 09 Aug 2020 04:20:11 -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=fYBcKbNz; 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 S1726396AbgHILUK (ORCPT + 6 others); Sun, 9 Aug 2020 07:20:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:54124 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726350AbgHILUJ (ORCPT ); Sun, 9 Aug 2020 07:20:09 -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 E03D92076B; Sun, 9 Aug 2020 11:20:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1596972008; bh=LQa3oA0XrV5L39YgAkj15csoBQWKNcLKu0FArIRY1sM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fYBcKbNzCoSIUxXANAWX9jlER0lfH7tIDfkuI90j9KLk0yLIMb+Imk7f3n706bfvE bwTy73OQZv/iRK6M9wJg3FSEhxg5e4eHlj/A5sExUMnbwvHqt7Y7kIaWisUg86E7md XamfpOIZ21guDtMZPyN39f+i/CTWI2qR8OOm1C2I= From: Jonathan Cameron To: linux-iio@vger.kernel.org Cc: Rob Herring , devicetree@vger.kernel.org, Jonathan Cameron , =?utf-8?q?M=C3=A5rten_Lindahl?= Subject: [PATCH 07/13] dt-bindings: iio: adc: ti,adc084s021 yaml conversion Date: Sun, 9 Aug 2020 12:17:47 +0100 Message-Id: <20200809111753.156236-8-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. Added the #io-channel-cells optional property to allow for consumer bindings if appropriate on a given board. Signed-off-by: Jonathan Cameron Cc: Mårten Lindahl --- .../bindings/iio/adc/ti,adc084s021.yaml | 58 +++++++++++++++++++ .../bindings/iio/adc/ti-adc084s021.txt | 19 ------ 2 files changed, 58 insertions(+), 19 deletions(-) -- 2.28.0 Reviewed-by: Rob Herring diff --git a/Documentation/devicetree/bindings/iio/adc/ti,adc084s021.yaml b/Documentation/devicetree/bindings/iio/adc/ti,adc084s021.yaml new file mode 100644 index 000000000000..1a113b30a414 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/ti,adc084s021.yaml @@ -0,0 +1,58 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/adc/ti,adc084s021.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments ADC084S021 ADC + +maintainers: + - Mårten Lindahl + +description: | + 8 bit ADC with 4 channels + +properties: + compatible: + const: ti,adc084s021 + + reg: + maxItems: 1 + + spi-max-frequency: true + + vref-supply: + description: External reference, needed to establish input scaling + + spi-cpol: true + spi-cpha: true + + "#io-channel-cells": + const: 1 + +required: + - compatible + - reg + - vref-supply + - spi-cpol + - spi-cpha + +additionalProperties: false + +examples: + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + + adc@0 { + compatible = "ti,adc084s021"; + reg = <0>; + vref-supply = <&adc_vref>; + spi-cpol; + spi-cpha; + spi-max-frequency = <16000000>; + #io-channel-cells = <1>; + }; + }; +... diff --git a/Documentation/devicetree/bindings/iio/adc/ti-adc084s021.txt b/Documentation/devicetree/bindings/iio/adc/ti-adc084s021.txt deleted file mode 100644 index 4259e50620bc..000000000000 --- a/Documentation/devicetree/bindings/iio/adc/ti-adc084s021.txt +++ /dev/null @@ -1,19 +0,0 @@ -* Texas Instruments' ADC084S021 - -Required properties: - - compatible : Must be "ti,adc084s021" - - reg : SPI chip select number for the device - - vref-supply : The regulator supply for ADC reference voltage - - spi-cpol : Per spi-bus bindings - - spi-cpha : Per spi-bus bindings - - spi-max-frequency : Per spi-bus bindings - -Example: -adc@0 { - compatible = "ti,adc084s021"; - reg = <0>; - vref-supply = <&adc_vref>; - spi-cpol; - spi-cpha; - spi-max-frequency = <16000000>; -}; From patchwork Sun Aug 9 11:17: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: 247570 Delivered-To: patch@linaro.org Received: by 2002:a92:cc90:0:0:0:0:0 with SMTP id x16csp3995626ilo; Sun, 9 Aug 2020 04:20:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzRlX6jjSFx35wYqrM4x+/Oxi5wBzQE66oqJlqOApY7yOFpemQF/9gixkU8Zf0b/kPwxT3W X-Received: by 2002:a05:6402:22c8:: with SMTP id dm8mr17215735edb.41.1596972012337; Sun, 09 Aug 2020 04:20:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596972012; cv=none; d=google.com; s=arc-20160816; b=mx7Dc0JR7U4AlQJLK2OiM+3TQlCcubG+MGxA+XGKUCaSC0n82CdwIvmnDB7Je2A/sL 6pcr7I1Dcg7febDCTLObvHNYC5qVz0KOY4MFrHaFf7O31gyY6dDgdPCTkcr6FxpOlmrY 5iFEBkC6/cYXN+3xck/ztwwN2IBXPOmstMDuX4uhN/MORS3WMfyuqcoEvuf/FiqhvCBR dtVYkuvYMpxegOX2SGmHUfvBsI0UAu/Yj/nvV3aoRmfU52cB5wwXphhxpF3PFhb7QuZz nXd2R+tfRA261Eu2vCIjmVBFzg0Fmhf4Vly9W2QsRGLPpUGqiHbfE8Fnsb/6ExzJz+Rs 2i6w== 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=uWwm3CQFe/vyVy9IyZ/IHNBs66HzVUeSySF6+x2Iaik=; b=k0iF7NXK/3M2N5TrKMr87SzSwPe4cj4InAnRSyuo62cANFJdDrzjw21Y/HI9ULMCx7 2S6lt7O8EuTa41R2Q0UpZ9r8gElEWBqagsWHvfy03ehAm3vf/GLhBc3Xb1uk4yB92GaB 6bjo3Xn/DGoG3B4oVQdqGQ1ALW5V4yvbxWW+rFUuyr0OC1vhCbW4BqnNMl1HeqA6zDy+ 8Wl/FRUUMD/1wcb7wtDEwyZlg4Oytew6cdZIxrFGMBz/dU3sS/j2Lf2vUAVAsIr/B8RK koSozZie0gVLHlGucwnqaU2391tSebWGVEEuh0OI8sxXm59c7dBSDjeLZm94VAXXOc1U 1tzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ckN5hj2N; 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.12; Sun, 09 Aug 2020 04:20:12 -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=ckN5hj2N; 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 S1726398AbgHILUL (ORCPT + 6 others); Sun, 9 Aug 2020 07:20:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:54152 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726350AbgHILUL (ORCPT ); Sun, 9 Aug 2020 07:20:11 -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 5692620772; Sun, 9 Aug 2020 11:20:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1596972010; bh=CAzT3HPKe2SQrpGNfbhdhwDB86fP9HyD4MBfA8HPvVk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ckN5hj2NGVUyDXDC6Mm7Q31owdOSqoRbYN2wDANNGS0BNrdy0LTvf6uBE5MuE1v45 pjfeUtyerLw1OLM0g+Sr4Gs5xmMhQ9S9kkh0kkxp3hJeaERFt7mscIPEV5tdgd0DKC JD+yr8S6+V79vwJAqTU/WKLwxgf3VBlJPHvOFPeU= From: Jonathan Cameron To: linux-iio@vger.kernel.org Cc: Rob Herring , devicetree@vger.kernel.org, Jonathan Cameron , Akinobu Mita Subject: [PATCH 08/13] dt-bindings: iio: adc: ti,adc12138 yaml conversion. Date: Sun, 9 Aug 2020 12:17:48 +0100 Message-Id: <20200809111753.156236-9-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 binding conversion. Only addition was #io-channel-cells to allow for potential consumers of the channels on this device. Signed-off-by: Jonathan Cameron Cc: Akinobu Mita --- .../bindings/iio/adc/ti,adc12138.yaml | 85 +++++++++++++++++++ .../bindings/iio/adc/ti-adc12138.txt | 37 -------- 2 files changed, 85 insertions(+), 37 deletions(-) -- 2.28.0 diff --git a/Documentation/devicetree/bindings/iio/adc/ti,adc12138.yaml b/Documentation/devicetree/bindings/iio/adc/ti,adc12138.yaml new file mode 100644 index 000000000000..3e8c43aa8ef3 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/ti,adc12138.yaml @@ -0,0 +1,85 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/adc/ti,adc12138.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments ADC12138 and similar self-calibrating ADCs + +maintainers: + - Akinobu Mita + +description: | + 13 bit ADCs with 1, 2 or 8 inputs and self calibrating circuitry to + correct for linearity, zero and full scale errors. + +properties: + compatible: + enum: + - ti,adc12130 + - ti,adc12132 + - ti,adc12138 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + description: End of Conversion (EOC) interrupt + + clocks: + maxItems: 1 + description: Conversion clock input. + + spi-max-frequency: true + + vref-p-supply: + description: The regulator supply for positive analog voltage reference + + vref-n-suppy: + description: | + The regulator supply for negative analog voltage reference + (Note that this must not go below GND or exceed vref-p) + If not specified, this is assumed to be analog ground. + + ti,acquisition-time: + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [ 6, 10, 18, 34] + description: | + The number of conversion clock periods for the S/H's acquisition time. + For high source impedances, this value can be increased to 18 or 34. + For less ADC accuracy and/or slower CCLK frequencies this value may be + decreased to 6. See section 6.0 INPUT SOURCE RESISTANCE in the + datasheet for details. + + "#io-channel-cells": + const: 1 + +required: + - compatible + - reg + - interrupts + - clocks + - vref-p-supply + +additionalProperties: false + +examples: + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + + adc@0 { + compatible = "ti,adc12138"; + reg = <0>; + interrupts = <28 IRQ_TYPE_EDGE_RISING>; + interrupt-parent = <&gpio1>; + clocks = <&cclk>; + vref-p-supply = <&ldo4_reg>; + spi-max-frequency = <5000000>; + ti,acquisition-time = <6>; + #io-channel-cells = <1>; + }; + }; +... diff --git a/Documentation/devicetree/bindings/iio/adc/ti-adc12138.txt b/Documentation/devicetree/bindings/iio/adc/ti-adc12138.txt deleted file mode 100644 index 049a1d36f013..000000000000 --- a/Documentation/devicetree/bindings/iio/adc/ti-adc12138.txt +++ /dev/null @@ -1,37 +0,0 @@ -* Texas Instruments' ADC12130/ADC12132/ADC12138 - -Required properties: - - compatible: Should be one of - * "ti,adc12130" - * "ti,adc12132" - * "ti,adc12138" - - reg: SPI chip select number for the device - - interrupts: Should contain interrupt for EOC (end of conversion) - - clocks: phandle to conversion clock input - - spi-max-frequency: Definision as per - Documentation/devicetree/bindings/spi/spi-bus.txt - - vref-p-supply: The regulator supply for positive analog voltage reference - -Optional properties: - - vref-n-supply: The regulator supply for negative analog voltage reference - (Note that this must not go below GND or exceed vref-p) - If not specified, this is assumed to be analog ground. - - ti,acquisition-time: The number of conversion clock periods for the S/H's - acquisition time. Should be one of 6, 10, 18, 34. If not specified, - default value of 10 is used. - For high source impedances, this value can be increased to 18 or 34. - For less ADC accuracy and/or slower CCLK frequencies this value may be - decreased to 6. See section 6.0 INPUT SOURCE RESISTANCE in the - datasheet for details. - -Example: -adc@0 { - compatible = "ti,adc12138"; - reg = <0>; - interrupts = <28 IRQ_TYPE_EDGE_RISING>; - interrupt-parent = <&gpio1>; - clocks = <&cclk>; - vref-p-supply = <&ldo4_reg>; - spi-max-frequency = <5000000>; - ti,acquisition-time = <6>; -}; From patchwork Sun Aug 9 11:17: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: 247571 Delivered-To: patch@linaro.org Received: by 2002:a92:cc90:0:0:0:0:0 with SMTP id x16csp3995636ilo; Sun, 9 Aug 2020 04:20:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzzl5QvEvphItThMQrYOhvAZq7h5W3SBzCq3d//ixJhcM8SIK4ae8FVXseP9PJ9nXBSUzsl X-Received: by 2002:a17:906:2e8d:: with SMTP id o13mr17132335eji.279.1596972013455; Sun, 09 Aug 2020 04:20:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596972013; cv=none; d=google.com; s=arc-20160816; b=Og/1WfKtQwKjmETovr93YukKiOiq4Sc6wxWUVMa/ShhYe9Py33RaiqK9L+peskcP5U 10a33WsXl1HCJ7JOkvqNDk4dAsKffxfZUAfmjVSvFn3ARw+ofIARVXj+vYgYsHA8WgWU TFGz3RPMPAfSQQ0W83Fg7rzjcUdckW8UW/41zQ4/6EcutUeWNXUnafnRRpB6GF73eery H5vQlkaEHJl7EUZAN1s9/CKqc/SlRA49stQjBuWGZPEu1YYlbdEycdZLGSwDqd+Aw7pY Pr7I231bysCXOblUoXjNbwFDplluVfVr2QNKp8QyXrD4otvyFb7qF0efrf69xhquQlKR 0DiA== 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=j4a8xYHOirard6lgEcv9hov/qXTBYHo97LMfOe8frZg=; b=osHL8EFMX9miTa8FU5vnGlA0r8lEQA+gJ1kER+/ieFo6R9HpEZv+LKDXBlSFPQwur6 ft476HTNv/Qu85HO2Y8quAD9APlpVLF/Ml7QSz0+ZZx7eA/p8FEwhcDm263tdNgv5C0H 5UI6hKZzn9KZYiZTocqCO1HiNHxaC3uXThZa7po0rW4URloyQBAWruGya9quNOHacFba 6p59e8sr/Bn358mkIQuNxnSacLT0sjaDvg8Fv8MBDsOuGVaLC0BIbUloy1CPLtkASECw uBiBMBuk4zW1AD1GIHXvy5SA/wbGrG9ckgQwCnQn2lS1ZWhgGmeTaMDyhLBh07ousFc7 g/fA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0CUMNyqO; 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.13; Sun, 09 Aug 2020 04:20: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=0CUMNyqO; 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 S1726401AbgHILUM (ORCPT + 6 others); Sun, 9 Aug 2020 07:20:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:54188 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726350AbgHILUM (ORCPT ); Sun, 9 Aug 2020 07:20:12 -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 BBBB52076C; Sun, 9 Aug 2020 11:20:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1596972011; bh=qomiOKxTUeSfn56banZXI2i5A5k2DuDKDauQW496Q2E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0CUMNyqOnUDYMkuAZ4WYvIO/iea7VTrcoIOimCRhulp1UdOR2rBx6yWUld+rCwji6 YeYo1ScbyI8/Ict68IKTeokOSsZ4ROPw/C/xO/YEbl9ZEgYpemUF7SJJPFhnJ1NuvI p/rZ15RIp5qn7ViDvwtSvpRw5UHSlD7stlP8SdN4= From: Jonathan Cameron To: linux-iio@vger.kernel.org Cc: Rob Herring , devicetree@vger.kernel.org, Jonathan Cameron , Angelo Compagnucci Subject: [PATCH 09/13] dt-bindings: iio: adc: ti, adc128s052 yaml conversion. Date: Sun, 9 Aug 2020 12:17:49 +0100 Message-Id: <20200809111753.156236-10-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 binding. Only addition to txt version is as a provider of channels to other devices using the consumer binding. Signed-off-by: Jonathan Cameron Cc: Angelo Compagnucci --- .../bindings/iio/adc/ti,adc128s052.yaml | 59 +++++++++++++++++++ .../bindings/iio/adc/ti-adc128s052.txt | 25 -------- 2 files changed, 59 insertions(+), 25 deletions(-) -- 2.28.0 Reviewed-by: Rob Herring diff --git a/Documentation/devicetree/bindings/iio/adc/ti,adc128s052.yaml b/Documentation/devicetree/bindings/iio/adc/ti,adc128s052.yaml new file mode 100644 index 000000000000..d54a0183f024 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/ti,adc128s052.yaml @@ -0,0 +1,59 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/adc/ti,adc128s052.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments ADC128S052 and similar ADCs + +maintainers: + - Angelo Compagnucci + +description: | + Family of 12 bit SPI ADCs with 2 to 8 channels with a range of different + target sample rates. + +properties: + compatible: + enum: + - ti,adc122s021 + - ti,adc122s051 + - ti,adc122s101 + - ti,adc124s021 + - ti,adc124s051 + - ti,adc124s101 + - ti,adc128s052 + + reg: + maxItems: 1 + + spi-max-frequency: true + + vref-supply: true + + "#io-channel-cells": + const: 1 + +required: + - compatible + - reg + - vref-supply + +additionalProperties: false + +examples: + - | + #include + spi { + #address-cells = <1>; + #size-cells = <0>; + + adc@0 { + compatible = "ti,adc128s052"; + reg = <0>; + vref-supply = <&vdd_supply>; + spi-max-frequency = <1000000>; + #io-channel-cells = <1>; + }; + }; +... diff --git a/Documentation/devicetree/bindings/iio/adc/ti-adc128s052.txt b/Documentation/devicetree/bindings/iio/adc/ti-adc128s052.txt deleted file mode 100644 index c07ce1a3f5c4..000000000000 --- a/Documentation/devicetree/bindings/iio/adc/ti-adc128s052.txt +++ /dev/null @@ -1,25 +0,0 @@ -* Texas Instruments' ADC128S052, ADC122S021 and ADC124S021 ADC chip - -Required properties: - - compatible: Should be one of: - - "ti,adc128s052" - - "ti,adc122s021" - - "ti,adc122s051" - - "ti,adc122s101" - - "ti,adc124s021" - - "ti,adc124s051" - - "ti,adc124s101" - - reg: spi chip select number for the device - - vref-supply: The regulator supply for ADC reference voltage - -Recommended properties: - - spi-max-frequency: Definition as per - Documentation/devicetree/bindings/spi/spi-bus.txt - -Example: -adc@0 { - compatible = "ti,adc128s052"; - reg = <0>; - vref-supply = <&vdd_supply>; - spi-max-frequency = <1000000>; -}; From patchwork Sun Aug 9 11:17:50 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 247572 Delivered-To: patch@linaro.org Received: by 2002:a92:cc90:0:0:0:0:0 with SMTP id x16csp3995650ilo; Sun, 9 Aug 2020 04:20:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzGDK1noQRK8rlGcH8E2zp5p53jBiNIDmTYVZ0NJrfSjZ3VlCUjD86abzji/wRsN+yBG4lv X-Received: by 2002:a17:906:ccda:: with SMTP id ot26mr2095805ejb.389.1596972015378; Sun, 09 Aug 2020 04:20:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596972015; cv=none; d=google.com; s=arc-20160816; b=JRhKpBUMFAJ9pAaAfwR7TlRj/HcYS+cWh/1VLY3qqDUqlH91pDcaQjmBi0fqnnEzoL 5kq0Romy92Q6lNUTorG9OI/ziCr1U81Q1F3T/HLvQSeqR/2ILBZTqDGrfqd5RRByAGMm 963pp6oe9+i0m9Fq3DT0d/e9Vn3pA4an73t9wI9GezV1dD+tI0VAYYGOTJyMNRrtoPiG 2aen+B1pxWhBoiW1xcMAFXz14DcjRkgH42ofgerPDhTwBXkzjZeYKoFyjW8LZJ/2U0a6 62pd4J0CBQfjTyBX1mmNJh0BNbisMwQNg9LustA077CBO4UPJG/P5qCvTGjXk0eALPbK rJKw== 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=ER9FHpGk/hzKS3soQzyeiijJFiengOPAlsgY/L8/QFs=; b=BowdYLrRpUT8bIkLaiPApTDSbr0QUdMasW+QKk4k9oTaRSkmNr/hCADT6w6BIFINvz Lf37r+ZkuqA2wzVAZPFuAccUzYlVvjJyiCZmQolbRCbCIwQSYy+uoWFsWZ++3q2SWpLq 7H0tXVzQaF55t7Y4sQ7AN+bHEm7MfIsWDwG46dMKaTm1Pd7iY/7TPtqYVw0zrYVTSuWN lbO5y+5H+P0ysVa1p+i+xpIKH89zS0v591Pz/P1vniKj1EL3ElHjICODUevxkv0mP8yn YRMIxAmZjKd5UmkN1tTptAqZecifkO8tkSWUoZQQ+jav5M8zcKiuRgcP45iCsSU3UVBr gxlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=1CjXpeF0; 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.15; Sun, 09 Aug 2020 04:20:15 -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=1CjXpeF0; 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 S1726402AbgHILUO (ORCPT + 6 others); Sun, 9 Aug 2020 07:20:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:54212 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726350AbgHILUN (ORCPT ); Sun, 9 Aug 2020 07:20:13 -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 2A92020748; Sun, 9 Aug 2020 11:20:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1596972013; bh=zX+Eyv6yclmWuiZrXaWJbTjM36u3RWP0l5Yzy5J3K3E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1CjXpeF0fDM6+j2A0utWKWNhbJqWc5Yt8R77HGnUYw6y2ikTv3w1e58PdQbqa2R7M H2z7m4RHktVGyOYfHP6QZ+g9JtoXUiHy9lueYyeamwuPwoP9zwPrKhlxbKzMRB7lS2 KR/2c6nQvcvpi5YDZdtjbN4W8Jv/EjOhXYkkYBOE= From: Jonathan Cameron To: linux-iio@vger.kernel.org Cc: Rob Herring , devicetree@vger.kernel.org, Jonathan Cameron , David Lechner Subject: [PATCH 10/13] dt-bindings: iio: adc: ti,ads7950 binding conversion Date: Sun, 9 Aug 2020 12:17:50 +0100 Message-Id: <20200809111753.156236-11-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. This binding already had the that is necessary, I'm happy to leave it as previously documented. Signed-off-by: Jonathan Cameron Cc: David Lechner --- .../bindings/iio/adc/ti,ads7950.yaml | 64 +++++++++++++++++++ .../bindings/iio/adc/ti-ads7950.txt | 23 ------- 2 files changed, 64 insertions(+), 23 deletions(-) -- 2.28.0 diff --git a/Documentation/devicetree/bindings/iio/adc/ti,ads7950.yaml b/Documentation/devicetree/bindings/iio/adc/ti,ads7950.yaml new file mode 100644 index 000000000000..a759d9064718 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/ti,ads7950.yaml @@ -0,0 +1,64 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/adc/ti,ads7950.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments ADS7950 and similar ADCs + +maintainers: + - David Lechner + +description: | + Family of 4-16 channel, 8-12 bit ADCs with SPI interface. + +properties: + compatible: + enum: + - ti,ads7950 + - ti,ads7951 + - ti,ads7952 + - ti,ads7953 + - ti,ads7954 + - ti,ads7955 + - ti,ads7956 + - ti,ads7957 + - ti,ads7958 + - ti,ads7959 + - ti,ads7960 + - ti,ads7961 + + reg: + maxItems: 1 + + spi-max-frequency: true + + vref-supply: + description: Supply the 2.5V or 5V reference voltage + + "#io-channel-cells": + const: 1 + +required: + - compatible + - reg + - vref-supply + - "#io-channel-cells" + +additionalProperties: false + +examples: + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + + adc@0 { + compatible = "ti,ads7957"; + reg = <0>; + vref-supply = <&refin_supply>; + spi-max-frequency = <10000000>; + #io-channel-cells = <1>; + }; + }; +... diff --git a/Documentation/devicetree/bindings/iio/adc/ti-ads7950.txt b/Documentation/devicetree/bindings/iio/adc/ti-ads7950.txt deleted file mode 100644 index e77a6f7e1001..000000000000 --- a/Documentation/devicetree/bindings/iio/adc/ti-ads7950.txt +++ /dev/null @@ -1,23 +0,0 @@ -* Texas Instruments ADS7950 family of A/DC chips - -Required properties: - - compatible: Must be one of "ti,ads7950", "ti,ads7951", "ti,ads7952", - "ti,ads7953", "ti,ads7954", "ti,ads7955", "ti,ads7956", "ti,ads7957", - "ti,ads7958", "ti,ads7959", "ti,ads7960", or "ti,ads7961" - - reg: SPI chip select number for the device - - #io-channel-cells: Must be 1 as per ../iio-bindings.txt - - vref-supply: phandle to a regulator node that supplies the 2.5V or 5V - reference voltage - -Recommended properties: - - spi-max-frequency: Definition as per - Documentation/devicetree/bindings/spi/spi-bus.txt - -Example: -adc@0 { - compatible = "ti,ads7957"; - reg = <0>; - #io-channel-cells = <1>; - vref-supply = <&refin_supply>; - spi-max-frequency = <10000000>; -}; From patchwork Sun Aug 9 11:17:51 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 247573 Delivered-To: patch@linaro.org Received: by 2002:a92:cc90:0:0:0:0:0 with SMTP id x16csp3995658ilo; Sun, 9 Aug 2020 04:20:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzbZGR00b6w2mAY6I3xiWBHtHlJeSZkQtM5j2bEY/Cro1pt4QYtjI9RtZSicLnfXb+qIlr6 X-Received: by 2002:a05:6402:847:: with SMTP id b7mr17213784edz.39.1596972016157; Sun, 09 Aug 2020 04:20:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596972016; cv=none; d=google.com; s=arc-20160816; b=pRXhMLdF6xRmEXvdjBBm1c5qXhUgvSM93LKilMmRz/cHV+PQR5Qt/OTCdzsq21+1Bp TAWO0jV8oR/nSAEMgthhzsvB6RtaScUi8bzTx8ceVrfLTSnNk3xtk0pJE0YRAIL/gsXW UR07bTaGKxESJSoHMOFTyVNIIWgEQhl48a9g0mvrt14ryHM98N4uL7KIWIJvowPLlwwT fKZGjvo5wgiW1p0FdlKKh+nZnJWMp7Yp7z1mguGvwylURzqAdE3BCG/M1cv+UpbSP7Nr wICOxBeN9XFGFq/KbUWLhS0hGGhuuahQptDVRMI3qNJXUdled5f6K5J+vCUnbb50rXQY dynQ== 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=UG3Wjvc8q6E+xGxcXAfoJv2fVnAdg9hE5cmb8bOg4HA=; b=ck+aJ/P8QSEq8Z0vj2EEGa/DX7H1J/EH03Gyo4dY1vT4yrsdBmOuXUCi8g+SwEQg1C yLjLSS2ChwWxC7EOcmnnD4BOfddNj+8C/LWGEqJTfa5erkYN+7k5K0F7PEJ3j46yK/jB lEcmttfFKs6YFFHqMR29nu78zpXklxEHcKCTBCdjvkWy+pCX2rh3YpXPdDo8+gRudcW4 TZ6IDupDNhoieMzJVYW3eBinsyKk/wmICUXJU0njPRhplolD0Lu3E082NJx8US7kb7hO Y58oIBi/z7kCIlCqtimMBj8Hcj4vL9MDiTbZNv4yZjKID2wqUj3aW/AzJhzkKEkOR0V0 rJLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=rxsSWMqz; 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.16; Sun, 09 Aug 2020 04:20:16 -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=rxsSWMqz; 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 S1726412AbgHILUP (ORCPT + 6 others); Sun, 9 Aug 2020 07:20:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:54236 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726350AbgHILUP (ORCPT ); Sun, 9 Aug 2020 07:20:15 -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 902162065D; Sun, 9 Aug 2020 11:20:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1596972014; bh=U4FgdftWxD8YI33Nce7CbbUhkmxE3fQ82dNpmo1uPX4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rxsSWMqzQmj4ZZ/g8HUV2hlFpM3oH1237R5b3hMMD3p+EGQwxdo/L7dYdCIsMVpGF Qgk6ILEBO1ZJzJJFqAkd2oGShr+VA99qjCqoZddTE2H0wKfjXDDMxZSskcs4SUM3/P aTcTNUxwFotmKYv2J4tRwzUhyh0sp4kMbcWzH79Q= From: Jonathan Cameron To: linux-iio@vger.kernel.org Cc: Rob Herring , devicetree@vger.kernel.org, Jonathan Cameron Subject: [PATCH 11/13] dt-bindings: iio: adc: ti,ads8344 yaml conversion Date: Sun, 9 Aug 2020 12:17:51 +0100 Message-Id: <20200809111753.156236-12-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 binding so easy to convert. Signed-off-by: Jonathan Cameron --- .../bindings/iio/adc/ti,ads8344.yaml | 51 +++++++++++++++++++ .../bindings/iio/adc/ti-ads8344.txt | 19 ------- 2 files changed, 51 insertions(+), 19 deletions(-) -- 2.28.0 Reviewed-by: Rob Herring diff --git a/Documentation/devicetree/bindings/iio/adc/ti,ads8344.yaml b/Documentation/devicetree/bindings/iio/adc/ti,ads8344.yaml new file mode 100644 index 000000000000..b8c398187d5c --- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/ti,ads8344.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,ads8344.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments ADS8344 ADC + +maintainers: + - Gregory Clement + +description: | + 16bit 8-channel ADC with single ended inputs. + +properties: + compatible: + const: ti,ads8344 + + reg: + maxItems: 1 + + spi-max-frequency: true + + vref-supply: + description: Supply the 2.5V or 5V reference voltage + + "#io-channel-cells": + const: 1 + +required: + - compatible + - reg + - vref-supply + +additionalProperties: false + +examples: + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + + adc@0 { + compatible = "ti,ads8344"; + reg = <0>; + vref-supply = <&refin_supply>; + spi-max-frequency = <10000000>; + #io-channel-cells = <1>; + }; + }; +... diff --git a/Documentation/devicetree/bindings/iio/adc/ti-ads8344.txt b/Documentation/devicetree/bindings/iio/adc/ti-ads8344.txt deleted file mode 100644 index e47c3759a82b..000000000000 --- a/Documentation/devicetree/bindings/iio/adc/ti-ads8344.txt +++ /dev/null @@ -1,19 +0,0 @@ -* Texas Instruments ADS8344 A/DC chip - -Required properties: - - compatible: Must be "ti,ads8344" - - reg: SPI chip select number for the device - - vref-supply: phandle to a regulator node that supplies the - reference voltage - -Recommended properties: - - spi-max-frequency: Definition as per - Documentation/devicetree/bindings/spi/spi-bus.txt - -Example: -adc@0 { - compatible = "ti,ads8344"; - reg = <0>; - vref-supply = <&refin_supply>; - spi-max-frequency = <10000000>; -}; From patchwork Sun Aug 9 11:17:53 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 247574 Delivered-To: patch@linaro.org Received: by 2002:a92:cc90:0:0:0:0:0 with SMTP id x16csp3995685ilo; Sun, 9 Aug 2020 04:20:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy+tCBaegGT/SCquc/62oxsOIMLSDZE6xbOVUmIPVkj+4aPiTQYPN89ddShrcXoe35t9V6f X-Received: by 2002:a17:906:248f:: with SMTP id e15mr16375996ejb.296.1596972019255; Sun, 09 Aug 2020 04:20:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596972019; cv=none; d=google.com; s=arc-20160816; b=DZJMEdA1kTcc9sWS5pN1ZA1oVOyablpp1ewW7bTGalsR9x4IPC20vWn/cVTn8uWfXz DctH1R8bRZRz/0u48EX+86CZYvYAl0P2nA6FNgJJxKpk5Bpr1DqeWhRu4odiE+jnRfAK Hj8dksC+MedFudiGCqfLyakWlzl6KjF3ksLsmETd9aF5omjBETqy+lHryTnYENdyCkh8 mp90uJzJYhvMUgAVhv3tE+wFCZAF4ZlMJ8Tc22zB8FJsUgC1Sh0qdHI2J8sjL22xmXFo s9FVoxpcmruO5ux81sNDVkH4rLEtb7gkI/Ehd0xsDsx+HnJCc1IOKs1n6n3r+IBdqksd A8cw== 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=tMkafMsx6o5Ri6ndV3AE2+CRZXqfv1CszpmjYxvfUuI=; b=totIG791aYhY+S2f9t5ys0kpas+VjjuidS0U6nFZOhOXWca3ffUY4X3MHA4axqUd2X CiKcyTcTf0nVY8Kcqo57aNP/JAHun8tCj8o+2RhnJKUsSVOltMItKbq2eAHd9R0hGKzq RlU3Tqg8+ky/Mym12XizIMSqOqJsJ6N58G4KLhG2tLveWAWTvhQdHv+aUvLQbawUMg92 0fKMEfNG0tKCybGnPIgPphcJ4RKLanQ8/RcldPQAQJzx2O3QKi9yLcjKtZlln+hYMR4U qhSbRVVNmUj/9cWb9SvJqGbU8ARw8Jkc42XJ/0uIOLqOWsjInuFUy0tg1MGyAmp16mFq tkPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=o3SGvmQ8; 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.19; Sun, 09 Aug 2020 04:20:19 -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=o3SGvmQ8; 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 S1726439AbgHILUS (ORCPT + 6 others); Sun, 9 Aug 2020 07:20:18 -0400 Received: from mail.kernel.org ([198.145.29.99]:54284 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726350AbgHILUS (ORCPT ); Sun, 9 Aug 2020 07:20:18 -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 63DF5206D8; Sun, 9 Aug 2020 11:20:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1596972017; bh=Cbyhs/Xet1hHvl6FhTjFIxhhezZP6HgWsZoUKNXnESw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=o3SGvmQ8Bk2IGmKQFKQgD9GJBqSzw64tcmZUmSJF2n++bMGZttlFPyIiwKnERK5l0 NNCKlnW0t5Nw4yDDV5sYIj8F8a0wOaNSwZswCGpowhyIBvCKuA6zhrnraGo7ptiWNG ENWEW24JWurXJ9gDYprYSOnG3CGPbMmxFJsXxlxU= From: Jonathan Cameron To: linux-iio@vger.kernel.org Cc: Rob Herring , devicetree@vger.kernel.org, Jonathan Cameron , Phil Reid Subject: [PATCH 13/13] dt-bindings: iio: adc: ti,tlc4541 binding conversion Date: Sun, 9 Aug 2020 12:17:53 +0100 Message-Id: <20200809111753.156236-14-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 binding so easy to convert. Dropped the stated value of maximum spi bus frequency as it does not seem to correspond to the datasheet. The value of 200kHz is the max sampling frequency of the ADC, not the clock frequency of the SPI bus. Added #io-channel-cells to allow use as a provider of channels to other devices via the consumer binding. Signed-off-by: Jonathan Cameron Cc: Phil Reid --- .../bindings/iio/adc/ti,tlc4541.yaml | 52 +++++++++++++++++++ .../bindings/iio/adc/ti-tlc4541.txt | 17 ------ 2 files changed, 52 insertions(+), 17 deletions(-) -- 2.28.0 Reviewed-By: Phil Reid Reviewed-by: Rob Herring diff --git a/Documentation/devicetree/bindings/iio/adc/ti,tlc4541.yaml b/Documentation/devicetree/bindings/iio/adc/ti,tlc4541.yaml new file mode 100644 index 000000000000..6c2539b3d707 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/ti,tlc4541.yaml @@ -0,0 +1,52 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/adc/ti,tlc4541.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments TLC4541 and similar ADCs + +maintainers: + - Phil Reid + +description: | + 14/16bit single channel ADC with SPI interface. + +properties: + compatible: + enum: + - ti,tlc3541 + - ti,tlc4541 + + reg: + maxItems: 1 + + spi-max-frequency: true + + vref-supply: true + + "#io-channel-cells": + const: 1 + +required: + - compatible + - reg + - vref-supply + +additionalProperties: false + +examples: + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + + adc@0 { + compatible = "ti,tlc4541"; + reg = <0>; + vref-supply = <&vdd_supply>; + spi-max-frequency = <200000>; + #io-channel-cells = <1>; + }; + }; +... diff --git a/Documentation/devicetree/bindings/iio/adc/ti-tlc4541.txt b/Documentation/devicetree/bindings/iio/adc/ti-tlc4541.txt deleted file mode 100644 index 6b2692723a04..000000000000 --- a/Documentation/devicetree/bindings/iio/adc/ti-tlc4541.txt +++ /dev/null @@ -1,17 +0,0 @@ -* Texas Instruments' TLC4541 - -Required properties: - - compatible: Should be one of - * "ti,tlc4541" - * "ti,tlc3541" - - reg: SPI chip select number for the device - - vref-supply: The regulator supply for ADC reference voltage - - spi-max-frequency: Max SPI frequency to use (<= 200000) - -Example: -adc@0 { - compatible = "ti,tlc4541"; - reg = <0>; - vref-supply = <&vdd_supply>; - spi-max-frequency = <200000>; -};