From patchwork Sun Aug 31 20:40:29 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philippe Reynes X-Patchwork-Id: 4815521 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 93871C0338 for ; Sun, 31 Aug 2014 20:43:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C411420127 for ; Sun, 31 Aug 2014 20:43:26 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id F0343200FF for ; Sun, 31 Aug 2014 20:43:25 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XOBvw-0003sr-Gm; Sun, 31 Aug 2014 20:41:08 +0000 Received: from mail-wi0-x233.google.com ([2a00:1450:400c:c05::233]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XOBvs-0003Mn-NS for linux-arm-kernel@lists.infradead.org; Sun, 31 Aug 2014 20:41:05 +0000 Received: by mail-wi0-f179.google.com with SMTP id q5so5057234wiv.6 for ; Sun, 31 Aug 2014 13:40:42 -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; bh=cyqAflitvcR1gPSahgalykY6+DFq5dvidjpFeMmMWO0=; b=TKPtGFErIJhNFm2Pie5CMpoFCv/8U6ST5a/B5zrkce5d2R9xgbPmzGKcMUZrPvdKfM yM8ze2/cBh2oL2jTXGM1M7JVkoP6rRVSkExgAgP7kpdid91cN4C2PTWHNEMBo5W8MURJ zVBREAJyaDnbfD5eiuPbUFrIhOZqXw1Q7GZY1oPEk2sO5/quuZ+dNpu881UiFR7BTSGJ 9emNcKDKSOZMFROu2E7L2SkCxux75f+NTcw8wzaRU8HDkQ1hSnFtMbcZEbb2pZ2qWm7T Xz/WrzhpNuoG4SW+A81wXY7VsR+E6tgr71q5xfxU+AZQxzmmFy5DGFcMGbQg6uwNhT8A GOZQ== X-Received: by 10.180.187.20 with SMTP id fo20mr17468288wic.58.1409517642056; Sun, 31 Aug 2014 13:40:42 -0700 (PDT) Received: from localhost.localdomain (bny93-7-88-161-33-221.fbx.proxad.net. [88.161.33.221]) by mx.google.com with ESMTPSA id i5sm16644104wjz.0.2014.08.31.13.40.40 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 31 Aug 2014 13:40:41 -0700 (PDT) From: Philippe Reynes To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org Subject: [PATCH v3] apf27dev: add max1027 in the dts Date: Sun, 31 Aug 2014 22:40:29 +0200 Message-Id: <1409517629-5918-1-git-send-email-tremyfr@gmail.com> X-Mailer: git-send-email 1.7.4.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140831_134104_934510_F6986058 X-CRM114-Status: GOOD ( 10.11 ) X-Spam-Score: -0.8 (/) Cc: shc_work@mail.ru, kernel@pengutronix.de, shawn.guo@freescale.com, Philippe Reynes X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Philippe Reynes --- arch/arm/boot/dts/imx27-apf27dev.dts | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-) Changelog: v3: (thanks Alexander Shiyan for the feedback) - add datasheet pin name as comment v2: (thanks Alexander Shiyan for the feedback) - spi mode 0 is the default so no need to explicitly define it diff --git a/arch/arm/boot/dts/imx27-apf27dev.dts b/arch/arm/boot/dts/imx27-apf27dev.dts index b982309..0c08fbb 100644 --- a/arch/arm/boot/dts/imx27-apf27dev.dts +++ b/arch/arm/boot/dts/imx27-apf27dev.dts @@ -82,6 +82,16 @@ pinctrl-names = "default"; pinctrl-0 = <&pinctrl_cspi1 &pinctrl_cspi1_cs>; status = "okay"; + + adc@0 { + compatible = "maxim,max1027"; + reg = <0>; + interrupt-parent = <&gpio5>; + interrupts = <15 IRQ_TYPE_EDGE_FALLING>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_max1027>; + spi-max-frequency = <10000000>; + }; }; &cspi2 { @@ -230,6 +240,13 @@ pinctrl_sdhc2_cd: sdhc2cdgrp { fsl,pins = ; }; + + pinctrl_max1027: max1027 { + fsl,pins = < + MX27_PAD_UART1_CTS__GPIO5_14 0 /* CNVST */ + MX27_PAD_UART1_RTS__GPIO5_15 0 /* EOC */ + >; + }; }; };