Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp220971rdf; Tue, 21 Nov 2023 00:09:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IF7lF6dtLmA7VKLWKLr3/Yra/KdQ9NczTCfEHbJLOCUR7t6CdK6Rf3TFSwqjkwzUeBYY/P4 X-Received: by 2002:a17:90b:380e:b0:285:e7d:88ef with SMTP id mq14-20020a17090b380e00b002850e7d88efmr10099223pjb.23.1700554142241; Tue, 21 Nov 2023 00:09:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700554142; cv=none; d=google.com; s=arc-20160816; b=gZx2bnuy+vodsX3JQrWQgOmkErDb9sTjP6VRGMOTPIwWIFtgzylmTBbFySpmM5obsw ePqEcKkvrYVdjuiqSK8w2ErV+qoqYPGLCd2yPjhoEEJfrOIi0H4R1CzMQt/4qUZBM4YC 77e2PMQ+1ydXV0kmETYT8gNjE5ufwiOTWygxdJlem3/B4G7O7IDxGK6npz1Raa2oEF65 ESsDR8oVZh8tPkqy/rmE9m7eLwCbhQ/77gGpGZ+S3vOvYjBzYUrtN6w5KPWvk4TMG1ND I/+lbqUC8up+pdD2z9w6OKYaKsL0M7YFfHTQwRb00Uqrh2HY31o6FuSkvmKWkojqwgYN J1iQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=y1H1Z7aRGposfxa2zzHeoO0IPPr95aDJpZS1tZIqCKc=; fh=zTYSv+37rQqT6NSU46y8MJsny/QLFM4bpdETmF1mdAc=; b=kehESW3APnYgkadGn0bshNLuirFZ47sbYtPiNXE4TKxWZ3fpGAMDZ2jgIUSjiK8K0j Rg6umMuGWTtiEJzZ0Kel0hhYclcxVQoGdwgW4CLl8Ccg6QJSUxMZun0l2B6jeDQNLPMl +fKWxYg2xBIYz+lhOhJsXiraL14oCESrAB9mAtRA+jIUtWPZy1n0myn/dK3JJy/NJezx G8zT0/yWldApVrIRv6u8YUAAUWJLgMnoEoN1bc9yybgzGlixULWzDfVeH5vrd9+kd/8X eTd3kblqmuLZSopRne8b9S1Pk9YVQnXBNLtWhV5NcgedJV9c0U5Nzb9QPkh0crj3wnq0 BxAg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id m3-20020a170902bb8300b001cae5766330si9278355pls.619.2023.11.21.00.09.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 00:09:02 -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; 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 Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 05D5C803A599; Tue, 21 Nov 2023 00:09:01 -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 S229620AbjKUII6 convert rfc822-to-8bit (ORCPT + 99 others); Tue, 21 Nov 2023 03:08:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229441AbjKUIIz (ORCPT ); Tue, 21 Nov 2023 03:08:55 -0500 Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4759FBB; Tue, 21 Nov 2023 00:08:52 -0800 (PST) Received: by mail-lf1-f49.google.com with SMTP id 2adb3069b0e04-507a55302e0so7610638e87.0; Tue, 21 Nov 2023 00:08:52 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700554126; x=1701158926; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=oeOErr72GGCTbFniaP00vmRzQcGaVer6knTx1tHa9Zo=; b=gkkKTx/qmI/gQOtXrl3G7QAtgBsE7O+gmrBQpnp4ilsbufpkEl8b+3cjV+0MQKx4e2 enWwxcxCi3Jd36w6KUrOZhll2NL3hro62Xa/SUVvCmiFq31k7RQ1HHXObMIKmEYHqMJv +6cQgIO+bwH6u2TL2TqZwO4c3z6aQ8aXvqJzNZsygRyrRYLsFyLO8Z6eoBNmkNuBrtDz f0fG8GV0waZkx9UQpWNt3bbnkcXPAEbgDtFLBXVB1bvefdF06KPPTSNs31uuDXZSVGsJ /fNZhyM2fOagdzh1ge+BpPMOxQ/3M96w6Cf8hkerZd+X+G48VpDnD8NX33sCejtNTe1X hJ+A== X-Gm-Message-State: AOJu0YxW8D71LyI3Im6RlLeWNNaUEwqAch0s2gjNycKMP2M2aDm7UMuE CxmucjQwnFt2E6dPwKu/Sf3DkYIHhifQZQKq X-Received: by 2002:a19:8c57:0:b0:507:9777:7a7 with SMTP id i23-20020a198c57000000b00507977707a7mr6634310lfj.17.1700554125562; Tue, 21 Nov 2023 00:08:45 -0800 (PST) Received: from mail-lf1-f43.google.com (mail-lf1-f43.google.com. [209.85.167.43]) by smtp.gmail.com with ESMTPSA id u23-20020a197917000000b00507a68e637bsm1430968lfc.205.2023.11.21.00.08.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 21 Nov 2023 00:08:45 -0800 (PST) Received: by mail-lf1-f43.google.com with SMTP id 2adb3069b0e04-50970c2115eso7578843e87.1; Tue, 21 Nov 2023 00:08:45 -0800 (PST) X-Received: by 2002:ac2:599b:0:b0:507:a5e7:724 with SMTP id w27-20020ac2599b000000b00507a5e70724mr6535084lfn.38.1700554124979; Tue, 21 Nov 2023 00:08:44 -0800 (PST) MIME-Version: 1.0 References: <20231120084044.23838-1-krzysztof.kozlowski@linaro.org> <19358871-009d-4498-9c13-90d5338b1e9f@amd.com> <76fa8f61-fe31-4040-a38d-cc05be3f4f17@linaro.org> In-Reply-To: From: Geert Uytterhoeven Date: Tue, 21 Nov 2023 09:08:26 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] docs: dt-bindings: add DTS Coding Style document To: Krzysztof Kozlowski Cc: 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no 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]); Tue, 21 Nov 2023 00:09:01 -0800 (PST) Hi Krzysztof, On Tue, Nov 21, 2023 at 8:47 AM Krzysztof Kozlowski wrote: > On 21/11/2023 08:33, Michal Simek wrote: > > On 11/20/23 20:31, Krzysztof Kozlowski wrote: > >> On 20/11/2023 20:18, Geert Uytterhoeven wrote: > >>> On Mon, Nov 20, 2023 at 3:53 PM Krzysztof Kozlowski > >>> wrote: > >>>> On 20/11/2023 15:01, Michal Simek wrote:> > > >>>>> On 11/20/23 09:40, Krzysztof Kozlowski wrote: > >>>>>> Document preferred coding style for Devicetree sources (DTS and DTSI), > >>>>>> to bring consistency among all (sub)architectures and ease in reviews. > >>> > >>>>>> +Organizing DTSI and DTS > >>>>>> +----------------------- > >>>>>> + > >>>>>> +The DTSI and DTS files should be organized in a way representing the common > >>>>>> +(and re-usable) parts of the hardware. Typically this means organizing DTSI > >>>>>> +and DTS files into several files: > >>>>>> + > >>>>>> +1. DTSI with contents of the entire SoC (without nodes for hardware not present > >>>>>> + on the SoC). > >>>>>> +2. If applicable: DTSI with common or re-usable parts of the hardware (e.g. > >>>>>> + entire System-on-Module). > >>>>> > >>>>> DTS/DTSI - SOMs can actually run as they are that's why it is fair to say that > >>>>> there doesn't need to be DTS representing the board. > >>>> > >>>> I have never seen a SoM which can run without elaborate hardware-hacking > >>>> (e.g. connecting multiple wires to the SoM pins). The definition of the > >>>> SoM is that it is a module. Module can be re-used, just like SoC. > >>> > >>> /me looks at his board farm... > >>> I guess there are (many) other examples... > >> > >> OK, I never had such in my hands. Anyway, the SoM which can run > >> standalone has a meaning of a board, so how exactly you want to > >> rephrase the paragraph? > > > > What about? > > > > 2. If applicable: DTSI with common or re-usable parts of the hardware (e.g. > > entire System-on-Module). DTS if runs standalone. > > OK, but then it's duplicating the option 3. It also suggests that SoM > should be a DTS, which is not what we want for such case. Such SoMs must > have DTSI+DTS. So you want us to have a one-line .dts, which just includes .dtsi? IMHO that adds more files for no much gain. Users of a SoM can easily include .dts. 'git grep "#include .*dts\>"' tells you we have plenty of users of that scheme. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds