From patchwork Tue Dec 11 19:12:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Murphy X-Patchwork-Id: 153502 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp984187ljp; Tue, 11 Dec 2018 11:12:17 -0800 (PST) X-Google-Smtp-Source: AFSGD/V6fuTht5fuVBgaBGeoyjiJ84YBvH/2TjwMZ1kvEnWmWvJg53NOVkewDp6FElPJ9qka2ydN X-Received: by 2002:a63:e84c:: with SMTP id a12mr15501934pgk.241.1544555537562; Tue, 11 Dec 2018 11:12:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544555537; cv=none; d=google.com; s=arc-20160816; b=eBJ6DK/90GyUfJNtqP5w3d/3teQccq9n0WUwPBQXG3TcX8s9Jantk9RfksR4w6TepN 6F8wLGa8ZkT/q2cCuDzU/ll/gpIjhUusaaX9iA1dIzJbvOlhN1ii4IXVUYRo9x+uvSHJ bqpppERl8tU0ksc0MII1RErS+IDQ/jGOHmQObXPTFlVb9VwSvgTBmNuN2jLERGrpWMwK 78s0PwwYGNR6m70wd/5iOHZCrH4lenkkH/8eE0drYyOhlblQA+XWQlWbi/216oTv4Uau tqqjlLZcZIOujWpjrFHYx9Do7VwGn6/fNj6dg8VnLBW64KMP5O+eCFlr5OvR8SaEKnP8 4Otg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=g1Gu1tvMv1Y9EMPNKEnhoJEhOF9s2cZZX0dAjPhIBK4=; b=Dd0l+oi4u0OuRTGS1OwEDblZPJz/QZii0Gx0w4TOhVhM/qeZqOacdvmrg9Jd04qujj xb1RgYCpzAXJlUd5PdF0GfdS0d/NxVAKzP8zxPr53+567tDaroH1EDMVdD5gnhfEqjIW o16G8k7+4JxEoaX88SX4fewu4jal5tcJA8a7CF3sRZ2fWCga99PSzs3XoQXt93qn8E11 8CDlRAoQTQ+rgeViOtRNCfPgY3GmwebC9Q/Xd42d4aAOH40Qmy+IUy6aZHhgEkF/Iwki Gi8TGavxWBF6zGet5GO5a2E4enT4MdQGlDRE58quMDV0NBNGK7MwScZomTgRSm4evEq+ JshA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=shzvbxIn; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ca19si13815234plb.238.2018.12.11.11.12.17; Tue, 11 Dec 2018 11:12:17 -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=@ti.com header.s=ti-com-17Q1 header.b=shzvbxIn; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726919AbeLKTMP (ORCPT + 31 others); Tue, 11 Dec 2018 14:12:15 -0500 Received: from lelv0142.ext.ti.com ([198.47.23.249]:44397 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726340AbeLKTMO (ORCPT ); Tue, 11 Dec 2018 14:12:14 -0500 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id wBBJCDTf069973; Tue, 11 Dec 2018 13:12:13 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1544555533; bh=g1Gu1tvMv1Y9EMPNKEnhoJEhOF9s2cZZX0dAjPhIBK4=; h=From:To:CC:Subject:Date; b=shzvbxIn9zf1+v7iCuyQYx6Fc87jJB+m1OoklhHfC/kxIHPQgcmc8c70K/6z0QBHk JZYkSzdn7wGRc8xu9YahLYf/7Bju/NoSDqHxxaK7hHLqH2d51LITrHACYSfsOGCJJr BCY3NDfEWi+z4SDZwJqoXpnL8Cq8XnIqMhnIEg7I= Received: from DFLE111.ent.ti.com (dfle111.ent.ti.com [10.64.6.32]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id wBBJCCSx127630 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 11 Dec 2018 13:12:13 -0600 Received: from DFLE101.ent.ti.com (10.64.6.22) by DFLE111.ent.ti.com (10.64.6.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Tue, 11 Dec 2018 13:12:12 -0600 Received: from dflp32.itg.ti.com (10.64.6.15) by DFLE101.ent.ti.com (10.64.6.22) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1591.10 via Frontend Transport; Tue, 11 Dec 2018 13:12:12 -0600 Received: from legion.dal.desgin.ti.com (legion.dal.design.ti.com [128.247.22.53]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id wBBJCCNl008718; Tue, 11 Dec 2018 13:12:12 -0600 Received: from localhost (a0272616local-lt.dhcp.ti.com [172.22.100.89]) by legion.dal.desgin.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id wBBJCCU05298; Tue, 11 Dec 2018 13:12:12 -0600 (CST) From: Dan Murphy To: CC: , , , Dan Murphy Subject: [PATCH v2 1/4] iio: ti-ads124s08: Add DT binding documentation Date: Tue, 11 Dec 2018 13:12:04 -0600 Message-ID: <20181211191207.21900-1-dmurphy@ti.com> X-Mailer: git-send-email 2.12.2 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Adding binding documentation for Texas Instruments ADS124S08 and ADS124S06 ADC. S08 is a 12 channel ADC S06 is a 6 channel ADC Datesheet can be found here: http://www.ti.com/lit/gpn/ads124s08 Signed-off-by: Dan Murphy --- v2 - Fixed incorrect compatible example and removed vref-supply - https://lore.kernel.org/patchwork/patch/1021047/ .../bindings/iio/adc/ti-ads124s08.txt | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/adc/ti-ads124s08.txt -- 2.20.0.rc2.7.g965798d1f2 diff --git a/Documentation/devicetree/bindings/iio/adc/ti-ads124s08.txt b/Documentation/devicetree/bindings/iio/adc/ti-ads124s08.txt new file mode 100644 index 000000000000..6993e76e61c6 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/ti-ads124s08.txt @@ -0,0 +1,23 @@ +* Texas Instruments' ads124s08 and ads124s06 ADC chip + +Required properties: + - compatible: Should be "ti,ads124s08" or "ti,ads124s06" + - reg: spi chip select number for the device + +Recommended properties: + - spi-max-frequency: Definition as per + Documentation/devicetree/bindings/spi/spi-bus.txt + - spi-cpha: Definition as per + Documentation/devicetree/bindings/spi/spi-bus.txt + +Optional properties: + - reset-gpios: GPIO pin used to reset the device. + +Example: +adc@0 { + compatible = "ti,ads124s08"; + reg = <0>; + spi-max-frequency = <1000000>; + spi-cpha; + reset-gpios = <&gpio1 16 GPIO_ACTIVE_LOW>; +};