Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp4501897rwe; Mon, 17 Apr 2023 13:46:48 -0700 (PDT) X-Google-Smtp-Source: AKy350Z/02vG7Q3IGvncx009vzTBiZWNszikToRVm6FeuiT1nXYdx/1ofOy56RSjrlO+KKE6fzmt X-Received: by 2002:a17:90b:3810:b0:22b:b832:d32 with SMTP id mq16-20020a17090b381000b0022bb8320d32mr15951605pjb.9.1681764408079; Mon, 17 Apr 2023 13:46:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681764408; cv=none; d=google.com; s=arc-20160816; b=bNvV04cdFVZFhhFLPpAwwOG7TUxEw7iiIX2d2HOdxNsXOi7KW5mbIxmZISEbVAjO6Q rjxAoNH7iyhZX3PLyo9+fo/hYu7ovc93YtPiytt8dabOikpmwt7RyLydSuOxFsVGngVP Knzu4WnfN1EQ6phA+Cy4np+oB1BRA40ym+NFDyX/wcjISbBp1QyYFV7TDdMz16rY0jHi OaIi6pSOqulbTnDrogxRaaxpBAuI02vCf6G6rVevLuXWN9pwKP0+llFopp0wNEBrJHPY 25svmdh6v5VB7JGKVeATbrLSTrhEDLIulvkrA/74FMr9ejyboelSf4B6/5/I8WksGOYb 8FLQ== 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=0D8fVQxMh2FytECOWBOGS25wxqSLBJ+NNK2BQrzIi0o=; b=XbmKtlZ12vLuZab6VjnN5XzdtABjwOzrlytOoXRsae6vnDneiaktSuU0rxF93wfi6e N16Ye/svo2zC5iOGRYlhlOy6MWbdPzBmdw41yO25jPluFtgaV+5PkMr5RYHw+73qpo5N BfWH4Yqh2t8ZlY+7v8Atb+QGCDv9/ZdEx5vPXskP2BuhCmcXlDSiz/epJ5m6afJyVPi4 2hL0VaFpV4SFLXu1Ar41xwDC67FkxyPEVfPtu651ms7OVRstzqwwjVxq1GIEYxCcza8y ywiBuZ96eUkW6s8/s7oXg+Dh502vlF8HdAKQTmg37snyyFL/v551Q6+phmZLJG3Gchl2 6gug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="Ovsw61+/"; 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 n18-20020a17090ade9200b002471e305866si11722041pjv.35.2023.04.17.13.46.33; Mon, 17 Apr 2023 13:46:48 -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="Ovsw61+/"; 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 S229870AbjDQUnm (ORCPT + 99 others); Mon, 17 Apr 2023 16:43:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33694 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229521AbjDQUnl (ORCPT ); Mon, 17 Apr 2023 16:43:41 -0400 Received: from mail-pg1-x52f.google.com (mail-pg1-x52f.google.com [IPv6:2607:f8b0:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44EC4422E; Mon, 17 Apr 2023 13:43:40 -0700 (PDT) Received: by mail-pg1-x52f.google.com with SMTP id 41be03b00d2f7-5144a9c11c7so2018571a12.2; Mon, 17 Apr 2023 13:43:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681764220; x=1684356220; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=0D8fVQxMh2FytECOWBOGS25wxqSLBJ+NNK2BQrzIi0o=; b=Ovsw61+/H1VzeZJwEvaeiN2rtY9+4CGQ97C3CXw57wyz4X3sGBZSw4h/rpIFulq7nn HE9XwCw79oVevtF5Ckuw+PvXxdZ6QI1fus7xzyW/+6kfXOqNl8ltuKpZr3h2eHM8ESyF NpcC52hW0bk5GrYGbuIX07KdMIsJ/N84j+SzdOyqS6EHjX1OF3QffdlBovpLUI9hpqbT OZJppBBbR40xKayueq3IPwdEg3DgDyzCSQXCoJrvR39xueqfrsynhIFlZxrDam4Cv3iz +ZsC8D0yhSHT7ETYy9GhWzOPulqpr1T985vZfikHihLdR4XQl2KeDUWF21mhG3c43g2+ BwUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681764220; x=1684356220; 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=0D8fVQxMh2FytECOWBOGS25wxqSLBJ+NNK2BQrzIi0o=; b=QjrUewghmZ9ATFHjpyDtJKsZokwW8uVNEH1yKnGl38NGVG0qtrxykZ1p/Ok+O7B92K tnxemKHCaSK2qm7rpZNAFXEcmTBBDwRkcKLdy3drMbEEdAz5XubSj2L5Md60n/62MNiJ u2RyWCs/p9I35E1fL3WZzcXECUY4+jTU9J/bfpKcN6iSqgeCVkRtZuo5csN82epZ6Cay r8bahsgF+3K8OVl/uiDDGoXTTrVBkBt7S1v+u0f0C0Fn41wLx5XLayXimyj71ts+NxGd kZOSH1HVneqQvzk+OkBPUWy2nKB+T1N5IYm0aBEq18ELQY/wH39lrG+gbyqlOOcOp5V9 3Xdg== X-Gm-Message-State: AAQBX9e3Mjv1i3a6fNAmWzWJykT2UAG2ey34kWNOJf369MylZv/cb1al MFeDIXZ/lscFy/KLwCDQ0kmCxl3172WvtA== X-Received: by 2002:a05:6a00:890:b0:63a:fae3:9890 with SMTP id q16-20020a056a00089000b0063afae39890mr22888001pfj.24.1681764219582; Mon, 17 Apr 2023 13:43:39 -0700 (PDT) Received: from localhost.localdomain ([2402:e280:218d:82:ae97:7cb6:b12a:54f5]) by smtp.gmail.com with ESMTPSA id a2-20020aa78642000000b00632bb373949sm7956126pfo.158.2023.04.17.13.43.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Apr 2023 13:43:39 -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: wm8728: Convert to dtschema Date: Mon, 17 Apr 2023 20:43:23 +0000 Message-Id: <20230417204323.137681-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 WM8728 audio CODEC bindings to DT schema Signed-off-by: Saalim Quadri --- .../devicetree/bindings/sound/wlf,wm8728.yaml | 40 +++++++++++++++++++ .../devicetree/bindings/sound/wm8728.txt | 18 --------- 2 files changed, 40 insertions(+), 18 deletions(-) create mode 100644 Documentation/devicetree/bindings/sound/wlf,wm8728.yaml delete mode 100644 Documentation/devicetree/bindings/sound/wm8728.txt diff --git a/Documentation/devicetree/bindings/sound/wlf,wm8728.yaml b/Documentation/devicetree/bindings/sound/wlf,wm8728.yaml new file mode 100644 index 000000000000..fc89475a051e --- /dev/null +++ b/Documentation/devicetree/bindings/sound/wlf,wm8728.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,wm8728.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: WM8728 audio CODEC + +maintainers: + - patches@opensource.cirrus.com + +allOf: + - $ref: dai-common.yaml# + +properties: + compatible: + const: wlf,wm8728 + + 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,wm8728"; + reg = <0x1a>; + }; + }; diff --git a/Documentation/devicetree/bindings/sound/wm8728.txt b/Documentation/devicetree/bindings/sound/wm8728.txt deleted file mode 100644 index a3608b4c78b9..000000000000 --- a/Documentation/devicetree/bindings/sound/wm8728.txt +++ /dev/null @@ -1,18 +0,0 @@ -WM8728 audio CODEC - -This device supports both I2C and SPI (configured with pin strapping -on the board). - -Required properties: - - - compatible : "wlf,wm8728" - - - reg : the I2C address of the device for I2C, the chip select - number for SPI. - -Example: - -wm8728: codec@1a { - compatible = "wlf,wm8728"; - reg = <0x1a>; -}; -- 2.40.0