Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp473574pxk; Thu, 24 Sep 2020 10:01:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyrFEQicSfH690HY0XqJzcBedUSo0aPY1PeRA+cO7aGpFbe+ixw3+9I86vWT8CjGu4na57q X-Received: by 2002:a17:906:1485:: with SMTP id x5mr892916ejc.163.1600966891190; Thu, 24 Sep 2020 10:01:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600966891; cv=none; d=google.com; s=arc-20160816; b=fgiptZidJSKi2qWfjZxIveutCQq8pbRtM/CrYtye6q81H6DYtl87e8xtkN0jZixMYf MSjnLlo+Pcv89iBSMQorpYOfhhZxzzKMa20QU6ZdYNOSWU6O6uNCh4xFsuPyw7PA3rGl yEuhq6PZKLYr51ooBokEmRLxlpIe56GYx1OgbYCrU5XP+t4P87CkWI2ww3ysMitKQJ1O HbZf4O6vSst19dWFoCBleevnsSIgVrXFJ6N1Vry5LU32yu9QWAOyyIF37+jRblmyt7/4 VKpj5fQWraZBHvIH4bbtXJ84ZfxjkkvE2j8NN+HSZmETcNXBcdTqhFfIFuQQjSB+n8lU X5sA== 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=+1TNRMBksp0ZgyPa79AqDX/KsIzG5AY4VLIzrVQYq/s=; b=cqlpJtPLAOxlNowEgsmqxTTSZowlqjefI44YKkX9Qv5fiyzoF521QxQwWigc6LW43F WhFcTMpo2yWLK3dLoke+h1ngiv/dTt0sfEz98e6C+9DNx1S7Y3Rl+VTfjLfJ6Foi7b/c c+gFHccGI9sV9s4k7lG1S5BXMTdPRnZ5iiFSoBuxDU8k50hpvd+cnFOOVKuhxgUMZf/K F4gATyUJVKT1+JPIQ42hhhCl9hoijFYyPuwo82ZGCr/jLHMbV+lHVXAFosbCR5OmhVWu XIG+fCFKQRsfkiqllHh2dWpYwMAF5+wTqQNgzo80uEyLIG/GBtTZkVxNz7RIKLIGBnpv T8fw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=opeaTU8h; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gw6si79352ejb.240.2020.09.24.10.01.04; Thu, 24 Sep 2020 10:01:31 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=opeaTU8h; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728368AbgIXQ7v (ORCPT + 99 others); Thu, 24 Sep 2020 12:59:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727010AbgIXQ7u (ORCPT ); Thu, 24 Sep 2020 12:59:50 -0400 Received: from mail-ej1-x642.google.com (mail-ej1-x642.google.com [IPv6:2a00:1450:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A4470C0613CE; Thu, 24 Sep 2020 09:59:50 -0700 (PDT) Received: by mail-ej1-x642.google.com with SMTP id e23so5514813eja.3; Thu, 24 Sep 2020 09:59:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=+1TNRMBksp0ZgyPa79AqDX/KsIzG5AY4VLIzrVQYq/s=; b=opeaTU8hCe8259r7Jy3Bwmk8TeN10WvSFkY4pGk0h2k+pVLxnmrcR7anMAVBEGfW3l zAIVq3cj1CvSDhR2B7YEYynA9wE+GFw6xsjZiQ9jQJtyGPfPOUr+PWnu0AscIM89h7gb K8gYXq6GWR9Sxjp7fd7wmlnIMPYkZo4gqskb+D+WKGQA9u3MbiZ0excKw+IczPRks99X e+VMH86xPl1LV+DzCOIva90my3DNxiyFvdqhieuO7igLDCsQr4qQWFISXBhJAUThcP/a Bfbc5EdrmmuP6PwTArek6/4nJzq5g9OIoqIBtq9x0BGXGRgc3kdTY1ce5q3pp5Tsp7aI agPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=+1TNRMBksp0ZgyPa79AqDX/KsIzG5AY4VLIzrVQYq/s=; b=MkN/lZb707HRnlfL2dYgtNq4pn7b0FldPI8Ki2VWSABYotiRV8OmQ0XoMr1vBCxWLo MB4BGKPK22u//LB353P4Q+hWUl5xtH3QM3yYzcnDeu3JVFtDXDExR/fLmDTLjdQdzC+k p5TzJVbgGI11Z2SluQFdNws8GUSlnH5XFy3gob7LaJyboPaWb1H001LEsQ35AprxKn2y SsGjFSqT53EElem1VQY/zjoj0jzmPmyoG8Yhl34UUJuQVdg1tF6CJrjfMi+qPwANjXJl 4GUkGWAOfZK29s1FDmJ5T37vuxG4hA+eX6fODr8uhTyBfFrQsJASWrDpTte1+BLnJwUc TurQ== X-Gm-Message-State: AOAM532rJ7MM/oOl0YBm2ppHbk4n7GoqSFXoYuG3nMmUvEWXUFrtwFOh R0Tp4VGYhVVaQr6i7tmW7+C6KezvSto066rprpk= X-Received: by 2002:a17:907:9ed:: with SMTP id ce13mr859425ejc.180.1600966789263; Thu, 24 Sep 2020 09:59:49 -0700 (PDT) MIME-Version: 1.0 References: <20200921054821.26071-1-qiang.zhao@nxp.com> <20200923094449.GP9675@piout.net> <20200924070456.rovgp6n5q25s53vc@pengutronix.de> <20200924074715.GT9675@piout.net> In-Reply-To: <20200924074715.GT9675@piout.net> From: Bruno Thomsen Date: Thu, 24 Sep 2020 18:59:33 +0200 Message-ID: Subject: Re: [Patch v2 1/3] dt-bindings: rtc: pcf2127: Add bindings for nxp,pcf2127 To: Alexandre Belloni Cc: Qiang Zhao , =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= , 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" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Den tor. 24. sep. 2020 kl. 09.47 skrev Alexandre Belloni : > > 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. Hi This seems like an okay solution to me. I have a patch series on the way with a new product dts[1] that is using the watchdog feature in the pcf2127 chip. I know that the watchdog feature is used by other products with out-of-tree dts, but I will make sure to give them a heads up. /Bruno [1] https://lore.kernel.org/linux-arm-kernel/20200923154024.11417-2-bruno.thomsen@gmail.com/