From patchwork Sat Oct 1 20:00:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Brown X-Patchwork-Id: 611763 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 720ABC433FE for ; Sat, 1 Oct 2022 20:03:31 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 5CBF02826; Sat, 1 Oct 2022 22:02:39 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 5CBF02826 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1664654609; bh=xE/eiXU7/2/RcDSPGUV43+GJIPlijRN4rnt+IytBYwQ=; h=From:To:Subject:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=Gn9abCj7WHLGTFkfoXsMRUzkHoRgAps2wV8cKP3Z180kZLTXeZrnYUgpij8e7qfXc AShTJSxHvodIJBhUDdLx1kjyVO/NfQqAvZ9sd0HxCpt+wftAxZGpYjifOFql46QSzw otLtlN5Dw3pZmLVoa9jenB5wZ0WAsPY0w0bjy/NQ= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 96D69F80171; Sat, 1 Oct 2022 22:02:22 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 8C1E6F804DA; Sat, 1 Oct 2022 22:02:20 +0200 (CEST) Received: from mail-pl1-x62b.google.com (mail-pl1-x62b.google.com [IPv6:2607:f8b0:4864:20::62b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 92C76F80171 for ; Sat, 1 Oct 2022 22:02:14 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 92C76F80171 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=schmorgal.com header.i=@schmorgal.com header.b="FjB7Q63e" Received: by mail-pl1-x62b.google.com with SMTP id z20so125718plb.10 for ; Sat, 01 Oct 2022 13:02:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=schmorgal.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=HPFnu8oaYg4AsNK1EYyLZPu6v1c5gswGTazUj1W483Y=; b=FjB7Q63eNKtH2CTjrjtwC8FFLZNbmCp4xDfLMqo030pmeTFsR9l+J5qHV7Zs0QgXk6 QdpJZslGGsesgS1ZMst/0G0dcq32bQPxxFT9uT3r5JEnV/MwiGzi/IC5Qpo37Vnqb0p3 ecXfI954khKiRlg+mPHKO7o1ah1g5vRMMl1hQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=HPFnu8oaYg4AsNK1EYyLZPu6v1c5gswGTazUj1W483Y=; b=yJD8cju+3KIyjXNsBf5lfQl6GY8RmHVYX+DAwt1AFE10XdvxlJNgJMUuoIzfNddiWW E6ZC+gDIj0zt7+qWKfKHNcoCS5CKCOxCmncJAYcV+BXjy8AdWpAzWj8b/rv/TY9ZtZjg ZL7Chqruw1m2Xu7qvg6iKVvyGMSvWmUb+uJ1IbiKMoGGPIo65MGzsdKP11Ax8BquHOgr NICgbbSJ1ilajNWowNr9aDZCCZx9CFJ4gFwniZJJE0mTvtMYFTN/RijOF7i3wKwklabt /dsDdq2oRTp5JJjc5bo8pNx9L9sQcCFwgcvOJ09HqfQjsaI+/POg3OTIrhAEFGOVxVak i7Iw== X-Gm-Message-State: ACrzQf2YhbyGAYi/RXt7gchQ0xrFcBhy+R5eGxKWR5zhPcROwNYSPTe2 qU6/UYk1Yrsw5V4qu2ga9MqmRw== X-Google-Smtp-Source: AMsMyM7ZelSG4EOYMkI8bR40RPCxCjXuSv0uJeFYi6pAJFqtZXHX7nttj8TlYq1mnu6tsFVckCZ+fA== X-Received: by 2002:a17:90b:2246:b0:205:97a5:520e with SMTP id hk6-20020a17090b224600b0020597a5520emr4676864pjb.244.1664654531968; Sat, 01 Oct 2022 13:02:11 -0700 (PDT) Received: from doug-ryzen-5700G.. ([50.45.132.124]) by smtp.gmail.com with ESMTPSA id l18-20020a170903121200b0017a8aed0a5asm4313593plh.136.2022.10.01.13.02.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 01 Oct 2022 13:02:11 -0700 (PDT) From: Doug Brown To: Liam Girdwood , Mark Brown Subject: [PATCH 1/2] ASoC: dt-bindings: add schema for WM8961 Date: Sat, 1 Oct 2022 13:00:38 -0700 Message-Id: <20221001200039.21049-2-doug@schmorgal.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221001200039.21049-1-doug@schmorgal.com> References: <20221001200039.21049-1-doug@schmorgal.com> MIME-Version: 1.0 Cc: devicetree@vger.kernel.org, alsa-devel@alsa-project.org, Doug Brown , patches@opensource.cirrus.com, Takashi Iwai , Rob Herring , Krzysztof Kozlowski X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" Create a simple DT schema for the existing Wolfson WM8961 driver so that DT support can be added to the driver. Signed-off-by: Doug Brown --- .../devicetree/bindings/sound/wlf,wm8961.yaml | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/wlf,wm8961.yaml diff --git a/Documentation/devicetree/bindings/sound/wlf,wm8961.yaml b/Documentation/devicetree/bindings/sound/wlf,wm8961.yaml new file mode 100644 index 000000000000..73166cf0fdcf --- /dev/null +++ b/Documentation/devicetree/bindings/sound/wlf,wm8961.yaml @@ -0,0 +1,40 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/wlf,wm8961.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Wolfson WM8961 Ultra-Low Power Stereo CODEC + +maintainers: + - patches@opensource.cirrus.com + +properties: + '#sound-dai-cells': + const: 0 + + compatible: + const: wlf,wm8961 + + reg: + maxItems: 1 + +required: + - '#sound-dai-cells' + - compatible + - reg + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + wm8961: codec@4a { + #sound-dai-cells = <0>; + compatible = "wlf,wm8961"; + reg = <0x4a>; + }; + };