Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp662314lqb; Wed, 17 Apr 2024 07:29:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUkCUYNzFuJcSEziyUew6l6WmDM/DiRQuOFAj44uTKQjri39mypO4d4HYcq1V7bZUQYzTI6UuGA5QObhzhaPytT2lImINy4LVFN7b+owg== X-Google-Smtp-Source: AGHT+IGom+IRklWCnRljpsxJrjKNbD/Dd4inoYYL0wYoBtmWNdTSZRrtIPs8ixH/ytbqv7tkueu+ X-Received: by 2002:a05:6a00:240d:b0:6ea:dfc1:b86 with SMTP id z13-20020a056a00240d00b006eadfc10b86mr6856225pfh.12.1713364178995; Wed, 17 Apr 2024 07:29:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713364178; cv=pass; d=google.com; s=arc-20160816; b=1Dy+/2PAQfQprnNevzZL4cq9PosgrNlr33URhunW+EsqHuZuu1lcj9Li/y8nGYrJwW jFF0nDmD6M00PfohLYMOo54i5ut5kVMl3rBI3ctAL3eL4bPpeYRSENDWPfv+7kgRIBZG LBPaXlGBig/FXeqDq1Iu6G5g1xqorOeDPvsNn73xu3/CIZNtY59ICj9/vgh06IigwGJS X+556TCMl3e7vH7t4QK8ktW07efHFx6eQdQ7bXgDtbDrUwWeYj1R/za2fpIygz6pOk9U MWcJLj9cKL8SaNxMyA23zOljLM3ZZpOWfFEK440mKgciMKkOpatpz53+Uo+CimxFTcI4 xwmw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=u2kBO6NKeHCBFbRM6uF3V3SaBwtDF8HFXmHptPcjpvY=; fh=n8PCnLy95OCATsr2txgFpCLPxX4Y4J8TSLv9EYBPh/A=; b=mjv0Ex4E2ECEHmYr1YItzSw159gX2Jqo7J2P17wCFnc1k4YnZXYF7QbgXd0jm/yGtk WuCqYkuksifVqy6QlOoRqYwEkBDdsLdAXzqWjyh3HnBEqPN6Dtr/QKMdvxaEokm/lQA7 2HM6bndaY85Ea3qUVCyRObSKKeQCjaCGED5nIzriF1ojxwVaRUvZk/+BkMN9GuMTG4Mv VH8c3i8Z3uHsUX9wakaFPLuYSXOdMvTdCDNIFraBQESHomdVYuqtZuohHDjjX9xphP4H rOyXzOC72waLR4SAeAQUT8RCFDOAz9gNWkco9ekQ+O9CvRG/rmJ3iexYRRSY4YZBGxn2 cTGw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pTCfYUSW; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-148650-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148650-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id b22-20020a63cf56000000b005f3c4e7e7fasi11277274pgj.316.2024.04.17.07.29.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 07:29:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-148650-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pTCfYUSW; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-148650-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148650-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 6580DB25535 for ; Wed, 17 Apr 2024 14:03:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8BC0F1411DB; Wed, 17 Apr 2024 14:03:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="pTCfYUSW" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 75CB1140E46; Wed, 17 Apr 2024 14:03:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713362627; cv=none; b=Xd733AFzdXketEM9JobTfrn5IG4i1AVIMPsSlx2c1UBBK3jt4RfZ7ZQmIc9Kqyh5dz8i5FeMjKlKVIptfBioTa/cVYXZwZF3ZIAAPyKnH3RycY9FdcJW84wDCMHAK5SXmkC2upH9rlf36Vqk4ivs86VkrWJlHoujYLg0+E4jggg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713362627; c=relaxed/simple; bh=XqGzLS6YzWodUCVd0W9Hr/EsFe20DCrl+FpyLzZkJxU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=sIpaQmPDzcAEqcvKTR/+zq/int2HWi+JlgH0lxKuUyDTqnZl5hxAJUbYJ+WtLmB45mQTEYfp0zpLtGvOjwjeN1N66XhD+E2BsnPIEsbpjdiezthRK9teUVVqxSYObTwofoUUIsTXKXDxyeBnWQkTe2DgubUa3mUmzzATsB1eDU8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=pTCfYUSW; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B04B2C072AA; Wed, 17 Apr 2024 14:03:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713362625; bh=XqGzLS6YzWodUCVd0W9Hr/EsFe20DCrl+FpyLzZkJxU=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=pTCfYUSWOyYxRanDvsgEq/VVLADNHcYYhQ+GHHXyEm4ybKZ0NWnS/e4UgSOZ8qzfg stIy1tLX9LQZCZzmmcf+kQMUP/NWuxPRzgznx/DB7cSedPkZMNOG3KJC1j5TUjQGbn TMXWwfugIP077F9yDpEBa4PSI8i125fobGFywj63qwqGi//+ty2QKCSU5SpFIbqo3n Vj/WKCG0x/OLiAazIkNvDg1v0D/7MQoIGOVRKOlgSkCAq0iSO65rShi4SW8HnU0v6c R4yYO/zhmhqy3trG5VKBY0ktKmoc0K9dkPtaLbTCTBJK7ZRqtLL2/MKuFANXit4aac HaqoLx2VdvSYA== Message-ID: <2e179356-425d-48cc-84db-0ea3e6203fba@kernel.org> Date: Wed, 17 Apr 2024 16:03:45 +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 v4] ASoC: dt-bindings: omap-mcpdm: Convert to DT schema To: Mighty Cc: Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240417134237.23888-1-bavishimithil@gm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v6nw8U+7Yyl6gU BLHFTg2hYnLFJI4Xjg+AX1hHFVKmvl3VBHIsBv0oDcsQWXqY+NaFahT0lRPjYtrTa1v3tem/ JoFzZ4B0p27K+qQCF2R96hVvuEyjzBmdq2esyE6zIqftdo4MOJho8uctOiWbwNNq2U9pPWmu 4vXVFBYIGmpyNPYzRm0QPwARAQABwsF8BBgBCgAmAhsMFiEEm9B+DgxR+NWWd7dUG5NDfTtB YpsFAmA872oFCRRflLYACgkQG5NDfTtBYpvScw/9GrqBrVLuJoJ52qBBKUBDo4E+5fU1bjt0 Gv0nh/hNJuecuRY6aemU6HOPNc2t8QHMSvwbSF+Vp9ZkOvrM36yUOufctoqON+wXrliEY0J4 ksR89ZILRRAold9Mh0YDqEJc1HmuxYLJ7lnbLYH1oui8bLbMBM8S2Uo9RKqV2GROLi44enVt vdrDvo+CxKj2K+d4cleCNiz5qbTxPUW/cgkwG0lJc4I4sso7l4XMDKn95c7JtNsuzqKvhEVS oic5by3fbUnuI0cemeizF4QdtX2uQxrP7RwHFBd+YUia7zCcz0//rv6FZmAxWZGy5arNl6Vm lQqNo7/Poh8WWfRS+xegBxc6hBXahpyUKphAKYkah+m+I0QToCfnGKnPqyYIMDEHCS/RfqA5 t8F+O56+oyLBAeWX7XcmyM6TGeVfb+OZVMJnZzK0s2VYAuI0Rl87FBFYgULdgqKV7R7WHzwD uZwJCLykjad45hsWcOGk3OcaAGQS6NDlfhM6O9aYNwGL6tGt/6BkRikNOs7VDEa4/HlbaSJo 7FgndGw1kWmkeL6oQh7wBvYll2buKod4qYntmNKEicoHGU+x91Gcan8mCoqhJkbqrL7+nXG2 5Q/GS5M9RFWS+nYyJh+c3OcfKqVcZQNANItt7+ULzdNJuhvTRRdC3g9hmCEuNSr+CLMdnRBY fv0= In-Reply-To: <20240417134237.23888-1-bavishimithil@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 17/04/2024 15:42, Mighty wrote: > From: Mithil Bavishi > > Convert the OMAP4+ McPDM bindings to DT schema. > > Signed-off-by: Mithil Bavishi > --- Please provide the changelog under ---. > .../devicetree/bindings/sound/omap-mcpdm.txt | 30 ---------- > .../bindings/sound/ti,omap4-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/ti,omap4-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 > - > -Required properties: > -- compatible: "ti,omap4-mcpdm" > -- reg: Register location and size as an array: > - , > - ; > -- interrupts: Interrupt number for McPDM > -- ti,hwmods: Name of the hwmod associated to the McPDM > -- clocks: phandle for the pdmclk provider, likely <&twl6040> > -- clock-names: Must be "pdmclk" > - > -Example: > - > -mcpdm: mcpdm@40132000 { > - compatible = "ti,omap4-mcpdm"; > - reg = <0x40132000 0x7f>, /* MPU private access */ > - <0x49032000 0x7f>; /* L3 Interconnect */ > - interrupts = <0 112 0x4>; > - interrupt-parent = <&gic>; > - ti,hwmods = "mcpdm"; > -}; > - > -In board DTS file the pdmclk needs to be added: > - > -&mcpdm { > - clocks = <&twl6040>; > - clock-names = "pdmclk"; > - status = "okay"; > -}; > diff --git a/Documentation/devicetree/bindings/sound/ti,omap4-mcpdm.yaml b/Documentation/devicetree/bindings/sound/ti,omap4-mcpdm.yaml > new file mode 100644 > index 000000000..73fcfaf6e > --- /dev/null > +++ b/Documentation/devicetree/bindings/sound/ti,omap4-mcpdm.yaml > @@ -0,0 +1,58 @@ > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/sound/ti,omap4-mcpdm.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: OMAP McPDM > + > +maintainers: > + - Krzysztof Kozlowski How did this happen? I see this was in v1, but I am quite surprised to be listed here. I am for sure not a maintainer of this binding. Choose driver maintainers or platform maintainers, worse case. > + > +description: > + OMAP ALSA SoC DAI driver using McPDM port used by TWL6040 > + > +properties: > + compatible: > + const: ti,omap4-mcpdm > + > + reg: > + items: > + - description: MPU access base address > + - description: L3 interconnect address > + > + interrupts: > + maxItems: 1 > + > + ti,hwmods: > + description: Name of the hwmod associated to the McPDM, likely "mcpdm" Not much improved here. You miss $ref and optionally constraints. > + > + clocks: > + description: phandle for the pdmclk provider, likely <&twl6040> Missing constraints, so replace it with maxItems: 1 > + > + clock-names: > + description: Must be "pdmclk" List the items. I asked to open existing bindings and take a look how it is there. Existing bindings would show you how we code this part. > + > + Just one blank line. > +required: > + - compatible > + - reg > + - interrupts > + - ti,hwmods > + - clocks > + - clock-names > + > +additionalProperties: false > + > +examples: > + - | > + pdm@0 { That's wrong address. Old code does not have 0. Please do no change parts of code without reason. If there is a reason, explain it in the changelog. > + compatible = "ti,omap4-mcpdm"; > + reg = <0x40132000 0x7f>, /* MPU private access */ > + <0x49032000 0x7f>; /* L3 Interconnect */ > + interrupts = <0 112 0x4>; Include header and use common defines for flags. Just like all other recent bindings. Best regards, Krzysztof