From patchwork Tue Mar 29 21:50:46 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joachim Eastwood X-Patchwork-Id: 8691371 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.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 894C7C0553 for ; Tue, 29 Mar 2016 21:55:00 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A71F020340 for ; Tue, 29 Mar 2016 21:54:59 +0000 (UTC) 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.kernel.org (Postfix) with ESMTPS id D902E202F8 for ; Tue, 29 Mar 2016 21:54:58 +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 1al1Zs-0005RJ-A9; Tue, 29 Mar 2016 21:53:32 +0000 Received: from mail-lf0-x241.google.com ([2a00:1450:4010:c07::241]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1al1Ye-0004e6-V4 for linux-arm-kernel@lists.infradead.org; Tue, 29 Mar 2016 21:52:19 +0000 Received: by mail-lf0-x241.google.com with SMTP id c62so3077263lfc.2 for ; Tue, 29 Mar 2016 14:51:58 -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; bh=AhK14PmKzCO1J1M1v1Ik4BzLA4Xb+l+x4wqzF+c+LxA=; b=E7qI89Bn1CG5dsojYk+2/7+W7nL9GiQLFd7g8yjRxfJYeyjqDLYc/k1/W6alsU2FOA K3fxFbb7DOMDr2+td2DfpTNgZbThXsu1hPNHsAU8tNCM9w4381a/HJcf+BRRyPLzguMf w7eMZAj2xMsZD8p/prmivoBxj81rSFQZAiWHu8KquLUVNm7sTFSswNnwGz4ZEJj5Brdr eoHWQbH9sp+EjPnOBSAU1pnbxQMlQNSIZttykEdYEvWLTb842m/FrA1H4TYQdx2pmPp1 Ps/efvjiNe0riIE+BZE/s0H5siR/mOUNxcGhgfkZp02FP0ZVsOluCsvvwekVr9e/oqsU /2PQ== 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; bh=AhK14PmKzCO1J1M1v1Ik4BzLA4Xb+l+x4wqzF+c+LxA=; b=Fuwh1dpzvQbkKL1g9Xzuo4xa27sl1wVqnZXsuNTGezn09nCIJhTTdjlelWyawRrQVj muXBfuGaDUsMgLjHBkq8r+Mbhc2PIUmSWN0tuTAVvw4tfEyHQJ+bfX9LAKKGv16YQU1W /5fJvkBXeGo+yH5bSNNhRl1gjQihqC1NiOmvA5PT6Euo4YWtin1H9g1DhoyIZ0IeodPv 7KLuG1MZ4m0JRCyYKqo1Z7bjHegnBEvnuJibivvZYZxELkubuWGj8bwJZio2hoYxx7dZ +paL41GXReMyANaXhyeigvDwymdtLTriXhgAcXam5ZcSRq7xJJ5xEAYZV7rPoORqg8uI 1Vog== X-Gm-Message-State: AD7BkJIqvl5fYqEPzSVswy16AJAQepP1Alb2LlqH5Zs21mbwRZ/L5b6klNfn0BrgTw8vvQ== X-Received: by 10.25.156.133 with SMTP id f127mr2243318lfe.102.1459288317383; Tue, 29 Mar 2016 14:51:57 -0700 (PDT) Received: from localhost.localdomain (141.89-11-213.nextgentel.com. [89.11.213.141]) by smtp.gmail.com with ESMTPSA id m141sm117364lfb.12.2016.03.29.14.51.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 29 Mar 2016 14:51:56 -0700 (PDT) From: Joachim Eastwood To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 7/7] ARM: dts: lpc4350-hitex-eval: add adc1 Date: Tue, 29 Mar 2016 23:50:46 +0200 Message-Id: <1459288246-1670-8-git-send-email-manabian@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1459288246-1670-1-git-send-email-manabian@gmail.com> References: <1459288246-1670-1-git-send-email-manabian@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160329_145217_455221_32392891 X-CRM114-Status: UNSURE ( 9.67 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.7 (--) 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: Joachim Eastwood 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=-5.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, 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 Enable adc1 on LPC4350 Hitex Evalution board. This board has a 10k potensiometer (R26) connected to ADC1 channel 2. Signed-off-by: Joachim Eastwood --- arch/arm/boot/dts/lpc4350-hitex-eval.dts | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/arch/arm/boot/dts/lpc4350-hitex-eval.dts b/arch/arm/boot/dts/lpc4350-hitex-eval.dts index 022d495..6d0c698 100644 --- a/arch/arm/boot/dts/lpc4350-hitex-eval.dts +++ b/arch/arm/boot/dts/lpc4350-hitex-eval.dts @@ -119,9 +119,25 @@ gpios = <&pca_gpio 3 GPIO_ACTIVE_LOW>; }; }; + + vcc: vcc_fixed { + compatible = "regulator-fixed"; + regulator-name = "3v3io"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + }; }; &pinctrl { + adc1_pins: adc1-pins { + adc1_pins_cfg { + pins = "pf_9"; + function = "adc"; + input-disable; + bias-disable; + }; + }; + emc_pins: emc-pins { emc_addr0_23_cfg { pins = "p2_9", "p2_10", "p2_11", "p2_12", @@ -325,6 +341,13 @@ }; }; +&adc1 { + status = "okay"; + vref-supply = <&vcc>; + pinctrl-names = "default"; + pinctrl-0 = <&adc1_pins>; +}; + &emc { status = "okay"; pinctrl-names = "default";