Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1713AECAAA1 for ; Thu, 27 Oct 2022 21:08:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:From:References:CC:To:Subject: MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=WjLAF4jkm9zNxWyIywOp6KDQVv94fNNLoV7Gdl/kyT0=; b=E9JOY0v6JK4q0h bw57KTNLEABFDP/LdUEx/7uenYA4UWkeDm9eTFSxAAl49DyeyjKf++Z8DuT5I3hyc4YSolJ2o688z 6Hvq87NjXliyWOhSwebO8NQ9+5elJytyZwLA9ZPd6FCao3kdslJyjRJhXYn0wVtAUrM0V6BIsZfxL ATppwRNdxgDu3cZFyyTrQIaiRiyJ864zKBGb4gR/WMANJaAeDScecQWQ2MJBiIJm7M8F56ywkmdhq pP9sKXTXRqflbE/jZhrrN1ghnLK9Sy2Q/UK1a7Jg0JDARtYqRlD8jQB/8QZwlO+j0d6cBCkqi9i+F NuXnzk1TvkbVWrPmR1Kg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ooA66-00ErVC-Tp; Thu, 27 Oct 2022 21:07:31 +0000 Received: from lelv0143.ext.ti.com ([198.47.23.248]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ooA63-00ErUY-IW for linux-arm-kernel@lists.infradead.org; Thu, 27 Oct 2022 21:07:29 +0000 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 29RL7FoY029726; Thu, 27 Oct 2022 16:07:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1666904835; bh=GLCwhrH7P9GnX6pP57UFeRv4PvNoKDR2Duko3cA8iBg=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=NfbCkeguhYq4U6KJaoKEiLWUDDo5KMhVSGC2vOt4jhl5b0d8khwBed0x+35e7V3u1 ibhBdbA+F03F0LP82Nd4mqWycSfMsEieh0uEQ5yor+7T2jTSk2HqQk+ZjKlEqjvPjE 0PLtoiZgH00V3GJUxfCvecw2hd8yBZefG8l39Zzo= Received: from DFLE104.ent.ti.com (dfle104.ent.ti.com [10.64.6.25]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 29RL7Fjr002219 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 27 Oct 2022 16:07:15 -0500 Received: from DFLE109.ent.ti.com (10.64.6.30) by DFLE104.ent.ti.com (10.64.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.6; Thu, 27 Oct 2022 16:07:14 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE109.ent.ti.com (10.64.6.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.6 via Frontend Transport; Thu, 27 Oct 2022 16:07:15 -0500 Received: from [10.250.35.234] (ileaxei01-snat.itg.ti.com [10.180.69.5]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 29RL7EDS090916; Thu, 27 Oct 2022 16:07:14 -0500 Message-ID: Date: Thu, 27 Oct 2022 16:07:14 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Subject: Re: [PATCH v3 2/9] ARM: dts: nspire: Use syscon-reboot to handle restart Content-Language: en-US To: Krzysztof Kozlowski , Lee Jones , Rob Herring , Krzysztof Kozlowski , Arnd Bergmann , Linus Walleij , Geert Uytterhoeven , Daniel Tang , Fabian Vogt CC: , , References: <20221027181337.8651-1-afd@ti.com> <20221027181337.8651-3-afd@ti.com> <050f3d65-5720-9c97-1930-bc458c4c2fb8@linaro.org> From: Andrew Davis In-Reply-To: <050f3d65-5720-9c97-1930-bc458c4c2fb8@linaro.org> X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221027_140727_766666_7BAD7706 X-CRM114-Status: GOOD ( 20.78 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 10/27/22 2:33 PM, Krzysztof Kozlowski wrote: > On 27/10/2022 14:13, Andrew Davis wrote: >> Writing this bit can be handled by the syscon-reboot driver. >> Add this node to DT. >> >> Signed-off-by: Andrew Davis >> Reviewed-by: Linus Walleij >> Tested-by: Fabian Vogt >> Reviewed-by: Fabian Vogt >> --- >> arch/arm/boot/dts/nspire.dtsi | 7 +++++++ >> 1 file changed, 7 insertions(+) >> >> diff --git a/arch/arm/boot/dts/nspire.dtsi b/arch/arm/boot/dts/nspire.dtsi >> index bb240e6a3a6f..48fbc9d533c3 100644 >> --- a/arch/arm/boot/dts/nspire.dtsi >> +++ b/arch/arm/boot/dts/nspire.dtsi >> @@ -172,7 +172,14 @@ rtc: rtc@90090000 { >> }; >> >> misc: misc@900a0000 { >> + compatible = "ti,nspire-misc", "syscon", "simple-mfd"; > > You have syscon and simple-mfd, but bindings in patch #1 say only syscon. > I'm not following, are you just saying my wording in the patch message just wasn't complete? Or are you saying something more about nodes that are both syscon and simple-mfd? In that case, having both syscon and simple-mfd seems rather common, looks like you added the rule for it[0]. Thinking on this, they almost represent the same thing. simple-mfd says "my child nodes should be considered devices", why do we need that? Couldn't we simply state that "syscon" node's children are always devices, I mean what else could they be, syscon is an MFD after all (and lives in drivers/mfd/). "syscon" often just says, others can use the registers within this node, so as a different option, make "syscon" a property of "simple-mfd" nodes. I'm seeing all these examples of devices that should have been children of the "syscon" device, but instead use regmap = <&x>; syscon = <&x>; or similar and put the device node out somewhere random. And in those cases, wouldn't it have been more correct to use the normal "reg" and "regions" to define the registers belonging to the child node/device?.. Thanks, Andrew [0] https://lore.kernel.org/all/20220817142246.828762-5-krzysztof.kozlowski@linaro.org/ > > Best regards, > Krzysztof > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel