Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1416256pxb; Tue, 17 Aug 2021 11:07:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy9hfU2cQQr1500Y6y2pWzSDCm4dlWFSuJ098chouHGgS+LukgKVqlVK1mxbAl/SWR5vNh+ X-Received: by 2002:a6b:8d08:: with SMTP id p8mr3845976iod.150.1629223635585; Tue, 17 Aug 2021 11:07:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629223635; cv=none; d=google.com; s=arc-20160816; b=MwAJgKATzXPwv0nXmMtK5swxgeoCk7nyZ1QgjsLJrAT4OdRpUWNJxh1fV8UDhNjrb/ RDqv+lg6CF04FQeJMV4zZYxFmsCuq57mVpjZGbNoWeypxO04wy6N+ioNeKLl/LGp9DI2 mZ/wDTzlKvrW3zwkSyVOZsTJko9wFEnq6iliv/EGWZ1vFXXJ6Qqwxm/pTEUQkr2K0D0G P85A9PicjNX9vEcsz7I59/uqjiTgwF877wb8jDtRZms1NFmg+62iaOjeoLKYoe3dcucT DRUOga2FMBVlhPK0Ovlcs5gd6YrudzTJ3Lnzbq/OIdQc2a6y/l0IwDdsn/Xl+An6P1yi 0GHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:references:importance:sensitivity :mime-version:content-transfer-encoding:message-id:date:cc:to:from :in-reply-to:dkim-signature; bh=1yTDSuh3lvruaheRyjoPWSNyf77kNw2SJEw8qBHoJK0=; b=haO22K33A0Oysqu2Yr60qaOqEC2ztOoncsrHW5VSP4CULvb6oxVKUVHJosWJKFVbsn lqxghYOeiKRkSuaNvjDQUfFqLqeTFfpEyOD5kdDVn4haQrh8d/gh4qetOFk9B1KXlgyw smw0fH3iYRQRfAyY7Hv3mpJhBz3HWYPolC3c7u9uqodv/IdKdYaRiOm7A8p/kYzFJyVX I/xVjIz02y0gssNKmfdxg+q8Oou6hQi/vwyx9fcduAjViHtLWUtxhLVr/5kqF4g0zn0J 3zNhZQdha+iRY3PK/FuTt6waOXKZe+HVRhGFP+IHf5POm1eVvK/hwGrdAXDmbT9/gv1w 18yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=Sm7A75+K; 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=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m8si2771637ilq.88.2021.08.17.11.07.02; Tue, 17 Aug 2021 11:07:15 -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=@ibm.com header.s=pp1 header.b=Sm7A75+K; 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=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232799AbhHQSFC (ORCPT + 99 others); Tue, 17 Aug 2021 14:05:02 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:31266 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232807AbhHQSFB (ORCPT ); Tue, 17 Aug 2021 14:05:01 -0400 Received: from pps.filterd (m0098393.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 17HI3vFG125613; Tue, 17 Aug 2021 14:04:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=in-reply-to : from : to : cc : date : message-id : content-transfer-encoding : content-type : mime-version : references : subject; s=pp1; bh=1yTDSuh3lvruaheRyjoPWSNyf77kNw2SJEw8qBHoJK0=; b=Sm7A75+KL+jWkgk5LzAbLKqwcjYokEpHN9T1GoL8jlpU43pG8ZD+7D/7Lrf9+g0rqCUR /DqGPDrluApoWqviglA7RQWwsdJUR5WltAw4f0qUCx/a2IlEWZmFrF8mKW7g10keQT1i e1mQckS3wtBlJCvQKYZhNIv7aLROodDodVcN1skdcNKT5uGqL+8o7hfv6gyQFYzvKbVo gVd2nmu0shZdssjDVnrRcoGaN2bIAfeDw2Iodeh9gmsNoPhv5KuRg1JpjDYyfcM4X2dO oVW+ipdhH3bmqucf95Aer8VY9uH/9ODb+NC4WWtFU2v9566YmKaUALxHWzl2gbd+659/ AA== Received: from ppma03wdc.us.ibm.com (ba.79.3fa9.ip4.static.sl-reverse.com [169.63.121.186]) by mx0a-001b2d01.pphosted.com with ESMTP id 3agc2fuuxn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 17 Aug 2021 14:04:13 -0400 Received: from pps.filterd (ppma03wdc.us.ibm.com [127.0.0.1]) by ppma03wdc.us.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 17HHuuWG007453; Tue, 17 Aug 2021 18:04:12 GMT Received: from b03cxnp08028.gho.boulder.ibm.com (b03cxnp08028.gho.boulder.ibm.com [9.17.130.20]) by ppma03wdc.us.ibm.com with ESMTP id 3ae5fcrw4b-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 17 Aug 2021 18:04:12 +0000 Received: from b03ledav005.gho.boulder.ibm.com (b03ledav005.gho.boulder.ibm.com [9.17.130.236]) by b03cxnp08028.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 17HI4B4c38469920 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 17 Aug 2021 18:04:11 GMT Received: from b03ledav005.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id BB212BE063; Tue, 17 Aug 2021 18:04:11 +0000 (GMT) Received: from b03ledav005.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A7BFEBE05A; Tue, 17 Aug 2021 18:04:11 +0000 (GMT) Received: from mww0332.dal12m.mail.ibm.com (unknown [9.208.69.80]) by b03ledav005.gho.boulder.ibm.com (Postfix) with ESMTPS; Tue, 17 Aug 2021 18:04:11 +0000 (GMT) In-Reply-To: From: "Milton Miller II" To: "Alexandre Belloni" Cc: "Paul Fertser" , "Ivan Mikhaylov" , "Alessandro Zummo" , openbmc@lists.ozlabs.org, linux-kernel@vger.kernel.org Date: Tue, 17 Aug 2021 18:04:09 +0000 Message-ID: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 MIME-Version: 1.0 Sensitivity: Importance: Normal X-Priority: 3 (Normal) References: ,<20210810154436.125678-1-i.mikhaylov@yadro.com> <20210814224215.GX15173@home.paul.comp> X-Mailer: Lotus Domino Web Server Release 11.0.1FP2HF97 July 2, 2021 X-MIMETrack: Serialize by http on MWW0332/03/M/IBM at 08/17/2021 18:04:09,Serialize complete at 08/17/2021 18:04:10 X-Disclaimed: 37823 X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: Qf_VoVo0nIJeNA-pCOBcqbwjuGkq2De7 X-Proofpoint-GUID: Qf_VoVo0nIJeNA-pCOBcqbwjuGkq2De7 Subject: RE: [PATCH 0/2] rtc: pch-rtc: add Intel Series PCH built-in read-only RTC X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391,18.0.790 definitions=2021-08-17_06:2021-08-17,2021-08-17 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 impostorscore=0 suspectscore=0 malwarescore=0 priorityscore=1501 mlxscore=0 mlxlogscore=999 clxscore=1011 lowpriorityscore=0 bulkscore=0 spamscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2107140000 definitions=main-2108170113 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Aug 16, 2021, Alexandre Belloni wrote: >On 15/08/2021 01:42:15+0300, Paul Fertser wrote: >> On Tue, Aug 10, 2021 at 06:44:34PM +0300, Ivan Mikhaylov wrote: >> > Add RTC driver with dt binding tree document. Also this driver >adds one sysfs >> > attribute for host power control which I think is odd for RTC >driver. >> > Need I cut it off and use I2C=5FSLAVE=5FFORCE? I2C=5FSLAVE=5FFORCE is = not >good >> > way too from my point of view. Is there any better approach? >>=20 >> Reading the C620 datasheet I see this interface also allows other >> commands (wake up, watchdog feeding, reboot etc.) and reading >statuses >> (e.g Intruder Detect, POWER=5FOK=5FBAD). >>=20 >> I think if there's any plan to use anything other but RTC via this >> interface then the driver should be registered as an MFD. >>=20 > >This is not the current thinking, if everything is integrated, then >there is no issue registering a watchdog from the RTC driver. I'll >let >you check with Lee... I think the current statement is "if they are truly disjoint=20 hardware controls" then an MFD might suffice, but if they require=20 software cordination the new auxillary bus seems to be desired. >>However, I'm not sure what is the correct interface for >poweroff/reboot >control. While there is a gpio interface to a simple regulator switch, the project to date has been asserting direct or indirect=20 gpios etc to control the host. If these are events to=20 trigger a change in state and not a direct state change that some controller trys to follow, maybe a message delivery=20 model? (this is not to reboot or cycle the bmc). milton