From patchwork Thu Sep 13 20:29:18 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 10600075 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id F1CE06CB for ; Thu, 13 Sep 2018 20:44:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 224642A733 for ; Thu, 13 Sep 2018 20:44:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 145932B56C; Thu, 13 Sep 2018 20:44:35 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A47F82A733 for ; Thu, 13 Sep 2018 20:44:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ffl0APaUVRAjAXaiB2czkEdgrBMXKbHBBBEe+DK7OLA=; b=r7YMFmmIYx5zB7 Gr5rTP+quIM2YWR4T3+3fh9B+bl4lQhTAN1Mytq/TUb6RCIyHBljLqL0AMWC1fpkrdZyYks7MuB6j FDQpNNrqjseuNWnCHDD3mpPzn0h65fB+fklJZWA47r48YiL5TgSgLie5FrX/uqaFyfV9Dh829SJ1B P1wUNdyDmxCC9qUeVprpC3ictCDT8D+oT6v2JBR/w+ml1A4nG2OOv5+cno9aPm3sTfmI2VzffKPYW VuYCNsHKYCLU5WAlXBPHDXzunkQzI////OJt7Wf3Vul0nfYrI7WMYJu6WccDkDgmLjtYACvJzuPzz +49Fms7+PWozA6nYATwg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1g0YTQ-0005Br-Mv; Thu, 13 Sep 2018 20:44:24 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g0YTK-0004gl-C5; Thu, 13 Sep 2018 20:44:18 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=ggiUzi1+C6r5k3AwYmH4QEZqN6b6a1Ufy1Uia43pTB0=; b=DkbrpJivfTjwxQgiNqWo4DV9fb M0242BxJvaNdv77yRPzd55lxAjXqcRXJGLuxkn/lKYkD9dKg0dKDiKeZuBQVBVl8Wk20N2MqzR/Bs wwZd8xBmAQ/Q5JahKIfHaGR/JLXNeUTWP+0I6fmhlH9O21bw/UdvPuoKT1lemvmVLI+SKTjhQyTAY zyFTgFbkGa0xMUKaFFgylICbjXx2Bbfet7TP9M+Xa8BBKX16GNvQWNKXg7xAf3/CUYmZDGaFuOL/R A1hUsNnUePt4oErUfr6Xdd8jW/1qiHIqo+oE4eozStXhlu0XOmPG8vpeY6whl2OTB4qmDjKyrSy+C kHEX7QKw==; Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]) by casper.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g0YF9-0006hT-Ot; Thu, 13 Sep 2018 20:29:41 +0000 Received: by mail-wr1-x444.google.com with SMTP id v16-v6so7963564wro.11; Thu, 13 Sep 2018 13:29:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ggiUzi1+C6r5k3AwYmH4QEZqN6b6a1Ufy1Uia43pTB0=; b=Ynwb8r4+A9WGXgzbKLsFYSd4HL33bMbK42ZSeJQydvwtricGmkNSn3o6h6rJ8xi4eD Q1pYvytBe5+nmxcmmnsvvlqdy64SGfDdb/Pars+Es+9NAP25IsMeuuRv8mrvL0aN2J/1 zfXKJ11MnxaqAp+OEj8POjevn0aEaRfN4WHA38bd1o7n2Ed5x2aO9A2zCrl+qCuOQHls RF/NPEs5JUHYQ+fL+N27dMaEhf4ET/IQkZTA0OFQFpvFmDWtHU5pin0OyW9bT8TxpYn0 GjxW4SALSNb9osBhxyvIOHTXHo6jDIR3JEGCQhVAnJ16g1zaTCuSoIno/KcnTKKxPaJd Y9aw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ggiUzi1+C6r5k3AwYmH4QEZqN6b6a1Ufy1Uia43pTB0=; b=PSVsbC3fUO6VIP57BecpbnK77kdB/lZQZaWSpxVzR1jKiJ+tJZ3oD+kLUPk/rN48Bi 3xCerYeB1amHrTAZPFsclYfOrZi9x3oGlB9na1fD0VnyHVL+SmEQmURQ3ole+3ahZ+SG U5NSS5lLUb1DUBmwNZWqyHeHSl3p+dY7K1nae7CgRPLlSDHAKkPOdg2u3zBoDTbSOXN+ JSW6xHHSAzGiy3ZWY7TWqkPLfdSuDoJB0ILaItdTDEHhAtsrI+7nSUbEo43F5JwOjNr0 CmSD/slkuUnFY6cqJLWHmcmwNnjeTJtU9FaO554yEqFRBsGlI3uMTPr/gRI5PxsZvmpH o19A== X-Gm-Message-State: APzg51Djr+yqgcwMqyEuECF6IdEV22sxgOJlCUHWqLyZgDS4rptBixp4 aHnQanA6Luz4o+X46uMNoKsINQ9c X-Google-Smtp-Source: ANB0Vdbm70ynXVTaE3onT1EJ6I/kocmPqNAO90/pybQD6twPHru5Ovjts89+/3V0cwfaO1clxw7PPA== X-Received: by 2002:a5d:4250:: with SMTP id s16-v6mr6904710wrr.260.1536870567844; Thu, 13 Sep 2018 13:29:27 -0700 (PDT) Received: from blackbox.darklights.net (p200300DCD72E2B00B426A3A246F82EA8.dip0.t-ipconnect.de. [2003:dc:d72e:2b00:b426:a3a2:46f8:2ea8]) by smtp.googlemail.com with ESMTPSA id e7-v6sm6076254wru.46.2018.09.13.13.29.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Sep 2018 13:29:27 -0700 (PDT) From: Martin Blumenstingl To: linux-amlogic@lists.infradead.org, khilman@baylibre.com, carlo@caione.org Subject: [PATCH 3/4] ARM: dts: meson8b: odroidc1: enable the SAR ADC Date: Thu, 13 Sep 2018 22:29:18 +0200 Message-Id: <20180913202919.20927-4-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20180913202919.20927-1-martin.blumenstingl@googlemail.com> References: <20180913202919.20927-1-martin.blumenstingl@googlemail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180913_212939_796568_FD58DB6B X-CRM114-Status: GOOD ( 11.16 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Martin Blumenstingl , linux-arm-kernel@lists.infradead.org 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 Odroid-C1 exposes ADC channels 0 and 1 on the GPIO headers. NOTE: Due to the SoC design these are limited to 1.8V (instead of 3.3V like all other pins). Enable the SAR ADC to enable voltage measurements on these pins. Signed-off-by: Martin Blumenstingl --- arch/arm/boot/dts/meson8b-odroidc1.dts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/meson8b-odroidc1.dts b/arch/arm/boot/dts/meson8b-odroidc1.dts index a08dccccdb5e..7c1225658567 100644 --- a/arch/arm/boot/dts/meson8b-odroidc1.dts +++ b/arch/arm/boot/dts/meson8b-odroidc1.dts @@ -246,6 +246,11 @@ pinctrl-names = "default"; }; +&saradc { + status = "okay"; + vref-supply = <&vcc_1v8>; +}; + &sdio { status = "okay";