Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp2042541ima; Thu, 25 Oct 2018 08:43:05 -0700 (PDT) X-Google-Smtp-Source: AJdET5c0EDE2u8iMY+HbqjLRmJq3OjseDa4NqM282SimS2XQ/IsEvWPH0FJYAA+COP/ut2F1otFi X-Received: by 2002:a17:902:6e08:: with SMTP id u8-v6mr2012954plk.64.1540482185691; Thu, 25 Oct 2018 08:43:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540482185; cv=none; d=google.com; s=arc-20160816; b=UiDuuzuv4QhONl4LaLEsAm0kgoi//kXS8spIn3g8Tb8RqtsQ9YbH0uDOMtkutdx0xe 80xOEDLMXNSes1X6muYljV/QeLTwhkaoLo5ctXcEmdFbYA4byQUb2oINj0oRDQwpoKcp XzjKusv91tpI3GPDG6xA+D3AhiIVThvdHopnLju94a38kr4f7UeHwmiCTW2SXeMWcDsI UlVDBNNVBkzt/SbHllJG7vCefxN2G9Ftz3RXiaN3xT3gfourdWoDfVWrV80I0jNkXK7+ uoX+abY+yVmSChQPhAQh1U0eOo5JfFaILdBhNApBmNt36rut9/h9HLZia198L7JwEMno Wd+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=FbbISmXtpPKndgEB4l07u6m+hz2IZagq1zo7li3taL0=; b=QV4GJsib6UZWciNs2gHu8JsLBKYXAzIZImhVvzRD0tDjzeyTut1oZVKePk9u/ErspG t4UOE8SOFUd6hxhjUn1ne6uQL37R4oCPLVFLGLujo0pr4X3ycbqCm3DEmr06lc2CC8Tt js/J5To3BxyuSe0VK1/xbbbrPY7g0b7OI51oYFh8kYO+Kslt9Ueybh6RkC6elRqT1lRE VIUKBG2lLt0eL+/AoOBP0xwGyD1s25NMuFukQWFwwH2vP1j10jM2aChyC24uKmKXdyef QzFN8rdPZRCZmPNcSOVNAtWG33guXJ8RPGc56OTzl00OyHZJDjnoCxZHr76u9iPHKL7a F5WQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h8-v6si8207989pgh.573.2018.10.25.08.42.49; Thu, 25 Oct 2018 08:43:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727417AbeJZAPH (ORCPT + 99 others); Thu, 25 Oct 2018 20:15:07 -0400 Received: from mr33.theemaillaundry.net ([176.9.125.106]:37218 "EHLO mr33.theemaillaundry.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727313AbeJZAPH (ORCPT ); Thu, 25 Oct 2018 20:15:07 -0400 Received: from localhost (localhost [127.0.0.1]) by mr33.theemaillaundry.net (Postfix) with ESMTP id 675FB51C1FF6; Thu, 25 Oct 2018 16:41:44 +0100 (IST) X-Amavis-Modified: Mail body modified (using disclaimer) - mr33.theemaillaundry.net X-Virus-Scanned: amavisd-new at theemaillaundry.net Received: from mr33.theemaillaundry.net ([127.0.0.1]) by localhost (mr33.theemaillaundry.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GwdVFCAvZcVR; Thu, 25 Oct 2018 16:41:43 +0100 (IST) Received: from statler.emutex.com (unknown [92.51.199.138]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mr33.theemaillaundry.net (Postfix) with ESMTPS id 9180C51C1D25; Thu, 25 Oct 2018 16:36:05 +0100 (IST) Received: from [10.10.68.81] (helo=dan-Latitude-E5450.emutex.com) by statler.emutex.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_CBC_SHA256:128) (Exim 4.84) (envelope-from ) id 1gFhg1-0008BR-TS; Thu, 25 Oct 2018 16:36:02 +0100 From: Dan O'Donovan To: linux-kernel@vger.kernel.org Cc: Andy Shevchenko , Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , linux-iio@vger.kernel.org, Rob Herring , Mark Rutland , devicetree@vger.kernel.org, Carlos Iglesias , Javier Arteaga , Dan O'Donovan Subject: [PATCH v3 1/3] iio: adc128s052: Add pin-compatible IDs Date: Thu, 25 Oct 2018 16:35:40 +0100 Message-Id: <1540481742-23596-2-git-send-email-dan@emutex.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1540481742-23596-1-git-send-email-dan@emutex.com> References: <20180423213805.12591-1-javier@emutex.com> <1540481742-23596-1-git-send-email-dan@emutex.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Javier Arteaga The datasheets for ADC122S021 and ADC124S021 list two more pin-compatible alternatives for each device. Add their IDs as compatible strings. Suggested-by: Jonathan Cameron Signed-off-by: Javier Arteaga Signed-off-by: Dan O'Donovan --- .../devicetree/bindings/iio/adc/ti-adc128s052.txt | 9 ++++++++- drivers/iio/adc/ti-adc128s052.c | 16 ++++++++++++---- 2 files changed, 20 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/iio/adc/ti-adc128s052.txt b/Documentation/devicetree/bindings/iio/adc/ti-adc128s052.txt index daa2b2c..c07ce1a 100644 --- a/Documentation/devicetree/bindings/iio/adc/ti-adc128s052.txt +++ b/Documentation/devicetree/bindings/iio/adc/ti-adc128s052.txt @@ -1,7 +1,14 @@ * Texas Instruments' ADC128S052, ADC122S021 and ADC124S021 ADC chip Required properties: - - compatible: Should be "ti,adc128s052", "ti,adc122s021" or "ti,adc124s021" + - 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 diff --git a/drivers/iio/adc/ti-adc128s052.c b/drivers/iio/adc/ti-adc128s052.c index 7cf39b3..e6716c3 100644 --- a/drivers/iio/adc/ti-adc128s052.c +++ b/drivers/iio/adc/ti-adc128s052.c @@ -186,15 +186,23 @@ static int adc128_remove(struct spi_device *spi) static const struct of_device_id adc128_of_match[] = { { .compatible = "ti,adc128s052", }, { .compatible = "ti,adc122s021", }, + { .compatible = "ti,adc122s051", }, + { .compatible = "ti,adc122s101", }, { .compatible = "ti,adc124s021", }, - { /* sentinel */ }, + { .compatible = "ti,adc124s051", }, + { .compatible = "ti,adc124s101", }, + { } }; MODULE_DEVICE_TABLE(of, adc128_of_match); static const struct spi_device_id adc128_id[] = { - { "adc128s052", 0}, /* index into adc128_config */ - { "adc122s021", 1}, - { "adc124s021", 2}, + { "adc128s052", 0 }, /* index into adc128_config */ + { "adc122s021", 1 }, + { "adc122s051", 1 }, + { "adc122s101", 1 }, + { "adc124s021", 2 }, + { "adc124s051", 2 }, + { "adc124s101", 2 }, { } }; MODULE_DEVICE_TABLE(spi, adc128_id); -- 2.7.4 ------ This email has been scanned for spam and malware by The Email Laundry.