Received: by 2002:ab2:7a55:0:b0:1f4:4a7d:290d with SMTP id u21csp167622lqp; Thu, 4 Apr 2024 09:37:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXSJf3rrii/mLN004NSM2RurCltFv/h3P5wB9QZw8tzn05TZ58kgHGBbh5x/kBpgMVzgi/+/ntXOcffSp/x/FDuvlpV8aIa45QngRYi+g== X-Google-Smtp-Source: AGHT+IHMjL9zdL3gZbjgdmUuqsU9H8eJhykpbmlCpLH2J2KR93VWeSx0you3NvqshoChJS26bNxl X-Received: by 2002:a05:6358:570d:b0:17e:b78b:b223 with SMTP id a13-20020a056358570d00b0017eb78bb223mr3431155rwf.5.1712248677502; Thu, 04 Apr 2024 09:37:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712248677; cv=pass; d=google.com; s=arc-20160816; b=jmi1yX1/drVuuKK+iuWXPDJRC8i94yN2ufWumbyeX4Qxo2RoK/8LHE/HQDi7BANi8O 0ERRi4SFoqX5vapuSfe+qJbxkd49JjtVpMz5Eq9CMD2+PAdkRdEACE/4SLhebYvuGDJw CwOVLqY8JPuAyhwHQVNLiJJidFg2EgcL0g9eus72GzD7A5m5dLlVMPv0Qcuh1T6Mt2rh Cy5Iz3DsDX3RK365HUa0h3QyuBhwm2EaEbP+9xuvusmba8p7/Y41c95Rd5ALWfFhsWJx 1ezJrfz0j4kV64lc14+1XpOpReg7nmJg247YI7g1ODZL71xl4yIBpWLCZt3TVPVqA/11 Z2Gw== 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=LwkMEGu4bH84VlMdGnCK4KPRxbhmbdEM0Bw2IunWXXM=; fh=/PRI5RCW8/Gz7dYso/f2YAN5B/YPpRZh9T+r1Okg2mw=; b=Viph9/ayPbctnFjKQx0Gm8iVJYVyK0Yh5zyKSgOEPimORwIGii9Rg6ZQG58lnJLdwS E9/u4Zxq7izQp/Xac1HpEdZRn4ekl0ZGctMZWuMA4aPERzrXcvkKyK9zJXly4wlumY8C C3COqEXMkuIow81sydanPdNi/4CN3/mBkJGsZdCLvyCYqMo0oAlakWCyRNxwRHzgMyJN Kf/1WmuCxU6uoDXnma8Ogt1er8gf1ckElM1LmYrK4/wS1ldlFe6SLqzSkUchluTFdMF8 BYXJfSDmKS7GcTrKQ4cpPV6kMeMM40WAVhNNSlNiVMTIc/eNMzaGWkKLnz8a1sOMl4ef J91Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=R7vzq0mt; 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-131792-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131792-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id k16-20020a63d850000000b005e438e99d4esi15590351pgj.144.2024.04.04.09.37.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 09:37:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-131792-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=R7vzq0mt; 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-131792-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131792-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 65477B2BD62 for ; Thu, 4 Apr 2024 16:08:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 10AFE12D755; Thu, 4 Apr 2024 16:07:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="R7vzq0mt" Received: from mail-pg1-f180.google.com (mail-pg1-f180.google.com [209.85.215.180]) (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 A632712D201; Thu, 4 Apr 2024 16:07:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712246826; cv=none; b=g1qoWpuUZ4dW6lUF4M1Rh1fztV8TDDZMok0okrwsLF/UGCq99lTyJ2femBkSAHGCf3XrgnWDo9n/LtPjRg1fDoIIsBIORd6PNu9ZjKiJxVaWoa351N7E/R207r8nP2xjxFEUQ+P9dBQH4Qb19gerV2SqEBS4VN4K046RHLb4pNk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712246826; c=relaxed/simple; bh=YsR66LWGItmKjfFG/4thl5QkI/T85/VwbY4I36tSedw=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=gTyHtd7W+WHxDCcVSrXWsjf099xWWxKM7eESh/ywHLw2FHYJcdQs7eXk8kp2lbZn6EWADRPLCxtnMlApyC/eV7YM3M3uSpyWZ4h05EOwsAD5Gn4GjJtUZlQGwYnush4yqV2L623uopBZxgiK9lv52cnvAFwVmhfDlP2agdDVghk= 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=R7vzq0mt; arc=none smtp.client-ip=209.85.215.180 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-pg1-f180.google.com with SMTP id 41be03b00d2f7-5ce2aada130so874971a12.1; Thu, 04 Apr 2024 09:07:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712246824; x=1712851624; 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=LwkMEGu4bH84VlMdGnCK4KPRxbhmbdEM0Bw2IunWXXM=; b=R7vzq0mtho5WmQX+rPI4dBoqeSFZsHzivsGCvSz4BVVms805y5ed9oD2nxvkZI0snm jAtuccmu70AIWQpBNusRa3OS4IN+bvOfmmivw2YFziNjA8nkVske76qvn+gpAad/Rftf VMRiyD+Y32qDdaA7CQuAmYI4cXfzeZ29cJnXuYgZS2KFZeDQgkPIq3i0n0MSpmA9BWeY yOCi0CMe6uCaJ2IHrWMRVFGyArXFx7W5GIr92fomuKbL4vN+LY4M7QYuZVg7Ol0AXJWM EWvitP6dgJKniJhTFae52QDlqJSo7LmpTGt3sz7yXD86QlrCO4qHdzKPU+ZwMspEpxGW X9qA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712246824; x=1712851624; 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=LwkMEGu4bH84VlMdGnCK4KPRxbhmbdEM0Bw2IunWXXM=; b=MxmTrQJct7K5arIRXxH296zY4Y91T2DnlANc7snOPp/etWh6KUEXFj7sCs287ZLYAU rbvDK7gKf7RG3RbdwX0jjg+n96dHXe4rtMWtO+pIa85lu8S7yz5mmEryIh7wwHt82p76 LyPSkXmAxoqDyWDPKYMyo1DhPtBGUBHjXkgRWI71GQgorhlTPYJLYhU92BStfCEHIHlK MCUJUVfW6CHzSlc6tXKHuKbhq0qEeGU7e0sCnk4RjThGEPO+ZpG7rqc1LSqp2vOvosEs A7Mx7tOq/OoucaENMMXa7UgeIaRmQBv+8U0/liCwCN8lfOnOFij+ZXJo1KMbnn7QWPse MS3w== X-Forwarded-Encrypted: i=1; AJvYcCX1izD8X7i8F5NrSHGmupuFmq6Wu1B93E4xxajm5Uea/92RDZj0m3iI2cjVj9c5X3NasZM/L9cC16CEBi5BMOZ+6mC1kXOwCSn8YAZepRbZLEFd4xMXMJEcO3k4jPYZjFjDwTXEQDMNNA== X-Gm-Message-State: AOJu0YwlfGfdjOk7Epq6WltngSIyqnDPHv1ixM32RCtriscd/RM/Vj57 zwr8tu73NH4wEXXQq9GNEIvvwWCzjBOWhYaLTVuaGRI7lQA5xyG1 X-Received: by 2002:a17:90a:b10f:b0:29b:b3fa:b7a5 with SMTP id z15-20020a17090ab10f00b0029bb3fab7a5mr2556863pjq.7.1712246822352; Thu, 04 Apr 2024 09:07:02 -0700 (PDT) Received: from localhost.localdomain ([203.188.229.101]) by smtp.gmail.com with ESMTPSA id g14-20020a17090ace8e00b002a2979a8651sm1685928pju.54.2024.04.04.09.06.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 09:07:01 -0700 (PDT) From: Mighty To: Cc: Mithil Bavishi , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] dt-bindings: omap-mcpdm: Convert to DT schema Date: Thu, 4 Apr 2024 21:36:49 +0530 Message-Id: <20240404160649.967-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: Mighty --- .../devicetree/bindings/sound/omap-mcpdm.txt | 30 ---------- .../bindings/sound/ti,omap-mcpdm.yaml | 59 +++++++++++++++++++ 2 files changed, 59 insertions(+), 30 deletions(-) delete mode 100644 Documentation/devicetree/bindings/sound/omap-mcpdm.txt create mode 100644 Documentation/devicetree/bindings/sound/ti,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 - -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,omap-mcpdm.yaml b/Documentation/devicetree/bindings/sound/ti,omap-mcpdm.yaml new file mode 100644 index 000000000..4d5d37e98 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/ti,omap-mcpdm.yaml @@ -0,0 +1,59 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/ti,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 + , + ; + + interrupts: + maxItems: 1 + + ti,hwmods: + maxItems: 1 + + 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@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