Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp2914845rwb; Mon, 16 Jan 2023 00:54:01 -0800 (PST) X-Google-Smtp-Source: AMrXdXufJ0aVr9a0Tq8TsVB4MKQ7lYV304LtiSI9NNO61HLb/2p50ujQ4OKy4/5ZhkhFfZacb3Es X-Received: by 2002:a17:906:838b:b0:851:97ca:7fc9 with SMTP id p11-20020a170906838b00b0085197ca7fc9mr23861865ejx.40.1673859241178; Mon, 16 Jan 2023 00:54:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673859241; cv=none; d=google.com; s=arc-20160816; b=OXJaNBHAl70OL3iT7m+W2hwOhvuLKCLmi1nQvQRPPBVSyE4BxNj6jOc6SiHwC37qs2 3cUqotK8aZPrQ7UEumwH1KrR3UMximGW0Mn/Xt4GkEFJ+61oL6QIWnF8+mxxaI0fFEBO WgC9hA6vP4TCGO8ImalZKpBs4I9+tmUiB8BaYQArAjrV/fuvAjd0zb/dCC/1TRP/JLGM ZXi9gGxowSoDM6DblJ/6i3Vg6GZowRLmsZm3mIoPZlt804pTFZ8hLDto3BceLMeL30jl XGB/Be98sdxsWrDCqK33+TfCSUlRsuxchNpoO31hVNgZjxLeC1mC6gJ5acv6pM7d1prj soUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=DFBNRUQYxOGwHi8B84gMwKG/HlAf1GPaywQ5M6VIOWY=; b=YiOFO7MFRxKx1Xjeq3Fp//THvGM8psdWp0fuFDK/JnomjWLfiEsviW7l+fso4JrZ28 rS5EUz8N1wOErrQSB5zUsjXjj8UrQuYY5DnGxbPl8p1QxbBjViWm83r/jx2q4vN+/C0g EfWA+8JeRiXPif8/5LZG74Rx6eQ952nq9l0g7/uzpHRWir6X1W9dLH4/unj7peynRNd/ ZRySvqQcBR3zYRlFyVVv7Gh75fPTrPehKJXgLsNXpNKTCAR73QZI7OTTpTxSNXxbH9fS fz6WjfT6OV9CZIp+bagmQtx0li/dspS6osw27OY2bsbe+G+DGOKlEUo4++IeTbk7ks4g QNbg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sc16-20020a1709078a1000b008708a80a16dsi2730977ejc.235.2023.01.16.00.53.48; Mon, 16 Jan 2023 00:54:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232165AbjAPI1w (ORCPT + 51 others); Mon, 16 Jan 2023 03:27:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231954AbjAPI1t (ORCPT ); Mon, 16 Jan 2023 03:27:49 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2273612056 for ; Mon, 16 Jan 2023 00:27:48 -0800 (PST) Received: from ptz.office.stw.pengutronix.de ([2a0a:edc0:0:900:1d::77] helo=[127.0.0.1]) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1pHKq7-00077u-R8; Mon, 16 Jan 2023 09:27:35 +0100 Message-ID: <12080bf5-2cc4-e215-555e-5438ed1bd851@pengutronix.de> Date: Mon, 16 Jan 2023 09:27:33 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Subject: Re: [PATCH 2/2] ARM: dts: imx6qdl: support child mfd cells for the reset controller Content-Language: en-US To: Krzysztof Kozlowski , Bastian Krause , Philipp Zabel , Rob Herring , Krzysztof Kozlowski , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20230113-syscon-child-mfd-v1-0-0dd31b7de373@pengutronix.de> <20230113-syscon-child-mfd-v1-2-0dd31b7de373@pengutronix.de> <392f6e9d-b7c2-37df-2067-f7d967a20f10@linaro.org> From: Ahmad Fatoum In-Reply-To: <392f6e9d-b7c2-37df-2067-f7d967a20f10@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 2a0a:edc0:0:900:1d::77 X-SA-Exim-Mail-From: a.fatoum@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Krzysztof, On 16.01.23 09:20, Krzysztof Kozlowski wrote: > On 13/01/2023 18:32, Bastian Krause wrote: >> The actual syscon-reboot-mode child node can be added by a board >> device-tree or fixed up by the bootloader. For the child node to be >> probed, the compatible needs to include simple-mfd. The binding now >> specifies this, so have the SoC dtsi adhere to it. >> >> Suggested-by: Ahmad Fatoum >> Signed-off-by: Bastian Krause >> --- >> arch/arm/boot/dts/imx6qdl.dtsi | 3 ++- >> 1 file changed, 2 insertions(+), 1 deletion(-) >> >> diff --git a/arch/arm/boot/dts/imx6qdl.dtsi b/arch/arm/boot/dts/imx6qdl.dtsi >> index ff1e0173b39be..b16be39458aa6 100644 >> --- a/arch/arm/boot/dts/imx6qdl.dtsi >> +++ b/arch/arm/boot/dts/imx6qdl.dtsi >> @@ -865,7 +865,8 @@ epit2: epit@20d4000 { /* EPIT2 */ >> }; >> >> src: reset-controller@20d8000 { >> - compatible = "fsl,imx6q-src", "fsl,imx51-src"; >> + compatible = "fsl,imx6q-src", "fsl,imx51-src", >> + "syscon", "simple-mfd"; > > You need children here. Otherwise simple-mfd does not make sense. If you > expect something else to add children (I don't understand why, usually > reboot capability is fixed per SoC and only sometimes extended with some > other means), then this "else" will also change compatible. It's about syscon-reboot-mode, not syscon-reboot. Such modes are board- not soc-specific. Yes, a board DTS can override a compatible, but this is error prone as you can't just add a compatible, you need to hardcode the other compatibles in the SoC dtsi, which may change for good reason in future. barebox supports fixing up syscon-reboot-mode nodes defined in its own device tree to the Linux DT. While in theory, it could check if the parent node contains syscon/simple-mfd and fix it up if necessary, it sounds to me like this should be rather part of the upstream DT. Cheers, Ahmad > > Best regards, > Krzysztof > > -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |