From patchwork Mon Apr 22 09:55:05 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 16298 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vb0-f72.google.com (mail-vb0-f72.google.com [209.85.212.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id AFD7F25DEE for ; Mon, 22 Apr 2013 09:56:27 +0000 (UTC) Received: by mail-vb0-f72.google.com with SMTP id 11sf11692561vbe.7 for ; Mon, 22 Apr 2013 02:55:41 -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=wJF/VU0YUL2Wy98p2eUGo7m+C5PFV/OkobOtN4w8nso=; b=IvbR7MdYuHtdcm74/jIu4sWmF85uMs+993LAuCJ6V8YQuLD9Au2rU0F/Tp/quNp6go fn8TFjdyr/ofLs9Xkew+vnDOansktjzsNTiCeLJS9IN124yJX24qgkSq6aM9MjXJzW7I f/eSgNtM0LFurezSycaBwlJclWPzn1j7ZIF5dI1szRJLIKXG8KUou4wdfLbXI1PrSZZh LsNSZZib2vJep6epOY0uOiLcQUtin4OGwMbLx7ewYFvNoQxNiiPCBbOfaHaEE+qcqfku okid7i4U8uNTm4JR7n0nDBqOv+sMYR0jvSIRBirC8VXcgo3/MOmsFkA8pdSr92PWt3Sh j/QA== X-Received: by 10.236.226.3 with SMTP id a3mr12063565yhq.12.1366624541571; Mon, 22 Apr 2013 02:55:41 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.84.132 with SMTP id z4ls2314948qey.50.gmail; Mon, 22 Apr 2013 02:55:41 -0700 (PDT) X-Received: by 10.52.99.1 with SMTP id em1mr15668609vdb.48.1366624541359; Mon, 22 Apr 2013 02:55:41 -0700 (PDT) Received: from mail-vc0-f182.google.com (mail-vc0-f182.google.com [209.85.220.182]) by mx.google.com with ESMTPS id zr5si9863027vec.35.2013.04.22.02.55.41 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 22 Apr 2013 02:55:41 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.182 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.182; Received: by mail-vc0-f182.google.com with SMTP id ht11so3705748vcb.41 for ; Mon, 22 Apr 2013 02:55:41 -0700 (PDT) X-Received: by 10.221.0.199 with SMTP id nn7mr18636962vcb.14.1366624541266; Mon, 22 Apr 2013 02:55:41 -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 nf2csp68791veb; Mon, 22 Apr 2013 02:55:40 -0700 (PDT) X-Received: by 10.205.75.3 with SMTP id yy3mr8980005bkb.80.1366624539547; Mon, 22 Apr 2013 02:55:39 -0700 (PDT) Received: from eu1sys200aog125.obsmtp.com (eu1sys200aog125.obsmtp.com [207.126.144.159]) by mx.google.com with SMTP id 9si38601091eeo.103.2013.04.22.02.55.30 (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 22 Apr 2013 02:55:39 -0700 (PDT) Received-SPF: neutral (google.com: 207.126.144.159 is neither permitted nor denied by best guess record for domain of linus.walleij@stericsson.com) client-ip=207.126.144.159; Received: from beta.dmz-us.st.com ([167.4.1.35]) (using TLSv1) by eu1sys200aob125.postini.com ([207.126.147.11]) with SMTP ID DSNKUXUJEZexw+3ljuGcCOYzLCq418Bm1fBN@postini.com; Mon, 22 Apr 2013 09:55:39 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 2EB343B; Mon, 22 Apr 2013 09:54:15 +0000 (GMT) Received: from relay1.stm.gmessaging.net (unknown [10.230.100.17]) by zeta.dmz-us.st.com (STMicroelectronics) with ESMTP id 2585648; Mon, 22 Apr 2013 03:03:42 +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 C672824C080; Mon, 22 Apr 2013 11:55:04 +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; Mon, 22 Apr 2013 11:55:09 +0200 From: Linus Walleij To: , Wim Van Sebroeck , Cc: Arnd Bergmann , , Linus Walleij Subject: [PATCH 09/23] watchdog: coh901327: devicetree support Date: Mon, 22 Apr 2013 11:55:05 +0200 Message-ID: <1366624505-6437-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: ALoCoQlDnemtzewrafKiDG57xsZ8W6+etVS74DrS/CCjpqlPAQTFfhxUfOE0AsppUqnqdd9DrudH X-Original-Sender: linus.walleij@stericsson.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.182 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 adds support for probing the COH 901 327 watchdog from the device tree and also adds associated bindings. Cc: Wim Van Sebroeck Signed-off-by: Linus Walleij --- Hi Wim, I'm seeking an ACK on this patch to take it into ARM SoC along with the patches making use of this new binding. --- .../devicetree/bindings/watchdog/stericsson-coh901327.txt | 15 +++++++++++++++ drivers/watchdog/coh901327_wdt.c | 6 ++++++ 2 files changed, 21 insertions(+) create mode 100644 Documentation/devicetree/bindings/watchdog/stericsson-coh901327.txt diff --git a/Documentation/devicetree/bindings/watchdog/stericsson-coh901327.txt b/Documentation/devicetree/bindings/watchdog/stericsson-coh901327.txt new file mode 100644 index 0000000..3d7c958 --- /dev/null +++ b/Documentation/devicetree/bindings/watchdog/stericsson-coh901327.txt @@ -0,0 +1,15 @@ +ST-Ericsson COH 901 327 Watchdog timer + +Required properties: +- compatible: must be "stericsson,coh901327". +- reg: physical base address of the controller and length of memory mapped + region. +- interrupts: the interrupt used for the watchdog timeout warning. + +Example: + +watchdog: watchdog@c0012000 { + compatible = "stericsson,coh901327"; + reg = <0xc0012000 0x1000>; + interrupts = <3>; +}; diff --git a/drivers/watchdog/coh901327_wdt.c b/drivers/watchdog/coh901327_wdt.c index b9b8a8b..bb7da59 100644 --- a/drivers/watchdog/coh901327_wdt.c +++ b/drivers/watchdog/coh901327_wdt.c @@ -441,10 +441,16 @@ void coh901327_watchdog_reset(void) /* Return and await doom */ } +static const struct of_device_id coh901327_dt_match[] = { + { .compatible = "stericsson,coh901327" }, + {}, +}; + static struct platform_driver coh901327_driver = { .driver = { .owner = THIS_MODULE, .name = "coh901327_wdog", + .of_match_table = coh901327_dt_match, }, .remove = __exit_p(coh901327_remove), .suspend = coh901327_suspend,