Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp318486lqp; Tue, 11 Jun 2024 05:47:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWuUab/CkU1OHk85eMsfe6MW0u0J9TsLe7t4Zq+nLkJk/rECDiufvfPnQzm709zxi2unoKaHJXcIOjgDhR5cuECLQz8mdczXxMaXpZsQA== X-Google-Smtp-Source: AGHT+IGDV5yKzygluqHNAVfqOK/z/FjUeePaap0g0tULztTQr7QGdtlIwS3QUd4YZYycubW1Hu1X X-Received: by 2002:a05:6e02:1569:b0:375:a348:3a9e with SMTP id e9e14a558f8ab-375a3483c68mr62772455ab.6.1718110024669; Tue, 11 Jun 2024 05:47:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718110024; cv=pass; d=google.com; s=arc-20160816; b=cqUaFQXCp9XS2IATorjMYzKlG+kBx5yC6WdjAi84ktbpR896/2LlSvp3KxZyBwZaJi ByfN3HpIDfxcOSxKqbbHrJW69eD9c+jjtsafVhUZsL8qoT1Zi1M4liPFxidM5mW8tmEt u5qAdJdmjrl/KYYTeytliVOWYmElgU2Mpu6rnZuMdYC8LwN4quh4vPQazhyKns7HDQ/P I8xJYpUSOH2ENgMvbXYT80G6lh+lFImAXReRUsLUimxYEWjyCuEqfD0f0HkctIW7WReI Q8hO9QV7p/DAsWcS2KpbMNxxi0ao597eYgWKSN9XPzx4iHsskbHujQpjBujv3ebUz4gx tevA== 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=EOZTRxupDtWwJHuRilUyPeK4CR8nu2TIfIZfSy2nBSs=; fh=sPYcT39dJeqpZBUat+c7MZadiiLnZ2pQpNI+1a/HBeU=; b=nvvNFpg49beTEpZoupkRifuxsqhsI20ex0X5RCu3zXW5D/xDuGjrOEzA6MyNIbdquq E5qfdbdL/FceRSd2zCIbZ9WY+ez7XoOluiz/TkdbggrSpf08PCjYmSwRvQj0rTMFj0pi le7UdRZG3BOI3YQqut4olzLi1/aHd+QRyTVnECLj0JDtAsZgOm4DCS3TXtr4BX5i++K5 BE145eM6Cx2Ee5UJtxx49N/5JwyqcEtr+O8iIfMHyu2wlSKSqa5FOlXCPoMKCctvomxv +m7/dPssy9Rzx6goGvBFkV/2WqyvpZSIcfk7gVdYJm4CzSu4pXOeWf8jETdfIhR2M9K3 iizQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=RWS+OsQX; 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-209850-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209850-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. [147.75.48.161]) by mx.google.com with ESMTPS id 41be03b00d2f7-6ec473ccd7asi4175101a12.578.2024.06.11.05.47.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 05:47:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-209850-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=@gmail.com header.s=20230601 header.b=RWS+OsQX; 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-209850-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209850-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 08929B222B9 for ; Tue, 11 Jun 2024 12:23:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C8C1217C21D; Tue, 11 Jun 2024 12:23:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="RWS+OsQX" Received: from mail-pg1-f173.google.com (mail-pg1-f173.google.com [209.85.215.173]) (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 7A9CE17BB02; Tue, 11 Jun 2024 12:23:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718108592; cv=none; b=l+TL3A3LX3Y9s0WRAX3aRqFzsNraM0GArD0OuuCOlfTzMh+WCebydFEpZQc2JY71kCC6T5kIUzv5356o+iL1n2u9XPwvawCoSpzUD4ifcUUpEp8Vr2cG5kVRwHWqjnu8jNmGltylaYTsOo60W7Ex/O9qla9oJBbULWat+F74g/I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718108592; c=relaxed/simple; bh=jz2lKdoLAmywAiVh90VRZ7zihAdGB/Mjfd4CdnLtpFY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=YYswy10EjUz4ve4CDKDpjSmxA51BLsXYJ7RDg42JefzMKCf9CAueAT0KO4EF3b2b2N/erDpfyeRWW6qCJloV6gZWWw4YSr5H4jSZyucDOV1wlzZpc2J0SLB4Mblm5aTCVUiLTSIHuqm2/v4ljVtDAXpCn5fL0/QTmaaX1EG8Bes= 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=RWS+OsQX; arc=none smtp.client-ip=209.85.215.173 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-f173.google.com with SMTP id 41be03b00d2f7-6eab07ae82bso832175a12.3; Tue, 11 Jun 2024 05:23:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718108591; x=1718713391; 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=EOZTRxupDtWwJHuRilUyPeK4CR8nu2TIfIZfSy2nBSs=; b=RWS+OsQXPHRjxLaZcO02Tm2x6kKRuHMMkZoYvkK9wId+9LNd8YJZg097EPKKjZ29MC +rzngZ5xx+OmeZzQ7FNyCV1buUfyl+Yc9c3erKtczCSoBuE08WmgsNXGVkSQ24MBM2AR 2k3WOCVCc6q0DqZvC8csl0S4bKKDuXdsMNdCvyqgHty1hpEFwSXAm/Uaf1Y9btIpgh+g E9YPi/PFLcblK6D38zP5it2LGJMO+b+ijc2g9+h9IPz2KwjnS2aDMo4XY2tqW3IYOT8/ EOUgfZ5k2z9z5XTiyPP+e7zkd34S0nwvGy4/a57cg7xjSAAVtji7Wk0JRF0jfTKBuJ8R U6HQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718108591; x=1718713391; 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=EOZTRxupDtWwJHuRilUyPeK4CR8nu2TIfIZfSy2nBSs=; b=TrI4ulhWp1UBOozYNHXWYcchhh2ElRTKOn23HnNkjtfp1o/OxlwFHlxr+Ul81NsZif 1pZF/EzD8NkvM5zGZde7rXKoRU/glD167Gwz2wFwFl8bvtISb3Eil+0QP6Uo1pP4VHZo 5Df4Z0cJmbl830G6cmSEmkFeCml/hAT5QULw2l+io9dfZqnoJgaHFlUhz3T+eOJkQGbi z+5HuEaERIiRBuRblu+hpZvUWQW0UXkBiUAq/mcdY+vwVlPIQvYXifcG4dfO4TP6eWYx wmxqJBhvahNlgI2Xt1SJesQ/0LHMLdETSIXinOZl5AkVmcRGuxipB62R1bCqKfylc8Ng QaZg== X-Forwarded-Encrypted: i=1; AJvYcCU+0KSpaboV58Aa25knhy/URr/uMXwAgYV9RKsiI5qpDfar2oqgb53zkVpNtmREj+4ta7qeFytLNtxiX602Fmmvku5VougbPFwiqh4q9RCy2pKjG4g0hThwNnzgcm0r1aKAjFrRhINhIQf4ftCVDorbGPBil8++VCNC+P7UpnK/QKscSdUX X-Gm-Message-State: AOJu0YxkmuhwpgpoD8nL9VOyOY+oV1y1epBlsGDwsbf4iW1Y/m+E3L9Q bND5YFhlnKd4PiV79Gk0hDyqRGKcbBmWe+7KzbRchHUHU8EZorbA X-Received: by 2002:a05:6a21:1a2:b0:1b5:2fbb:2d84 with SMTP id adf61e73a8af0-1b52fbb307amr9428335637.28.1718108590480; Tue, 11 Jun 2024 05:23:10 -0700 (PDT) Received: from fedora.one.one.one.one ([2405:201:6013:c0b2:ea4b:30e0:4e3a:ab56]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-6f88c51aec4sm328663a12.86.2024.06.11.05.23.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 05:23:10 -0700 (PDT) From: Animesh Agarwal To: Cc: animeshagarwal28@gmail.com, Daniel Baluta , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , patches@opensource.cirrus.com, linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] ASoC: dt-bindings: wlf,wm8804: Convert to dtschema Date: Tue, 11 Jun 2024 17:52:51 +0530 Message-ID: <20240611122258.47406-1-animeshagarwal28@gmail.com> X-Mailer: git-send-email 2.45.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 Convert the WM8804 audio codec bindings to DT schema. Signed-off-by: Animesh Agarwal Cc: Daniel Baluta --- .../devicetree/bindings/sound/wlf,wm8804.yaml | 58 +++++++++++++++++++ .../devicetree/bindings/sound/wm8804.txt | 25 -------- 2 files changed, 58 insertions(+), 25 deletions(-) create mode 100644 Documentation/devicetree/bindings/sound/wlf,wm8804.yaml delete mode 100644 Documentation/devicetree/bindings/sound/wm8804.txt diff --git a/Documentation/devicetree/bindings/sound/wlf,wm8804.yaml b/Documentation/devicetree/bindings/sound/wlf,wm8804.yaml new file mode 100644 index 000000000000..3c060179f06e --- /dev/null +++ b/Documentation/devicetree/bindings/sound/wlf,wm8804.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/wlf,wm8804.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: WM8804 audio codec + +description: | + This device supports both I2C and SPI (configured with pin strapping on the + board). + +maintainers: + - patches@opensource.cirrus.com + +properties: + compatible: + const: wlf,wm8804 + + reg: + description: + The I2C address of the device for I2C, the chip select number for SPI. + maxItems: 1 + + "#sound-dai-cells": + const: 0 + + PVDD-supply: + description: PLL core supply + + DVDD-supply: + description: Digital core supply + + wlf,reset-gpio: + description: A GPIO specifier for the GPIO controlling the reset pin. + maxItems: 1 + +required: + - reg + - compatible + - PVDD-supply + - DVDD-supply + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + codec@1a { + compatible = "wlf,wm8804"; + reg = <0x1a>; + PVDD-supply = <&pvdd_reg>; + DVDD-supply = <&dvdd_reg>; + }; + }; diff --git a/Documentation/devicetree/bindings/sound/wm8804.txt b/Documentation/devicetree/bindings/sound/wm8804.txt deleted file mode 100644 index 2c1641c17a91..000000000000 --- a/Documentation/devicetree/bindings/sound/wm8804.txt +++ /dev/null @@ -1,25 +0,0 @@ -WM8804 audio CODEC - -This device supports both I2C and SPI (configured with pin strapping -on the board). - -Required properties: - - - compatible : "wlf,wm8804" - - - reg : the I2C address of the device for I2C, the chip select - number for SPI. - - - PVDD-supply, DVDD-supply : Power supplies for the device, as covered - in Documentation/devicetree/bindings/regulator/regulator.txt - -Optional properties: - - - wlf,reset-gpio: A GPIO specifier for the GPIO controlling the reset pin - -Example: - -wm8804: codec@1a { - compatible = "wlf,wm8804"; - reg = <0x1a>; -}; -- 2.45.1