From patchwork Fri Nov 23 08:44:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Loic Poulain X-Patchwork-Id: 10695223 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5537E14BD for ; Fri, 23 Nov 2018 08:44:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CFC712C3D4 for ; Fri, 23 Nov 2018 08:44:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C3EF52C6DF; Fri, 23 Nov 2018 08:44:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E263C2C5F4 for ; Fri, 23 Nov 2018 08:44:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2393716AbeKWT2A (ORCPT ); Fri, 23 Nov 2018 14:28:00 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:37480 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2393803AbeKWT2A (ORCPT ); Fri, 23 Nov 2018 14:28:00 -0500 Received: by mail-wr1-f66.google.com with SMTP id j10so11493815wru.4 for ; Fri, 23 Nov 2018 00:44:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=XdszViqpweHkRWgdDWlwT5KE8l58SOerppnSjTBDrIM=; b=eN8D37YG4eRV3t0nQeCJ+ZAHITYUsJ04dLdWmusw2t+SR0JO7J9fEh1N0GRc4pXtYN CuOEODxQFMXWESthb+6McC1o8q0gWxii6K2ekouqpCfr4tWYyqJUoT3bnXPuyVYOId1R dSPOvdz9KJiG7K5CncsFzWu5r1fABB9ygj/hs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=XdszViqpweHkRWgdDWlwT5KE8l58SOerppnSjTBDrIM=; b=pObOe+jqZvGa5xJvMf1iTXfil4T20zTFSAHCxn8sxlCNbAu03esk2ENPRXqo6zHIro 9GBHj4JQUzFcvJb6Ky6E2Ek/rNEhNI/x9o/MBKEjfBgQtGI2RF3nzBbyliIPWZuMaDjF sQeCqm+AmMhyJ8Yrox9Zx7YoCmwtuD74X8pmd3ZcfctppVPcAjlKvkek1yX5tqy4fTMF MslixF5+E92muR6fKLxF0QXfmLITXDFw02pM3f7uWJiJj9YkNAbGAOvsz8z9Qfuy1D5B srD8fkaTauzjGn1r+io2N99w55x/aTkB2iROqGa7XoUjR8YEC7iFQyOOkgeCpQB7xT5L GMvg== X-Gm-Message-State: AA+aEWZvB56ifwDVJeoRKnSMQXuza3x4aL8RmcH7OQH1aSCE+a2mQPRM izeVLm5stKqNbKu28iJvBKSePA== X-Google-Smtp-Source: AFSGD/Xe0ciOdv/+P9cRLNSeIkE9e3Z4KsZKUWCjcml7WyGUh2T9bZNFM3WN7+LTlCJqTG139Hj6XQ== X-Received: by 2002:adf:ba05:: with SMTP id o5mr8400181wrg.325.1542962682650; Fri, 23 Nov 2018 00:44:42 -0800 (PST) Received: from lpoulain-ThinkPad-T470p.home (atoulouse-654-1-394-222.w90-55.abo.wanadoo.fr. [90.55.193.222]) by smtp.gmail.com with ESMTPSA id y81-v6sm4283017wmd.11.2018.11.23.00.44.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 23 Nov 2018 00:44:42 -0800 (PST) From: Loic Poulain To: wim@linux-watchdog.org, linux@roeck-us.net, robh+dt@kernel.org Cc: linux-arm-msm@vger.kernel.org, linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, andy.gross@linaro.org, Loic Poulain Subject: [PATCH v3 2/3] dt-bindings: watchdog: Add Qualcomm PM8916 watchdog Date: Fri, 23 Nov 2018 09:44:37 +0100 Message-Id: <1542962678-13697-2-git-send-email-loic.poulain@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1542962678-13697-1-git-send-email-loic.poulain@linaro.org> References: <1542962678-13697-1-git-send-email-loic.poulain@linaro.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Document support for the Watchdog Timer (WDT) Controller in the Qualcomm PM8916 PMIC module. Signed-off-by: Loic Poulain Reviewed-by: Rob Herring Reviewed-by: Guenter Roeck --- v2: Add interrupts and timeout-sec props v3: Reword props summary .../bindings/watchdog/qcom,pm8916-wdt.txt | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Documentation/devicetree/bindings/watchdog/qcom,pm8916-wdt.txt diff --git a/Documentation/devicetree/bindings/watchdog/qcom,pm8916-wdt.txt b/Documentation/devicetree/bindings/watchdog/qcom,pm8916-wdt.txt new file mode 100644 index 0000000..6fb984f --- /dev/null +++ b/Documentation/devicetree/bindings/watchdog/qcom,pm8916-wdt.txt @@ -0,0 +1,28 @@ +QCOM PM8916 watchdog timer controller + +This pm8916 watchdog timer controller must be under pm8916-pon node. + +Required properties: +- compatible: should be "qcom,pm8916-wdt" + +Optional properties : +- interrupts : Watchdog pre-timeout (bark) interrupt. +- timeout-sec : Watchdog timeout value in seconds. + +Example: + + pm8916_0: pm8916@0 { + compatible = "qcom,pm8916", "qcom,spmi-pmic"; + reg = <0x0 SPMI_USID>; + + pon@800 { + compatible = "qcom,pm8916-pon"; + reg = <0x800>; + + watchdog { + compatible = "qcom,pm8916-wdt"; + interrupts = <0x0 0x8 6 IRQ_TYPE_EDGE_RISING>; + timeout-sec = <10>; + }; + }; + };