devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] docs: dt: submitting-patches: drop outdated points to TXT format
@ 2024-01-08  8:37 Krzysztof Kozlowski
  2024-01-08  8:37 ` [PATCH 2/2] docs: dt: submitting-patches: add commit subject prefix in reversed format Krzysztof Kozlowski
  2024-01-13  1:58 ` [PATCH 1/2] docs: dt: submitting-patches: drop outdated points to TXT format Rob Herring
  0 siblings, 2 replies; 5+ messages in thread
From: Krzysztof Kozlowski @ 2024-01-08  8:37 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, devicetree,
	linux-kernel
  Cc: Krzysztof Kozlowski, Mark Brown, Mauro Carvalho Chehab

New bindings in TXT format are not accepted and DT schema format expects
all compatibles to be explicitly defined, thus guidance about "wildcard
<chip>" is not correct anymore.  Drop that paragraph and update one more
place which still mentions TXT files.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

---

Cc: Mark Brown <broonie@kernel.org>
Cc: Mauro Carvalho Chehab <mchehab@kernel.org>
---
 .../devicetree/bindings/submitting-patches.rst | 18 ++++--------------
 1 file changed, 4 insertions(+), 14 deletions(-)

diff --git a/Documentation/devicetree/bindings/submitting-patches.rst b/Documentation/devicetree/bindings/submitting-patches.rst
index 36a17b250ccc..b460ebffee42 100644
--- a/Documentation/devicetree/bindings/submitting-patches.rst
+++ b/Documentation/devicetree/bindings/submitting-patches.rst
@@ -42,28 +42,18 @@ I. For patch submitters
      the code implementing the binding.
 
   6) Any compatible strings used in a chip or board DTS file must be
-     previously documented in the corresponding DT binding text file
+     previously documented in the corresponding DT binding file
      in Documentation/devicetree/bindings.  This rule applies even if
      the Linux device driver does not yet match on the compatible
      string.  [ checkpatch will emit warnings if this step is not
      followed as of commit bff5da4335256513497cc8c79f9a9d1665e09864
      ("checkpatch: add DT compatible string documentation checks"). ]
 
-  7) The wildcard "<chip>" may be used in compatible strings, as in
-     the following example:
-
-         - compatible: Must contain '"nvidia,<chip>-pcie",
-           "nvidia,tegra20-pcie"' where <chip> is tegra30, tegra132, ...
-
-     As in the above example, the known values of "<chip>" should be
-     documented if it is used.
-
-  8) If a documented compatible string is not yet matched by the
+  7) If a documented compatible string is not yet matched by the
      driver, the documentation should also include a compatible
-     string that is matched by the driver (as in the "nvidia,tegra20-pcie"
-     example above).
+     string that is matched by the driver.
 
-  9) Bindings are actively used by multiple projects other than the Linux
+  8) Bindings are actively used by multiple projects other than the Linux
      Kernel, extra care and consideration may need to be taken when making changes
      to existing bindings.
 
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 2/2] docs: dt: submitting-patches: add commit subject prefix in reversed format
  2024-01-08  8:37 [PATCH 1/2] docs: dt: submitting-patches: drop outdated points to TXT format Krzysztof Kozlowski
@ 2024-01-08  8:37 ` Krzysztof Kozlowski
  2024-01-08 13:10   ` Mark Brown
  2024-01-13  1:59   ` Rob Herring
  2024-01-13  1:58 ` [PATCH 1/2] docs: dt: submitting-patches: drop outdated points to TXT format Rob Herring
  1 sibling, 2 replies; 5+ messages in thread
From: Krzysztof Kozlowski @ 2024-01-08  8:37 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, devicetree,
	linux-kernel
  Cc: Krzysztof Kozlowski, Mark Brown, Mauro Carvalho Chehab

ASoC, media, regulators and SPI subsystems prefer commits starting with
subsystem name (e.g. "spi: dt-bindings:"), so document this to avoid
confusing contributors.

Cc: Mark Brown <broonie@kernel.org>
Cc: Mauro Carvalho Chehab <mchehab@kernel.org>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 Documentation/devicetree/bindings/submitting-patches.rst | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/Documentation/devicetree/bindings/submitting-patches.rst b/Documentation/devicetree/bindings/submitting-patches.rst
index b460ebffee42..a64f21a5f299 100644
--- a/Documentation/devicetree/bindings/submitting-patches.rst
+++ b/Documentation/devicetree/bindings/submitting-patches.rst
@@ -15,6 +15,11 @@ I. For patch submitters
 
        "dt-bindings: <binding dir>: ..."
 
