From patchwork Tue Sep 5 17:09:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 9939385 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9A69A60350 for ; Tue, 5 Sep 2017 17:10:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 83865289EB for ; Tue, 5 Sep 2017 17:10:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 78245289D7; Tue, 5 Sep 2017 17:10:42 +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=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.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 12E45289D1 for ; Tue, 5 Sep 2017 17:10:41 +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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: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:In-Reply-To: References:List-Owner; bh=dyqfmxYjY1U6vPUtZkpnw/lspbEFpkafPBj0rcGQWKM=; b=L5I /EGraBrgM7WyNyiDV8T8aeFYn6QC5Cus2+svEMMJR/MVLPjkLZIabiJvhGInuMtRw1sYRTMJ+FBUa zTE7B9TOXXakNddHYodc4Yp7UQQP4L5h7iTfNovomersN347MXzP04Gj2DssgbWzd5xbDptY/S7TY SnqMtWZdeQ1946TBR1nUvQdyfeWAk9R0GEhQi3y2UsOUhn8GYF/PTNadAKwM/PvQ1PBHAHCbkxoP0 SMm35Tk2EvjDQvsJwSjS1vakF7XTRiCxrT6Oo/XbHcz6b+5BrjNko5i73aS3vVeQjhuQuE9ruRl+U UZnpSnkZOsM4L6ko45tzixjUykVL+Hw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dpHMx-00058Y-5x; Tue, 05 Sep 2017 17:10:35 +0000 Received: from mail-wr0-x22e.google.com ([2a00:1450:400c:c0c::22e]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dpHMr-0004IS-1n for linux-arm-kernel@lists.infradead.org; Tue, 05 Sep 2017 17:10:32 +0000 Received: by mail-wr0-x22e.google.com with SMTP id k20so1166782wre.4 for ; Tue, 05 Sep 2017 10:10:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=3ek7+Z1U3X2il0ObWCbE1KdK2iQnl/2BO4zWzUVw1+E=; b=KnHGj6BBjTksreBJUbk9DlfW2CWmgo8as7JS8dyPoFLykF4DGXd3KhgsC61TdanlvD H2ko7CxR4uOTzuA+NrIdGuOM2SwIRk0m5CQ1NYD4ovYOWkxq6Tq2GtgtMZ6OeFiPq5vv Wy2IW8yF/f46xaWzo2+IbrHEkGP2+cGBoU24u+wLzn4pIFFJdIvEU/+kD7QzdGDaYbVo jtHsypebXZMOAp8rjLxL1y7RWChib2e39VU/5zsU8+RDkY/Aj6PnrwnJ0jf5yRIRcwHX SW89z7coZNSwR+Q5A2mpgcNTHxQG9le1NjJjoJeWnMOY1OYDEdpGVNe0enCqYrRFswga zxLQ== 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; bh=3ek7+Z1U3X2il0ObWCbE1KdK2iQnl/2BO4zWzUVw1+E=; b=Itlr7JRsPnPK4Y1AxNKZwtWGLw4Pi+eH//8A3d9vYrVtbw5xhqlflq2gkoQ4H4YwNu lSpnftRURpiI5LUXbSXwjn8xUXUSBeF0qCh1POfgfgDbPhdT4VL3aLZnc8r8QcCHwto5 zZHusCE84WMkbT8ZxX9pHuFk67dSQSQ/J9oTUb448c4jv0TkR9lcNqWgBnOeGvZDo7/4 OrvrpMwzBLXeQyy94obzx7+4OfxfmddkkdXbZQBMjMa8rHQADdHRgFaA/L/8Q+XdWpRp N4mG9JOyHURYcTf55lSNJeyM3JDqJC6Fzstw0Z1qdpzbpuBTHZKmTLoFIj2JbANUw8sp l63w== X-Gm-Message-State: AHPjjUhh1R4KpbZF516Q9U+TIdMrHRQ3vOvHLXim6sujPSZVm26NAGmz 2WRdFMEAXXDpvrA/ X-Google-Smtp-Source: ADKCNb6fD9yUGry9LDGKCb39ROJWosF7KosllCuQutU7b+CEG0IKAz5UiXr1gxYaqwE6XjDrwHLzOw== X-Received: by 10.223.196.170 with SMTP id m39mr3302608wrf.44.1504631405108; Tue, 05 Sep 2017 10:10:05 -0700 (PDT) Received: from localhost.localdomain ([90.63.244.31]) by smtp.googlemail.com with ESMTPSA id 4sm1139026wrl.60.2017.09.05.10.10.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Sep 2017 10:10:04 -0700 (PDT) From: Jerome Brunet To: Kevin Hilman , Carlo Caione Subject: [PATCH] ARM64: dts: meson-gxl-libretech-cc: enable saradc Date: Tue, 5 Sep 2017 19:09:55 +0200 Message-Id: <20170905170955.13135-1-jbrunet@baylibre.com> X-Mailer: git-send-email 2.9.5 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170905_101029_334248_B6843F2B X-CRM114-Status: UNSURE ( 8.65 ) X-CRM114-Notice: Please train this message. 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: linux-amlogic@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Jerome Brunet MIME-Version: 1.0 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 Enable saradc and add the reference 1.8v regulator required. The libretech-cc has saradc channel 0 and 2 available on the 2 first pins of 2J3 header Signed-off-by: Jerome Brunet --- arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc.dts b/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc.dts index 69ca14ac10fa..71c3b3545bba 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc.dts +++ b/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc.dts @@ -93,6 +93,13 @@ <1800000 1>; }; + vddio_ao18: regulator-vddio_ao18 { + compatible = "regulator-fixed"; + regulator-name = "VDDIO_AO18"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + vddio_boot: regulator-vddio_boot { compatible = "regulator-fixed"; regulator-name = "VDDIO_BOOT"; @@ -193,6 +200,11 @@ "7J1 Header Pin15"; }; +&saradc { + status = "okay"; + vref-supply = <&vddio_ao18>; +}; + /* SD card */ &sd_emmc_b { status = "okay";