From patchwork Sat Jul 16 00:18:23 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joshua Clayton X-Patchwork-Id: 9232941 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id F090260868 for ; Sat, 16 Jul 2016 00:21:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E43572522B for ; Sat, 16 Jul 2016 00:21:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D70842574A; Sat, 16 Jul 2016 00:21:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6D9DE22376 for ; Sat, 16 Jul 2016 00:21:10 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bODKN-0006DD-PL; Sat, 16 Jul 2016 00:19:31 +0000 Received: from mail-pf0-x244.google.com ([2607:f8b0:400e:c00::244]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bODJv-0005yY-Im for linux-arm-kernel@lists.infradead.org; Sat, 16 Jul 2016 00:19:05 +0000 Received: by mail-pf0-x244.google.com with SMTP id t190so7148082pfb.2 for ; Fri, 15 Jul 2016 17:18:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=ylKHHYSXJGUiusmnIbaTTiHZrbECAkD7DJE/yk59I5E=; b=Kro7hptESXD6BBR9FgQbk4pTjDEGmt6UZ6LSHIla4gAeO+OeV3WxiADu5ty4bjtG0E xeNJcpFIUXrhC9gBSKHK0SCBH9utX0nlpFqwYJJV26wa5w3YH3bmYQnd72mN0Q0AvRWf r4P9XpnXq7ok1nlICUr/A9Ez9Soibo1xzYZwajvHaYZgWnRvuCk09abKMqLn9AJ1Ciyf 2EQWbfF0imc0ngvwnP8mQwrQgX4VXgDn/bY3yZNJiVKbhlymxkWSX1hvMd9feNzv9G+b 1ltDF9ahll3pL17mXwnuVOsd3KBFaE+ByZvsicVWcd75lqskSYvnzUYAwnePImem0QEo 9zSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=ylKHHYSXJGUiusmnIbaTTiHZrbECAkD7DJE/yk59I5E=; b=RKGHbKF1dK3sWasHC1sipm5RxmdOB5pg4mVM+3lJHJfMQjjtL9Mp1MCPsSQtyERqCL Z9sth+TBTiLg5nMbQvjrRYCxXxh6P2nO8aQcGTwIEEbMwy73eqYqJPU7XCg979Z5/00P jgZTlnX0PeiSO42K32BdauihKeHebskJAPMAHdGJBnbNUROAnB9tTPsw4KvPU1bz7nWe BsoWQt2MFtjBMGCwB+5JKbr7UZLUD7J0vMwS5dWS204MKEtXOLsiDSURK/UU6da4T2XF d+5ZDnw7C2Jvk6xmrzIsp7K6HSH+2v1WQVBhY96pG1e1hwO2ISdZA2CrOX6aLx+XaiNU x/1A== X-Gm-Message-State: ALyK8tJrD16Lc+YEHxxQ7IyTIQxlEp4dKxg2M0qclQvaXiuGvtDJebEvEA17Q6ENozdMBA== X-Received: by 10.98.21.131 with SMTP id 125mr26127754pfv.92.1468628322658; Fri, 15 Jul 2016 17:18:42 -0700 (PDT) Received: from localhost.localdomain (68-185-59-186.static.knwc.wa.charter.com. [68.185.59.186]) by smtp.gmail.com with ESMTPSA id d1sm7077531pas.48.2016.07.15.17.18.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 15 Jul 2016 17:18:41 -0700 (PDT) From: Joshua Clayton To: Rob Herring , Mark Rutland , Shawn Guo , Sascha Hauer , Fabio Estevam , Russell King , Jean Delvare , Guenter Roeck , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-hwmon@vger.kernel.org Subject: [RCF 3/3] ARM: imx6q-evi: ads ads1118 support Date: Fri, 15 Jul 2016 17:18:23 -0700 Message-Id: <582a9226dab419d27ea90e21c723856e4669a81c.1468626668.git.stillcompiling@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: In-Reply-To: References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160715_171903_790716_9BCD85FB X-CRM114-Status: GOOD ( 10.29 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Joshua Clayton MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP add support to imx6q-evi for the 3 ADS1118 temperature/adc units, now that is has has a kernel driver Signed-off-by: Joshua Clayton --- arch/arm/boot/dts/imx6q-evi.dts | 90 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) diff --git a/arch/arm/boot/dts/imx6q-evi.dts b/arch/arm/boot/dts/imx6q-evi.dts index 4fa5601..7e175bf 100644 --- a/arch/arm/boot/dts/imx6q-evi.dts +++ b/arch/arm/boot/dts/imx6q-evi.dts @@ -105,6 +105,66 @@ pinctrl-names = "default"; pinctrl-0 = <&pinctrl_ecspi3 &pinctrl_ecspi3cs>; status = "okay"; + + temp1: adc@0 { + compatible = "ti,ads1118"; + spi-max-frequency = <500000>; + spi-cpha; + reg = <0>; + #address-cells = <1>; + #size-cells = <0>; + ti,tempsensor; + cpu-v@0 { + reg = <0>; + ti,fullscale = <6144000>; + ti,datarate = <860>; + }; + cpld@1 { + reg = <1>; + ti,fullscale = <6144000>; + ti,datarate = <860>; + }; + vocm@2 { + reg = <2>; + ti,fullscale = <6144000>; + ti,datarate = <860>; + }; + fpga@3 { + reg = <3>; + ti,fullscale = <6144000>; + ti,datarate = <860>; + }; + }; + + adc2: adc@1 { + compatible = "ti,ads1118"; + spi-max-frequency = <500000>; + spi-cpha; + reg = <1>; + #address-cells = <1>; + #size-cells = <0>; + ti,tempsensor; + signal@0 { + reg = <0>; + ti,fullscale = <6144000>; + ti,datarate = <860>; + }; + signal@1 { + reg = <1>; + ti,fullscale = <6144000>; + ti,datarate = <860>; + }; + probedrive@2 { + reg = <2>; + ti,fullscale = <6144000>; + ti,datarate = <860>; + }; + probedrive@3 { + reg = <3>; + ti,fullscale = <6144000>; + ti,datarate = <860>; + }; + }; }; &ecspi5 { @@ -126,6 +186,36 @@ reg = <1>; }; + temp0: temp@2 { + compatible = "ti,ads1118"; + spi-max-frequency = <500000>; + spi-cpha; + reg = <2>; + #address-cells = <1>; + #size-cells = <0>; + ti,tempsensor; + analog-x@0 { + reg = <0>; + ti,fullscale = <6144000>; + ti,datarate = <860>; + }; + analog-y@1 { + reg = <1>; + ti,fullscale = <6144000>; + ti,datarate = <860>; + }; + main-12v@2 { + reg = <2>; + ti,fullscale = <6144000>; + ti,datarate = <860>; + }; + battbox@3 { + reg = <3>; + ti,fullscale = <6144000>; + ti,datarate = <860>; + }; + }; + pb_rtc: rtc@3 { compatible = "nxp,rtc-pcf2123"; spi-max-frequency = <2450000>;