Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1631526pxb; Thu, 4 Mar 2021 17:00:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJx2zilddOEdx1unZAiXsE2+oRV4lgt7WDK2w9Y2lY5ZP41gYUeMEkbTP0h1rnb5xw23nr2n X-Received: by 2002:a5d:9f4a:: with SMTP id u10mr5934540iot.186.1614906024319; Thu, 04 Mar 2021 17:00:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614906024; cv=none; d=google.com; s=arc-20160816; b=i+cnkHdz94uaIkSTd1+97w2lV4qCDOe7KyLeg/Hnkx7SNRaeltnQnBSshWFYmFBpNP rL0wE6D3rQhYqFOqp0vaF5v8nohCYf8wt/N16vjBEQmGwcmm8MR5CQW8/F8J4Vg8H54Q i4SfAKvnMnazOakf+tDxk+DshjIpRZOBw6tUJkINK7mb6HiO5Czz7aVJvdoUtAxxVkye s0pp8t35DYkILBqbLnMTyJ3x4D0uL+W8PjHJ6kYJScksDuizVlO20pKOfQJAtdl4pJBL 7sRvAgyHQmXrnO58swfHLptIqpFxC7BuSXTReZqymZfvQXoPla3Yj3ntMMSHDHl2uerO Bm1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=v/pPDOAIiRjR7lEs29siBxnpMbhMpFCg4qL6RvapyuQ=; b=caYLMC2BDayOMFV7oehcqdiXXhvLX/UdfHqYtc2D0KBOKx2qe/AbLtotquPV+OKffN Ipf3BCfZD9n2ufkhDjhaxGOuXpoSC4en3Edm+WZKpGbLt8oi9gvfcBA2Zi+3dztMDTfA wKSDxbE2iDTskbg1aZ2Cysd/TIhG2AP7U4lfNJnqhrLZzi+jw5anqhjZ5VTfMD6/oJOM wdmGo1q5IafVPkQSn2cZFXev16BE67UDJEo7Jhc/VB7ageGkrQ/4hBjaVvaF3HjKJ/P7 gLlLUAFZlcqbE4s5eh2yRyhgPNvxxPNPSzTTYR4CfG4/K7cUaiUxOWrUYUKwcHCv+0DU V3vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=ZvgjxCFd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q19si985087jat.59.2021.03.04.17.00.11; Thu, 04 Mar 2021 17:00:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=ZvgjxCFd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232404AbhCDWND (ORCPT + 99 others); Thu, 4 Mar 2021 17:13:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231157AbhCDWMx (ORCPT ); Thu, 4 Mar 2021 17:12:53 -0500 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69424C06175F for ; Thu, 4 Mar 2021 14:12:53 -0800 (PST) Received: by mail-ed1-x52b.google.com with SMTP id dm26so13472166edb.12 for ; Thu, 04 Mar 2021 14:12:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=v/pPDOAIiRjR7lEs29siBxnpMbhMpFCg4qL6RvapyuQ=; b=ZvgjxCFdW+xEIJQRTSrZL9RG99WKcuzdTurrplaWC8+EC8MZwlMwU+OBT9Nm8QNzO5 NdOoYpYInzinJHNu6McP1uHtYkzgOrhNUi32Us+kUjDel5XCS1sga1lOsHnl9S6lAqYl N+2auUjyYr0kuUMvKyhGGBAlXCZ08f4U1dgJY= 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:mime-version:content-transfer-encoding; bh=v/pPDOAIiRjR7lEs29siBxnpMbhMpFCg4qL6RvapyuQ=; b=MKpwa20dm6zBjPEDU+qZ9z6j3ZxpcMP+4CtGDIzUlVzXl+0evRb+v16Miove3wdwRE hC/YZ5S6E8sHCzRXtRIDzcZfh9bYbgsf35+2WPbFTVh9IYK7Py58TDYjxC8N0NL2Rk33 2xnLvoLUWf8QY5NWnEN4QVeVpwI0YbThgpL+SQ+7N9H33+wBWLahPORSlWObZfCzeX3Y v9kh4FEuNhOvPVc4ujkMS5Q3CiNHfW48zSyEAfM0v/L5sXVQ+6zff3tegfACSZ3Sgz5l j7TFpi8ypROtJkp0vkpz2GNrzrX6AnC7u1f6urBpzLoVp4yPaR4E3cVtpHWjKogAZyxJ 7BhQ== X-Gm-Message-State: AOAM530ZtIrRixKcOI3vPsOi4W8L0fwFknE5+FKGQKUiBmFrItHGsCQ7 YaOBLSFREA3nZ/hz9DMstgg53g== X-Received: by 2002:aa7:c889:: with SMTP id p9mr6615207eds.82.1614895972167; Thu, 04 Mar 2021 14:12:52 -0800 (PST) Received: from prevas-ravi.prevas.se ([80.208.71.141]) by smtp.gmail.com with ESMTPSA id q22sm362099ejy.5.2021.03.04.14.12.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Mar 2021 14:12:51 -0800 (PST) From: Rasmus Villemoes To: Arnd Bergmann , Guenter Roeck , Stephen Boyd Cc: Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-watchdog@vger.kernel.org, Rasmus Villemoes , Arnd Bergmann Subject: [PATCH v2 2/3] dt-bindings: watchdog: add optional "delay" clock to gpio-wdt binding Date: Thu, 4 Mar 2021 23:12:46 +0100 Message-Id: <20210304221247.488173-3-linux@rasmusvillemoes.dk> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210304221247.488173-1-linux@rasmusvillemoes.dk> References: <20210226141411.2517368-1-linux@rasmusvillemoes.dk> <20210304221247.488173-1-linux@rasmusvillemoes.dk> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [DO NOT MERGE - see cover letter] We have a board where the reset output from the ADM706S is split in two: directly routed to an interrupt, and also to start a ripple counter, which 64 ms later than pulls the SOC's reset pin. That ripple counter only works if the RTC's 32kHz output is enabled, and since linux by default disables unused clocks, that effectively renders the watchdog useless. So add an optional "delay" clock binding. Suggested-by: Arnd Bergmann Signed-off-by: Rasmus Villemoes --- Documentation/devicetree/bindings/watchdog/gpio-wdt.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/watchdog/gpio-wdt.txt b/Documentation/devicetree/bindings/watchdog/gpio-wdt.txt index 198794963786..527be6b30451 100644 --- a/Documentation/devicetree/bindings/watchdog/gpio-wdt.txt +++ b/Documentation/devicetree/bindings/watchdog/gpio-wdt.txt @@ -17,6 +17,10 @@ Optional Properties: - always-running: If the watchdog timer cannot be disabled, add this flag to have the driver keep toggling the signal without a client. It will only cease to toggle the signal when the device is open and the timeout elapsed. +- clock-names: May contain the entry "delay" if the board has logic + that delays the reset signal from the watchdog and which requires an + external signal to function. +- clocks: Phandles corresponding to the clock-names. Example: watchdog: watchdog { @@ -25,4 +29,6 @@ Example: gpios = <&gpio3 9 GPIO_ACTIVE_LOW>; hw_algo = "toggle"; hw_margin_ms = <1600>; + clock-names = "delay"; + clocks = <&rtc 1>; }; -- 2.29.2