Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1338642lqp; Mon, 15 Apr 2024 03:35:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWrRISEw73fNsuOZRC5q/mg+/rNKmBYSjzahDjeFGvEPt2EIL8trn2k2rsEYyGwXypcYr5iJIcvRxXBhJ9OVo1DCAvTyPDaNYzajuI/GA== X-Google-Smtp-Source: AGHT+IGJ09frDoSvNmYr+MkjYAp9hRfcmwM8rJh9O5fhUfjGXVdClxYgFswoWOIxRrxLg9YOmjBo X-Received: by 2002:a05:6e02:144d:b0:369:8f73:ed89 with SMTP id p13-20020a056e02144d00b003698f73ed89mr12379096ilo.2.1713177357141; Mon, 15 Apr 2024 03:35:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713177357; cv=pass; d=google.com; s=arc-20160816; b=jrJfew/a/eUx/jj2YqkPJIRrubTZtQg4fsbT1PT5wAoBAcldmqMYbddVk+6xgmcGA9 UU0FbZekeH9obgGvieJMAhVxUgJ7uNRaT8wlBPRGypJ+KN+3NCocFo+fIebWJWAyn4cu mDgJ5CYywF/M4vnPh1uG0ePLROYdNuX33WWl7eyj1DxU8OUaSDuuS9PlDgumxI13tljw rIcdUidAWvvVWtpkxFjRhaAi2aERDYWAxeHo4xdbzKBNy1Rt8l3yfHfwNBK9Ub007NjO cn82RoPHtOMJ9M4ltoPdbrAYozYttzVCc3YYyjTmhn7eATcGQpEVWYBToCgCIfNJfWeT 0d/A== 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=+XyhthZLoESO9WHc+S1+kDbhL7mPzfup8TR5Ezu6fL8=; fh=IzUOcS8wBoAQBUuGQqkNCxmRxPa0Fxpm9Higq4Ua5V4=; b=CgozHHXxJATVjUrZZ0ns8xEFbU8OxEndMmkU7Y4VT5/a6bW56ONagvL8oQWUt2Nhkp fWBb/xqCBlI856coeosFm9Q1EYPFYJYz0S2AqckDwiynPfd8E65bD2OvLb7Xfyp93pr2 yo3e7FAQI3dHEzj4/pz6HSMQ7Iss+cpqWgQw4rZwfnZBV9PkkPUK2BiRqBKB2mSBWHtY HSkY5p10Uh6ZAy6kpavti0a7zHpb+4mOCzvOcH5JkZqWccnCRvtn+4/2VwdYA1rl20xe InYefWSpaKPJDrXHVYtbI+WWkW4xhWvFk9zst9pv5afff9jXdOpyWYQcxDMD4q1gpspz sQiA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="HL76c/o6"; 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-144920-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-144920-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 4-20020a630c44000000b005f435bce73dsi7623046pgm.361.2024.04.15.03.35.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 03:35:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-144920-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=pass header.i=@gmail.com header.s=20230601 header.b="HL76c/o6"; 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-144920-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-144920-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id B7D9B28154A for ; Mon, 15 Apr 2024 10:35:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5EF545C904; Mon, 15 Apr 2024 10:35:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="HL76c/o6" Received: from mail-il1-f171.google.com (mail-il1-f171.google.com [209.85.166.171]) (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 9F72C5B692; Mon, 15 Apr 2024 10:35:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713177338; cv=none; b=PqHIGRDDt/fMcqzie4Fisi7GFdHA6EtBeKm/0f3KaDUE/w8uKNSI+fS4WosfeBzlN/mA83Offc1GDGSFKCXqWFr9prxBnhmeICcCOCkJFKMupudKYGGcL2Uxr/h7RaKHoLNx3YGRJRn+6HrHUGU0MDdomRejZEQ1+ulXb2WC/AA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713177338; c=relaxed/simple; bh=+sZ4VpMaNAH3Kyh1mrOtLGIavWRSCUxu2kcXWNcK9Ag=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=I8+lxO/dGmxnNcD5VBguZcg/euap9sdaQlzoEJk+XlR3ofevEyZHcTX/0xMkO35nKReuiRqKUUvSWoflB6rKq4/kJkFQiOo6JhM/nlAQ4w2seOXzRQ5RBClrqZlcK6LQCtL9vkJZGfqoeEDJqfMYr4ZO1RHBp1aWdQVq0y/XFC8= 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=HL76c/o6; arc=none smtp.client-ip=209.85.166.171 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-il1-f171.google.com with SMTP id e9e14a558f8ab-36b191a746cso7424615ab.1; Mon, 15 Apr 2024 03:35:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713177335; x=1713782135; 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=+XyhthZLoESO9WHc+S1+kDbhL7mPzfup8TR5Ezu6fL8=; b=HL76c/o6RvkTUhUZiZnCWy50DOK2rNWUIgMT7yd61XJwFEisG4p86QBuWiBOpBJvCj cXpVSuOUSd0Hf7OhbUOuzE75wvCvBaq49jqSlIfGAWgSsCcPlL2aZPmKjHthg2vBzeAh SOnvlqMmRGM8jlO1xbWP+rLzoVsg7r6m4LYvZIfczEwe81DsVSTltp35CWKdTd5MmcsN 9zkDtT+vGx9qme6cnmFL/cgfWTxRVErPbWk6gEp1KtVU5iKIYIEAT8yhlc0/oawdTkB9 NXaH+tzO1omKyeuyGLzVcj8tqcCTpQrCitSh8BM/v4BjfyQA8zpvZkTyG7OILkLAPkfy IPGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713177335; x=1713782135; 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=+XyhthZLoESO9WHc+S1+kDbhL7mPzfup8TR5Ezu6fL8=; b=P10JJPAF4u1pCWAY/dD4wlX8KMIdHrmeWGDJBlNg2y9l3MUPvNe74ZPByQQGxmZQ4G gxJJ0Fm1mxlNsh+AASOoAWuHE4RkYmlpm6qAkgq+8d7p17sjFZ7qklTsNyBuERlOCcXb KGOAZNPVBtUNI8BgnElYWaLc+FqPwQB01qw5r6HWZbqrNVyR/I3+AwAAlt/5ih+tGHbX /eGJrbQsM9Hxu16N9dCTIharFDYLNbRZz1yXJemiWLR1/AAVztOvCNTC1M+ra8UMvdS4 aO9YMmot6lZW7xFA0k11flGbxJAW+s/qWC2aV+ulBaL8OJh25zxODXDyaNyFOtmk91fv mp9Q== X-Forwarded-Encrypted: i=1; AJvYcCURs9Hpz+d5qc81V/+5sbs5pLNvXwLcm3e+t/hdfhjwoluYLq7Kln220dyKL6jMB59OkW8SaNwhg1/vHEyKxceeupI2OnW9nJxROhs2leB8xY0j+ukfMs1zrlwJAXqsU5yduNW/DaJtVg== X-Gm-Message-State: AOJu0YwPrDV8+T5XhTdC3LU3Y+rndS/jjFIVWmyFya5O4PcUYqLepxvm RzNTg+ZzT4hOZOzYzTUj3Ptb8cyKnjKSJOOIMu0TfGOAXvd6nbwx X-Received: by 2002:a05:6e02:19cd:b0:36a:a6c4:b6da with SMTP id r13-20020a056e0219cd00b0036aa6c4b6damr12178592ill.4.1713177334703; Mon, 15 Apr 2024 03:35:34 -0700 (PDT) Received: from localhost.localdomain ([103.242.120.171]) by smtp.gmail.com with ESMTPSA id u10-20020a63b54a000000b005dca5caed40sm6799430pgo.81.2024.04.15.03.35.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 03:35:34 -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 v3] ASoC: dt-bindings: omap-mcpdm: Convert to DT schema Date: Mon, 15 Apr 2024 16:05:23 +0530 Message-Id: <20240415103523.139-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,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: + 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