From patchwork Thu Jun 11 08:26:30 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 6586461 Return-Path: X-Original-To: patchwork-linux-samsung-soc@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 AA2E09F326 for ; Thu, 11 Jun 2015 08:27:14 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C4A3720643 for ; Thu, 11 Jun 2015 08:27:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C7F8E2063B for ; Thu, 11 Jun 2015 08:27:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752197AbbFKI1L (ORCPT ); Thu, 11 Jun 2015 04:27:11 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:14577 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750985AbbFKI0x (ORCPT ); Thu, 11 Jun 2015 04:26:53 -0400 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>; 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 To: Kukjin Kim , Sylwester Nawrocki , Tomasz Figa , Mike Turquette , Stephen Boyd , Marek Szyprowski , 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 Cc: Krzysztof Kozlowski 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== Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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 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 --- arch/arm/boot/dts/exynos4x12.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;