From patchwork Fri May 31 09:18:54 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 17329 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f197.google.com (mail-lb0-f197.google.com [209.85.217.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 79B7525CAB for ; Fri, 31 May 2013 09:20:53 +0000 (UTC) Received: by mail-lb0-f197.google.com with SMTP id 10sf1623902lbf.0 for ; Fri, 31 May 2013 02:20:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-beenthere:x-forwarded-to:x-forwarded-for:delivered-to:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :mime-version:x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe :content-type; bh=iS7ZrBcMn7ZDQ3iYtGDl6Wi/udXqKxwEVfOt3Qs8i48=; b=AYlsJYZmgEAOjW91g9JcTcIwBydCAvGiufYvHoiLXi80aisZ/IEWtKLkXDsQ5+qYT1 aO6QZ8AMqLzoYDEZQPeY7Qnj/lyRvL7RKj9O2ECwhYZJwgsr8Crm/d+IGdoydWfiITT1 0y1MjmrzUGbgXO9JQwDiJSO1JrO5/zNMkCyzE4gz1wtNR1UthTQNGnLNYIeYh4YBYxlw bcmBkpXWW6gc/F5zGR4K0jjfKWQBiHK+s4PW8DHNM/TID9pEyIqJM4JoD5Er55Ag/gmO eLWoGwEDntXT2+bfACbLkoUinhp0PWPDHsH/x16RiFBFrEJaYUcaF3RJ8d7vTpzd1reK iibQ== X-Received: by 10.180.12.200 with SMTP id a8mr1142315wic.1.1369992052059; Fri, 31 May 2013 02:20:52 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.180.8.37 with SMTP id o5ls161530wia.50.gmail; Fri, 31 May 2013 02:20:51 -0700 (PDT) X-Received: by 10.180.87.33 with SMTP id u1mr2351363wiz.34.1369992051852; Fri, 31 May 2013 02:20:51 -0700 (PDT) Received: from mail-ve0-x230.google.com (mail-ve0-x230.google.com [2607:f8b0:400c:c01::230]) by mx.google.com with ESMTPS id cv6si10651921wjb.36.2013.05.31.02.20.51 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 31 May 2013 02:20:51 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c01::230 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=2607:f8b0:400c:c01::230; Received: by mail-ve0-f176.google.com with SMTP id c13so934419vea.7 for ; Fri, 31 May 2013 02:20:50 -0700 (PDT) X-Received: by 10.220.112.16 with SMTP id u16mr9422482vcp.40.1369992050794; Fri, 31 May 2013 02:20:50 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.229.199 with SMTP id jj7csp42409vcb; Fri, 31 May 2013 02:20:50 -0700 (PDT) X-Received: by 10.15.27.194 with SMTP id p42mr12523574eeu.153.1369992049320; Fri, 31 May 2013 02:20:49 -0700 (PDT) Received: from eu1sys200aog114.obsmtp.com (eu1sys200aog114.obsmtp.com [207.126.144.137]) by mx.google.com with SMTP id g44si30084642eeo.53.2013.05.31.02.20.31 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 31 May 2013 02:20:49 -0700 (PDT) Received-SPF: neutral (google.com: 207.126.144.137 is neither permitted nor denied by best guess record for domain of linus.walleij@stericsson.com) client-ip=207.126.144.137; Received: from beta.dmz-eu.st.com ([164.129.1.35]) (using TLSv1) by eu1sys200aob114.postini.com ([207.126.147.11]) with SMTP ID DSNKUahrXuGy6ddFnq2I4ptEe5tSKmMcgQ99@postini.com; Fri, 31 May 2013 09:20:49 UTC Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id D25A5281; Fri, 31 May 2013 09:20:29 +0000 (GMT) Received: from relay1.stm.gmessaging.net (unknown [10.230.100.17]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 43E274A31; Fri, 31 May 2013 09:20:12 +0000 (GMT) Received: from exdcvycastm003.EQ1STM.local (alteon-source-exch [10.230.100.61]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (Client CN "exdcvycastm003", Issuer "exdcvycastm003" (not verified)) by relay1.stm.gmessaging.net (Postfix) with ESMTPS id E497024C07C; Fri, 31 May 2013 11:20:23 +0200 (CEST) Received: from steludxu4075.lud.stericsson.com (10.230.100.153) by smtp.stericsson.com (10.230.100.1) with Microsoft SMTP Server (TLS) id 8.3.279.5; Fri, 31 May 2013 11:20:29 +0200 From: Linus Walleij To: Cc: Arnd Bergmann , Linus Walleij Subject: [PATCH 19/39] ARM: u300: probe the U300 dummy-spichip from device tree Date: Fri, 31 May 2013 11:18:54 +0200 Message-ID: <1369991954-17406-20-git-send-email-linus.walleij@stericsson.com> X-Mailer: git-send-email 1.7.11.3 In-Reply-To: <1369991954-17406-1-git-send-email-linus.walleij@stericsson.com> References: <1369991954-17406-1-git-send-email-linus.walleij@stericsson.com> MIME-Version: 1.0 X-Gm-Message-State: ALoCoQmr2ifRjgjnBXNPcrZhuFPQBNTMYDVhtYN0mqETt5hQMh/4BDXdXWq4qIMrIBRuYN1Cjy8N X-Original-Sender: linus.walleij@stericsson.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c01::230 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Linus Walleij This probes the U300 dummy-spichip from the device tree and adds the apropriate node to the tree. Signed-off-by: Linus Walleij --- arch/arm/boot/dts/ste-u300.dts | 5 +++++ arch/arm/mach-u300/dummyspichip.c | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/arch/arm/boot/dts/ste-u300.dts b/arch/arm/boot/dts/ste-u300.dts index 355ac60..1b20769 100644 --- a/arch/arm/boot/dts/ste-u300.dts +++ b/arch/arm/boot/dts/ste-u300.dts @@ -233,6 +233,11 @@ num-cs = <3>; #address-cells = <1>; #size-cells = <0>; + spi-dummy@1 { + compatible = "arm,pl022-dummy"; + reg = <1>; + spi-max-frequency = <20000000>; + }; }; }; }; diff --git a/arch/arm/mach-u300/dummyspichip.c b/arch/arm/mach-u300/dummyspichip.c index 2785cb6..52962bf 100644 --- a/arch/arm/mach-u300/dummyspichip.c +++ b/arch/arm/mach-u300/dummyspichip.c @@ -263,10 +263,16 @@ static int pl022_dummy_remove(struct spi_device *spi) return 0; } +static const struct of_device_id pl022_dummy_dt_match[] = { + { .compatible = "arm,pl022-dummy" }, + {}, +}; + static struct spi_driver pl022_dummy_driver = { .driver = { .name = "spi-dummy", .owner = THIS_MODULE, + .of_match_table = pl022_dummy_dt_match, }, .probe = pl022_dummy_probe, .remove = pl022_dummy_remove,