Message ID | 1434011190-24563-2-git-send-email-k.kozlowski@samsung.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> 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 81C829F326 for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 11 Jun 2015 08:30:01 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B8EA220643 for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 11 Jun 2015 08:30:00 +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 CFBE720645 for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 11 Jun 2015 08:29:59 +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 1Z2xpp-0008CM-BE; Thu, 11 Jun 2015 08:27:37 +0000 Received: from mailout1.w1.samsung.com ([210.118.77.11]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Z2xpU-00082S-0i for linux-arm-kernel@lists.infradead.org; Thu, 11 Jun 2015 08:27:16 +0000 Received: from eucpsbgm2.samsung.com (unknown [203.254.199.245]) by mailout1.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0NPR006BVU4QSK90@mailout1.w1.samsung.com> for linux-arm-kernel@lists.infradead.org; Thu, 11 Jun 2015 09:26:50 +0100 (BST) X-AuditID: cbfec7f5-f794b6d000001495-97-5579464ac842 Received: from eusync1.samsung.com ( [203.254.199.211]) by eucpsbgm2.samsung.com (EUCPMTA) with SMTP id D6.0F.05269.A4649755; Thu, 11 Jun 2015 09:26:50 +0100 (BST) Received: from localhost.localdomain ([10.252.80.64]) by eusync1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0NPR00D3CU4C6210@eusync1.samsung.com>; Thu, 11 Jun 2015 09:26:50 +0100 (BST) From: Krzysztof Kozlowski <k.kozlowski@samsung.com> To: Kukjin Kim <kgene@kernel.org>, Sylwester Nawrocki <s.nawrocki@samsung.com>, Tomasz Figa <tomasz.figa@gmail.com>, Mike Turquette <mturquette@linaro.org>, Stephen Boyd <sboyd@codeaurora.org>, Marek Szyprowski <m.szyprowski@samsung.com>, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org Subject: [PATCH 2/2] ARM: dts: Fix wrong clock for Exynos4x12 ADC Date: Thu, 11 Jun 2015 17:26:30 +0900 Message-id: <1434011190-24563-2-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1434011190-24563-1-git-send-email-k.kozlowski@samsung.com> References: <1434011190-24563-1-git-send-email-k.kozlowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrKLMWRmVeSWpSXmKPExsVy+t/xy7pebpWhBu8nKljMP3KO1eL1C0OL /sevmS02Pb7GavGx5x6rxeVdc9gsZpzfx2Sx9shddounEy6yWRx+085q8eNMN4vFql1/GB14 PC739TJ57Jx1l91j06pONo871/aweWxeUu/Rt2UVo8fnTXIB7FFcNimpOZllqUX6dglcGdcO PWUruMxV0XC6gbGB8TlHFyMnh4SAicTit3MYIWwxiQv31rN1MXJxCAksZZRYt+AkG0hCSOA/ o8T5vcUgNpuAscTm5UvAikQEpjJLLP96mQkkwSxgKPHz3R92EFtYwFHi8SOIZhYBVYndfyYx g9i8Au4S394+YobYJidx8thkVhCbU8BD4tLmv4wQy9wlfl++zjyBkXcBI8MqRtHU0uSC4qT0 XCO94sTc4tK8dL3k/NxNjJDA/LqDcekxq0OMAhyMSjy8FScqQoVYE8uKK3MPMUpwMCuJ8Eab VIYK8aYkVlalFuXHF5XmpBYfYpTmYFES5525632IkEB6YklqdmpqQWoRTJaJg1OqgfHcXd+/ nosty9NTlla29uUG+OdysXFJdjxkORYleWLGt8bchh1rOVTj/zr0rRH+cCb57Pt4k/Tj989J XNrmfae3g1OypkGw3iYuYN+TVX+rdwvEfQw9vHrx01fVLyviP16VOrhtptKGY6cfTH93XG6u XFjUZuZ5S5i1unly/lvWMvx6vjZ+zVslluKMREMt5qLiRABQYqU6SAIAAA== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150611_012716_248238_0DED9585 X-CRM114-Status: GOOD ( 10.28 ) X-Spam-Score: -5.0 (-----) Cc: Krzysztof Kozlowski <k.kozlowski@samsung.com> X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 |
diff --git a/arch/arm/boot/dts/exynos4x12.dtsi b/arch/arm/boot/dts/exynos4x12.dtsi index b77dac61ffb5..d7738dd062b7 100644 --- a/arch/arm/boot/dts/exynos4x12.dtsi +++ b/arch/arm/boot/dts/exynos4x12.dtsi @@ -101,7 +101,7 @@ reg = <0x126C0000 0x100>; interrupt-parent = <&combiner>; interrupts = <10 3>; - clocks = <&clock CLK_TSADC>; + clocks = <&clock CLK_PCLK_ADC>; clock-names = "adc"; #io-channel-cells = <1>; io-channel-ranges;
The TSADC gate clock is present only in Exynos4210. It should not be added to exynos4x12.dtsi because the register controlling it is reserved on Exynos4x12. Instead, the Analog to Digital Converter of Exynos4x12 uses PCLK_ADC gate clock from different register. By using proper clock this effectively enables usage of exynos-adc driver on Exynos4412 boards, enables accessing sensors connected to it on Trats2 board (ntc,ncp15wb473 AP and battery thermistors) and fixes following warnings during boot: [ 2.248247] ERROR: could not get clock /adc@126C0000:adc(0) [ 2.248262] exynos-adc 126c0000.adc: failed getting clock, err = -2 [ 2.248293] exynos-adc: probe of 126c0000.adc failed with error -2 Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com> --- arch/arm/boot/dts/exynos4x12.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)