From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.2 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MSGID_FROM_MTA_HEADER,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 94D56C433FE for ; Fri, 11 Dec 2020 23:44:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6723B2311A for ; Fri, 11 Dec 2020 23:44:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2437193AbgLKXLT (ORCPT ); Fri, 11 Dec 2020 18:11:19 -0500 Received: from mail-db8eur05on2137.outbound.protection.outlook.com ([40.107.20.137]:39008 "EHLO EUR05-DB8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2403763AbgLKXLC (ORCPT ); Fri, 11 Dec 2020 18:11:02 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=S2TZbM0e238kcG7TTJHmKFvg6krhwAbIbRieaB6UnyvOM0WhIphNk8CaIf7NN2byGGArBjHIYZ1+9qFIqK9URkJ/IT5BgsMId05ducoNuit+gq3qkifmJvqIXeNiqONnGLE9mxcqtV1aj9aCn/9EGqP2Rj7LVG/R/DZfOfXnFh5PGteJaU1okq+BOeaSIawk8eNs35qgPUfiORNkTXTVzQa0MM3+80ztSIlplwz+gtD6RXRuTD5UN9UFPfW2FFVlROfIIJGxyJp3A2FOFkyviYqwyZSTgz5gY5FLaHh2n6MtlqY8J8p8McQ2H0/Z1hmg0GpVRgag6WgpK6vpTkarfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+O4WtPhDMctkJXG8rs8q+JzJa7xuRMlH0NaZMYU2Acc=; b=fnmQGQXUSupNvgfXvAghawSh0uVDDeErQRfSEvSlEQ25CjC8NhOD+yoxWjGiTNetcyU+RFa6b5ZUb6zEw7HrK2Iop6lddZloJ8h+2KsR132GEB8n2l1VIF0FC2O6dV20ba9QHr8BRR+YXVrnwd/xlI7yQ9kFHsuu8e8tPnEJ8z+BShPb6zywWTjTQdyiaIrN+hCfxkpsaXiYoXJRAPK9fXiMTvBO1NLv0NyOc7YP2+QZPv9c3efT++QnWrxYGaiJVB542R5I1g/RbvGqEUXXu7kUcyOqAK1Fb9zIkrmOqL30ikyllhZiOOnM3maSzf1ZbApNLMd7Kt0eSK12AHGqig== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=prevas.dk; dmarc=pass action=none header.from=prevas.dk; dkim=pass header.d=prevas.dk; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=prevas.dk; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+O4WtPhDMctkJXG8rs8q+JzJa7xuRMlH0NaZMYU2Acc=; b=Ce2qsk2ECmxjBUOT/kQH7HwsTMtvtnnloOzYOHtjHFZfLurRXPvRKpyGlhRd5072vgucDwX1CQY8+VDUu9qpb3hBcyzOmBQwbvsnqbr/NGcoS5J9hvM/PwnO4/1YNIjD3uWhydr8Hi5KXMqJgVGi/lLXG9AniEBRbnp+oqQe/AU= Authentication-Results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=prevas.dk; Received: from AM0PR10MB1874.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:208:3f::10) by AM9PR10MB4135.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:1f7::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.13; Fri, 11 Dec 2020 23:10:12 +0000 Received: from AM0PR10MB1874.EURPRD10.PROD.OUTLOOK.COM ([fe80::9068:c899:48f:a8e3]) by AM0PR10MB1874.EURPRD10.PROD.OUTLOOK.COM ([fe80::9068:c899:48f:a8e3%6]) with mapi id 15.20.3632.026; Fri, 11 Dec 2020 23:10:12 +0000 Subject: Re: [PATCH v2 1/3] dt-bindings: rtc: add reset-source property To: Rob Herring Cc: "open list:REAL TIME CLOCK (RTC) SUBSYSTEM" , Alexandre Belloni , "linux-kernel@vger.kernel.org" , =?UTF-8?Q?Uwe_Kleine-K=c3=b6nig?= , Qiang Zhao , Bruno Thomsen References: <20201204092752.GE74177@piout.net> <20201211215611.24392-1-rasmus.villemoes@prevas.dk> <20201211215611.24392-2-rasmus.villemoes@prevas.dk> From: Rasmus Villemoes Message-ID: Date: Sat, 12 Dec 2020 00:10:11 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [5.186.115.188] X-ClientProxiedBy: AM5PR0502CA0015.eurprd05.prod.outlook.com (2603:10a6:203:91::25) To AM0PR10MB1874.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:208:3f::10) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [192.168.1.149] (5.186.115.188) by AM5PR0502CA0015.eurprd05.prod.outlook.com (2603:10a6:203:91::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.12 via Frontend Transport; Fri, 11 Dec 2020 23:10:12 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 377c082a-d4bf-406d-f743-08d89e29e9d7 X-MS-TrafficTypeDiagnostic: AM9PR10MB4135: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:9508; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 1QWOQITLnRAVyy/tEdYV6HLJRqlEXohvAA82cbQfP6Z9dSFCBuUbHrr5kjI885/ytxVnsweurTEgQn71LzlXK5agXeKrWiLZObATs+aOTGG16DUzyK1B1YfX5ZZaic/GW3p3MFGhGHVP9ORwCyuSTksrOzICCFx3Dsb1zfthjUj0/qlr7WCW1UYjzjAC2AocsJn5N4VLwDPYYXK45so55uCHGnvYNnbBeTb2fCpQF+fQe+z0E8ki+PAVBiP29E13npdDwvDNwYwk8fEfs+OfelLHuMeazXySi4KV2gXSn8Va+KVSSJLFiJrdzymHLlHRbPe6zVrB5D6nIE9/bCmZxpCyIpqnpspIDFcjslA3XHbPDJc8r98v9sLoJwi3X6l4VXWBqPeKROyN3F/7PQhthpsNIzBhMCZLeGHxZdrKDOw= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM0PR10MB1874.EURPRD10.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(346002)(396003)(136003)(376002)(366004)(39840400004)(16526019)(53546011)(16576012)(36756003)(54906003)(316002)(4326008)(2616005)(44832011)(956004)(66946007)(8976002)(66556008)(26005)(6486002)(66476007)(5660300002)(2906002)(8936002)(31696002)(31686004)(8676002)(478600001)(86362001)(52116002)(186003)(43740500002)(45980500001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData: =?utf-8?B?ZFRON01CcENSbjduM0cycXVvZlQ5N09ERFZGbzBzWjc1QkRlWkxlS0w4MXFk?= =?utf-8?B?MWs0THR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utf-8?B?Y1puODJJa0s2N1RYMGM2V1Y4TWhFVkd0Qzl0TmhNL0YxdnBDN3pzTlRIRFNV?= =?utf-8?B?dzV4ZVZjaHJBUFpXMHVId3FXN0dnbnFudGxwUHlhWmZ2OEc3aWMxenExbGFu?= =?utf-8?B?SUlwOEJLTjVtWTd6K1ROVDYvbFVhaXZZbzNuU0d1cWJIZll6NUFkNVF6T0dR?= =?utf-8?B?S2oxVFM1b0h4T09LVmM2Q042QnQ0bUc5S1d6S2o5cjFBYlY3ODFKeUE5UHRx?= =?utf-8?B?V0hJeGlDQkxRSXhGOG9pdXNFeGhDcmV0TCtmeVBjMzZBZkliSGZIN09SanJt?= =?utf-8?B?eWYybWRpalU0aEdzY1hvRGhjaXhNa1BZUVB6OW9jNE9XcGR6Sys0NVhEMFl3?= =?utf-8?Q?OVf6aVy2KnY8B0Wk1MKd5tep4gCpfu5j9E?= X-OriginatorOrg: prevas.dk X-MS-Exchange-CrossTenant-AuthSource: AM0PR10MB1874.EURPRD10.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Dec 2020 23:10:12.5848 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: d350cf71-778d-4780-88f5-071a4cb1ed61 X-MS-Exchange-CrossTenant-Network-Message-Id: 377c082a-d4bf-406d-f743-08d89e29e9d7 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: +KnbMUnTHCMZRompVyS+NwGbia1DdZutQlFvVZJ48949xwbctsha+LLHoXrsyExjeQC4d2oLCVm+4bBMwRSwjXIR32gdZ41M4u5dBlTwXow= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR10MB4135 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? 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). Rasmus