From patchwork Sat Feb 11 13:47:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 55819 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1500034wrn; Sat, 11 Feb 2023 05:49:33 -0800 (PST) X-Google-Smtp-Source: AK7set8+9IuO2L2PbUGkeolTXDOVgicX22oHNpkJVFB3Thmyyc3OPJYKgcwh5Q1x84hHNZV4BIel X-Received: by 2002:a62:7bd2:0:b0:5a8:4c18:8206 with SMTP id w201-20020a627bd2000000b005a84c188206mr9231702pfc.25.1676123373677; Sat, 11 Feb 2023 05:49:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676123373; cv=none; d=google.com; s=arc-20160816; b=zvs7v63H+L8MQcF0632s8b92cli4NwehcmJHlQQRoZCXIz0+lrvNckHp/C6n1NYPg7 9GMlTo1lGitc1Oud0vkV+Mqu1z0birxpCn8DtijJS3znnzrlCx82M7nO2Oil6HrR9P2U jAS6RGUjeJSqyiOoMQONhFoyt6Hwiwmoi8MUbwuZ18wpnY49xVmLU3Qwpi17cw2Fr2x/ GYBaCC85EZ2Pzbr1YL2U9crAUkoubhlZGsX6rkiOr6oXohgmCeIeAJdBlCuN0E0S3lqs u55xxSAuoUXZfT0a6mtKnWzCyGgNADnm8lMYFcepiAU95j+MPnlIiC4bpDtKncrtD7cL nDmw== 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=FPN1fIKNwenCr+g17limoc+6SEvzIeR24uuY13yy6Ts=; b=GImHTElXwtMWvudUt/xLLv5LOyUowx4LHBGI8fo0LLRMHPdbsdSRmq+Oq5D0xz+vOq OQqXygAPjF4HeQ07NO4vxXL5IZGv9cB2EC86H67+3qKB79EKDBKm/+xG5dZcKHvKaqNu AFzQ2XaFQdH6VDbY1BeoWGil8U93cWJl5oA7s4oFkQbsv7hyT6mUHCX/5t/K0r7i9+64 72mvhPD5dPLAAx6cmV6IDQdEJ90WDaRFgenrSpyFgrUG4mNwqz0jAujSweVb6HXqqMQH f6VdLhC2G6aCwHov0ApDyRtGUg7HLvKuH3HVBs3jUb9qjV+OU7D8KMKKCBWoHoIDkNgs 1pAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bkyse87j; 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=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x7-20020a626307000000b0059392e8e064si6615438pfb.186.2023.02.11.05.49.21; Sat, 11 Feb 2023 05:49:33 -0800 (PST) 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=@linaro.org header.s=google header.b=bkyse87j; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229496AbjBKNsa (ORCPT + 99 others); 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-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 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757542743083595895?= X-GMAIL-MSGID: =?utf-8?q?1757542743083595895?= 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/Documentation/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 = "maxim,max98095"; - reg = <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 = <1>; + #size-cells = <0>; + + audio-codec@11 { + compatible = "maxim,max98095"; + reg = <0x11>; + clocks = <&i2s0 0>; + clock-names = "mclk"; + }; + };