Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757026AbaGQLX3 (ORCPT ); Thu, 17 Jul 2014 07:23:29 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:26591 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756881AbaGQLXZ (ORCPT ); Thu, 17 Jul 2014 07:23:25 -0400 X-AuditID: cbfee690-b7fb56d000003439-bb-53c7b22aee57 From: Naveen Krishna Chatradhi To: linux-iio@vger.kernel.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org, cw00.choi@samsung.com, gregkh@linuxfoundation.org, naveenkrishna.ch@gmail.com, lars@metafoo.de, cpgs@samsung.com, grundler@chromium.org, jic23@kernel.org Subject: [PATCH 0/4 v2] iio: exynos-adc: use syscon instead of ioremap Date: Thu, 17 Jul 2014 16:49:49 +0530 Message-id: <1405595993-16661-1-git-send-email-ch.naveen@samsung.com> X-Mailer: git-send-email 1.7.9.5 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrNLMWRmVeSWpSXmKPExsWyRsSkTldr0/Fgg19HzC1eHtK0uP7lOavF /CPnWC2aF69ns3h15AeTxYOmVUwWSybPZ7WYd+Qdi8XlXXPYLGac38dksWjbf2YHbo/ZDRdZ PHbOusvusWlVJ5vH/rlr2D2WvDnE6tG3ZRWjx+dNcgHsUVw2Kak5mWWpRfp2CVwZfc1tjAX7 BCreLNvB3MDYwtvFyMkhIWAi0TBxDSOELSZx4d56ti5GLg4hgaWMEmuedbPCFJ0428oOkZjO KDHxyS92kISQQD+TxP67wSA2m4CZxMFFq8HiIgJxEh8u94M1MAvsZ5R4/Xo/WEJYwE3iy+KF bCA2i4CqxNw/98DivAKuEjf2bAWKcwBtU5CYM8kGpFdCYB27xNmexawQ9QIS3yYfYoGokZXY dIAZ4jhJiYMrbrBMYBRcwMiwilE0tSC5oDgpvchErzgxt7g0L10vOT93EyMw4E//ez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lW0Ch/P/rJbb/HXpT8nLw5JrDjd5mOhxVg/LcXrtoaR64SpD+Y+ 0PyaGfK1LerNp3TbHIYTV5kUuJ9cUdM+usl4adCJg/n9K5LPmMzve3JqjutZ7rl8SizFGYmG WsxFxYkAEqUreL0CAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Syscon is a regmap based framework to help various drivers access misc bits in registers which does not belong to another module. For example, Power Module, SYSREGs. With syscon, ADC can use generic regmap API to access registers of PMU which are registered into syscon. This patch does the following 1. Use the syscon and Regmap API instead of ioremappaing the ADC_PHY register from PMU. 2. Moves the exynos-adc.txt from bindings/arm/samsung/ to bindings/iio/adc/. 3. Updates the Documentation in exynos-adc.txt with syscon phandle for the ADC nodes. 4. Updates the Dts files for Exynos3250, Exynos4x12, Exynos5250, Exynos5420 with the syscon phandle. Tested on Exynos5420 based Peach PIT and Exynos5800 based Peach PI by verifying sysfs entries provided by HWMON based NTC thermistors. Tested-By for Exynos3250, Exynos4x12 would be appreciated. Changes since v1: Adding syscon description in commit message Rebased on top of v5 version of ADC for exynos3250 from Changwoo. iio: adc: exynos_adc: Support Exynos3250 ADC and code clean https://lkml.org/lkml/2014/6/27/16 Naveen Krishna Chatradhi (4): iio: exyno-adc: use syscon for PMU register access Documentation: dt-bindings: move exynos-adc.txt to more iio/adc/ Documentation: dt-bindings: update exynos-adc.txt with syscon handle ARM: dts: exynos: Add sysreg phandle to ADC node .../devicetree/bindings/arm/samsung/exynos-adc.txt | 82 ------------------ .../devicetree/bindings/iio/adc/exynos-adc.txt | 87 ++++++++++++++++++++ arch/arm/boot/dts/exynos3250.dtsi | 3 +- arch/arm/boot/dts/exynos4x12.dtsi | 3 +- arch/arm/boot/dts/exynos5250.dtsi | 3 +- arch/arm/boot/dts/exynos5420.dtsi | 3 +- drivers/iio/adc/exynos_adc.c | 29 +++++-- 7 files changed, 115 insertions(+), 95 deletions(-) delete mode 100644 Documentation/devicetree/bindings/arm/samsung/exynos-adc.txt create mode 100644 Documentation/devicetree/bindings/iio/adc/exynos-adc.txt -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/