Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp273013rdf; Tue, 21 Nov 2023 02:13:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IFm1qK0zy3oa8VnkApvSnUNLyiddUT1XxKk4lz9aKDSF1LzGTJsqfYqnoa/6AntTorHDQd/ X-Received: by 2002:a05:6a21:1485:b0:18a:d77b:488 with SMTP id od5-20020a056a21148500b0018ad77b0488mr2006165pzb.14.1700561621506; Tue, 21 Nov 2023 02:13:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700561621; cv=none; d=google.com; s=arc-20160816; b=F7zFm45Hwt+0iPbJLfvz0obKuQbPEejLsnYkWgRdRySd7qqs4W716+PHb6okbU/5o3 akz7POhlOTLyoQxBDyIFntQTNX+muEosDhhRv9p7mznXC0pO6y9k59iq2BwQD8x2qjMY ibwHIzjAFX9qYVQp6u5eycGlBd8kFvTlYUjvnSgVGdAyBOpHjVelrtv4l1Wd2di1PYF1 HZ80YSU6aaBk+G5uFGvkMwdm0jE/jzTEvnj79AcFqGECQOepVUcpjPCnM8IZJhlUDOsj +wULSyy+4HBQt/whBQFPK3wL+dsrZEQ4TJDlGfpQT5NRDcGAEz1CD+iyn0J4GoSaYGIZ nO6A== 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 :dkim-signature; bh=vvvVHM7viL1Jmzkz/E4yhNDYNAPR+6Zga/hBjsBolp0=; fh=WE2cg7ElgbF46je/QXXF9h165cE1ekqFspGZwbswPQc=; b=Ule4Jn6zbkfvMIZRcxK84OdfTdy3XnCotTUv1zYmWvaxjQop16dB/6noqtDqtL72pi J2T9kZkSHAYx6bIiJ+04AAtxR6/0XZk2dD/8zaLDb9MTmalcBkNrcpAw9JUVrtAYDtBo MQ7KHogh4NSAAsZg9LaMS77R3GV4QH42aNlFta2BY0ibL8kvfcnubfPIFDOsc2RA+iFQ v5JZolH68j2uexaRBF2F19GUPRXvgmFu3QfKWt5uqhTw31UlKpCyPnVWBltFa3rHfT+Q zUsk/QNOGXaqwM5+VcyhEKhpkK6v8EWzd0mkA5F3zFB9LKtEzBcaSPPn1YTowtOk2H5o JPpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=c9ZypsVh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id h131-20020a636c89000000b005b7c45b1f95si9832185pgc.555.2023.11.21.02.13.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 02:13:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=c9ZypsVh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (Postfix) with ESMTP id 1529F8059341; Tue, 21 Nov 2023 02:13:39 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231905AbjKUKNb (ORCPT + 99 others); Tue, 21 Nov 2023 05:13:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230274AbjKUKNa (ORCPT ); Tue, 21 Nov 2023 05:13:30 -0500 Received: from mail-yw1-x1132.google.com (mail-yw1-x1132.google.com [IPv6:2607:f8b0:4864:20::1132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A12EBA for ; Tue, 21 Nov 2023 02:13:25 -0800 (PST) Received: by mail-yw1-x1132.google.com with SMTP id 00721157ae682-5a877e0f0d8so49421297b3.1 for ; Tue, 21 Nov 2023 02:13:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1700561604; x=1701166404; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=vvvVHM7viL1Jmzkz/E4yhNDYNAPR+6Zga/hBjsBolp0=; b=c9ZypsVhnRqU0Y4NFy0A2r1lwHD4nUnaUDssND9bcPtiXVBc+Imc1hiA3iT7UPSIvn Jx56+XIoNqcLEzODhkGmvoe859RHsL9xJg/mliyXGv7wt84oiUV6v1t8MTZeqbZ5AiIy OpF25nAH6QLDHMiuYHL7P1epee2FHGd0R9/44q/Y5vIIRfuqb8XrV1LGXSUKc+pH9jNO Mq7YqUgUdLkSW/lre4BuR6Sqh3+3BDlwb9DaedfQqrCMGyjwZLr6Vp91G926JSHALDv9 vncpnOZlldAwxItDe0IgOYYHMqCphs3q6P4CExAdqnl3NLtaJgblWjjJMgrCFAsZFTWM xreQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700561604; x=1701166404; 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=vvvVHM7viL1Jmzkz/E4yhNDYNAPR+6Zga/hBjsBolp0=; b=xHZ71AZTHUgWOyUHVBX9+Ec5mZNkW0RKE/zroqQ/F6b7bSmyEpJT76c3b36/pHe3a/ pJ/hd2IVI8tm1dLNoEuhBFc0ac9X2cRhanJbcjB0Hq1HPQZ4CrtdK61wcoi8lbsh7mbk d1xh1NjyUfXgWtUsL6G1RCLp/NkzZ3PN+r3F6zNu/iGnBhGsQ2S8b0yk1moVveqgLeL0 4gaQmlRfMXmp082mN8yEa3XbwiVHZ6/PdZG59FT0HeXHO/Ja7015gIbo16yY53i1LamT 7l2UgxqqUNTIn7Ntjwo0dHcCN0m53j4qHvbN117oul++WvAZX2TMfnmiJlUkhjtdDghY AtpQ== X-Gm-Message-State: AOJu0YyRkT49rMu/m4jZtyLqUyAzKaBTxkAwVRKy4wPCixVnZw6iEwwW QguxcKlm1dRWbRBxHk7EivHVSc2dCTnbCOsr1C8kTw== X-Received: by 2002:a25:6088:0:b0:d9a:5f53:1732 with SMTP id u130-20020a256088000000b00d9a5f531732mr1584303ybb.18.1700561604504; Tue, 21 Nov 2023 02:13:24 -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: Dmitry Baryshkov Date: Tue, 21 Nov 2023 12:13:13 +0200 Message-ID: Subject: Re: [PATCH v2] docs: dt-bindings: add DTS Coding Style document To: Geert Uytterhoeven Cc: Krzysztof Kozlowski , 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: quoted-printable 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 autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.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 (agentk.vger.email [0.0.0.0]); Tue, 21 Nov 2023 02:13:39 -0800 (PST) On Tue, 21 Nov 2023 at 10:09, Geert Uytterhoeven wro= te: > > Hi Krzysztof, > > On Tue, Nov 21, 2023 at 8:47=E2=80=AFAM 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=E2=80=AFPM 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 re= views. > > >>> > > >>>>>> +Organizing DTSI and DTS > > >>>>>> +----------------------- > > >>>>>> + > > >>>>>> +The DTSI and DTS files should be organized in a way representin= g the common > > >>>>>> +(and re-usable) parts of the hardware. Typically this means or= ganizing DTSI > > >>>>>> +and DTS files into several files: > > >>>>>> + > > >>>>>> +1. DTSI with contents of the entire SoC (without nodes for hard= ware not present > > >>>>>> + on the SoC). > > >>>>>> +2. If applicable: DTSI with common or re-usable parts of the ha= rdware (e.g. > > >>>>>> + entire System-on-Module). > > >>>>> > > >>>>> DTS/DTSI - SOMs can actually run as they are that's why it is fai= r 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-h= acking > > >>>> (e.g. connecting multiple wires to the SoM pins). The definition o= f 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 mus= t > > have DTSI+DTS. > > So you want us to have a one-line .dts, which just includes .dt= si? Well, I think it is impossible to run SoM directly. There is a carrier board anyway, which includes at least regulators. So, I guess, the SoM.dts will not be a oneline file. > 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 s= cheme. --=20 With best wishes Dmitry