Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp933940rdf; Wed, 22 Nov 2023 00:25:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IHYguVkYZnz7HJh3iVT0qZzDle5vDKqPZW3AkUJ9Tn0VhMNO3Ah0MmfN378sggDZkoOFJUg X-Received: by 2002:a17:90b:4d08:b0:280:64e3:7665 with SMTP id mw8-20020a17090b4d0800b0028064e37665mr1853442pjb.41.1700641500889; Wed, 22 Nov 2023 00:25:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700641500; cv=none; d=google.com; s=arc-20160816; b=g6/0Z20qGhOii7R4wUtq+TP4F7dgRMVMJ+chT8OqC/coVRWlv7hbP3KZ8xrBUqpMeK 5FKP5JM9WM1UhEvKqR3RdmelRSujskVd1GlaT797q3PQkqRmBhlycEoJD9RkA5Uspd2a EoxSx36SWQACit7AfL2hp26kQPPnWUbJ4xpjl3GTx/uuElExdDbhLTGD5PNIWn0uOjOZ kjMxurpzNuZl34C/suiSp7n1S99UlXGg5fQbqH3+5MAZ2d0odsW0xjOyQrAEseTC6/BB 4VkbTQlQ6y/Nsdnp95/fv+y72lt2ESgiCFajeYbTxdX4go2Msl4A4Ubqv/vmYyCYDOWG BVhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:references :in-reply-to:subject:cc:to:from:date:dkim-signature:mime-version; bh=344eE/zF04wdsbwUUyPMJHUHm7b7bgjWnD7hX0tAWOs=; fh=K/aoIib+WX+vpP7k2JdnypOMeHWLTJsWgDjFAQ5RP2o=; b=mC2CSZ6P9g/LimTJcS65HvC1tmNX48tlTbGEk/40FR7H4KIQDhZ15aP5iEvX42h8Ag f+ZUNhJ8XqR4jKeqNVL0hMAAnw/k/RL8g7sM64+8zD7STEwUWdoIch03cMD1a3gcMDdR vv8IRKOR3hl88NQmCRz1Ra8bY3LLI/jrKHh51wdYQgJiqggkE8JjfK8DYtASJ0/ZsVyC M+2y+gTFmZa95f9DYgGc37Q0qvDzhvBC2r+knOs1RG3mcHptGyNVijjibMDR4rxv1C53 hrUCqAmgK4E7+05PelwQm6JfGmR6pn6b8qDMr56aVu2WVTBhZp+LW0n9bEbIIbWEwaQ3 7e4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@manjaro.org header.s=2021 header.b=y00lX2yo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=manjaro.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id p15-20020a17090b010f00b002802f5bf238si1024007pjz.31.2023.11.22.00.25.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 00:25:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@manjaro.org header.s=2021 header.b=y00lX2yo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=manjaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id EAB4D81A1EA8; Wed, 22 Nov 2023 00:24:59 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235071AbjKVIY7 (ORCPT + 99 others); Wed, 22 Nov 2023 03:24:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231239AbjKVIY6 (ORCPT ); Wed, 22 Nov 2023 03:24:58 -0500 X-Greylist: delayed 578 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 22 Nov 2023 00:24:53 PST Received: from mail.manjaro.org (mail.manjaro.org [IPv6:2a01:4f8:c0c:51f3::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC6ED9A; Wed, 22 Nov 2023 00:24:53 -0800 (PST) MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=manjaro.org; s=2021; t=1700640909; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=344eE/zF04wdsbwUUyPMJHUHm7b7bgjWnD7hX0tAWOs=; b=y00lX2yoRuI5GcAvxxLqMeutqSIajRKfUc1DiFHsAu/omK2D9ON8PZh/mrwmVkn0jV1O9v 8ku/Cr+kckgScDhXDY3WIJ1QbFDku3no72CtSv6go/hhUlnWJjQ+VcqEX3vLBdlanMvLGZ otWOZmmQraYaw+F3aqp0AA4yW8eOoWxjHLpZJpemedJ5Yc/Fp77ed4lCr+PYRBtczCKOS+ rNj7Vw5OLhUbtwb1x4V051jPcs6xFo+IQkX/ddwUFvV/E+6lpihXxvmFwqv36Brgqhk8ga Ujq6mLpzvHwYNEpk/6MvJaQkf284cPLivRDsjI1xcRG10WsnjlMZNWhuk3OKbg== Date: Wed, 22 Nov 2023 09:15:08 +0100 From: Dragan Simic To: Krzysztof Kozlowski Cc: Geert Uytterhoeven , Michal Simek , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Andrew Davis , Arnd Bergmann , Bjorn Andersson , Geert Uytterhoeven , Heiko Stuebner , Konrad Dybcio , Neil Armstrong , Nishanth Menon , Olof Johansson , linux-rockchip@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-arm-msm@vger.kernel.org Subject: Re: [PATCH v2] docs: dt-bindings: add DTS Coding Style document In-Reply-To: <26b5fd29-fcd0-4c68-8bfe-a73a660fb2c9@linaro.org> References: <20231120084044.23838-1-krzysztof.kozlowski@linaro.org> <19358871-009d-4498-9c13-90d5338b1e9f@amd.com> <76fa8f61-fe31-4040-a38d-cc05be3f4f17@linaro.org> <6c80a285-27fc-4d61-9eef-af4744a9decc@amd.com> <26b5fd29-fcd0-4c68-8bfe-a73a660fb2c9@linaro.org> Message-ID: X-Sender: dsimic@manjaro.org Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Authentication-Results: ORIGINATING; auth=pass smtp.auth=dsimic@manjaro.org smtp.mailfrom=dsimic@manjaro.org X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 22 Nov 2023 00:25:00 -0800 (PST) On 2023-11-22 09:01, Krzysztof Kozlowski wrote: > On 21/11/2023 17:04, Geert Uytterhoeven wrote: >> Hi Krzysztof, >> >> On Tue, Nov 21, 2023 at 1:36 PM Krzysztof Kozlowski >> wrote: >>> On 21/11/2023 12:55, Michal Simek wrote: >>>>>> device-tree specification v0.4. Chapter 2.2.1/Table 2.1 is >>>>>> describing much more >>>>>> valid characters for node names. >>>>>> It means above description is not accurate or DT spec should be >>>>>> updated. >>>>> >>>>> Spec allows way to much. dtc doesn't. >>>>> One thing is the spec, second >>>>> thing is coding style. >>>> >>>> From my point of view spec is primary source of truth. If spec is >>>> saying name >>>> can use upper case then I can use it. If upper case is not >>>> recommended/deprecated because of whatever reason spec should be >>>> updated to >>>> reflect it. >>>> I know that DTC is reporting other issues but isn't it the right way >>>> to reflect >>>> it back to the spec? >>> >>> Then why aren't you putting Linux Coding Style into C spec? I do not >>> see >>> any relation between specification of the language and the coding >>> style >>> chosen for given project. >>> >>> Zephyr can go with upper-case. Why it should be disallowed by the >>> spec? >> >> I thought there was only One DT to bind them all? >> IMHO it would be better to align DT usage of Zephyr and Linux (and >> anything else). > > I actually don't know what Zephyr decides, but used it as example that > it might want different coding style. Just like C standard allows to > have all variables (including local ones) upper-case, we do not have > such coding style. And no one proposes to update C spec to match Linux > coding style. :) I also agree about the need to differentiate the coding styles from the underlying specifications. Also, as we know, the C language is the unifying factor between various projects, but with wildly differing coding styles. Expecting all those projects to have their C coding styles aligned wouldn't be reasonable, if you agree. BTW, having this document as part of the kernel documentation will be great, and it's in fact quite overdue, if you agree. Huge thanks to everyone working on it!