Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp2490748rdb; Mon, 20 Nov 2023 12:16:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IESRG6Jr3qoNLa1VCZp1DexFfvQLPaIS+EOK0uUZ8+aPafK24Eg1blPpjxCpxStMTpnsO+A X-Received: by 2002:a17:90b:1d8b:b0:27f:f879:8e00 with SMTP id pf11-20020a17090b1d8b00b0027ff8798e00mr6498167pjb.25.1700511391271; Mon, 20 Nov 2023 12:16:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700511391; cv=none; d=google.com; s=arc-20160816; b=ouA6r7Z5CWI8pN5P3NW+9zR+4KJjvjEsjITqV20woFcPptUTPHnUDSM6tiKs7V+G31 8vUORUA2TUEnOpazA6w4BNFUXCENqAO+ifzEX6l+0tGsNJmwvJAS5+8axOeW2br+AwaR Eoy32JDYzXews5cUn30R7i4gQ1wtT3Gh/l1SvIU9zpMEiRIk6FJDF1/WrSrjAD8QbNdw Lf/VgfgBYSSlHkwzU6c55LHodrRWVZgAcH0GMk+3vYBOgXqRmta3BkM3XNvCxP/SfZjk 83mMynDYqdQ/FOxz8LZdw/8JTbh/VSKkqRwhdPLwaW3V7NI5PJsUXhTSUBIKpdSpFtVO YEaA== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=JznYf3WwK2ea80O29WWc1jrp4vT2fXc+cuKeytbFeKE=; fh=9+LVH06JyfSv6KdT2I3Nn68qLEDQGjONPdZ+m2rlA9E=; b=V/goEmwaIG4sZ6pPVXlkewxRJi1I1x0H/O7DfEpeo3c/l6b9LKrPCfpdLHjoEREokI 6hj+tvxauzzTraQhdbp00SV5fD5Aqby9SONOK3DZzjBgBcnNN9mBD+nk+EPdU3m5PZd4 O+xzc/8EOdKuTFKGZbwpGj4yeXMjU5WNEHrBlvldqwoC5hkXleLegzNshmPXkyPNnRza 2Fxdj7wzAVAQ0pWQVuDmXIvTHXW3W6isz4XL7YKgNAHaDK2FFNoNVmVClXIgodoluM6c r9VBpDosJut1jPs2zr2Y2dwIGJUIcgoXNeLtowX3BX313gbg2J+w0Ni/ZjGvoQI/MY/d uHTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=XOJgjdCC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id s13-20020a17090ad48d00b00283a18d5662si6804216pju.80.2023.11.20.12.16.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 12:16:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=XOJgjdCC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id C604C8084957; Mon, 20 Nov 2023 12:15:51 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229640AbjKTUP2 (ORCPT + 99 others); Mon, 20 Nov 2023 15:15:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229539AbjKTUP1 (ORCPT ); Mon, 20 Nov 2023 15:15:27 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C8DFC8; Mon, 20 Nov 2023 12:15:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=JznYf3WwK2ea80O29WWc1jrp4vT2fXc+cuKeytbFeKE=; b=XOJgjdCCfmr8LYhyR6y2QLGjiI jNSPz3w8oBz7kr7v3PA2TyUDWtVP7sM2dHQglVtug6mHRl9a2QqP4QmALdE4IzXAPSQaeZ7EyXq9K dMLQEVqh9lMtTu6HwSRbbwVoE80GjYy8Xafcxep2ngc6pjehMOXe27wov2DrCj1miVaI=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1r5Afg-000gaj-G4; Mon, 20 Nov 2023 21:15:04 +0100 Date: Mon, 20 Nov 2023 21:15:04 +0100 From: Andrew Lunn To: Krzysztof Kozlowski Cc: 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 , Michal Simek , 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 Message-ID: <14c3900f-8f2e-4614-8317-f85763d1d953@lunn.ch> References: <20231120084044.23838-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231120084044.23838-1-krzysztof.kozlowski@linaro.org> 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 groat.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 (groat.vger.email [0.0.0.0]); Mon, 20 Nov 2023 12:15:52 -0800 (PST) > +Naming and Valid Characters > +--------------------------- > + > +1. Node and property names are allowed to use only: > + > + * lowercase characters: [a-z] > + * digits: [0-9] > + * dash: - > + > +2. Labels are allowed to use only: > + > + * lowercase characters: [a-z] > + * digits: [0-9] > + * underscore: _ > + > +3. Unit addresses should use lowercase hex, without leading zeros (padding). > + > +4. Hex values in properties, e.g. "reg", should use lowercase hex. The address > + part can be padded with leading zeros. > + > +Example:: > + > + gpi_dma2: dma-controller@800000 { > + compatible = "qcom,sm8550-gpi-dma", "qcom,sm6350-gpi-dma"; > + reg = <0x0 0x00800000 0x0 0x60000>; > + } Hi Krzysztof What i like about the Linux Coding Style is that most sections have a Rationale. I like the way it explains the 'Why?'. It makes it feel less arbitrary. When it does not seem arbitrary, but reasoned, i find it easier to follow. Could you add rationale like the Coding Style? Andrew