From patchwork Thu Jul 10 07:26:36 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 4521411 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: X-Original-To: patchwork-linux-pci@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 5BA139F1C4 for ; Thu, 10 Jul 2014 07:27:49 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 811D62026F for ; Thu, 10 Jul 2014 07:27:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 888E720218 for ; Thu, 10 Jul 2014 07:27:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751554AbaGJH1p (ORCPT ); Thu, 10 Jul 2014 03:27:45 -0400 Received: from mail-pa0-f45.google.com ([209.85.220.45]:44436 "EHLO mail-pa0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751321AbaGJH1p (ORCPT ); Thu, 10 Jul 2014 03:27:45 -0400 Received: by mail-pa0-f45.google.com with SMTP id rd3so10563074pab.4 for ; Thu, 10 Jul 2014 00:27:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=bYmOto/XTWhQo/KekVOnqXczYKsRxXmdVFfF3XIPVQM=; b=KzSMPAPhbQoo82kOZOe7uelLV/Fwsn0iy+Nq7JcSEDkQY7PekihG6O0pyO5IGDl0dM INmlXrXXSU/4yJgIklzhL73OCuKrqNuExNmH8WW6a0dPAca6iqsDDvqRoSMvSirfXjpm BiyhhDTtQqAQ+A35MBeUYAwCaJvYAuc/D+BdrRppb4WspfgVeeb3wLiHUT/aUjU6Rjjq OGuyBl5syOBKXkMcQeFgIGQ7wzFP6I5IGroODBS9fnCdQIhedw/ADLUtfDVKOSoSiDeE 6MZVDKm0+SznwG+3dc1b7XAfGR6xKEBBgj65YetVVXDtP+pByt1JEPl1+gWkC+WG/Fsz c+Qw== X-Gm-Message-State: ALoCoQlxYr/CuoIxH+q8CGek5rmMEk2I7+Pqi4w0RVkG0B4hYk3D7awisZ7Q7zAnFBghBgAcnZeu X-Received: by 10.66.155.227 with SMTP id vz3mr44985881pab.26.1404977264640; Thu, 10 Jul 2014 00:27:44 -0700 (PDT) Received: from localhost ([122.167.123.210]) by mx.google.com with ESMTPSA id oa17sm31280387pdb.46.2014.07.10.00.27.40 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 10 Jul 2014 00:27:44 -0700 (PDT) From: Viresh Kumar To: arnd@linaro.org, olof@lixom.net Cc: linux-arm-kernel@lists.infradead.org, spear-devel@list.st.com, b.zolnierkie@samsung.com, bhelgaas@google.com, mark@nicholnet.com, linux-pci@vger.kernel.org, Pratyush Anand , devicetree@vger.kernel.org, Viresh Kumar Subject: [PATCH V9 5/7] ARM: SPEAr13xx: Add bindings and dt node for misc block Date: Thu, 10 Jul 2014 12:56:36 +0530 Message-Id: <23080439ce6c96dbbe9f73e085fc4391c28cf785.1404976059.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.0.0.rc2 In-Reply-To: References: In-Reply-To: References: Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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 From: Pratyush Anand SPEAr SOCs have some miscellaneous registers which are used to configure peripheral. This patch adds dt node and binding information for this block. Acked-by: Arnd Bergmann Signed-off-by: Pratyush Anand Cc: devicetree@vger.kernel.org [viresh: fixed logs/cclist] Signed-off-by: Viresh Kumar --- Documentation/devicetree/bindings/arm/spear-misc.txt | 9 +++++++++ arch/arm/boot/dts/spear13xx.dtsi | 5 +++++ arch/arm/mach-spear/Kconfig | 1 + 3 files changed, 15 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/spear-misc.txt diff --git a/Documentation/devicetree/bindings/arm/spear-misc.txt b/Documentation/devicetree/bindings/arm/spear-misc.txt new file mode 100644 index 0000000..cf64982 --- /dev/null +++ b/Documentation/devicetree/bindings/arm/spear-misc.txt @@ -0,0 +1,9 @@ +SPEAr Misc configuration +=========================== +SPEAr SOCs have some miscellaneous registers which are used to configure +few properties of different peripheral controllers. + +misc node required properties: + +- compatible Should be "st,spear1340-misc", "syscon". +- reg: Address range of misc space upto 8K diff --git a/arch/arm/boot/dts/spear13xx.dtsi b/arch/arm/boot/dts/spear13xx.dtsi index 4382547..3a72508 100644 --- a/arch/arm/boot/dts/spear13xx.dtsi +++ b/arch/arm/boot/dts/spear13xx.dtsi @@ -220,6 +220,11 @@ 0xd8000000 0xd8000000 0x01000000 0xe0000000 0xe0000000 0x10000000>; + misc: syscon@e0700000 { + compatible = "st,spear1340-misc", "syscon"; + reg = <0xe0700000 0x1000>; + }; + gpio0: gpio@e0600000 { compatible = "arm,pl061", "arm,primecell"; reg = <0xe0600000 0x1000>; diff --git a/arch/arm/mach-spear/Kconfig b/arch/arm/mach-spear/Kconfig index 90df202..ba57677 100644 --- a/arch/arm/mach-spear/Kconfig +++ b/arch/arm/mach-spear/Kconfig @@ -19,6 +19,7 @@ config ARCH_SPEAR13XX select HAVE_ARM_SCU if SMP select HAVE_ARM_TWD if SMP select PINCTRL + select MFD_SYSCON help Supports for ARM's SPEAR13XX family