Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp896139imu; Fri, 9 Nov 2018 07:47:45 -0800 (PST) X-Google-Smtp-Source: AJdET5fn0yaV++H3+r3GjKcGLJQCFuXfURuMOpJwbRIk5PDUQ3xfjgfSXqGJGeRCpv1aS4LxCtrO X-Received: by 2002:a63:9845:: with SMTP id l5mr7957749pgo.142.1541778465025; Fri, 09 Nov 2018 07:47:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541778464; cv=none; d=google.com; s=arc-20160816; b=lbncjqj2xw+DvRNB/Wy7MpvNxMh/kZ3W2BPQ8XTU9PF80Kv54vUvKf33gywMrpBOrT b21ubVoU8CFSzgfiQ1PDZbVTSYIM/ebCDAHOs7KxCqJP8Qv/LZhk+f6rWfcs5Fbu1Arp Eu1TmErEcUIOvhT0LrgvXWiF12yRAq7xdY5MW1kYec5dQLB/2aRSnUKa0ZjKfJ2vNWFW UIQplqtuJV4wdvIK230bsFW7YRgkTt4839Hk1OD7AJoChl4CH50MON22YIKPueKyKQXs CPpnFs0UD1zeVC8/RUwtEc2w9SWPG2EgdV9GO/IFlMywYZmT6yy+kZgwVObcDk7tp/v4 0ySA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=E3Qx1fChUdK4z2mL96nFjrgbBr3x4YpOkYaowc1yuPU=; b=t9IG1by6WWx1ppU4x3BPmGPXMR3AngeIdnh42rK9fiZlEtD8t6WwFpaywDhav1k0ZV EBTfW8Shk6Q4Lt8yLbsb44f4qhwVCgd2sRj6Jfh3awdzOUGLu4hSs7TYmpDGAXoDmgN4 n02mDVazIbuoZmLlajNK+5C+oFk/gcHVrWYXJxE2wUvqnhJUV+ql/ALh80sHuWuki+E+ vQnIxOTPme2Vi5nLA3SZ+xFDGWo7LLCd/KjfY0AXoMbdleEO9sfCz6drRakvzlLngYVa OYt/EqBaAD8sAhHL9nj3D7m9Ih/IKMJkJ/Ac6kVvIbNWjC8cnjI9BdG0hFfkJFb6Lp4U FT7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@analog.onmicrosoft.com header.s=selector1-analog-com header.b=ud2H3Aja; 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 g8-v6si7757885plt.434.2018.11.09.07.47.23; Fri, 09 Nov 2018 07:47:44 -0800 (PST) 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; dkim=pass header.i=@analog.onmicrosoft.com header.s=selector1-analog-com header.b=ud2H3Aja; 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 S1728392AbeKJBYk (ORCPT + 99 others); Fri, 9 Nov 2018 20:24:40 -0500 Received: from mail-by2nam03on0044.outbound.protection.outlook.com ([104.47.42.44]:53682 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727802AbeKJBYj (ORCPT ); Fri, 9 Nov 2018 20:24:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=analog.onmicrosoft.com; s=selector1-analog-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=E3Qx1fChUdK4z2mL96nFjrgbBr3x4YpOkYaowc1yuPU=; b=ud2H3Ajah1bf5iEXSoBhLF5U3WwS5qA1QPuv8E8rU83hN27Dt3QwnYOZq0E/+kxsG8c0G4DQmiFqWO+nnG2VpxqNLBQkm7eAvUBHXpZ2vqGAf69/rgy8FO3UvzGrw5tku5A+/gFgy+lWG4KaH1ejgjye6QrImrISjcoh83S8ycg= Received: from CY1PR03CA0026.namprd03.prod.outlook.com (2603:10b6:600::36) by CO2PR03MB2262.namprd03.prod.outlook.com (2603:10b6:102:a::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1294.26; Fri, 9 Nov 2018 15:43:13 +0000 Received: from BY2FFO11FD014.protection.gbl (2a01:111:f400:7c0c::166) by CY1PR03CA0026.outlook.office365.com (2603:10b6:600::36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1294.20 via Frontend Transport; Fri, 9 Nov 2018 15:43:13 +0000 Authentication-Results: spf=pass (sender IP is 137.71.25.57) smtp.mailfrom=analog.com; gmx.de; dkim=none (message not signed) header.d=none;gmx.de; dmarc=bestguesspass action=none header.from=analog.com; Received-SPF: Pass (protection.outlook.com: domain of analog.com designates 137.71.25.57 as permitted sender) receiver=protection.outlook.com; client-ip=137.71.25.57; helo=nwd2mta4.analog.com; Received: from nwd2mta4.analog.com (137.71.25.57) by BY2FFO11FD014.mail.protection.outlook.com (10.1.14.76) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.1339.12 via Frontend Transport; Fri, 9 Nov 2018 15:43:12 +0000 Received: from NWD2HUBCAS7.ad.analog.com (nwd2hubcas7.ad.analog.com [10.64.69.107]) by nwd2mta4.analog.com (8.13.8/8.13.8) with ESMTP id wA9FhC7w018257 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=OK); Fri, 9 Nov 2018 07:43:12 -0800 Received: from linux.ad.analog.com (10.32.224.122) by NWD2HUBCAS7.ad.analog.com (10.64.69.107) with Microsoft SMTP Server id 14.3.301.0; Fri, 9 Nov 2018 10:43:11 -0500 From: Stefan Popa To: , CC: , , , , , , , , , Subject: [PATCH v4 4/4] dt-bindings: iio: adc: Add docs for ad7124 Date: Fri, 9 Nov 2018 17:43:00 +0200 Message-ID: <1541778180-7862-1-git-send-email-stefan.popa@analog.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-ADIRoutedOnPrem: True X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:137.71.25.57;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(396003)(346002)(136003)(39860400002)(376002)(2980300002)(438002)(189003)(199004)(7636002)(47776003)(305945005)(110136005)(316002)(478600001)(7416002)(106466001)(72206003)(966005)(575784001)(54906003)(2870700001)(50226002)(8676002)(106002)(2906002)(1720100001)(8936002)(5660300001)(77096007)(50466002)(186003)(23676004)(426003)(7696005)(107886003)(476003)(246002)(4326008)(5820100001)(126002)(2616005)(6666004)(44832011)(486006)(36756003)(336012)(6306002)(356004)(26005);DIR:OUT;SFP:1101;SCL:1;SRVR:CO2PR03MB2262;H:nwd2mta4.analog.com;FPR:;SPF:Pass;LANG:en;PTR:nwd2mail11.analog.com;MX:1;A:1; X-Microsoft-Exchange-Diagnostics: 1;BY2FFO11FD014;1:owTuwYaZHu4DN2sPxdY6VjLOeILEKKfKbU8XqaDppCMDZoK5aNaDaeUIFEuWuFrNOjx/eoKRBUF7XEJ91CnIjUvOgzRwvhdR4Tsb/x1f7gXo8JNknPW1jO9FDDtriDmY X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: cfefec58-ab8c-4c15-acca-08d6465a0f06 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989299)(5600074)(711020)(4608076)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060);SRVR:CO2PR03MB2262; X-Microsoft-Exchange-Diagnost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y+N3KNAahkjqT3IuJZTTiPlUxRXdqZ0wY9BX1lTI2gMZRAYPbBnthDV/NqLsV/wuP/33cqutclvTVhiC5Ok7sUU2PQlNdlg8k14uuxX2cY1uN/WHTGFbIuZ44Jjcx42Js8gRIo6TDUXfELeoFFJXFR9MdObgnGfJfeO4IBhqwt1LsNVag2ossElhUlHAD9Rd/SaHh/zjyA/HWQtD/vePYWn7iY4wqjwzFWbFdY1AKsHi+AzH9N1gM2/8l1ThzEorm4mpqSDwMsvfOCrxVMJEXp1UhxOz7+aMO2EsjXcNKz4cdLqw4oDRExh2k+RazrbxLbb6c7jCCm4WkDykVuAbzgFBajRNNqVuimXg4BLSRIWd3ytb2o4udyUmxhgZv/USVKJlXLK1fF4oTKbx3Vi4G5aB4RUaX8jPiv0LecKBYEXvxMSuZtEC0DnRrkorj1klIerTaljCJJrIFMwovzIzTAZ+ X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(232431446821674)(9452136761055)(170811661138872)(95692535739014); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(93006095)(93004095)(10201501046)(3002001)(3231382)(944501410)(4982022)(52105095)(6055026)(148016)(149066)(150057)(6041310)(20161123558120)(20161123564045)(20161123562045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051)(76991095);SRVR:CO2PR03MB2262;BCL:0;PCL:0;RULEID:;SRVR:CO2PR03MB2262; X-Microsoft-Exchange-Diagnostics: 1;CO2PR03MB2262;4:3bmc/1epHpgVC052LP/QiutrDHC7ebhF7hTlhqWJxgzq17zbPQ9rsykN6MpDrfGdEjgAzDKXuljoRgPhQ9xm9m99KXN8NkIhaiWnwjmhYF9LD6upp3VoByIAkJbBF/YaY3lWXlcKTxMpEmtd8n3YZ8AmR/Zgh9qfmgxFyS3xD5x48KKlEBs0wFgME+CNoCs/KfS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8h7ZJXImnozmmYnOdr8vF/H/FUitkpJ1jiDSjRCb/nRV7FjCJ9+heH5HDQSYC7ddj9b9fLrGjxa4Jw2p/gEL0mIjG+CTd4NrO3tZJzoKKOKvYc7R878DQt01aot9FynzYtFQ+YgYtEOhg4PoFHQw== SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: analog.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Nov 2018 15:43:12.9787 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: cfefec58-ab8c-4c15-acca-08d6465a0f06 X-MS-Exchange-CrossTenant-Id: eaa689b4-8f87-40e0-9c6f-7228de4d754a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=eaa689b4-8f87-40e0-9c6f-7228de4d754a;Ip=[137.71.25.57];Helo=[nwd2mta4.analog.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO2PR03MB2262 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add support for Analog Devices AD7124 4-channels and 8-channels ADC. Signed-off-by: Stefan Popa --- Changes in v2: - Nothing changed. Changes in v3: - Removed the "adi,channels" property. - Used the "reg" property to get the channel number and "adi,diff-channels" for the differential pins. The "adi,channel-number" property was removed. - adi,bipolar is of boolean type. Changes in v4: - Used the bipolar and diff-channels properties defined in the new adc.txt doc. .../devicetree/bindings/iio/adc/adi,ad7124.txt | 81 ++++++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 82 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/adc/adi,ad7124.txt diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad7124.txt b/Documentation/devicetree/bindings/iio/adc/adi,ad7124.txt new file mode 100644 index 0000000..fa0c43b --- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/adi,ad7124.txt @@ -0,0 +1,81 @@ +Analog Devices AD7124 ADC device driver + +Required properties for the AD7124: + - compatible: Must be one of "adi,ad7124-4" or "adi,ad7124-8" + - reg: SPI chip select number for the device + - spi-max-frequency: Max SPI frequency to use + see: Documentation/devicetree/bindings/spi/spi-bus.txt + - clocks: phandle to the master clock (mclk) + see: Documentation/devicetree/bindings/clock/clock-bindings.txt + - clock-names: Must be "mclk". + - interrupts: IRQ line for the ADC + see: Documentation/devicetree/bindings/interrupt-controller/interrupts.txt + + Required properties: + * #address-cells: Must be 1. + * #size-cells: Must be 0. + + Subnode(s) represent the external channels which are connected to the ADC. + Each subnode represents one channel and has the following properties: + Required properties: + * reg: The channel number. It can have up to 4 channels on ad7124-4 + and 8 channels on ad7124-8, numbered from 0 to 15. + * diff-channels: see: Documentation/devicetree/bindings/iio/adc/adc.txt + + Optional properties: + * bipolar: see: Documentation/devicetree/bindings/iio/adc/adc.txt + * adi,reference-select: Select the reference source to use when + converting on the the specific channel. Valid values are: + 0: REFIN1(+)/REFIN1(−). + 1: REFIN2(+)/REFIN2(−). + 3: AVDD + If this field is left empty, internal reference is selected. + +Optional properties: + - refin1-supply: refin1 supply can be used as reference for conversion. + - refin2-supply: refin2 supply can be used as reference for conversion. + - avdd-supply: avdd supply can be used as reference for conversion. + +Example: + adc@0 { + compatible = "adi,ad7124-4"; + reg = <0>; + spi-max-frequency = <5000000>; + interrupts = <25 2>; + interrupt-parent = <&gpio>; + refin1-supply = <&adc_vref>; + clocks = <&ad7124_mclk>; + clock-names = "mclk"; + + #address-cells = <1>; + #size-cells = <0>; + + channel@0 { + reg = <0>; + adi,diff-channels = <0 1>; + adi,reference-select = <0>; + adi,gain = <2>; + adi,odr-hz = <10>; + }; + + channel@1 { + reg = <1>; + adi,bipolar; + adi,diff-channels = <2 3>; + adi,reference-select = <0>; + adi,gain = <4>; + adi,odr-hz = <50>; + }; + + channel@2 { + reg = <2>; + adi,diff-channels = <4 5>; + adi,gain = <128>; + adi,odr-hz = <19200>; + }; + + channel@3 { + reg = <3>; + adi,diff-channels = <6 7>; + }; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 3a1bfcb..f2fa508 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -845,6 +845,7 @@ L: linux-iio@vger.kernel.org W: http://ez.analog.com/community/linux-device-drivers S: Supported F: drivers/iio/adc/ad7124.c +F: Documentation/devicetree/bindings/iio/adc/adi,ad7124.txt ANALOG DEVICES INC AD9389B DRIVER M: Hans Verkuil -- 2.7.4