From patchwork Mon Mar 25 16:44:07 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: 2332231 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 9E94DDF24C for ; Mon, 25 Mar 2013 16:44:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758691Ab3CYQoi (ORCPT ); Mon, 25 Mar 2013 12:44:38 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:33389 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758086Ab3CYQoh (ORCPT ); Mon, 25 Mar 2013 12:44:37 -0400 Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MK800DOO6IC5DB0@mailout3.samsung.com> for linux-samsung-soc@vger.kernel.org; Tue, 26 Mar 2013 01:44:36 +0900 (KST) X-AuditID: cbfee61a-b7fa86d0000045ae-e8-51507ef4bc5a Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 95.D0.17838.4FE70515; Tue, 26 Mar 2013 01:44:36 +0900 (KST) Received: from amdc1344.digital.local ([106.116.147.32]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MK800GCZ6HRDS70@mmp2.samsung.com>; Tue, 26 Mar 2013 01:44:36 +0900 (KST) From: Sylwester Nawrocki To: kgene.kim@samsung.com Cc: kyungmin.park@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] ARM: dts: Add SYSREG block node for Exynos4 SoC series Date: Mon, 25 Mar 2013 17:44:07 +0100 Message-id: <1364229847-3594-1-git-send-email-s.nawrocki@samsung.com> X-Mailer: git-send-email 1.7.9.5 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrAJMWRmVeSWpSXmKPExsVy+t9jQd0vdQGBBqs3SVscmP2Q1eL6eTuL 3gVX2SzONr1ht5hxfh+Txe3GFWwWh9+0szqwe5yfsZDRo2/LKkaPz5vkApijuGxSUnMyy1KL 9O0SuDIWX2hhKmjgr3i95iJjA+NOni5GTg4JAROJuXMWMEPYYhIX7q1nA7GFBKYzSjxsj+ti 5AKyO5gk+u7sZARJsAkYSvQe7QOzRQQkJZoa/jCDFDELHGOUmDy7gQUkISzgLnFhz14wm0VA VeLAmitgU3kFXCWebvzP1MXIAbRNQWLOJJsJjNwLGBlWMYqmFiQXFCel5xrqFSfmFpfmpesl 5+duYgSHwzOpHYwrGywOMQpwMCrx8G4IDggUYk0sK67MPcQowcGsJMKrJQQU4k1JrKxKLcqP LyrNSS0+xCjNwaIkznug1TpQSCA9sSQ1OzW1ILUIJsvEwSnVwCjt2JW+ztpySclB7mkyf97r zN36lqf6q8j20NLzbXkeInd8+tdd7n4fmSgwS2tns9hPZunTh5dk9iaKZCfwbZSUvLb/yeqY qprVHqLrDbZrf7z55VmBgmBMv5yzrOkcZZXlpeusM/9PZ5F46H6xPKxiRtWzjsQpIf93H/w6 7YLTrixRVUUuQyWW4oxEQy3mouJEAOws3xIDAgAA 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 node for the SYSREG registers block present in Exynos SoC series. The SYSREG block generates control signals for the ARM CPU and various IP blocks and buses. The SYSREG registers are exposed through APB bus interface. The sysreg device tree node is to be associated with the mfd syscon driver and all SYSREG clients should use the 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 --- .../devicetree/bindings/arm/exynos/sysreg.txt | 7 +++++++ arch/arm/boot/dts/exynos4.dtsi | 5 +++++ 2 files changed, 12 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/exynos/sysreg.txt diff --git a/Documentation/devicetree/bindings/arm/exynos/sysreg.txt b/Documentation/devicetree/bindings/arm/exynos/sysreg.txt new file mode 100644 index 0000000..5b1f59d --- /dev/null +++ b/Documentation/devicetree/bindings/arm/exynos/sysreg.txt @@ -0,0 +1,7 @@ +SAMSUNG Exynos System Registers (SYSREG) + +Properties: + - name : should be 'sysreg'; + - compatible : should contain "samsung,exynos-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..b4123ec 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 = "exynos4-sysreg", "syscon"; + reg = <0x10010000 0x400>; + }; + watchdog@10060000 { compatible = "samsung,s3c2410-wdt"; reg = <0x10060000 0x100>;