Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp4552308rwe; Mon, 17 Apr 2023 14:40:28 -0700 (PDT) X-Google-Smtp-Source: AKy350b5J5ts4nZmbOimo6+AG9AUN1QsAlGO0DHHZS/QOTzx1HRxFbpwjWYCHVjTwYRA2InlZM4e X-Received: by 2002:a17:90a:4414:b0:246:a5d8:cb73 with SMTP id s20-20020a17090a441400b00246a5d8cb73mr23797984pjg.14.1681767627909; Mon, 17 Apr 2023 14:40:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681767627; cv=none; d=google.com; s=arc-20160816; b=gp45zROH3dtEroN3UmOitBtl1rRwYKDDwYE7m9ExxCvIx6Ak5lmiHgRNh7+x/Kfp2x /+7cgWh2e1d0bKTj2esaKYWMrqvNxeBf4i+/lYyjIJGDYoF1KRNjtP7sdDHdUQTVcban MVLdwPtL3ZDgWz9DlMBAAfQWV61OdAAJucw6UPkOAZUe1TbEFn1iGEEOBBXDWy5X6MgO +8TyIy3OfrMDcBRp4UWAGCXMoV1Q7nsoSYFsBdn2qetfVRvky6ZsDin5adpaONMo1dHG kDKCqzcAVrTitU4P59jEPpNgbF+wUhzQASIFIVr/0PvSwaZm4FZweF624LpDFpArgGhO e0+w== 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=tS2EUAIxndFqnf5A6Ki9yaF0traiHvKhRYcLbNaTGjs=; b=HjuzASgLG+H1gkLJ/LHV38s2br5cR49at6LrYLOTjaUHyVqcwQ8EIb7JtSqPH4R2t9 mxM8zarmeaQkagAoMhyhmCoPpksAhZF9BqR3z2/DpTHLX4/cY2oagZKuaJb3lkyx/0RW dhqRpxBKF8CnHipNFpBbZwgGFiAbXTpKNHhtdhZq4pf90qqaxyqXRRajgdc/GDuMSupd wUI1Amr9uH3mVwqTUv2j1Dc6TOMShCsI1J5XI0sfZrF3NfEtNAIJc3mQcS63ljbrOmlc F2HcR87hQP+i2TRLLVtKr2fnAeXTx/MUSP2vQNeqsxBREt9ro2kBcy4EMm4OzFJu0iEE gv/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="Fk/0X/Ci"; 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 kb1-20020a17090ae7c100b00240a968ea63si777149pjb.68.2023.04.17.14.40.13; Mon, 17 Apr 2023 14:40:27 -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=20221208 header.b="Fk/0X/Ci"; 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 S230349AbjDQVYS (ORCPT + 99 others); Mon, 17 Apr 2023 17:24:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229643AbjDQVYR (ORCPT ); Mon, 17 Apr 2023 17:24:17 -0400 Received: from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com [IPv6:2607:f8b0:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 945253A82; Mon, 17 Apr 2023 14:24:16 -0700 (PDT) Received: by mail-pl1-x62e.google.com with SMTP id l21so9527426pla.5; Mon, 17 Apr 2023 14:24:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681766656; x=1684358656; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=tS2EUAIxndFqnf5A6Ki9yaF0traiHvKhRYcLbNaTGjs=; b=Fk/0X/CitoM7OVxl8nn7ggP0Ren4uObavNY91hwd44HvH2NrKmoM0h23GPordmdQk1 dMIvDKGQZ6vocVh9NEtr6riaR0BFi433NmwiWQ0WiXHqdukhUtYGmEgCqkW55JPnMAir sXmGk7XXIEgJXib45NbZVgiNjjWKkJ5PO/hwvP+ksBeNyyWFoFBn3toRELFepx9U7g1+ 6kB3tF+cLh6pQD0Ob3kjFPOKztpgGXsxYGuCKDWF4yc0x7+h0Yw0pCN9bVGOPkTO8KU9 XmzpZ6DgO4zXHDL/DKfqaF/SMcS6+NATLNM1veooGQeS94J92n0oWmyBqz2WEXdukkpA yjXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681766656; x=1684358656; 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=tS2EUAIxndFqnf5A6Ki9yaF0traiHvKhRYcLbNaTGjs=; b=D73qD3j6jemSDaE8dC5jWQVlHDoY7iPzctSIv4IGk+9oEP19izjXdMwwHGwOFyuVWv Av63NhaYxXQD3YErzjGj/iuDx8pYWaC9KVdyGY0XYkX/Le/WLSj9nrEKsTyhvQXT55qj f6Zkcuy+uKh950a/XY5mtIfdJ8npcyyiFemalJ5/O9z/8ktte8MWEXMVnBYmf9z4s9WA NSCAFDGyeiDr9Bdn4MmG0eYGCJz9rVS/vkk4ys85/A7zWkt0Kp/E+L6ne8dZzWSpZAoL eT52HDNy3UgiUpntOXWuDuWe5Ndk49ccYV2GzrQeY7KGduHQP6hR7Fp5hjt54hctf4X1 a7vw== X-Gm-Message-State: AAQBX9dXrV4JcJawmaXnjnzo4l+Xnzf+9lrHs9jXCC6TKiJlBdp2MeRG 0JOZ9OFHBKP/JMjrNmVbUcBXh5p0Dhdabw== X-Received: by 2002:a05:6a21:7893:b0:f0:93d9:9c03 with SMTP id bf19-20020a056a21789300b000f093d99c03mr265012pzc.15.1681766655822; Mon, 17 Apr 2023 14:24:15 -0700 (PDT) Received: from localhost.localdomain ([2402:e280:218d:82:ae97:7cb6:b12a:54f5]) by smtp.gmail.com with ESMTPSA id k4-20020aa790c4000000b0063d2dae6247sm1177507pfk.77.2023.04.17.14.24.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Apr 2023 14:24:14 -0700 (PDT) From: Saalim Quadri To: lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, daniel.baluta@gmail.com Cc: patches@opensource.cirrus.com, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Saalim Quadri Subject: [PATCH] ASoC: dt-bindings: wm8737: Convert to dtschema Date: Mon, 17 Apr 2023 21:24:00 +0000 Message-Id: <20230417212400.161796-1-danascape@gmail.com> X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 WM8737 audio CODEC bindings to DT schema Signed-off-by: Saalim Quadri --- .../devicetree/bindings/sound/wlf,wm8737.yaml | 40 +++++++++++++++++++ .../devicetree/bindings/sound/wm8737.txt | 18 --------- 2 files changed, 40 insertions(+), 18 deletions(-) create mode 100644 Documentation/devicetree/bindings/sound/wlf,wm8737.yaml delete mode 100644 Documentation/devicetree/bindings/sound/wm8737.txt diff --git a/Documentation/devicetree/bindings/sound/wlf,wm8737.yaml b/Documentation/devicetree/bindings/sound/wlf,wm8737.yaml new file mode 100644 index 000000000000..12d8765726d8 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/wlf,wm8737.yaml @@ -0,0 +1,40 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/wlf,wm8737.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: WM8737 audio CODEC + +maintainers: + - patches@opensource.cirrus.com + +allOf: + - $ref: dai-common.yaml# + +properties: + compatible: + const: wlf,wm8737 + + reg: + maxItems: 1 + + "#sound-dai-cells": + const: 0 + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + codec@1a { + compatible = "wlf,wm8737"; + reg = <0x1a>; + }; + }; diff --git a/Documentation/devicetree/bindings/sound/wm8737.txt b/Documentation/devicetree/bindings/sound/wm8737.txt deleted file mode 100644 index eda1ec6a7563..000000000000 --- a/Documentation/devicetree/bindings/sound/wm8737.txt +++ /dev/null @@ -1,18 +0,0 @@ -WM8737 audio CODEC - -This device supports both I2C and SPI (configured with pin strapping -on the board). - -Required properties: - - - compatible : "wlf,wm8737" - - - reg : the I2C address of the device for I2C, the chip select - number for SPI. - -Example: - -wm8737: codec@1a { - compatible = "wlf,wm8737"; - reg = <0x1a>; -}; -- 2.40.0