Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp1203458rwl; Thu, 10 Aug 2023 07:54:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGsblpIpIylxygCqvBHr6VI80Y2UnhEj5on8eqjC56IlEY8HK26FimjdTCggJkImngSn+Co X-Received: by 2002:a17:906:49:b0:99c:c8ec:bd52 with SMTP id 9-20020a170906004900b0099cc8ecbd52mr2700651ejg.69.1691679259429; Thu, 10 Aug 2023 07:54:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691679259; cv=none; d=google.com; s=arc-20160816; b=meNy4KYfh0PUN6zdOvtJYp9LhFlnf1e3WFxX2fE/Rm7+65XxoFl0wQiWWucHkA2Vqk FZ+WmXFV24rFVOj8D7EFb9MeqYWNJ4zLHhCKPQb3Wsfig3DsjiDkUdvp+ZJ5MULgpCyI BTL6yVwVteEDsXcSuSJaJRoNLcan/F0B39ZI2jW0BwJHp+mPJSk/hIKWxMWqeSFA/fVz 0Wx/ZVKmduxuugTi+qGM7uNFbOqlQiDvDXzKZezayNFxvjCHEX4z1hSSZQvbJxc+lJH3 jnCRCBXLFKSlV8iMu5rKzpVjhqXCpdanlcvFG8eezKvmoSGSEue/BKIhVWphV1qk5E+z JGug== 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=aW4MnkZXDOajNmrXYpt6GNCJxqJykJSzBGG0EXFMA8E=; fh=PIEp9tWcFKDBmmQIKKfSj/hNIg9Hm2k+mn604/7Z4Po=; b=DRQt4niTeqbVSMJcC2t2zWGh7OFq8cpW8CDbVj4Fa6+XgTxup0dQ/OoFUqbIOS0R73 Ze/qQA7ZFMaKacwdly3HBWoq4gYV8NktEljUO/k43kZIsGDpDB4Csfs7BUL23gYrOKvC IefWIhBY/5eeJ8Wr8L07kfgBpPva15neexWxcOaMX4GGLdBLM5uQ5f+NwPIDrN2uL/eB t3VwEGB+96syq38TV4blHrVBVUkHNhGAM+p/Ol2E68SvP3s8eKV2/V7AqCMnhnOLO5zV icNVRFqySRWhBvhgPzvqu2RqPSwysfKYr/4WpLQllirFHxpRBe3CpCL/DAi/FjWSF7Z3 +Yag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=TlxqIOQm; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i18-20020a1709061cd200b00997bd42d213si1516313ejh.165.2023.08.10.07.53.53; Thu, 10 Aug 2023 07:54:19 -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=@collabora.com header.s=mail header.b=TlxqIOQm; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233555AbjHJNgV (ORCPT + 99 others); Thu, 10 Aug 2023 09:36:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232730AbjHJNgU (ORCPT ); Thu, 10 Aug 2023 09:36:20 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07B622106 for ; Thu, 10 Aug 2023 06:36:18 -0700 (PDT) Received: from eugen-station.. (unknown [82.76.24.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: ehristev) by madras.collabora.co.uk (Postfix) with ESMTPSA id B241B6607225; Thu, 10 Aug 2023 14:36:16 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1691674577; bh=FZNpea/iwGbxvzCEyLfqqXbsIddKAIFuEpzLsMyHdHA=; h=From:To:Cc:Subject:Date:From; b=TlxqIOQm3c85cQpJVwAvVXbI0l3QpW2ur0Lqg5PTGOGge1W9lIHE38YuRRelM69Qp NIX1BNE/oJhBbXykkrpkNoVM0J2DqpqetVag5+6uO/6P3IPnVNQKktRjgDoG4gD79W r3nItD5oR4SMmkazxMnrGMkvfh8G9++UBLvwb3rPnaVmD1NUyTcRIyZON/qBHj9M1i 7gDMv3lAKj18yZPALdR0F9rcyR6iVTTpvSIBlmsPRFXb22KomU32a56i0+aKG8l/uO /wlKMZs+iydxAstIyI7AGNcP+CgsYQEcyYFhSVpgn1RVnNXUSpolxh4yyr5wvbo7b8 78WtIgJnupCmw== From: Eugen Hristev To: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org Cc: matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, kernel@collabora.com, Eugen Hristev Subject: [PATCH] dt-bindings: arm: mediatek: convert audsys to yaml Date: Thu, 10 Aug 2023 16:36:02 +0300 Message-Id: <20230810133602.48024-1-eugen.hristev@collabora.com> X-Mailer: git-send-email 2.34.1 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,RCVD_IN_DNSWL_BLOCKED, 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 Convert the mediatek,audsys binding to YAML. Signed-off-by: Eugen Hristev --- Ref to /schemas/sound/mt2701-afe-pcm.yaml added as informative only because that schema has not been converted yet .../bindings/arm/mediatek/mediatek,audsys.txt | 39 ----------- .../arm/mediatek/mediatek,audsys.yaml | 66 +++++++++++++++++++ 2 files changed, 66 insertions(+), 39 deletions(-) delete mode 100644 Documentation/devicetree/bindings/arm/mediatek/mediatek,audsys.txt create mode 100644 Documentation/devicetree/bindings/arm/mediatek/mediatek,audsys.yaml diff --git a/Documentation/devicetree/bindings/arm/mediatek/mediatek,audsys.txt b/Documentation/devicetree/bindings/arm/mediatek/mediatek,audsys.txt deleted file mode 100644 index 699776be1dd3..000000000000 --- a/Documentation/devicetree/bindings/arm/mediatek/mediatek,audsys.txt +++ /dev/null @@ -1,39 +0,0 @@ -MediaTek AUDSYS controller -============================ - -The MediaTek AUDSYS controller provides various clocks to the system. - -Required Properties: - -- compatible: Should be one of: - - "mediatek,mt2701-audsys", "syscon" - - "mediatek,mt6765-audsys", "syscon" - - "mediatek,mt6779-audio", "syscon" - - "mediatek,mt7622-audsys", "syscon" - - "mediatek,mt7623-audsys", "mediatek,mt2701-audsys", "syscon" - - "mediatek,mt8167-audiosys", "syscon" - - "mediatek,mt8183-audiosys", "syscon" - - "mediatek,mt8192-audsys", "syscon" - - "mediatek,mt8516-audsys", "syscon" -- #clock-cells: Must be 1 - -The AUDSYS controller uses the common clk binding from -Documentation/devicetree/bindings/clock/clock-bindings.txt -The available clocks are defined in dt-bindings/clock/mt*-clk.h. - -Required sub-nodes: -------- -For common binding part and usage, refer to -../sonud/mt2701-afe-pcm.txt. - -Example: - - audsys: clock-controller@11220000 { - compatible = "mediatek,mt7622-audsys", "syscon"; - reg = <0 0x11220000 0 0x2000>; - #clock-cells = <1>; - - afe: audio-controller { - ... - }; - }; diff --git a/Documentation/devicetree/bindings/arm/mediatek/mediatek,audsys.yaml b/Documentation/devicetree/bindings/arm/mediatek/mediatek,audsys.yaml new file mode 100644 index 000000000000..b879a3a060da --- /dev/null +++ b/Documentation/devicetree/bindings/arm/mediatek/mediatek,audsys.yaml @@ -0,0 +1,66 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/arm/mediatek/mediatek,audsys.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek AUDSYS controller + +maintainers: + - Eugen Hristev + +description: + The MediaTek AUDSYS controller provides various clocks to the system. + +properties: + compatible: + oneOf: + - items: + - enum: + - mediatek,mt2701-audsys + - mediatek,mt6765-audsys + - mediatek,mt6779-audsys + - mediatek,mt7622-audsys + - mediatek,mt8167-audsys + - mediatek,mt8173-audsys + - mediatek,mt8183-audsys + - mediatek,mt8186-audsys + - mediatek,mt8192-audsys + - mediatek,mt8516-audsys + - const: syscon + - items: + # Special case for mt7623 for backward compatibility + - const: mediatek,mt7623-audsys + - const: mediatek,mt2701-audsys + - const: syscon + + reg: + maxItems: 1 + + '#clock-cells': + const: 1 + + audio-controller: + # $ref: /schemas/sound/mt2701-afe-pcm.yaml# + type: object + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + soc { + #address-cells = <2>; + #size-cells = <2>; + audsys: clock-controller@11220000 { + compatible = "mediatek,mt7622-audsys", "syscon"; + reg = <0 0x11220000 0 0x2000>; + #clock-cells = <1>; + + audio-controller { + }; + }; + }; -- 2.34.1