+     Few subsystems, like ASoC, media, regulators and SPI, expect reverse order
+     of the prefixes::
+
+       "<binding dir>: dt-bindings: ..."
+
      The 80 characters of the subject are precious. It is recommended to not
      use "Documentation" or "doc" because that is implied. All bindings are
      docs. Repeating "binding" again should also be avoided.
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 2/2] docs: dt: submitting-patches: add commit subject prefix in reversed format
  2024-01-08  8:37 ` [PATCH 2/2] docs: dt: submitting-patches: add commit subject prefix in reversed format Krzysztof Kozlowski
@ 2024-01-08 13:10   ` Mark Brown
  2024-01-13  1:59   ` Rob Herring
  1 sibling, 0 replies; 5+ messages in thread
From: Mark Brown @ 2024-01-08 13:10 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, devicetree,
	linux-kernel, Mauro Carvalho Chehab

[-- Attachment #1: Type: text/plain, Size: 286 bytes --]

On Mon, Jan 08, 2024 at 09:37:50AM +0100, Krzysztof Kozlowski wrote:
> ASoC, media, regulators and SPI subsystems prefer commits starting with
> subsystem name (e.g. "spi: dt-bindings:"), so document this to avoid
> confusing contributors.

Reviewed-by: Mark Brown <broonie@kernel.org>

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/2] docs: dt: submitting-patches: drop outdated points to TXT format
  2024-01-08  8:37 [PATCH 1/2] docs: dt: submitting-patches: drop outdated points to TXT format Krzysztof Kozlowski
  2024-01-08  8:37 ` [PATCH 2/2] docs: dt: submitting-patches: add commit subject prefix in reversed format Krzysztof Kozlowski
@ 2024-01-13  1:58 ` Rob Herring
  1 sibling, 0 replies; 5+ messages in thread
From: Rob Herring @ 2024-01-13  1:58 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Mark Brown, Mauro Carvalho Chehab, Krzysztof Kozlowski,
	Rob Herring, Conor Dooley, linux-kernel, devicetree


On Mon, 08 Jan 2024 09:37:49 +0100, Krzysztof Kozlowski wrote:
> New bindings in TXT format are not accepted and DT schema format expects
> all compatibles to be explicitly defined, thus guidance about "wildcard
> <chip>" is not correct anymore.  Drop that paragraph and update one more
> place which still mentions TXT files.
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> 
> ---
> 
> Cc: Mark Brown <broonie@kernel.org>
> Cc: Mauro Carvalho Chehab <mchehab@kernel.org>
> ---
>  .../devicetree/bindings/submitting-patches.rst | 18 ++++--------------
>  1 file changed, 4 insertions(+), 14 deletions(-)
> 

Applied, thanks!


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 2/2] docs: dt: submitting-patches: add commit subject prefix in reversed format
  2024-01-08  8:37 ` [PATCH 2/2] docs: dt: submitting-patches: add commit subject prefix in reversed format Krzysztof Kozlowski
  2024-01-08 13:10   ` Mark Brown
@ 2024-01-13  1:59   ` Rob Herring
  1 sibling, 0 replies; 5+ messages in thread
From: Rob Herring @ 2024-01-13  1:59 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Mauro Carvalho Chehab, devicetree, Krzysztof Kozlowski,
	Mark Brown, Rob Herring, linux-kernel, Conor Dooley


On Mon, 08 Jan 2024 09:37:50 +0100, Krzysztof Kozlowski wrote:
> ASoC, media, regulators and SPI subsystems prefer commits starting with
> subsystem name (e.g. "spi: dt-bindings:"), so document this to avoid
> confusing contributors.
> 
> Cc: Mark Brown <broonie@kernel.org>
> Cc: Mauro Carvalho Chehab <mchehab@kernel.org>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
>  Documentation/devicetree/bindings/submitting-patches.rst | 5 +++++
>  1 file changed, 5 insertions(+)
> 

Applied, thanks!


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-01-13  1:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-08  8:37 [PATCH 1/2] docs: dt: submitting-patches: drop outdated points to TXT format Krzysztof Kozlowski
2024-01-08  8:37 ` [PATCH 2/2] docs: dt: submitting-patches: add commit subject prefix in reversed format Krzysztof Kozlowski
2024-01-08 13:10   ` Mark Brown
2024-01-13  1:59   ` Rob Herring
2024-01-13  1:58 ` [PATCH 1/2] docs: dt: submitting-patches: drop outdated points to TXT format Rob Herring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).