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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7B920C64EC4 for ; Thu, 9 Mar 2023 12:19:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229923AbjCIMTb (ORCPT ); Thu, 9 Mar 2023 07:19:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230290AbjCIMTX (ORCPT ); Thu, 9 Mar 2023 07:19:23 -0500 Received: from mail11.truemail.it (mail11.truemail.it [217.194.8.81]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8155EA01B; Thu, 9 Mar 2023 04:19:20 -0800 (PST) Received: from francesco-nb.int.toradex.com (93-49-2-63.ip317.fastwebnet.it [93.49.2.63]) by mail11.truemail.it (Postfix) with ESMTPA id D79241F843; Thu, 9 Mar 2023 13:19:17 +0100 (CET) Date: Thu, 9 Mar 2023 13:19:13 +0100 From: Francesco Dolcini To: Krzysztof Kozlowski , Shawn Guo Cc: Philippe Schenker , devicetree@vger.kernel.org, Sascha Hauer , NXP Linux Team , Krzysztof Kozlowski , Rob Herring , Pengutronix Kernel Team , Frank Rowand , linux-arm-kernel@lists.infradead.org, Fabio Estevam , Philippe Schenker , linux-kernel@vger.kernel.org, Marcel Ziswiler Subject: Re: [PATCH v1 03/25] arm64: dts: colibri-imx8x: Sort properties Message-ID: References: <20230308125300.58244-1-dev@pschenker.ch> <20230308125300.58244-4-dev@pschenker.ch> <9d213504-d457-21a6-d467-41d8783d53d3@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9d213504-d457-21a6-d467-41d8783d53d3@linaro.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Krzysztof, first thanks for your review. Let's try to get some clarity on this with the help of Shawn. On Wed, Mar 08, 2023 at 01:57:38PM +0100, Krzysztof Kozlowski wrote: > On 08/03/2023 13:52, Philippe Schenker wrote: > > From: Philippe Schenker > > > > Sort properties according to the following order and inside these > > alphabetically. > > > > 1. compatible > > 2. reg > > 3. standard properties > > 4. specific properties > > 5. status > > Is this approved coding style for IMX DTS? I 100% understand your concerns here. With that said let me try to briefly explain the reasoning here, in various threads we were asked in the past to move node around based on some not 100% defined rules [0][1]. On Sun, 2023-01-29 at 11:19 +0800, Shawn Guo wrote: >> +&usbotg1 { >> + adp-disable; >> + ci-disable-lpm; >> + hnp-disable; >> + over-current-active-low; >> + pinctrl-names = "default"; >> + pinctrl-0 = <&pinctrl_usbotg1>; > >We generally want to put such generic properties before device specific >ones. In addition to that we find convenient to have properties sorted alphabetically when no other rule is available, it just prevents any kind of discussion, minimize merge conflicts and make comparing files easier. I also agree that the difference between "generic"/"specific" is fuzzy at best. With all that said ... Shawn: What should we do? We can of course avoid any kind of re-ordering from now on. I am fine to be very pragmatic here, no-reordering on existing DTS files, newly added DTS files we discuss whatever is the reasoning of the reviewer/maintainer on a case-by-case basis. Francesco [0] https://lore.kernel.org/all/895e7df5-65e5-7b26-81d6-864e68957ab6@linaro.org/ [1] https://lore.kernel.org/all/20230129031932.GO20713@T480/