Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp46996rdb; Thu, 16 Nov 2023 11:27:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IE0LapzPS8IrtJoOiwzFMCEUC9oX1hCyJwzt9OpDs2uXVj3x29Eu3/t/8MiwkTAUJly1E6b X-Received: by 2002:a17:902:ced0:b0:1cc:3bd3:73e4 with SMTP id d16-20020a170902ced000b001cc3bd373e4mr10822618plg.4.1700162859302; Thu, 16 Nov 2023 11:27:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700162859; cv=none; d=google.com; s=arc-20160816; b=yetA0Zq4D3kIGrpydPS8NMEgD5LxplW+hHOuQCJRAN2JbhEuvsXPaExcGyxDtMws8A Ty80f2Sh2NLcS1ehJhcnSJy79FW1EIUpl/LwpYtsEDB0u0Fz/iqoYhPs9ksYorFCb3o0 yQicic/m1Bm0JVEbqxD9UXis+oU1oxokhjKVZ4Ocnp+zrgwnU6DSF1S23OzWJQAZ/2Yr 10MZPwthk21SvEFD4BgJ73gyIi2TT4TjBYngxgatitmBuj4S5++RbpzMSZvJW6GA6OJm hDrptE03N/Q5koS5aD3QNi+nUwIYsoJcsMU6sF21aT/frFRQ4OYj6D8APYCYS+ralRsS qFsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=JD5AFWcwYdg/PaIg6EfThybPDbaRuJdopu0Kji9N7Yg=; fh=dkNoFokLYkfL8I3FEWyzaIDJQBx191H0zFTIA/Ds2Vs=; b=B9xD2PNFmsjypqmoKYVPrScT4+rONYF5u3BA1eIR8JzwHgVvPlTh/v+5aVUi7SEiFN /xmc5uBn+TnPpI6+xtTXT8Pdh65aHVOyQZJpdU4AgTAFswi49LyJ8W2mMwClLEdPpJ9M +wi80i1Fs8Hui0dAIy3M5Itb6DraNTIxSVeKNMmmLfvEntI7F2i9i5KXs1GBfm0i5aeo bPTTY/ewq60sNp10XELxV+mncIsEV9dKG9NKP+t56JwzacHNBqR2CG/VoqFbaUKANTQh W6MF70NhvTG3YIzdGwCNiva+aoVvNR+N11nuv1aCGSbmyqh1i+xZ7qyhIoQtNGHttHqC 3kCQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id i15-20020a170902c94f00b001ca7af18a99si36103pla.564.2023.11.16.11.27.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 11:27:39 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 42B5F825F12A; Thu, 16 Nov 2023 11:27:12 -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 S1345507AbjKPT0v (ORCPT + 99 others); Thu, 16 Nov 2023 14:26:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36250 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229513AbjKPT0u (ORCPT ); Thu, 16 Nov 2023 14:26:50 -0500 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AAD9D18D; Thu, 16 Nov 2023 11:26:45 -0800 (PST) Received: from [194.95.143.137] (helo=phil.localnet) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r3i0g-000580-O2; Thu, 16 Nov 2023 20:26:42 +0100 From: Heiko Stuebner To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski Cc: Krzysztof Kozlowski , AngeloGioacchino Del Regno , Arnd Bergmann , Bjorn Andersson , Geert Uytterhoeven , Konrad Dybcio , Matthias Brugger , Michal Simek , Neil Armstrong , Nishanth Menon , Olof Johansson Subject: Re: [PATCH] docs: dt-bindings: add DTS Coding Style document Date: Thu, 16 Nov 2023 20:26:41 +0100 Message-ID: <5727404.DvuYhMxLoT@phil> In-Reply-To: <20231116181218.18886-1-krzysztof.kozlowski@linaro.org> References: <20231116181218.18886-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-0.8 required=5.0 tests=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]); Thu, 16 Nov 2023 11:27:12 -0800 (PST) Hi Krzysztof, Am Donnerstag, 16. November 2023, 19:12:18 CET schrieb Krzysztof Kozlowski: > Document preferred coding style for Devicetree sources (DTS and DTSI), > to bring consistency among all (sub)architectures and ease in reviews. > > Cc: AngeloGioacchino Del Regno > Cc: Arnd Bergmann > Cc: Bjorn Andersson > Cc: Geert Uytterhoeven > Cc: Heiko Stuebner > Cc: Konrad Dybcio > Cc: Matthias Brugger > Cc: Michal Simek > Cc: Neil Armstrong > Cc: Nishanth Menon > Cc: Olof Johansson > Signed-off-by: Krzysztof Kozlowski > > +Order of Properties in Device Node > +---------------------------------- > + > +Following order of properties in device nodes is preferred: > + > +1. compatible > +2. reg > +3. ranges > +4. All properties with values > +5. Boolean properties I guess the only thing I do have questions about is the part > +4. All properties with values > +5. Boolean properties Is there a rationale for it? Because with it things like regulator-* properties then end up in two different blocks. For all the rest I fully agree :-) Thanks Heiko > +6. status (if applicable) > +7. Child nodes > + > +The "status" property is by default "okay", thus it can be omitted. > + > +Example:: > + > + // SoC DTSI > + > + usb_1_hsphy: phy@88e3000 { > + compatible = "qcom,sm8550-snps-eusb2-phy"; > + reg = <0x0 0x088e3000 0x0 0x154>; > + #phy-cells = <0>; > + resets = <&gcc GCC_QUSB2PHY_PRIM_BCR>; > + status = "disabled"; > + }; > + > + // Board DTS > + > + &usb_1_hsphy { > + clocks = <&tcsr TCSR_USB2_CLKREF_EN>; > + clock-names = "ref"; > + status = "okay"; > + }; > +