Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp874021rdb; Fri, 17 Nov 2023 15:54:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IE+j5PSadFmLXSIqUN0ABhSW/cdm2ntNUUKpKceraKCvhA/yjvnBjMqkXp2lkSicPDhZFIY X-Received: by 2002:a05:6a00:1d95:b0:6c2:c8d2:94f6 with SMTP id z21-20020a056a001d9500b006c2c8d294f6mr1143154pfw.7.1700265241506; Fri, 17 Nov 2023 15:54:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700265241; cv=none; d=google.com; s=arc-20160816; b=zYO+Zrxc8it2gBol4Wb4wDPXhK0mE/a2AXnmibDAwuaOmG6vY+esAesUbqY5RUM9tw SC8zI8jmD0X9AouFm44r9BipQUJcGY6MFPoffxK/wvYoJpbhLT+n+x4idxNkNs9G+SBL zkEYifNymgSeAMuPGAvExMvfiuyjW3DS6ZMsPJFdc2viYb15KI+bfGMy+TkabWPOTdR9 m8Yox9KsniYOkpW6m+LA88R0nv/CkGIInlO1htyG+Go/ceIeczrP9PXPz2+RowBNCLSP chk4e8NJrp+9QMxscGL3Aal4NxcdZDBc2+8L72kaJrxPENFDilYCMbPNfKex3esyLtrB Odyg== 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:autocrypt :from:references:cc:to:content-language:subject:user-agent :mime-version:date:message-id:dkim-signature; bh=QpkeRFmyHdjXxHSMX/08tAo8DUmw9sl0gY2M0hTw6us=; fh=22BIomiU1hVyrJlOOOBAscpcdV11zGoZqQkbI0YhK3c=; b=gNMlwVAyUrgoN2Bfk/gBXONpZz5azZQ3VwbKFicW4gbNBZq5kBeeDhm4KFjaEwWEHj pKVqDfARf+8ZwpzLCledm9ghxm81bpRSHrtLhyY8ACP0wBr5yGIS5vFkt2UuyqbzjHGE XmRDP+CzALHxh0KDpOmO/A5YgVakBFwE3pdkWcw0N3ba1VIPdTe9mMDfn4I1+F9dEu6r CwA4XFbgnRogE5qPdIRDzdDaVr9pl1z06POdl3ihmDathY7bPdTXQvul20BlO2dV2Np3 4wxXyADoSfH1/ITpRbVf5hrFH1aYsWvwGTvlQrUzKhVEf61Af05/M56n7kyPZ8QnHGP7 I5Rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WAr2aqXo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id 34-20020a631562000000b005b909afef1fsi2804258pgv.518.2023.11.17.15.54.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 15:54:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WAr2aqXo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id D0E468085997; Fri, 17 Nov 2023 15:53:58 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346284AbjKQXxw (ORCPT + 99 others); Fri, 17 Nov 2023 18:53:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229737AbjKQXxv (ORCPT ); Fri, 17 Nov 2023 18:53:51 -0500 Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 547681AD for ; Fri, 17 Nov 2023 15:53:47 -0800 (PST) Received: by mail-ed1-x52a.google.com with SMTP id 4fb4d7f45d1cf-5437269a661so7108276a12.0 for ; Fri, 17 Nov 2023 15:53:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1700265226; x=1700870026; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=QpkeRFmyHdjXxHSMX/08tAo8DUmw9sl0gY2M0hTw6us=; b=WAr2aqXowqGesSyRlxz8YgLRIJhpWo5Y2wjSCJ6Y1J1stLGLhQD3d1XbOYrliZVNFs af3CXcKRJIoQzItRKsxCNvgunuYVehTEgXZD5u7RVh1bGrMtCLXgKsBHVaZyb7rJShF1 2j2b/IzxYTy8pZtgUgAqf2ROKqU855sM8dybULk3iyX9nlLT5qGcP0KD8wnmhF7+Jwxg gPLDiyR45+BTZumQEeRcprARxS3f1mplz8BfQGQ7O1gz3hn16UQOtbkkYguLpPgOiLpe 6fLOdex1Xo7m4/CiI0/+RdiyhfEGHXc0v76bctWOeCdJQXmbIsvkY6CMANpuokxqN7Dt ZxtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700265226; x=1700870026; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=QpkeRFmyHdjXxHSMX/08tAo8DUmw9sl0gY2M0hTw6us=; b=aHNpnIImlBa5b8VXEk8fdMwerawslTRjoybd8s9YsF+ne7wWD7aXEqKI9me0PVUw+n x9piAE2rqpCKniINvBAgN9+ZKk7tyeY5GqhG6GPUa6hnGaZa/2rXAVjOBZrZxzLEXMeI Ani9pI484QCYmyTov9JTx20I+QoBlpWohrjzfptS4YuhEoU0aQyVoP8sa5XCdk7Nzz1e 7DD8x7H435DdSl4mNbluoeq2/diOcg8F07VKctqh6El69WZ0MgJjoZadZfWnplZSscQv c+yncsYkVMBYRqFVO+MwnKPOVCWvoWxdLGw1pitIcFa14wRyDuR5l2Hfzal4koHuG3ww DANQ== X-Gm-Message-State: AOJu0YyGKsWdxwd5eZGdZbZlDxfmAxnJ2hIQqxC+wDLIKs6va/S+EZ+C pU3+JEpWh5YlcXOZNRVVjyqEeQ== X-Received: by 2002:a50:e612:0:b0:53e:1207:5b69 with SMTP id y18-20020a50e612000000b0053e12075b69mr6774002edm.10.1700265225678; Fri, 17 Nov 2023 15:53:45 -0800 (PST) Received: from [192.168.201.100] (178235187040.dynamic-4-waw-k-2-3-0.vectranet.pl. [178.235.187.40]) by smtp.gmail.com with ESMTPSA id j18-20020aa7c0d2000000b00533e915923asm1169741edp.49.2023.11.17.15.53.43 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 17 Nov 2023 15:53:45 -0800 (PST) Message-ID: Date: Sat, 18 Nov 2023 00:53:42 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] docs: dt-bindings: add DTS Coding Style document Content-Language: en-US To: Krzysztof Kozlowski , Rob Herring , Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: AngeloGioacchino Del Regno , Arnd Bergmann , Bjorn Andersson , Geert Uytterhoeven , Heiko Stuebner , Matthias Brugger , Michal Simek , Neil Armstrong , Nishanth Menon , Olof Johansson References: <20231116181218.18886-1-krzysztof.kozlowski@linaro.org> From: Konrad Dybcio Autocrypt: addr=konrad.dybcio@linaro.org; keydata= xsFNBF9ALYUBEADWAhxdTBWrw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/fNI8AfttmAQL9cwo6C8yDTXKdho920W4WUR9k8NT/OBqWSyk bGqMHex48FVZhexNPYOd58EY9/7mL5u0sJmo+jTeb4JBgIbFPJCFyng4HwbniWgQJZ1WqaUC nas9J77uICis2WH7N8Bs9jy0wQYezNzqS+FxoNXmDQg2jetX8en4bO2Di7Pmx0jXA4TOb9TM izWDgYvmBE8= In-Reply-To: <20231116181218.18886-1-krzysztof.kozlowski@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Fri, 17 Nov 2023 15:53:59 -0800 (PST) On 16.11.2023 19:12, Krzysztof Kozlowski wrote: > Document preferred coding style for Devicetree sources (DTS and DTSI), > to bring consistency among all (sub)architectures and ease in reviews. > > Cc: AngeloGioacchino Del Regno > Cc: Arnd Bergmann > Cc: Bjorn Andersson > Cc: Geert Uytterhoeven > Cc: Heiko Stuebner > Cc: Konrad Dybcio > Cc: Matthias Brugger > Cc: Michal Simek > Cc: Neil Armstrong > Cc: Nishanth Menon > Cc: Olof Johansson > Signed-off-by: Krzysztof Kozlowski > > --- [...] > +Order of Nodes > +-------------- > + > +1. Nodes within any bus, thus using unit addresses for children, shall be > + ordered incrementally by unit address. > + > +2. Nodes without unit addresses should be ordered alpha-numerically. I largely agree with all this given our fight for some level of tidyness across linux-msm, but there's one specific case where I think it would make sense to break this ordering, and that's GPIO states: &pinctrl { xyz-active-state { pins ="gpio0"; ... }; abc-active-state { pins ="gpio1"; ... }; qwe-active-state { pins ="gpio2"; ... }; }; looks so much more readable to me than &pinctrl { abc-active-state { pins ="gpio1"; ... }; qwe-active-state { pins ="gpio2"; ... }; xyz-active-state { pins ="gpio0"; ... }; }; Konrad