From patchwork Tue Mar 29 21:50:44 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joachim Eastwood X-Patchwork-Id: 8691361 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 557959F36E for ; Tue, 29 Mar 2016 21:54:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7854D20340 for ; Tue, 29 Mar 2016 21:54:42 +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 AF435202F8 for ; Tue, 29 Mar 2016 21:54:41 +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 1al1ZV-000587-EY; Tue, 29 Mar 2016 21:53:09 +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-0004dc-V5 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 c62so3077226lfc.2 for ; Tue, 29 Mar 2016 14:51:56 -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=Iaea84xRtru+H0Fnbhc7+Os7m38JXMKNIH+/cEbdJuM=; b=w6bvlIAGJQmL8KT1KAoprgCwRJen0kMZd1K4WR/QEDYDNz8+drriz6VFVYAFkQhonf A4b2dxsSFEiCvTSeu7WpqNbJerxP9AU5Knyd46J2pRz5fAQt+oSuW4nbNz5KrikG5Hv5 zSVmJGvYI7yYBjwFHX+wYoQvbXaEy+ngAdiIEYNYI5c0nM5ZKK2kK9jRedGzhMYAivD0 Fvd+xJUZRFc5cT9SL7ET94rUblD8q5QaoDvp5p/VKBozwD3tKz0ZPWFVyZt/1nccnDXL aIS6nsQCBSgosaAXZiF8Qwp8mdpw3vW56QwDvwfP08QNpDnLmB/lo4aK34m0GRNUbH/L 6k8g== 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=Iaea84xRtru+H0Fnbhc7+Os7m38JXMKNIH+/cEbdJuM=; b=ChvOmvvYaD/4+I2cZF6qLnn/Uecd5j54RMVlP3BhPw+JubUqCDz9apivuuFk9sb/dr sQMj0djVB3r4UqEpLdYnoGKMbmLArgsOVIFdcBONgxEln7fWKeD0EuZjEHIAGwA/HTDp J7FYgCRG8qSIuBSQcsz0UOR6fVKsDR6warWo0d/aN7u+zjVny0e9tU3V47M1c1kqNz+B 6Hlq8lyLncTpytysD1C15qisBlwDWNFgYxdTQQ5IXSB/BbrHM6XqkRT9P7RgJeIVSDB1 V626cVkRIxFy+ZEWuAPjuakAb+QYUfbUYX4h6R8m8o+aV0ga+ZMHB1ca0kBBUjxAujtJ pN7w== X-Gm-Message-State: AD7BkJIrVgUvcBTiqldnBarHkk7yRGh2bx92aFR9/gCUvCKa4rc12DB9hHf+/Wzc2Fk4Yw== X-Received: by 10.25.158.65 with SMTP id h62mr2247438lfe.76.1459288315100; Tue, 29 Mar 2016 14:51:55 -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.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 29 Mar 2016 14:51:54 -0700 (PDT) From: Joachim Eastwood To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 5/7] ARM: dts: lpc4357-ea4357: add adc0 Date: Tue, 29 Mar 2016 23:50:44 +0200 Message-Id: <1459288246-1670-6-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_492551_B63A190A X-CRM114-Status: GOOD ( 10.14 ) 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 adc0 on EA4357 dev kit. This kit has a 22k potentiometer (R94) connected on ADC0 channel 3. Signed-off-by: Joachim Eastwood --- arch/arm/boot/dts/lpc4357-ea4357-devkit.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/lpc4357-ea4357-devkit.dts b/arch/arm/boot/dts/lpc4357-ea4357-devkit.dts index 079d3cf..bbc70b9 100644 --- a/arch/arm/boot/dts/lpc4357-ea4357-devkit.dts +++ b/arch/arm/boot/dts/lpc4357-ea4357-devkit.dts @@ -38,6 +38,13 @@ reg = <0x28000000 0x2000000>; /* 32 MB */ }; + vcc: vcc_fixed { + compatible = "regulator-fixed"; + regulator-name = "3v3-supply"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + }; + /* vmmc is controlled by sdmmc host internally */ vmmc: vmmc_fixed { compatible = "regulator-fixed"; @@ -461,6 +468,11 @@ }; }; +&adc0 { + status = "okay"; + vref-supply = <&vcc>; +}; + &i2c0 { status = "okay"; pinctrl-names = "default";