Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1835634rdb; Thu, 7 Dec 2023 09:58:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IEeCHSlmjdtulEsyDdnDelVPxFLvSYdcGDtErz5czeV7Q2PRp7td45VvXx8YOxwsY6eRwVQ X-Received: by 2002:a17:90a:ac12:b0:280:1d6c:a6a8 with SMTP id o18-20020a17090aac1200b002801d6ca6a8mr2519325pjq.23.1701971936416; Thu, 07 Dec 2023 09:58:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701971936; cv=none; d=google.com; s=arc-20160816; b=B+nfcOuUEqyhZI1xb8ai2ZWay8D5ajFoPf2/bmjdlfuFxyyIpJf/lrF68lYj7eEmuG LDe3cYsUu5HZHT2r6e0MAF2uIjI1c1uCd0VWjImOcSrxorRitnmWG25x/ylqU7iro+R1 PmqKBxevbNxFanilliZS5AM/rrnlbbuiGedvOlT8HZ70jSQHkW4M4vv2D9SdsEvdDwgT za2lET5BFy6zllpKmDxqUjZa2YyLlSX2ceG3ieJ80BexdOOYG5ssPCfjz0KqHEZxeh7n Nnh8IcZVhU2UEMEugydtDI3ISaZcJCuF8l0t10dNNcCvTpDJ/BmumXcexZ9LVpoRZzXT uIFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=XlGlC1SkIL9mmE58AXO5RRQ634yhMDTeXthN1KRiRhM=; fh=OObrwRAttmrYKRuDrOwjUjw9qfHR23wGU10n2TKqhbw=; b=vW4jIgbn16lzIJv6Q3tzhnhU2uis4AIGwwLsB68DUSAdh7LbpefoBafj9H7ZHyH0Sq QpKckLiOxkhr9JAML3e0XOvpu/7IMgaL3hIE52EpaJwO+MebnZhSul5VoE60VXPD3hDI uHlmB7V0/DuoyJ2Yw+Hx5jYZlJ268B/vqhwxkpIXg6Rv5ODBGj3oS04DN8SPWqArsRSx 4cnR4RgByDw7aG9w+7ufhan00gBvRv/BtlE28mjpnN7ZzJFlVVlunVrgmpGhBALNZyvc jhxm0kudKdfCUQv4KVLVZPhlok3CwLuJoDbSH/B/ToG8nrs6HII0YBUnrlpEkboesNZ9 R2XA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id k6-20020a17090a514600b00286cc5007d3si188743pjm.78.2023.12.07.09.58.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 09:58:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 042E083B00B0; Thu, 7 Dec 2023 09:58:53 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1443250AbjLGR6g (ORCPT + 99 others); Thu, 7 Dec 2023 12:58:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235231AbjLGR6f (ORCPT ); Thu, 7 Dec 2023 12:58:35 -0500 Received: from mail-oi1-f180.google.com (mail-oi1-f180.google.com [209.85.167.180]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F7331718; Thu, 7 Dec 2023 09:58:23 -0800 (PST) Received: by mail-oi1-f180.google.com with SMTP id 5614622812f47-3b9d23c8bf7so820311b6e.0; Thu, 07 Dec 2023 09:58:23 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701971902; x=1702576702; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=XlGlC1SkIL9mmE58AXO5RRQ634yhMDTeXthN1KRiRhM=; b=oulV3p8FKKu1N+MwwHPqu8KgOslcNAkL3l2U1hkNhCEQhnIDKEHgmWXr7RZJ8S46EI ITOYSAEk4Z/PLR4NXDtMO9PeiITRrqLn+3IG3TbUlmo7FHXjB6z1nKyHE5/a9HPFRyzy 8tKp9VIel2Ea3fWNQgHaf3LOUS6fR4bDt/ksslyWhWOKdn5o65tsOboaa5nxcxplMRGb nYIuwlxyf76ZJvDIsNaR6pgl9dAdfaQPrDj4QUIBmkWebf6VdaPDK5NlgcAY50ITW6G6 wY8laqR6eXehqLe3rt/0zrDQP+gOTax6M/lnwVnTMVN19NYHIneOSYooSipUvp4HFr7b L4fw== X-Gm-Message-State: AOJu0YyKMNGpq2OUlT6gGqYKe8COqKy4af05z06ZQ4dicF+4lu+I2vL9 NNOtx1+6gE+uAq2zjPSPoAra5JkGrA== X-Received: by 2002:a05:6870:390c:b0:1fa:fee1:6f1e with SMTP id b12-20020a056870390c00b001fafee16f1emr3075427oap.10.1701971902619; Thu, 07 Dec 2023 09:58:22 -0800 (PST) Received: from herring.priv (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id k29-20020a05687022dd00b001fb0edac63csm58231oaf.6.2023.12.07.09.58.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 09:58:22 -0800 (PST) Received: (nullmailer pid 2977746 invoked by uid 1000); Thu, 07 Dec 2023 17:58:20 -0000 Date: Thu, 7 Dec 2023 11:58:20 -0600 From: Rob Herring To: Krzysztof Kozlowski Cc: Nishanth Menon , linux-mediatek@lists.infradead.org, Dmitry Baryshkov , Arnd Bergmann , Olof Johansson , linux-arm-msm@vger.kernel.org, linux-doc@vger.kernel.org, Andrew Davis , Andrew Lunn , linux-rockchip@lists.infradead.org, Michal Simek , Neil Armstrong , Jonathan Corbet , Konrad Dybcio , Chen-Yu Tsai , Krzysztof Kozlowski , linux-amlogic@lists.infradead.org, Bjorn Andersson , =?UTF-8?B?UmFmYcWCIE1pxYJlY2tp?= , linux-kernel@vger.kernel.org, Geert Uytterhoeven , workflows@vger.kernel.org, Rob Herring , Laurent Pinchart , Matthias Brugger , devicetree@vger.kernel.org, Heiko Stuebner , AngeloGioacchino Del Regno , Conor Dooley , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Subject: Re: [PATCH v4] docs: dt-bindings: add DTS Coding Style document Message-ID: <170197172648.2974247.13097453111547800548.robh@kernel.org> References: <20231203174622.18402-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20231203174622.18402-1-krzysztof.kozlowski@linaro.org> X-Spam-Status: No, score=-1.0 required=5.0 tests=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 howler.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 (howler.vger.email [0.0.0.0]); Thu, 07 Dec 2023 09:58:53 -0800 (PST) On Sun, 03 Dec 2023 18:46:22 +0100, 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: Andrew Davis > cc: Andrew Lunn > Cc: AngeloGioacchino Del Regno > Cc: Arnd Bergmann > Cc: Bjorn Andersson > Cc: Chen-Yu Tsai > Cc: Dmitry Baryshkov > Cc: Jonathan Corbet > Cc: Matthias Brugger > Cc: Michal Simek > Cc: Neil Armstrong > Cc: Nishanth Menon > Cc: Olof Johansson > Cc: Rafał Miłecki > Acked-by: Neil Armstrong > Acked-by: Heiko Stuebner > Reviewed-by: Laurent Pinchart > Acked-by: Konrad Dybcio > Reviewed-by: Geert Uytterhoeven > Signed-off-by: Krzysztof Kozlowski > > --- > > Merging idea: Rob/DT bindings > > Changes in v4 > ============= > 1. Drop label at the top (Jon) > 2. Grammar fixes (Laurent, Dragan) > 3. "Unless a bus defines differently, unit addresses shall ..." (Rob) > 4. Use hex in example of dma-controller (Andrew) > 5. Example: soc@ -> soc@0 > 6. Reverse points 2 and 3 in "Indentation" (Andrew) > 7. Use full path to coding style doc (Conor) > > Changes in v3 > ============= > 1. should->shall (Angelo) > 2. Comments // -> /* (Angelo, Michal) > 3. Use imaginary example in "Order of Properties in Device Node" > (Angelo) > 4. Added paragraphs for three sections with justifications of chosen > style. > 5. Allow two style of ordering overrides in board DTS: alphabetically or > by order of DTSI (Rob). > 6. I did not incorporate feedback about, due to lack of consensus and my > disagreement: > a. SoM being DTS without DTSI in "Organizing DTSI and DTS" > > Changes in v2 > ============= > 1. Hopefully incorporate entire feedback from comments: > a. Fix \ { => / { (Rob) > b. Name: dts-coding-style (Rob) > c. Exceptions for ordering nodes by name for Renesas and pinctrl (Geert, > Konrad) > d. Ordering properties by common/vendor (Rob) > e. Array entries in <> (Rob) > > 2. New chapter: Organizing DTSI and DTS > > 3. Several grammar fixes (missing articles) > > Cc: linux-rockchip@lists.infradead.org > Cc: linux-mediatek@lists.infradead.org > Cc: linux-samsung-soc@vger.kernel.org > Cc: linux-amlogic@lists.infradead.org > Cc: linux-arm-kernel@lists.infradead.org > Cc: linux-arm-msm@vger.kernel.org > Cc: workflows@vger.kernel.org > Cc: linux-doc@vger.kernel.org > --- > .../devicetree/bindings/dts-coding-style.rst | 196 ++++++++++++++++++ > Documentation/devicetree/bindings/index.rst | 1 + > 2 files changed, 197 insertions(+) > create mode 100644 Documentation/devicetree/bindings/dts-coding-style.rst > I added the quotes as discussed and applied, thanks! Rob