From patchwork Wed May 12 20:59:26 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= X-Patchwork-Id: 435803 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D17AEC433ED for ; Wed, 12 May 2021 22:04:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id AA59561406 for ; Wed, 12 May 2021 22:04:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230216AbhELWFW (ORCPT ); Wed, 12 May 2021 18:05:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1390224AbhELVFQ (ORCPT ); Wed, 12 May 2021 17:05:16 -0400 Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E27A4C06137A for ; Wed, 12 May 2021 13:59:46 -0700 (PDT) Received: by mail-lj1-x22d.google.com with SMTP id e11so17799081ljn.13 for ; Wed, 12 May 2021 13:59:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Xsfr4WMMESmfUFIa/+uagBjZySC6I2r3NTS5XBjiOu0=; b=GFM0WgsBz2OZT3n7fx8MYPTBJpJd05O11BvZAYTO+YRGxk6hLXOI7XbLAK3nWiQwJL CMAEP6w7XIWfOBn3OTe+ea8vSdwAeAnjGvw9nzIrfXpirHKi7p/I74KAcjm4i7JMPCjw TZEp4g/gcTOuUOMHKB2LVyqdvdGpp18hNfPF1XiD3zO8/6bBSBcRFglvQi85JcsncAY/ utNA/piAU1jc4EPaDqCORGLfIQ1dnKSGoBroHv7R01v65+npQnVNcghyv3Nv/PGzVPeH FoFQgXr16U9ucH1tZlgz/As1LF7xIAb9+6TrlyAHFXrkWDBtQtKU8bpnI4nUZ/FAkrIV yLKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Xsfr4WMMESmfUFIa/+uagBjZySC6I2r3NTS5XBjiOu0=; b=tc7xb8ik85ZbGfDG+glL+rDnIzCsL2YZgSxQuU+eJH8jTooA3SW+v1JViTRKCCtpy0 ONMA1yL65uLRh8I8wWK38WeZtOu8fNMLzueCEADHwXCsPeY0XtAfKAtsWUD3/w99bdnO zgnuk9KBQLXLkbiyTK/PuGCk7GYQLWdYnmCZe57aieKtSZP1q7A8NumkAiMD+a38GGog Dr6wh2VBXYgPvhm0ow7x2IK9J2ZIHWza9Yjb1/Dj51oZAeOFF5mKMLwZhYX65Dfbq6Xn v0wDkg645VW6k2evB2RFyEq49vh+suU+ZwQpQGuy8+/BLcmit79rio6nv6KtxXj2iXpM SAnQ== X-Gm-Message-State: AOAM530FLZkcbGuokgXHIuP8Q3+nAP7Qzia/626IaNj8kfKmgYeRZ5GP Akw2AZL5YjQazRBfzaeBxg/8yYji4G8= X-Google-Smtp-Source: ABdhPJyctN+pf5GRSQyc9GIRaJRJvYOtQoczbpgeuGQYLNJUt/I/0wfOExtqArNfGFU+ydbKl22rdA== X-Received: by 2002:a2e:a44b:: with SMTP id v11mr30820898ljn.14.1620853184890; Wed, 12 May 2021 13:59:44 -0700 (PDT) Received: from localhost.lan (ip-194-187-74-233.konfederacka.maverick.com.pl. [194.187.74.233]) by smtp.gmail.com with ESMTPSA id c22sm142314ljf.36.2021.05.12.13.59.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 May 2021 13:59:44 -0700 (PDT) From: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= To: Liam Girdwood , Mark Brown , Rob Herring , alsa-devel@alsa-project.org Cc: devicetree@vger.kernel.org, =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= Subject: [PATCH] dt-bindings: sound: wm8750: convert to the json-schema Date: Wed, 12 May 2021 22:59:26 +0200 Message-Id: <20210512205926.780-1-zajec5@gmail.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Rafał Miłecki This helps validating DTS files. Signed-off-by: Rafał Miłecki Reviewed-by: Rob Herring --- .../devicetree/bindings/sound/wm8750.txt | 18 -------- .../devicetree/bindings/sound/wm8750.yaml | 42 +++++++++++++++++++ 2 files changed, 42 insertions(+), 18 deletions(-) delete mode 100644 Documentation/devicetree/bindings/sound/wm8750.txt create mode 100644 Documentation/devicetree/bindings/sound/wm8750.yaml diff --git a/Documentation/devicetree/bindings/sound/wm8750.txt b/Documentation/devicetree/bindings/sound/wm8750.txt deleted file mode 100644 index 682f221f6f38..000000000000 --- a/Documentation/devicetree/bindings/sound/wm8750.txt +++ /dev/null @@ -1,18 +0,0 @@ -WM8750 and WM8987 audio CODECs - -These devices support both I2C and SPI (configured with pin strapping -on the board). - -Required properties: - - - compatible : "wlf,wm8750" or "wlf,wm8987" - - - reg : the I2C address of the device for I2C, the chip select - number for SPI. - -Example: - -wm8750: codec@1a { - compatible = "wlf,wm8750"; - reg = <0x1a>; -}; diff --git a/Documentation/devicetree/bindings/sound/wm8750.yaml b/Documentation/devicetree/bindings/sound/wm8750.yaml new file mode 100644 index 000000000000..24246ac7bbdf --- /dev/null +++ b/Documentation/devicetree/bindings/sound/wm8750.yaml @@ -0,0 +1,42 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/wm8750.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: WM8750 and WM8987 audio CODECs + +description: | + These devices support both I2C and SPI (configured with pin strapping + on the board). + +maintainers: + - Mark Brown + +properties: + compatible: + enum: + - wlf,wm8750 + - wlf,wm8987 + + reg: + description: + The I2C address of the device for I2C, the chip select number for SPI + maxItems: 1 + +additionalProperties: false + +required: + - reg + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + codec@1a { + compatible = "wlf,wm8750"; + reg = <0x1a>; + }; + };