Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp119644pxk; Thu, 24 Sep 2020 00:48:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyvWtQE8SlXzjCsIRtaCHWn5G6ZBXPx6VwcaIdPbKow8xiWSATQ3KxE+qGC9hE9MJeGd8uU X-Received: by 2002:a50:fd83:: with SMTP id o3mr3184036edt.176.1600933738462; Thu, 24 Sep 2020 00:48:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600933738; cv=none; d=google.com; s=arc-20160816; b=GKb631mHpYfJOoe2rIFZ5k6ktiMqG422qX25vJtku6YbFTXv6qyg0CW9VLOojP+tGt Ddmd3fchLVtKR70g3hgNzkPMxGuOzQWDlozYqRTLjiKGAcC77N/Mft94R/Di6lz4CQ52 TR7X9aeV9zXOPxz9CDJcZe/Z1ilN5xQDwWZIHi3kLN3qGRr4j30XjYKeHUbk3FxpHGfx kc5ZXzWL4SAaMpsZLKWM9ostKeMOvGuW/4BlRCUFq1DkiM2BVdiaw+1Xw0zYzfx+AdLL NQCowdrGKYI+wuh4s1MQRSfZG+4esztrjVkqgnCJIyt6I5Rehz5hhZPCBrjBW2XhUHgm 3NeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=6oDHZlR/WywC+SzFpCnWT8qUEOTll1DGt2USpkYI9CE=; b=DfxzT2z9WREO2YJFq6yR88Zq4NBA5bBXU3Ba3P39r+RTH6OHOE/iiSNBQLRJ+QUMxM Zk+rckxcJRTeYo4hV5qbK5duSjnBC9jtsO2Hwuj4VUrJ1B1BkadBx6oniVSc8xokrdki d2MOqljgQjySM+r9Ywunl83gRBvSY5AOZ9H9H5bz3GHEp4NssKAzESirfnxcPYtLixpt j4WOuNU1emCHJY1c359cU0ZzBuD58M45qrjBnGv3y3NNY3WxmVOn4r5jjPd6V7/HafUI T9w33RNicgTnkxWlauNaHZCqJAxpEZZL2Qhv3nNEBZLNnZOG3lntjYpELALuS6WRE6Mb 7RMA== ARC-Authentication-Results: i=1; mx.google.com; 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 lu5si1461161ejb.377.2020.09.24.00.48.34; Thu, 24 Sep 2020 00:48:58 -0700 (PDT) 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; 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 S1727203AbgIXHrU (ORCPT + 99 others); Thu, 24 Sep 2020 03:47:20 -0400 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:37665 "EHLO relay5-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727120AbgIXHrT (ORCPT ); Thu, 24 Sep 2020 03:47:19 -0400 X-Greylist: delayed 79346 seconds by postgrey-1.27 at vger.kernel.org; Thu, 24 Sep 2020 03:47:18 EDT X-Originating-IP: 90.65.88.165 Received: from localhost (lfbn-lyo-1-1908-165.w90-65.abo.wanadoo.fr [90.65.88.165]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id 29F031C000F; Thu, 24 Sep 2020 07:47:15 +0000 (UTC) Date: Thu, 24 Sep 2020 09:47:15 +0200 From: Alexandre Belloni To: Qiang Zhao , Bruno Thomsen Cc: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , Wim Van Sebroeck , Guenter Roeck , "linux-watchdog@vger.kernel.org" , "a.zummo@towertech.it" , "robh+dt@kernel.org" , "linux-rtc@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "kernel@pengutronix.de" Subject: Re: [Patch v2 1/3] dt-bindings: rtc: pcf2127: Add bindings for nxp,pcf2127 Message-ID: <20200924074715.GT9675@piout.net> References: <20200921054821.26071-1-qiang.zhao@nxp.com> <20200923094449.GP9675@piout.net> <20200924070456.rovgp6n5q25s53vc@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 24/09/2020 07:23:18+0000, Qiang Zhao wrote: > > > Yes, you are right, There is not a fundamental solution. > > > However it somewhat avoid this situation at least. > > > > > > And if without this issue, > > > is it correct to register a rtc device as watchdog no matter it is used as > > watchdog on the board? > > > Every time Linux are booted up, watchdog device should be configured to the > > right one manually. > > > So the patch are useful, even though it is not for the issue. > > > > > > What should we do to really resolve this issue? > > > > I still think we need a kernel solution here. I would expect that most assembled > > pcf2127 chips are unable to act as a watchdog (i.e. don't have the RST output > > connected to something that resets the machine). > > > > So my favoured solution would be a positive property like: > > > > has-watchdog; > > > > or something similar. In my eyes this is definitely something we want to specify > > in the device tree because it is a relevant hardware property. > > I consider it a bug to give a watchdog device to userspace that isn't functional. > > > > Best regards > > Uwe > > I strongly agree with you! It should be positive property. > However, we couldn't identify which board are using pcf2127 as watchdog, > So we are unable to modify the boards' dts to correct (watchdog or not) in this patchset. > > I noticed that only LS series platforms and imx6 have pcf2127 node, as far as I know, the LS platforms don't use it as watchdog, > But I am not sure about imx6 > I don't think there is any user upstream and it is recent engouh that we can probably make that a positive property. Bruno, is it ok for you? you are the only know user of the feature. -- Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com