From patchwork Sat Aug 30 22:00:57 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philippe Reynes X-Patchwork-Id: 4814721 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 B29A7C0338 for ; Sat, 30 Aug 2014 22:04:26 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C2E9520120 for ; Sat, 30 Aug 2014 22:04:25 +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 11ED5200F4 for ; Sat, 30 Aug 2014 22:04: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 1XNqiL-00007Z-Td; Sat, 30 Aug 2014 22:01:41 +0000 Received: from mail-wi0-x22e.google.com ([2a00:1450:400c:c05::22e]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XNqiJ-00004q-2A for linux-arm-kernel@lists.infradead.org; Sat, 30 Aug 2014 22:01:39 +0000 Received: by mail-wi0-f174.google.com with SMTP id d1so10745856wiv.7 for ; Sat, 30 Aug 2014 15:01:16 -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=ctwGA6yobd13z6sBsRx3W+y7C6Kw2rk3Eka53ZD44mA=; b=n4xC97xxpRvgJ39msBjVw4IySmcWNjwmDEV2aY+QIKXoRytRResxW+xNQAWawo4bJF 4/Daq4tAQi3/14NetAPPDfpse9seA4Na3h1WoSojlvQ12Me4nXrlghmkF8CqUh7RM+dM /tgZ3Zr+BiPLQBAiDkHH3hBf1k4sKhRoI5hDjIsx+yk9ZP/mFrbvTlmkilHF8j2efEZG thsdj+BlDJt67gGTR8FMcmUY8USuodsfjyW3oQwJQ6mSGXFNFAL9nR43p76tqy4np00Y ghndb+fPrmTMtg5igxOqbyecocovTxiR7zBPPsCocZhVQsn6qOSVL4NoDTxLy3ocwzgI CQZg== X-Received: by 10.180.149.197 with SMTP id uc5mr11884477wib.75.1409436076539; Sat, 30 Aug 2014 15:01:16 -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 hy9sm7725654wjb.27.2014.08.30.15.01.15 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 30 Aug 2014 15:01:15 -0700 (PDT) From: Philippe Reynes To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org Subject: [PATCH v2] apf27dev: add max1027 in the dts Date: Sun, 31 Aug 2014 00:00:57 +0200 Message-Id: <1409436057-29729-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-20140830_150139_341681_34F11C8B X-CRM114-Status: GOOD ( 10.67 ) 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=-1.8 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=no 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: 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..f2bab73 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 + MX27_PAD_UART1_RTS__GPIO5_15 0 + >; + }; }; };