Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1633619pxu; Sat, 12 Dec 2020 21:19:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJytrApD+xUXcyqSivnI3NOiQKX0Mqsq0T//p2uzqYLCmzuSHJbzfL0YsNY1FkOLBtXTB816 X-Received: by 2002:a17:906:1405:: with SMTP id p5mr16906001ejc.282.1607836763136; Sat, 12 Dec 2020 21:19:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607836763; cv=none; d=google.com; s=arc-20160816; b=fzETmsGK7l76+TzkPy0frQDL6w2ETyfzgsqBuWC+GMwQ2/sm+rTskq0J8FBCPuZi4x rQ/929cLXHimhPGgCJZvYwxA0XaeZQuGnusJy0zt1BH1EaTXmLamnoDEGb8vJTlvIzsT mBBUgt+PhT60IFUNbleaXGQc5QR3YOtNnsFEjAgvJ80GLt2j0Vua1Z+VEZruhgjniErM YGOrYl36igY7ie3qJF5dinOipHTvNu4kGrBKfwYOzdCg3e76IjXk/7838ZskixEcNOrb INjqoZhDgc56cmBD4Rk3SV2Fd2NyEOLWR+P/pZxUq7Y87BJjhUYtbr9DXUVQ1PZWrqez p7mg== 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=BrdBulU/3Mh3fAPQFmm5JeQFWbm/ma09e34dvjg0y1k=; b=jv6XIZbUJA5qr5nrFzyS0nbcTNSB1/BBxXzftsropDZM+RruZ+iOLG8+Ftpm497K9v oaGOeWbQ7YRyA7DAGx0RhBSlqZOMJ2n8CzHRqlr9vpOXPsYcCANwOL2+fNywBUgyAgJk 2OlQ30yoy07cxp0T6AX9+wRk14DxTG8HOgHJgig9OcSADp7Dys++a3DVl19WXfYexYRI 6Mh01tOFs4pbB6YOJ66jYjvKNyicqCB1Tcg43tGY4gYtRzmlOabIuf5hhK4LYPR/Gn1B mkF5FJyk/ZcUaiaySkW2U6s74v+TtGjPKpPoyKGiNBLV4Wje8r56hbSSkuL0SW1Ca4Ji Tpvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Ty6zAIt4; 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 b8si7775623edx.538.2020.12.12.21.19.01; Sat, 12 Dec 2020 21:19:23 -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=Ty6zAIt4; 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 S2406924AbgLKWbx (ORCPT + 99 others); Fri, 11 Dec 2020 17:31:53 -0500 Received: from mail.kernel.org ([198.145.29.99]:54872 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406945AbgLKWbQ (ORCPT ); Fri, 11 Dec 2020 17:31:16 -0500 X-Gm-Message-State: AOAM530Fmg2hl1SK2LafF/VfrGjBw1/n/hd/x1GRCxhkposqmOhLYux6 zHnQaYe/SkETaDR9Nzk46qC959U31M8Mx3U9Yw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1607725835; bh=vABCQ49+H11qfsvOTnMeJeo4wvfBhFrM6yVRi3sB2P0=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Ty6zAIt4pIc6eCMnsd/2KCrtJ1I5IdiSFLqc3A8hcdAS03+v/NfUiKgqj7e19t1uc 2sKee8OOiCfXjnNAsbUAkdzq5ctBMV5V+7zOi0iHzy350FHDwDRXHHVsCdoV49KE0R LX63/HrvC2Jkv1B7eawiUCruxjIrgECYgXjtyU2E+5Xk+TqHMz1pI9vWT1Yrk0AZM7 yWAL2OBzNjEfo//qdtihjNERNOANpP+fdD+nwgW/nztkajrw3KDegdMMd8VhLwQrMM f/SHn/5zg+B8cIDcUxaifa3bB+scKf2CEx6p52Ys1oJD95fCj2Nib262y6PndC9xSq +Kt/iLLT22JIA== X-Received: by 2002:a17:906:ae43:: with SMTP id lf3mr12047822ejb.130.1607725833682; Fri, 11 Dec 2020 14:30:33 -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: <20201211215611.24392-2-rasmus.villemoes@prevas.dk> From: Rob Herring Date: Fri, 11 Dec 2020 16:30:22 -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 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? Please send DT patches to the DT list. > > Suggested-by: Alexandre Belloni > Signed-off-by: Rasmus Villemoes > --- > Documentation/devicetree/bindings/rtc/rtc.yaml | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/Documentation/devicetree/bindings/rtc/rtc.yaml b/Documentation/devicetree/bindings/rtc/rtc.yaml > index ee237b2ed66a..b5e24dc24b0b 100644 > --- a/Documentation/devicetree/bindings/rtc/rtc.yaml > +++ b/Documentation/devicetree/bindings/rtc/rtc.yaml > @@ -47,4 +47,9 @@ properties: > description: > Enables wake up of host system on alarm. > > + reset-source: > + $ref: /schemas/types.yaml#/definitions/flag > + description: > + The RTC is able to reset the machine. > + > ... > -- > 2.23.0 >