Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4953434iob; Mon, 9 May 2022 05:39:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJygtd8pmn6yWW1epb69YUhPTwKJn7pk05vLguEExRPh2uSfvLlwYIiS8jnwZzaKJIWvSHnp X-Received: by 2002:a17:902:d3cb:b0:15b:a002:d80c with SMTP id w11-20020a170902d3cb00b0015ba002d80cmr16072322plb.108.1652099965124; Mon, 09 May 2022 05:39:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652099965; cv=none; d=google.com; s=arc-20160816; b=A1IzdiJ7+SstgTXMF9HPBUjNSQCTDg/eShgRw21Zx6bznOTIqAe52d3XquPOPEn5lE PkH3XsH0Lu0cCTQViIP4xFXQG8BsEhe94olwU7iKZW5kK/gJIBspemUC0jksRG9GUcpC Y8hoXKi9pf4i7PXCzmmBe0ylBQj6yaG2GWZiS8QfndtTGGmOEczHyICQzlZrVU9rX40v hqbXBgJfc2vqU01cG+nd9ABNiQshLbqfhSkc+S2MZab9jNasXaF0VCSfblCaWUjVKE59 3/sK85G/izfiJ7chvnEiVTZaYZO8hS0p+B+HlSH9h7rUXYEk3rKV0KGgzbead5y7TvaR NkGw== 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=42Zy28pg37OAk1vRPr/3wZvq3TQDaK06uRqMNZn/Ujw=; b=mzUDfEd9DYvcGdsyZRlQWn0lp7JSKIFgQfXrcpey91qWq0mQvhIYPvctJ6H5JkYZnA iY5UeN+uZV8Zik1W2s+S9Ka1Ezk/1n+HMqa6ER+SfEjvKoT831lKNlIx/d1AcWbzY5Mv qb4Ns3v/zq8b3lq28h1qBmeTIdPBR2res5v9y86pBM/BPoy6F9YmhUUGUgD1ZXkA6nEb Gv2M1a2/vg1GOn9usuxA+MJ9YYvxdj6qq1r5iZvvX1ZPbtBWhzpt3zfwo27UzkV+/u98 pk/mCqqPe/uOvSXeqEzMjUEBQkNzt7OQ99/DikZUKziKcZV+rqsK9UpXPgT+evoIad7m ngDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@denx.de header.s=phobos-20191101 header.b=sAUQQOYB; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id t2-20020a654082000000b003ab28cd4d18si13885291pgp.391.2022.05.09.05.39.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 05:39:25 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@denx.de header.s=phobos-20191101 header.b=sAUQQOYB; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E771421935B; Mon, 9 May 2022 05:13:51 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234085AbiEIMR2 (ORCPT + 99 others); Mon, 9 May 2022 08:17:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233918AbiEIMR0 (ORCPT ); Mon, 9 May 2022 08:17:26 -0400 Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2EF991EF0A4; Mon, 9 May 2022 05:13:32 -0700 (PDT) Received: from localhost.localdomain (85-222-111-42.dynamic.chello.pl [85.222.111.42]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: lukma@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 97F7083B32; Mon, 9 May 2022 14:13:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1652098410; bh=42Zy28pg37OAk1vRPr/3wZvq3TQDaK06uRqMNZn/Ujw=; h=From:To:Cc:Subject:Date:From; b=sAUQQOYBMJG1CYDfYTpVColDkqwimfIxjAyr+eXrgiMK2/Aw99hTu/nZWGYRJy/GK byHBj1aNhVdPmJGq6Tszs4uF5WuDA1CyPyh2nUJ1yhx1z2X1ebpKPJhdXMhbATRvm3 5cd4vlVOLY76iWLmix4TUNPi3AR7YfYA0eTXOtoX0AgL6l/IW9MVlR3JLXpF0FWtkL LeKHOHX8A/PhfdGxttFnunjrUGMjrxQcinpkGwVBo8bTdQkOO4g3dO/SAoflJDBgjL piCdKfM/c4eOtElJhsHQfAd5hwm7XD3vCHXtB89Ou53HyEoWS/UWcHDQHaN28mtnoT o2lCYw3yyPl0Q== From: Lukasz Majewski To: Liam Girdwood , Mark Brown Cc: linux-kernel@vger.kernel.org, patches@opensource.cirrus.com, Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, alsa-devel@alsa-project.org, Lukasz Majewski Subject: [PATCH 2/2] doc: dts: Add device tree information regarding wm8940 codec Date: Mon, 9 May 2022 14:13:13 +0200 Message-Id: <20220509121313.31216-1-lukma@denx.de> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 This commit provides documentation entry for wm8940 codec. Signed-off-by: Lukasz Majewski --- .../devicetree/bindings/sound/wlf,wm8940.yaml | 57 +++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/wlf,wm8940.yaml diff --git a/Documentation/devicetree/bindings/sound/wlf,wm8940.yaml b/Documentation/devicetree/bindings/sound/wlf,wm8940.yaml new file mode 100644 index 000000000000..8aadcbeed502 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/wlf,wm8940.yaml @@ -0,0 +1,57 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/wlf,wm8940.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Wolfson WM8940 Codec Device Tree Bindings + +maintainers: + - patches@opensource.cirrus.com + +properties: + '#sound-dai-cells': + const: 0 + + compatible: + const: wlf,wm8940 + + reg: + maxItems: 1 + + spi-max-frequency: + maximum: 526000 + +required: + - '#sound-dai-cells' + - compatible + - reg + +additionalProperties: false + +examples: + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + + codec@0 { + #sound-dai-cells = <0>; + compatible = "wlf,wm8940"; + reg = <0>; + spi-max-frequency = <500000>; + }; + }; + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + codec@1a { + #sound-dai-cells = <0>; + compatible = "wlf,wm8940"; + reg = <0x1a>; + }; + }; + +... -- 2.35.1