Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2873145lqz; Wed, 3 Apr 2024 10:55:36 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXHziyzHssfVXRuSJ6O9Zh8IrxD9mgo91Vnbtjo9umnWoQBQB+qeOzdInFXO2MQhdk9fPwy8tRmkvwqDK9u9hUZqGZqjNGQz+3CctyZOw== X-Google-Smtp-Source: AGHT+IEg7wacMC17JJpujzlHVhpPP6ic7zg77MxkZMqgO6rbYGAvkfShXzzj1aYVZzTjGdHijvYM X-Received: by 2002:a05:6a20:2d11:b0:1a3:6bd8:f487 with SMTP id g17-20020a056a202d1100b001a36bd8f487mr361816pzl.51.1712166936071; Wed, 03 Apr 2024 10:55:36 -0700 (PDT) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id g1-20020a62e301000000b006ead16f07d1si2572900pfh.119.2024.04.03.10.55.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 10:55:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-130380-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=nmjFOq63; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-130380-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130380-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 8E8B528A8DC for ; Wed, 3 Apr 2024 17:51:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C5A87157A59; Wed, 3 Apr 2024 17:33:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="nmjFOq63" Received: from mail-ed1-f53.google.com (mail-ed1-f53.google.com [209.85.208.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0A2D7152187 for ; Wed, 3 Apr 2024 17:33:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712165598; cv=none; b=cI6f3OUqKf/c404cUoxkalm5KFZKsL0/devEvg93kSFax9d8hQxHxLzvpveObLQ1ejRXqInu+EsfdTxtwpHGdIoLuw+Z3D1SfZFPvjx5+sO245i4JqMZcZJkFlK7AOlP7HLtbA2wzvMgbfP/NLsTcM5dZSTyJxQ1SFH5GTLtFBg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712165598; c=relaxed/simple; bh=+DelBr6m3rNY6z6t5SFfDpdd1llZYLl56cohJPx5B5Y=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=UEYw0x5cwblharOs+Aqio5zQLulYkt/ufiFNvVtrQqzIkNSe/Q9bCwmQF3ZnAgxoH04VTKhVdjgfqbq4uC71ASrTpyI+ZghQs/gazZKrR3zPvS1KEuYH0BhH1TZJrwUyWN13P9TtlJeEmEqnJKGYwsbgK/T7pfdSSLNmSHbBQ1c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=nmjFOq63; arc=none smtp.client-ip=209.85.208.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ed1-f53.google.com with SMTP id 4fb4d7f45d1cf-5684db9147dso75956a12.2 for ; Wed, 03 Apr 2024 10:33:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712165594; x=1712770394; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=T33QVeD/UYcwqSgNmsGfgpvXToGKDIKVuMAYVc4EFqI=; b=nmjFOq63Utf4UuRd4OMGhUlH6WvKi8ps79ZCvB8dKwIcCKv3JZ8DZDkcI8kZDkn9wD Cdibmn+/13GzPJbFhh7G8gc9/GrfYk5M71IOiLYvLpeAXtS5Xh28hQJm8hK/5AYQNJ55 3aFvZIlGibWhbUmpNvvtHcwvdwNvE8V75n76hq2VTo/lDQxO0dBCDuO30IF1qXB06Sxw sr0FQEPV80bM4WhghapvIMC/VljcueZ/hSjeBk9Nvq+wyJNtWjyE0OHYl2T3qY2cM6m3 H4Kc/3AoKzk4cnqN57BelhqElluNPupwxKoe37pUcazUwOSYpzilPWRNBMOP43oA9XKS WHog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712165594; x=1712770394; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=T33QVeD/UYcwqSgNmsGfgpvXToGKDIKVuMAYVc4EFqI=; b=TqHOxpURWNSpm+W8rU4ouZukxQ3SHEo1hbeyuYlbFyjM7KO/wzjWkfvkXhYoXlxGel 90lA+spFQVmrdqXfnjUT2tWdjIOrUXgaXOQxEXxximRedlfb1krNJeWPdMad8Nta6Zz3 8jXjn8ZlCzUNxO5yZhrO6NUTZ0dtfPN+mFoWa6v8LbzGG7O6SqU7vx9ZYA/xQ0OpOJt+ EBciSItJZvs+S3Buo9fCy5eRK44uh/DlcD+QANlB3pmHCo3/MMhokpfRd2TT4Q92HrPU HVmpCzlbXpCfm/3BEVQtne5j8rrxYLTz3OAyhyxGhvqRNY8JYzu2EvQie8tBM2TzSZUN +9DQ== X-Forwarded-Encrypted: i=1; AJvYcCUn11N8NcKqjS569OKLPBY18B7o7/1nYBK8bP9viJUMDm3c9R46gab8Vns0PP/J3lYgHbB0qdURDlvFR3TyYXo6ZthxwheQVpV4xoX+ X-Gm-Message-State: AOJu0YyZgbK2BJ1oJg6zI9Qsw5zXIG+sfSB++LDqMmNtdEjFi7eCMiHd 3LL6sYi2mf3KeJbewEcUon5rJB/ybJYtL/dLBCArs5tKSCLQzDuGmdzWalCUaJ2Oq/HqQqWBD88 c X-Received: by 2002:a50:ab52:0:b0:56b:a565:f8dd with SMTP id t18-20020a50ab52000000b0056ba565f8ddmr60895edc.24.1712165594413; Wed, 03 Apr 2024 10:33:14 -0700 (PDT) Received: from [192.168.1.20] ([178.197.223.16]) by smtp.gmail.com with ESMTPSA id fe8-20020a056402390800b0056c522d014esm8075468edb.57.2024.04.03.10.33.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 03 Apr 2024 10:33:13 -0700 (PDT) Message-ID: <85aacb1d-40bd-46fd-8c49-5a682a7adf61@linaro.org> Date: Wed, 3 Apr 2024 19:33:12 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] dt-bindings: omap-mcpdm: Convert to DT schema To: Mighty Cc: Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240403165950.75-1-bavishimithil@gmail.com> Content-Language: en-US From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzTRLcnp5c3p0b2Yg S296bG93c2tpIDxrcnp5c3p0b2Yua296bG93c2tpQGxpbmFyby5vcmc+wsGUBBMBCgA+FiEE m9B+DgxR+NWWd7dUG5NDfTtBYpsFAmI+BxMCGwMFCRRfreEFCwkIBwIGFQoJCAsCBBYCAwEC HgECF4AACgkQG5NDfTtBYptgbhAAjAGunRoOTduBeC7V6GGOQMYIT5n3OuDS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165950.75-1-bavishimithil@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 03/04/2024 18:59, Mighty wrote: > Convert the OMAP4+ McPDM bindings to DT schema. > Please use subject prefixes matching the subsystem. You can get them for example with `git log --oneline -- DIRECTORY_OR_FILE` on the directory your patch is touching. > Signed-off-by: Mighty Is it your full name? > --- > .../devicetree/bindings/sound/omap-mcpdm.txt | 30 ---------- > .../devicetree/bindings/sound/omap-mcpdm.yaml | 58 +++++++++++++++++++ > 2 files changed, 58 insertions(+), 30 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/sound/omap-mcpdm.txt > create mode 100644 Documentation/devicetree/bindings/sound/omap-mcpdm.yaml > > diff --git a/Documentation/devicetree/bindings/sound/omap-mcpdm.txt b/Documentation/devicetree/bindings/sound/omap-mcpdm.txt > deleted file mode 100644 > index ff98a0cb5..000000000 > --- a/Documentation/devicetree/bindings/sound/omap-mcpdm.txt > +++ /dev/null > @@ -1,30 +0,0 @@ > -* Texas Instruments OMAP4+ McPDM > - .. > diff --git a/Documentation/devicetree/bindings/sound/omap-mcpdm.yaml b/Documentation/devicetree/bindings/sound/omap-mcpdm.yaml > new file mode 100644 > index 000000000..8c9ff9d90 > --- /dev/null > +++ b/Documentation/devicetree/bindings/sound/omap-mcpdm.yaml Filename like compatible. > @@ -0,0 +1,58 @@ > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/sound/omap-mcpdm.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: OMAP McPDM > + > +maintainers: > + - Krzysztof Kozlowski > + > +description: > + OMAP ALSA SoC DAI driver using McPDM port used by TWL6040 > + > +properties: > + compatible: > + const: ti,omap4-mcpdm > + > + reg: > + description: 'Register location and size as an array: > + , > + ;' Please open existing bindings and look how it is done there. > + > + interrupts: > + description: Interrupt number for McPDM Same problem. Drop useless description but provide maxItems. > + > + ti,hwmods: > + description: Name of the hwmod associated to the McPDM It does not look like you tested the bindings, at least after quick look. Please run `make dt_binding_check` (see Documentation/devicetree/bindings/writing-schema.rst for instructions). Maybe you need to update your dtschema and yamllint. Sorry, this was neither tested nor done in a way matching anything already in the tree. Please do not invent your own style, but open existing binding and look how is it done. Because of above, I did not perform full review. > + > + clocks: > + description: phandle for the pdmclk provider, likely <&twl6040> > + > + clock-names: > + description: Must be "pdmclk" > + > + > +required: > + - compatible > + - reg > + - interrupts > + - ti,hwmods > + - clocks > + - clock-names > + > +additionalProperties: false > + > +examples: > + - | > + mcpdm: mcpdm@40132000 { Node names should be generic. See also an explanation and list of examples (not exhaustive) in DT specification: https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation Best regards, Krzysztof