From nobody Fri Sep 12 08:35:25 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C79FFC61DA4 for ; Sat, 11 Feb 2023 13:48:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229695AbjBKNsa (ORCPT ); Sat, 11 Feb 2023 08:48:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54000 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229463AbjBKNs2 (ORCPT ); Sat, 11 Feb 2023 08:48:28 -0500 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 19AD928841 for ; Sat, 11 Feb 2023 05:48:07 -0800 (PST) Received: by mail-wm1-x333.google.com with SMTP id m16-20020a05600c3b1000b003dc4050c94aso5952216wms.4 for ; Sat, 11 Feb 2023 05:48:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=FPN1fIKNwenCr+g17limoc+6SEvzIeR24uuY13yy6Ts=; b=bkyse87jJ+x659elj3r0wDAD5+kWKv9NU4FubQREBpkpAkiuh6TyEwWJPXzxNVYodr YzD++4b/g95XW1ajFyB89vp12q+CWeoLCSMbMeonYl/JlMx6KuRKavDObNxSl9GnKD1s Cs7qQhxjycAy1+3vWQ78vshLP77gvoSczzUHJfy+raskrEN+TOZfokwnWyFOnJxA+SFx q2GsBuY7s6Zqbx3/n68KvoF7gk2NIOksBxDMBp2pWLuo6+7MVN00ErbASqQ9u2l114tU Xw4ZN/kTFT6oWAKq7XeN/9O0W+9n15whbe1lbAigXbY0X6ROcAzx5/SBqvxD1KtF52jl 9frA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=FPN1fIKNwenCr+g17limoc+6SEvzIeR24uuY13yy6Ts=; b=RuocGqXEQsbwlcTr8XY/rpyccRwNj177DcNTmtIqoebM7B4Hvy+7NWHANNUUOWLhH8 SpwiP78TEXdwgzMO3wRM0jAQ5JVD7vHWXwNqbrgkJIrbmaCNGzJMw8CFKJlMjSl001Gi 5gNBAVDmqo3XGSHObk3QKIN2KnJm7DrbTn9w2uNDYY0oxUs3fVeu7oyurC/BbiSOwKrX j56cwGKXsnaPd7ZHsPePOLyTQSo1kozKRiMfzc6ZBjk89DqbZsFxMISToSNjS5jtvVi+ 1RDXuT+6rPOYyB0Ze+MS0UsPl6jWnn35dfp2os9zUf3KZw8KwojGY6ABw5Cb/TnJ6EUk n0gg== X-Gm-Message-State: AO0yUKVOtLTs6iiOznI2JOiRGhONcw+Kb28WY8/pEfI/EsjnBubhoCIU s2MJpAGNYlttDv+xw5efrhbAfA== X-Google-Smtp-Source: AK7set9hAdDp/5L04rWBd+pLPbleynZB6ORfeOlNet5AwXo1WxJRr5lGolL4A1cLdRRm9x7g53qNaA== X-Received: by 2002:a05:600c:1684:b0:3d0:761b:f86 with SMTP id k4-20020a05600c168400b003d0761b0f86mr15004606wmn.28.1676123278201; Sat, 11 Feb 2023 05:47:58 -0800 (PST) Received: from krzk-bin.. ([178.197.216.144]) by smtp.gmail.com with ESMTPSA id p24-20020a05600c1d9800b003dd1bd0b915sm11186536wms.22.2023.02.11.05.47.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Feb 2023 05:47:57 -0800 (PST) From: Krzysztof Kozlowski To: Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH] ASoC: dt-bindings: maxim,max98095: Convert to dtschema Date: Sat, 11 Feb 2023 14:47:55 +0100 Message-Id: <20230211134755.86061-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Convert the Maxim Integrated MAX98095 audio codec bindings to DT schema. Add missing sound-dai-cells during conversion. Signed-off-by: Krzysztof Kozlowski --- .../devicetree/bindings/sound/max98095.txt | 22 -------- .../bindings/sound/maxim,max98095.yaml | 54 +++++++++++++++++++ 2 files changed, 54 insertions(+), 22 deletions(-) delete mode 100644 Documentation/devicetree/bindings/sound/max98095.txt create mode 100644 Documentation/devicetree/bindings/sound/maxim,max98095.= yaml diff --git a/Documentation/devicetree/bindings/sound/max98095.txt b/Documen= tation/devicetree/bindings/sound/max98095.txt deleted file mode 100644 index 318a4c82f17f..000000000000 --- a/Documentation/devicetree/bindings/sound/max98095.txt +++ /dev/null @@ -1,22 +0,0 @@ -MAX98095 audio CODEC - -This device supports I2C only. - -Required properties: - -- compatible : "maxim,max98095". - -- reg : The I2C address of the device. - -Optional properties: - -- clocks: The phandle of the master clock to the CODEC - -- clock-names: Should be "mclk" - -Example: - -max98095: codec@11 { - compatible =3D "maxim,max98095"; - reg =3D <0x11>; -}; diff --git a/Documentation/devicetree/bindings/sound/maxim,max98095.yaml b/= Documentation/devicetree/bindings/sound/maxim,max98095.yaml new file mode 100644 index 000000000000..77544a9e1587 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/maxim,max98095.yaml @@ -0,0 +1,54 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/maxim,max98095.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Maxim Integrated MAX98095 audio codec + +maintainers: + - Krzysztof Kozlowski + +allOf: + - $ref: dai-common.yaml# + +properties: + compatible: + enum: + - maxim,max98095 + + reg: + maxItems: 1 + + clocks: + items: + - description: master clock + + clock-names: + items: + - const: mclk + + '#sound-dai-cells': + const: 1 + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + #include + + i2c { + #address-cells =3D <1>; + #size-cells =3D <0>; + + audio-codec@11 { + compatible =3D "maxim,max98095"; + reg =3D <0x11>; + clocks =3D <&i2s0 0>; + clock-names =3D "mclk"; + }; + }; --=20 2.34.1