Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp627317lqb; Wed, 17 Apr 2024 06:43:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXK2FgH3dVJrFHwReUajjbhJS+iEhLLJTdGi8ID5sQ1/GPxpH6R5viio2XReFEThSd3u3zfStmINY5DWfOvYr1c+e4WhgdiGneOI4K52Q== X-Google-Smtp-Source: AGHT+IGwKmHXZ8pqCmqgA29hOc+pOhCJJpkKxZu1dCaLc0AXzCeH255W0HOXwR8kWlbEX/Bj8m8C X-Received: by 2002:a50:c346:0:b0:568:145a:4a19 with SMTP id q6-20020a50c346000000b00568145a4a19mr3360646edb.4.1713361390588; Wed, 17 Apr 2024 06:43:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713361390; cv=pass; d=google.com; s=arc-20160816; b=GaQVT2gBEO27fooDBtPH3O5IRSJOzwZvvQUIAbzjVsIiEI9vyhbatJolZrG9x8SJoV 3pqCSvao72kSz74SaRU1E3YA3LxRycfoNf/BOSH9jJfvfX49zmpCQkgdzqs0W1/4sjMX UviL2yN/0iREqVFiFrXUS0nbX2Ge1V4CTlpruLLdGgnjiC1YBryttrXkzdiwPa2dSiLJ Z1HweQfwbm/sHoa6V5cpWdk9J9CpSlMmSkLNMzdO0oHFxH0VD+g8U/F8+Ug5FBTh3net iXoNzTKGXDuoY2ypHjWr0Wrb3TwNeVSja+g2tcLHq4M5SQ4cBnvCglWS4bMBQpUh4XGX FXrg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=mKUxn1aArk3LQL9fXJQSAOcunhIx4UjEZdsUQAPhyi8=; fh=fIBdI2blVIGIQz+AAt1WMWjil9fAiFz3DUkXaYdl3Qc=; b=qqOIVwAdaVupzM2qldnanI71eMFpO678Ir3WdMeuZ20BeiIqU8ip4SnuNtm+KAKd4U gCR7s57wgWsgZxMMfJE7OtAaObDSX4y6MHuBsLoPeETtuzNj/852aBxAmsqM/TG6LHGQ 0h8lzK7K+PvkDlClp6/51uLPZsqE/nHiDmZH6a4Bd4apEFlLzN846UkKIyRn4Z0xapk3 Ew31RBsyllA+U/SAa3I8DXYLuKTnOrr2tFynWDPq3uHk3GMAXEmbvTC8TaMFt/4Mjqq5 5qzbKmup9pV5GpR4ylfVDhRfiwLKdCdKpO0L+2nyJf0TPNSdzKh2iGOA/zxi2ojeCm+m PBsg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Mzr1YN7d; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-148610-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148610-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id s19-20020a50ab13000000b005701e117111si3987454edc.458.2024.04.17.06.43.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 06:43:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-148610-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Mzr1YN7d; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-148610-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148610-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 1B88D1F2198E for ; Wed, 17 Apr 2024 13:43:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9F7B0140381; Wed, 17 Apr 2024 13:42:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Mzr1YN7d" Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) (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 67CEF13F00A; Wed, 17 Apr 2024 13:42:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713361369; cv=none; b=pNzCqwTn+LsVyTTfnSgED06yMMInDBl0Ilbp9eTGyvYxPoE7+/Y+eWVd27I/bKqo90azcWB4njCLQYeksqeX3nhXtfejrKfIKHbshm3GJQ4JZFCAog3wcsN5AlQhkTZD5pYqQJnvkBiqeCPSNSMBkbFcvhZQe6LJb5gSORKvh1s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713361369; c=relaxed/simple; bh=Z6KTTpXbkxPN1Coo6PV3hmulcZTzMQIXfC8cpd/fduw=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=SQFOxgv6M7lveuUUr7iX8GyibTX62fJ13eMT4P/K3HY5sK9rmCSNlSU376nApV4ro0dwOEpBNca5Croy19hFmCZdH262DiHxnKTFThHrjhD1EQsvap0edGdZ4w9HKU4vjBtvi1Vm4K20fqq6Q1cSqGV6PEXlJemM5BxgCVIN4Gk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Mzr1YN7d; arc=none smtp.client-ip=209.85.214.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pl1-f174.google.com with SMTP id d9443c01a7336-1e2c725e234so6615465ad.1; Wed, 17 Apr 2024 06:42:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713361368; x=1713966168; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=mKUxn1aArk3LQL9fXJQSAOcunhIx4UjEZdsUQAPhyi8=; b=Mzr1YN7d54s745MkSl29PI4QpTX8fEAyvEt/KqweKzzrogqp0j756kFdSv3JRsI4Do ZgNyvSIu458U6bor1X6lkJJpIfsboycNM8PX82nXxwKGJwOTbu4yhjyDTTu/AcUPkGG1 eMODo48AwZp7ZGHPCisxKLkDRJDgLr6xC1vVGT6ZsonW3LA5RO4PsgFa+vqPYUKzHWKm sN1VN/NMtLKyzBxgFiN5iQ1P4G8v3LrjArpfWLC+ROn5Fw1W1+cwuqS6tRb85F/oOw3I doFw5QAQqgHT2fSqX5R6Vlf01k8jDnsf+EGP23VtgXJqrnmNWGm4FWDjiBvfH2k2pac3 FXdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713361368; x=1713966168; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=mKUxn1aArk3LQL9fXJQSAOcunhIx4UjEZdsUQAPhyi8=; b=NFyBcZG7WeeJqPp+zpMoiSXwJNZNooxQ3bFOGGTq/G33LEY1EsMOLcGC+k9KBjDStf NZB2CAAR9i+MDnnNxJxSjjMNXIWdmSP9Fih8MGLvKSorI78bH9nY5INS+Mw2nnYg7rM5 zZiV/ekXnJBkmQm9iiR2rYFmTAmYf5h0Jvd7XI27ud6nK+kzCTL04dzDx1Oj5vXN35Lp xMfRt7zhs6W7O4MOLr4WNJBZlJI59s601ySTCIS2qbSpBOuIQ2aMacROknFSeo9mBMH9 NtcsBW9uwe225Ogu+Lh814XWrLgGeiFsUPBPWHak7hBQP/z6OdifdT17MaOtHWkFsg1i xMOw== X-Forwarded-Encrypted: i=1; AJvYcCVZFM7e/mFmwEmF+OaqKkLfu1Gt1OQ3wpC2iy2YQ3gqhM1ZWXlAq4T7WrxC4qpAvnbGCpMpvQhLZ69skksUnXR38HegoL6KorBTZzTkWGfbeMK8RdpRTjcGWu8epY5FRXxF1RoB3+cr9ZEZtjCQXZnGBdCQ6mcSBUydYR7kCiB8UvL9AeAD X-Gm-Message-State: AOJu0Yx0SJIqkaVnASJeIOKH7jQFE7t1x2eDiAUg7W15XaLUOLW5v/dr wZn9ckybCE+DijbA7il8+T37jl2o3sHf6yARoo7i6L7HttqQUkEJ X-Received: by 2002:a17:902:f68c:b0:1e0:e8b5:3225 with SMTP id l12-20020a170902f68c00b001e0e8b53225mr6857432plg.12.1713361367456; Wed, 17 Apr 2024 06:42:47 -0700 (PDT) Received: from localhost.localdomain ([103.14.183.131]) by smtp.gmail.com with ESMTPSA id q14-20020a170902a3ce00b001e3f54f90ecsm6234834plb.300.2024.04.17.06.42.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 06:42:46 -0700 (PDT) From: Mighty To: Cc: Mithil Bavishi , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4] ASoC: dt-bindings: omap-mcpdm: Convert to DT schema Date: Wed, 17 Apr 2024 19:12:36 +0530 Message-Id: <20240417134237.23888-1-bavishimithil@gmail.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Mithil Bavishi Convert the OMAP4+ McPDM bindings to DT schema. Signed-off-by: Mithil Bavishi --- .../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 + +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" + + 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: + - | + pdm@0 { + compatible = "ti,omap4-mcpdm"; + reg = <0x40132000 0x7f>, /* MPU private access */ + <0x49032000 0x7f>; /* L3 Interconnect */ + interrupts = <0 112 0x4>; + interrupt-parent = <&gic>; + ti,hwmods = "mcpdm"; + clocks = <&twl6040>; + clock-names = "pdmclk"; + }; -- 2.34.1