Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4353097pxb; Thu, 14 Oct 2021 03:44:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx70uCMKRUnNX3/h89LJASg3VqnnT2MS3ULWdazt31yx8HRU8Qo5bIbxXtZSS4dfvMpjdDz X-Received: by 2002:a17:90a:414c:: with SMTP id m12mr19631433pjg.187.1634208264945; Thu, 14 Oct 2021 03:44:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634208264; cv=none; d=google.com; s=arc-20160816; b=m2xy53b9gD1mWV+Cs9TwrYX7JPsUF6cnPvDv2YGOYn4iwPr1LxZmLIhBp7FIrj7c4L VR5FhtLzFgWuy5oJdZatAxAHZYtKvrs9QQaJ4EQK6VCfKRQkglOxxizlvi83qnIVvhkc biNMZ2GwtX23JdMJyyOtcHrN6OFAALMYN/ALITcKqCgmRIcXW46wW9uU2bqXBHZCxOfG l2fJ8jNJWERj8IalsFP0A2M++FWH6+CO3ARZlt0CojkxAwAQo5fbGpLhUAcnCQT7NpfJ Pa3hatMIEm6CI7gHoZhNzp1+hlCK8eQ9hMfSKdU7wqbUpVmZSpeUpFiFn52fZVFpe1u8 WtuQ== 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:dkim-signature; bh=gVM9iaV9Lic03s70qyttiRmE4S5cm9SYTemu0TtbmO8=; b=GjuCIpy7/rn4l7lIRKXLFE388RbNT/mHy5qdlAHrH+NyqLDSQYRmt90wclYZSi+eA7 1JxzbxcDAzkPoMDaM6MI58w9W3WCiKRXvbYdhV3pnTxMKIbJzaG/69O5uuoQk9li0tF3 ajcFDs26FIwbe4WH+PVOks0eaKOUm7EdkhCzNkGh+9LpiJmqd5HDl6ZbQATGzGRBc5uR bnFVszbKSs+9bjy21SktO85Ca8LJMELZhLGZ4zLBg6pZ+0uBhu7uuWrBLIy5r4TfFf1v BHTGZgdUHIgQMB3AVDoQrWzElrhesOLSAF7TKMbvoAcv8T70SbfGUt8os3xsJ10imrut JzuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=di94DloS; 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 l189si2843881pgd.130.2021.10.14.03.44.10; Thu, 14 Oct 2021 03:44:24 -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=@kernel.org header.s=k20201202 header.b=di94DloS; 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 S229994AbhJNKon (ORCPT + 99 others); Thu, 14 Oct 2021 06:44:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:42710 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229468AbhJNKok (ORCPT ); Thu, 14 Oct 2021 06:44:40 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9106961029; Thu, 14 Oct 2021 10:42:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1634208153; bh=YviziDSx60ArktrgOAhlwV2SAqrRsCl2B1mc5NJO4P8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=di94DloSyNwlRRiMUA7CC7C+s12KEw9SlDJzhtWQhLME7kzhD2f724oo4fBKDW2Hy 42Yxf0piJPRO/LSk/2xZwqCs4LO8RTOuKbi01un5XcmksA9mW6MwXl89kNR9TsARRS BmR5MbXqKAgYUtzn+Dc030rlqQiuu6gg+pN4QpUJJMM4ypcxFvLbM2bxGDjXSXXhD8 lMTqd4+Y76q1n5fpscoJbPawJTtEvcbCl9nAV45OrXLQ6d2qQCdYtVrBj9Dj89y8Wa CsTpP8yJlbCzpLiumVi4NPlvckh+rJ7i10MAVknbchpqSL9XgFmLsoy5kZZn35BgTp k4UGgBY4u3KQA== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1mayBu-0008Hd-W7; Thu, 14 Oct 2021 12:42:27 +0200 Date: Thu, 14 Oct 2021 12:42:26 +0200 From: Johan Hovold To: Drew Fustini Cc: Benoit Cousson , Dave Gerlach , Keerthy , Tony Lindgren , Rob Herring , linux-omap@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ARM: dts: am335x: Add rtc node as system-power-controller Message-ID: References: <20211012191311.879838-1-dfustini@baylibre.com> <20211013214103.GA10628@x1> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211013214103.GA10628@x1> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 13, 2021 at 02:41:03PM -0700, Drew Fustini wrote: > On Wed, Oct 13, 2021 at 09:23:42AM +0200, Johan Hovold wrote: > > On Tue, Oct 12, 2021 at 12:13:12PM -0700, Drew Fustini wrote: > > > From: Keerthy > > > > > > PMIC_PWR_EN pin of RTC on am335x-evm, bone, and boneblack is connected to > > > PMIC on board, so flag rtc node as system-power-controller to allow > > > software to poweroff boards. > > > > The "system-power-controller" property is already set in > > bone-common.dtsi since > > > > 2876cc4a773c ("ARM: dts: Move most of am335x-boneblack.dts to am335x-boneblack-common.dtsi") > > > > so this probably only affects am335x-evm and that should be reflected in > > the commit message. > > > > Also, should you now remove the property from boneblack-common? Or just > > add it to am335x-evm instead? > > Thank you for reviewing. Yes, I should improve the commit message as the > BeagleBone Black is already covered for the rtc system-power-controller > in am335x-boneblack-common.dtsi. So is sancloud-bbe apparently. I only noticed because I added support to BeagleBone Black long ago so unless there'd been a regression it should already be supported. > I believe it would be ok to remove system-power-controller from > am335x-boneblack-common.dtsi and have it in am335x-bone-common.dtsi. > > These are the files that include am335x-boneblack-common.dtsi: > arch/arm/boot/dts/am335x-boneblack-wireless.dts > arch/arm/boot/dts/am335x-boneblack.dts > arch/arm/boot/dts/am335x-sancloud-bbe-lite.dts > arch/arm/boot/dts/am335x-sancloud-bbe.dts > > But they all also include am335x-bone-common.dtsi. > > However, I just noticed that am335x-evm.dts does not include either > am335x-boneblack-common.dtsi or am335x-boneblack-common.dtsi. Thus > rtc system-power-controller should be directly inserted into > am335x-evm.dts. Right. > I considered just moving system-power-controller to the rtc node in > am33xx-l4.dtsi but I don't think that would be correct as this would not > be valid for all am33xx devices. > > Does that seem correct to you? No, that wouldn't be right. You're more familiar with the different variants here, but unless all flavours of Bone Black have the signal wired, it should probably be pushed down into the dts files again. Johan