From patchwork Mon Apr 22 10:01:25 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 16310 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-gg0-f197.google.com (mail-gg0-f197.google.com [209.85.161.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 6CDA125DEE for ; Mon, 22 Apr 2013 10:02:35 +0000 (UTC) Received: by mail-gg0-f197.google.com with SMTP id k5sf9744147ggn.8 for ; Mon, 22 Apr 2013 03:01:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-beenthere:x-received:received-spf:x-received :x-forwarded-to:x-forwarded-for:delivered-to:x-received:received-spf :from:to:cc:subject:date:message-id:x-mailer: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=W8vfqEO1+rHmFe/HJC5DCmYWjuIqstw5Dkla92ihrxI=; b=BwXHzrOhz5Z20px1Dl1XoA7d5m2q+A499xHeb+XE2ReeYHwku8SQH1IfwygEq9wkCe wuIUTA0AIZZeTHGXkpqwCkg7/DnPbrJAr/rI9NbBy6h1gvd+vlaMgh6Gag7mjvGIyP9L CSN3/SWd4LnyImAwpuUViA7A7PH+IuxxmfUKLlz3uJgrbDdMnH9OmO0S4X51b3qS41nb GNLOkIyHNp+HvlVlfU8rwoqGNfjuRWBCIr9/IAJqe+qHhgPiigzHzfpb3DC8KwWBQOti /RkJaEWrCxJ52lG5pHHbfgk1FtgY8/Na2VIxuICE2FJ+8eAXhZAa9qaryQxQvSYXXiP5 KRuQ== X-Received: by 10.224.185.17 with SMTP id cm17mr5569772qab.6.1366624909324; Mon, 22 Apr 2013 03:01:49 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.63.33 with SMTP id d1ls3039362qes.88.gmail; Mon, 22 Apr 2013 03:01:49 -0700 (PDT) X-Received: by 10.220.83.138 with SMTP id f10mr932787vcl.7.1366624909183; Mon, 22 Apr 2013 03:01:49 -0700 (PDT) Received: from mail-vb0-x22d.google.com (mail-vb0-x22d.google.com [2607:f8b0:400c:c02::22d]) by mx.google.com with ESMTPS id r3si13966715vco.87.2013.04.22.03.01.49 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 22 Apr 2013 03:01:49 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c02::22d 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:c02::22d; Received: by mail-vb0-f45.google.com with SMTP id w15so5717700vbf.32 for ; Mon, 22 Apr 2013 03:01:49 -0700 (PDT) X-Received: by 10.220.169.78 with SMTP id x14mr3416433vcy.41.1366624909070; Mon, 22 Apr 2013 03:01:49 -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.58.127.98 with SMTP id nf2csp69027veb; Mon, 22 Apr 2013 03:01:48 -0700 (PDT) X-Received: by 10.180.84.162 with SMTP id a2mr49478997wiz.14.1366624908142; Mon, 22 Apr 2013 03:01:48 -0700 (PDT) Received: from eu1sys200aog101.obsmtp.com (eu1sys200aog101.obsmtp.com [207.126.144.111]) by mx.google.com with SMTP id v4si38582186eel.241.2013.04.22.03.01.33 (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 22 Apr 2013 03:01:48 -0700 (PDT) Received-SPF: neutral (google.com: 207.126.144.111 is neither permitted nor denied by best guess record for domain of linus.walleij@stericsson.com) client-ip=207.126.144.111; Received: from beta.dmz-us.st.com ([167.4.1.35]) (using TLSv1) by eu1sys200aob101.postini.com ([207.126.147.11]) with SMTP ID DSNKUXUKeoW6BV8qDp9l7Fnf34/ct8dVdoa0@postini.com; Mon, 22 Apr 2013 10:01:47 UTC Received: from zeta.dmz-us.st.com (ns4.st.com [167.4.16.71]) by beta.dmz-us.st.com (STMicroelectronics) with ESMTP id 31C8F68; Mon, 22 Apr 2013 10:00:33 +0000 (GMT) Received: from relay1.stm.gmessaging.net (unknown [10.230.100.17]) by zeta.dmz-us.st.com (STMicroelectronics) with ESMTP id EB1F13F; Mon, 22 Apr 2013 03:09:59 +0000 (GMT) Received: from exdcvycastm022.EQ1STM.local (alteon-source-exch [10.230.100.61]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (Client CN "exdcvycastm022", Issuer "exdcvycastm022" (not verified)) by relay1.stm.gmessaging.net (Postfix) with ESMTPS id BE81224C07C; Mon, 22 Apr 2013 12:01:22 +0200 (CEST) Received: from steludxu4075.lud.stericsson.com (10.230.100.153) by smtp.stericsson.com (10.230.100.30) with Microsoft SMTP Server (TLS) id 8.3.279.5; Mon, 22 Apr 2013 12:01:28 +0200 From: Linus Walleij To: , Mark Brown , Grant Likely , Cc: Arnd Bergmann , , Linus Walleij Subject: [PATCH 21/23] ARM: u300: probe the U300 dummy-spichip from device tree Date: Mon, 22 Apr 2013 12:01:25 +0200 Message-ID: <1366624885-6966-1-git-send-email-linus.walleij@stericsson.com> X-Mailer: git-send-email 1.7.11.3 MIME-Version: 1.0 X-Gm-Message-State: ALoCoQlKnLZw+h2xn6OdU3ileFHIIrdvMEApMya3Kg6EKK9XNtl+3ww8T4yBLn/zNSEacrD9n9Qg X-Original-Sender: linus.walleij@stericsson.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c02::22d 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 979d96c..9a163e1 100644 --- a/arch/arm/boot/dts/ste-u300.dts +++ b/arch/arm/boot/dts/ste-u300.dts @@ -220,6 +220,11 @@ reg = <0xc0006000 0x1000>; interrupt-parent = <&vica>; interrupts = <23>; + 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,