From patchwork Tue Mar 26 13:00:21 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Sylwester Nawrocki/Kernel \\(PLT\\) /SRPOL/Staff Engineer/Samsung Electronics" X-Patchwork-Id: 2336251 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id CF66DDF264 for ; Tue, 26 Mar 2013 13:00:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759593Ab3CZNAp (ORCPT ); Tue, 26 Mar 2013 09:00:45 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:29999 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757712Ab3CZNAo (ORCPT ); Tue, 26 Mar 2013 09:00:44 -0400 Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MK90073BQT2TH10@mailout3.samsung.com> for linux-samsung-soc@vger.kernel.org; Tue, 26 Mar 2013 22:00:38 +0900 (KST) X-AuditID: cbfee61b-b7f076d0000034b6-1d-51519bf6ce08 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 8D.4F.13494.6FB91515; Tue, 26 Mar 2013 22:00:38 +0900 (KST) Received: from amdc1344.digital.local ([106.116.147.32]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MK900KTBQSR3G40@mmp1.samsung.com>; Tue, 26 Mar 2013 22:00:38 +0900 (KST) From: Sylwester Nawrocki To: kgene.kim@samsung.com Cc: kyungmin.park@samsung.com, thomas.abraham@linaro.org, t.figa@samsung.com, myungjoo.ham@samsung.com, dh09.lee@samsung.com, linux-samsung-soc@vger.kernel.org, devicetree-discuss@lists.ozlabs.org, Sylwester Nawrocki Subject: [PATCH v2] ARM: dts: Add SYSREG block node for S5P/Exynos4 SoC series Date: Tue, 26 Mar 2013 14:00:21 +0100 Message-id: <1364302821-17989-1-git-send-email-s.nawrocki@samsung.com> X-Mailer: git-send-email 1.7.9.5 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrPJMWRmVeSWpSXmKPExsVy+t9jAd1vswMDDRrnmlgcmP2Q1eL6eTuL 3gVX2SzONr1ht5hxfh+Txe3GFWwWh9+0s1qsn/GaxeLYjCWMDpwed67tYfM4P2Mho0ffllWM Hp83yQWwRHHZpKTmZJalFunbJXBlLHs4j63gu0DF7YWXWRoYm/m6GDk5JARMJHqPTGCHsMUk Ltxbz9bFyMUhJLCIUaJv0kk2kISQQAeTxIWPYSA2m4ChRO/RPkYQW0RAUqKp4Q8zSAOzwHdG iS1dp8AmCQv4SbxZsZQJxGYRUJXYdPoDmM0r4CZxecMdli5GDqBtChJzJtlMYORewMiwilE0 tSC5oDgpPddIrzgxt7g0L10vOT93EyM4WJ5J72Bc1WBxiFGAg1GJh5cjLCBQiDWxrLgy9xCj BAezkggvU2tgoBBvSmJlVWpRfnxRaU5q8SFGaQ4WJXHeg63WgUIC6YklqdmpqQWpRTBZJg5O qQbG4GOr1po8af/ne90j//XT9lqhIPPfmZundGcGv8z6v8/7TfuKcBX5aIXji+8Kmb19/Pnz od11OR1PA/sj814Xla8PFjRV+7BebVp8hd1OuW6bfQbbVu9T/DQ942epxrFHF+509ydJq991 e50lcuCk99XX1wRPH5+i5yL8We7OLp6XCg91vnadU2Ipzkg01GIuKk4EAI2BfDgSAgAA Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org This patch adds device tree node for the SYSREG registers block found in Samsung S5P/Exynos SoC series. The SYSREG module generates control signals for the ARM CPU and various IP blocks and buses. SYSREG block registers are exposed through APB bus interface. A sysreg device tree node is to be associated with mfd syscon driver and all SYSREG clients should use regmap interface it provides. It allows to eliminate any possible races and conflicts should different drivers attempt to concurrently access same register. Signed-off-by: Sylwester Nawrocki Signed-off-by: Kyungmin Park --- Changes since v1: - Added missing "samsung," prefix to the compatible property, - the binding documentation moved to ...bindings/arm/samsung as SYSREG block can be also found on other SoCs than Exynos. --- .../devicetree/bindings/arm/samsung/sysreg.txt | 7 +++++++ arch/arm/boot/dts/exynos4.dtsi | 5 +++++ 2 files changed, 12 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/samsung/sysreg.txt diff --git a/Documentation/devicetree/bindings/arm/samsung/sysreg.txt b/Documentation/devicetree/bindings/arm/samsung/sysreg.txt new file mode 100644 index 0000000..5039c0a --- /dev/null +++ b/Documentation/devicetree/bindings/arm/samsung/sysreg.txt @@ -0,0 +1,7 @@ +SAMSUNG S5P/Exynos SoC series System Registers (SYSREG) + +Properties: + - name : should be 'sysreg'; + - compatible : should contain "samsung,-sysreg", "syscon"; + For Exynos4 SoC series it should be "samsung,exynos4-sysreg", "syscon"; + - reg : offset and length of the register set. diff --git a/arch/arm/boot/dts/exynos4.dtsi b/arch/arm/boot/dts/exynos4.dtsi index 9ac47d5..462f055 100644 --- a/arch/arm/boot/dts/exynos4.dtsi +++ b/arch/arm/boot/dts/exynos4.dtsi @@ -82,6 +82,11 @@ reg = <0x10440000 0x1000>; }; + sys_reg: sysreg { + compatible = "samsung,exynos4-sysreg", "syscon"; + reg = <0x10010000 0x400>; + }; + watchdog@10060000 { compatible = "samsung,s3c2410-wdt"; reg = <0x10060000 0x100>;