Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1392272pxu; Thu, 17 Dec 2020 08:55:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJxs5KZJ4NOItVA3p8iMtiJ771GR5NBihdN+Fpo60kqslKuiuljutDIITRbi8MPz5PXTNAWJ X-Received: by 2002:a17:906:52da:: with SMTP id w26mr36672739ejn.347.1608224121535; Thu, 17 Dec 2020 08:55:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608224121; cv=none; d=google.com; s=arc-20160816; b=cnMt2AqdyFfZVonQUKe9o0Hl/UGCbjyQstogN1UDBPyM5Ka9IsOhbdJjqqxT83qhgn fGZ1NFjkoMyxIJRHXHRY1QajyNZz5vUzmi8iAEWMgHtThNaP23z9t7kh9GUqpFCko56r W2+9j6C9WGXaNEYzkqsuywl2ZDknwlM3IyJU4PPG3O+96KdeaC/B0r+Nraa4igPjkna6 5za56V0rU6VXMw6QAekIUXRfP1PEPR4tZPwSaTREgno9Zqm5Tf3yQIe8hFYYPNKez9OC gWcUu7H7Hq6LpAuKlZsI22lW7wP4yxjxGffN5feeM7ibVhJ6hTUiDJFfP3kzShEqHFyH lAug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=P5m3N09g7UEzzx6CDYAyM0fEzFb1mPowgoyMkOKqZKA=; b=U8bfCZZ8cbj5OjFiuJMOfnPslpZ9+4bbrI41BggNTZUhNweNxws0653bEjJ+6onH/U J/IPaIksldu1nEY1KNuVkqPpQawVcyBI+eqZAQJuhTnPoLkxs9aS1UyveZjItYeJ2DxD h3Dbk7pj9C34F2UiJF6aq6SvCoFSpEMm5ggbQSX1SJETXXGq+MC7xhKeD3s0pY2mGqyU W2+6Ru+rcRRNkwNWMJVgc8IHHXFNckjSDygPkXi/9rEQQ+kn7iHt/30aLIMQILOifCRn MBCuMXsJr4Vfapq7uGPPf1KsI1iaSMOT5u3cd4fcRl4R+maWoZLV3XDAqducyIpvIJUR Lykg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=G8RLUc9w; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s24si3536935ejd.135.2020.12.17.08.54.57; Thu, 17 Dec 2020 08:55:21 -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=@kernel.org header.s=k20201202 header.b=G8RLUc9w; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728055AbgLQQwC (ORCPT + 99 others); Thu, 17 Dec 2020 11:52:02 -0500 Received: from mail.kernel.org ([198.145.29.99]:53714 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727253AbgLQQwB (ORCPT ); Thu, 17 Dec 2020 11:52:01 -0500 X-Gm-Message-State: AOAM5304DHwpgdskwgv1Fy4ikdK/jpMdUI7F6fdAtJPVxrRMIEIpq7e6 VCC2VFPsUyvX/wIPAd9LifS5+CXvUnNpRElxHw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1608223880; bh=P5m3N09g7UEzzx6CDYAyM0fEzFb1mPowgoyMkOKqZKA=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=G8RLUc9w2UVQetcvSaxphIRhXVVnrAQqFD9f92OuLOeVEoH4e7y0HxUC2X5TKgQ/z S0gy3uALB+JuCNHh99PMJt/rJCjpZPBIY06G/FfPjT0r04TRb+ri56pBkcuwTfOXG/ byL+uAwmw/5izHvJquFUhEAKNa3DD7G3cOhnvid7wD7Idy3ScddUsX49rh67+2d1n/ du72k78TeAByUQBvzEoiEm2wjqdluYpssbJb9ZPLGW9iZPepOC+r0RNce2AFH+2hcD I07SlzSLdlhDfApVSYaq5p2ttj8c0Na6USnBZ2MfNIEAht4exowyesWpOXCceiW/nW IPGU48CAXukKA== X-Received: by 2002:ad4:4a72:: with SMTP id cn18mr29845197qvb.50.1608223879583; Thu, 17 Dec 2020 08:51:19 -0800 (PST) MIME-Version: 1.0 References: <20201204092752.GE74177@piout.net> <20201211215611.24392-1-rasmus.villemoes@prevas.dk> <20201211215611.24392-2-rasmus.villemoes@prevas.dk> In-Reply-To: From: Rob Herring Date: Thu, 17 Dec 2020 10:51:08 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 1/3] dt-bindings: rtc: add reset-source property To: Rasmus Villemoes Cc: "open list:REAL TIME CLOCK (RTC) SUBSYSTEM" , Alexandre Belloni , "linux-kernel@vger.kernel.org" , =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= , Qiang Zhao , Bruno Thomsen Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 11, 2020 at 5:10 PM Rasmus Villemoes wrote: > > On 11/12/2020 23.30, Rob Herring wrote: > > On Fri, Dec 11, 2020 at 3:56 PM Rasmus Villemoes > > wrote: > >> > >> Some RTCs, e.g. the pcf2127, can be used as a hardware watchdog. But > >> if the reset pin is not actually wired up, the driver exposes a > >> watchdog device that doesn't actually work. > >> > >> Provide a standard binding that can be used to indicate that a given > >> RTC can perform a reset of the machine, similar to wakeup-source. > > > > Why not use the watchdog 'timeout-sec' property? > > Wouldn't that be overloading that property? AFAIU, that is used to ask > the kernel to program an initial timeout value into the watchdog device. > But what if one doesn't want to start the watchdog device at kernel > boot, but just indicate that the RTC has that capability? Yeah, I guess you're right. > It's quite possible that if it can act as a watchdog device (and > has-watchdog was also suggested), one would also want timeout-sec and > other watchdog bindings to apply. But that can be added later, by those > who actually want that. > > For now, I'd really like to get my board booting again (or rather, not > get reset by the real watchdog just because the pcf2127 driver now > exposes something as /dev/wathdog0, pushing the real one to > /dev/wathcdog1 which doesn't get pinged from userspace). I'm wondering how you solve which wdog to ping when there are multiple without relying on numbering. I guess 'reset-source' will solve that even if that's not your current fix. So I guess I'm fine with this. But you need to send to the DT list so checks are run. Rob