Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4354766rwl; Mon, 3 Apr 2023 03:55:51 -0700 (PDT) X-Google-Smtp-Source: AKy350b4mHOwPYH+x7TnlFgVi093u2f3rS1CuCwo6HXnnb4qU7oBOlYYIvLumBErpywuFRnAK5fz X-Received: by 2002:a17:90b:38d2:b0:234:dc4:2006 with SMTP id nn18-20020a17090b38d200b002340dc42006mr42077721pjb.4.1680519350992; Mon, 03 Apr 2023 03:55:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680519350; cv=none; d=google.com; s=arc-20160816; b=WdqHfbwcB/lkZbvR/gcl/goigmE7RaHDlbC8EMddPXqeQMpNZrnGdnfz0yWfIRrzCZ DrXy1z8KIpN+fnzOMoAQ4zEW2ERLOB95eJlGskyH1IfY5yvSa/oxHOvKI/cv5WUCldMc gPLtjMW/cGMpb9o5Y6J2iOoXQFU4gMbzSEhwxWtIJyUBF0Ve/i859DEPmvlUFEYNtm2S pX2IhRIQ7xX6OKWIqtl8UsD6Dis0Q12JichQfR2ej40t85Pl7+pDHpAJR4LTXUrZ079x A7LRJRTNqJJlmR9AHTkwBCJBKAWSFUmmhFesTSA/KI9aXNljVMsGgG1v0MfAm9R3xvAn XT3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=CjHdMf5pmc+VnOq5rbReP1B7/Pwn++54UQQr+szUSWc=; b=mIjdKCPjhV4F0ZFnsa6kflBMH7JgWHqMme8wY0wNWFDpnIgMhQUcoBsmyOPk+S80i4 pu10TFLkAPnpRe9UYPyMOjMD+dtfgjexC96q2ARGVQugmieUs+7HyJTEGLlyY0DjFh7S 0ZTJDwwh797vlKfdBO6wxOSaz2geJDcSxdVUgPKUIzSZbkMHG93Pc0d9HdGP3CTYO2M5 9EOSFrVoYSeKdwojPjEeB5MkMoSLn1ZmPBpxt0wKhK1fwAh6XhyxEVuIyicPk7QV7fAs eNPwzBRf+jjMw/wTG/kdGXhJvFWXYkg6WgLTRjcGSJbXjDqBjvpZQjwnW4/a6zFpDlqW IWDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=N46ym3Km; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oo1-20020a17090b1c8100b00228e80888c9si13186559pjb.14.2023.04.03.03.55.40; Mon, 03 Apr 2023 03:55:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=N46ym3Km; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230105AbjDCKxA (ORCPT + 99 others); Mon, 3 Apr 2023 06:53:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231644AbjDCKwz (ORCPT ); Mon, 3 Apr 2023 06:52:55 -0400 Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 482757ED8; Mon, 3 Apr 2023 03:52:54 -0700 (PDT) Received: by mail-pl1-x636.google.com with SMTP id u10so27588062plz.7; Mon, 03 Apr 2023 03:52:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680519174; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=CjHdMf5pmc+VnOq5rbReP1B7/Pwn++54UQQr+szUSWc=; b=N46ym3KmbP15CNVB1tEhbGBxxsceIvYRTyde8BixGqsGzruAP3aNxDHpoebiQH9wad zbbk6rYfZCrq0gT9XW+rF36oZYcz07BZyWfoeSyj1kkyb23vd0jBOOlSE773L4q5doKx Y4lFsrfp5G3UzOn9ByEhp5CaIcyrQEkOZsX9XwOaxKUBiVmruOy3VLesauDtXo62bDNu 0U5xd1Ocp7FJmrkJvZynoydQCmRV9XFtDJhl/+xmjCEiZG1MY1vASnlRtbk5SRgxtFQe Y1zHmaCK4p1Fmwui2dLoTSrq9FWyoNRzfzFqjdaQTYOZYvqnf9ooY9h0R1Nnqpqf6kvu o2Fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680519174; 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=CjHdMf5pmc+VnOq5rbReP1B7/Pwn++54UQQr+szUSWc=; b=kynyPuZBCOZkU7m/uFw0nBXqHZ1Dl67MKdF0zpcNmOaWJx1BRmM0YDMGpcRTt/ojii aCkxf/yUCbrXGe8bBihdEMpaFQm6+970Yz5e3okGdSeHXsCPCFFPUvKCNpQXJZ+RNVdg NOgmLnlX8MJUGHtEIjCzIKtI2RFtDjY5nMj4VIgIsAjO0HOnHyxwHPI52mbPs+GZto9l 5XdEAQtcH6OK3a9IIZm6qXP0oX2ie14fKe5OAZvOowCF/gmps465Sd26mckPQ3OSaaeE Y79p5UGzc8mL/mwlBV2MYJCSCzbaU4p0qvJ9Hl/UBlLwpixJF6Nfzh4Y0En7eLi8zSMW lpIQ== X-Gm-Message-State: AAQBX9ch8UgLLijZBN2JWJijrdpRZcl4kfuIkqBCXa4FsqkW7wZJ/OLd Wyt1eX1/+A7oqTGIQaiRj/A= X-Received: by 2002:a17:90b:4c8b:b0:240:c25:210 with SMTP id my11-20020a17090b4c8b00b002400c250210mr39814675pjb.44.1680519173681; Mon, 03 Apr 2023 03:52:53 -0700 (PDT) Received: from pavilion.. ([2409:40f2:100f:dc7:7de5:f2e3:4932:541]) by smtp.gmail.com with ESMTPSA id jf2-20020a170903268200b001a27e5ee634sm6325182plb.33.2023.04.03.03.52.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Apr 2023 03:52:53 -0700 (PDT) From: Saalim Quadri To: lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, daniel.baluta@nxp.com Cc: patches@opensource.cirrus.com, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Saalim Quadri Subject: [PATCH v2] ASoC: dt-bindings: wm8510: Convert to dtschema Date: Mon, 3 Apr 2023 16:22:37 +0530 Message-Id: <20230403105237.3854-1-danascape@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Convert the WM8510 audio CODEC bindings to DT schema Signed-off-by: Saalim Quadri --- Changes: V1 - V2: Fixup issues mentioned by Krzysztof Add SPI and I2C examples .../devicetree/bindings/sound/wlf,wm8510.yaml | 52 +++++++++++++++++++ .../devicetree/bindings/sound/wm8510.txt | 18 ------- 2 files changed, 52 insertions(+), 18 deletions(-) create mode 100644 Documentation/devicetree/bindings/sound/wlf,wm8510.yaml delete mode 100644 Documentation/devicetree/bindings/sound/wm8510.txt diff --git a/Documentation/devicetree/bindings/sound/wlf,wm8510.yaml b/Documentation/devicetree/bindings/sound/wlf,wm8510.yaml new file mode 100644 index 000000000000..418a82f65531 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/wlf,wm8510.yaml @@ -0,0 +1,52 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/wlf,wm8510.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: WM8510 audio CODEC + +maintainers: + - patches@opensource.cirrus.com + +allOf: + - $ref: dai-common.yaml# + +properties: + compatible: + const: wlf,wm8510 + + reg: + maxItems: 1 + + "#sound-dai-cells": + const: 0 + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + + codec@0 { + compatible = "wlf,wm8510"; + reg = <0>; + }; + }; + + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + codec@1a { + compatible = "wlf,wm8510"; + reg = <0x1a>; + }; + }; diff --git a/Documentation/devicetree/bindings/sound/wm8510.txt b/Documentation/devicetree/bindings/sound/wm8510.txt deleted file mode 100644 index e6b6cc041f89..000000000000 --- a/Documentation/devicetree/bindings/sound/wm8510.txt +++ /dev/null @@ -1,18 +0,0 @@ -WM8510 audio CODEC - -This device supports both I2C and SPI (configured with pin strapping -on the board). - -Required properties: - - - compatible : "wlf,wm8510" - - - reg : the I2C address of the device for I2C, the chip select - number for SPI. - -Example: - -wm8510: codec@1a { - compatible = "wlf,wm8510"; - reg = <0x1a>; -}; -- 2.34.1