From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5681AC2BB3F for ; Mon, 20 Nov 2023 20:15:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=MtCG0MyBjMkjrz0SYqgYygDT9sNyg7Ec1DLOvSH0PzM=; b=x8U7lQ/RuSBSa6 B8P+BOKFqJlZ68jNMXmKpF8NC/7ikBon4bJR1AaIYYO86R1TtVnF0Z4VbSM0F5TnOZ/LWXQq7g+vz 35HSaecwqZ8iet3ic7yWuvuaOoc4z1o1kLApRcJWm0cEbCqJU2lbIAF1sh62yzroAoijw/6W9jOSg ZravQEn9axgDQGiExxOdXU/oqI0Z0DHqdYnvzwSMQ7pKpu/318NdryVnTTBS1l8l/XVu0wmPmq2jr 2ovKJU6MspgmYlD7T2Lcy3OK+tlCS/F0aXPYrlf9X0mgFMMP50i1SGmxRH20PR7qAOo9aG5o7qieI fsk5JCRqzq61bmLxhRGA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r5Ag4-00Eljk-0D; Mon, 20 Nov 2023 20:15:28 +0000 Received: from vps0.lunn.ch ([156.67.10.101]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r5Afz-00EliX-0v; Mon, 20 Nov 2023 20:15:24 +0000 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-Disposition: inline In-Reply-To: <20231120084044.23838-1-krzysztof.kozlowski@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231120_121523_349893_CCBCB7B5 X-CRM114-Status: GOOD ( 10.27 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org > +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 _______________________________________________ linux-amlogic mailing list linux-amlogic@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-amlogic