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)