From patchwork Mon Jan 13 06:35:13 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: jiebing chen via B4 Relay X-Patchwork-Id: 13936773 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C47F4E7719F for ; Mon, 13 Jan 2025 06:38:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Reply-To:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To: References:Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version: Subject:Date:From:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=0exwpohIbxlA1kiB9svEmn/99JDLrfbPKqGr/fEO7qI=; b=MW2f1041UGPaEOfqFLxXutS0j5 StaMHxqHnG8HdcD8eYtSU3gaOUXMvE1+fECVyHx1U3fTyIo2NKd0kW+KsPt+2rPzk76N+Mp67KtI1 ktIofPvFaqCBhsp5Uvuf7EhVgJSFzoDqFEMy/4iumG0ncKTXR1bSpPMM55HOQU8oiMyZGtQwA1gUn 8rL8SLognubmWT2yj/DROcLY1tn6KouxKAMJ1cytsfJ6VXwjRMl3ggvSRo7fhOEThVgSdbLmqsncD LL7OyBKYtxOlU/hoBLZVJQSRkfbCbBsA9ETUhPq1Eu4XE2x5OQoxKvwRvLISdD+/G4rwgDIgH7aQy 8hHT0IHA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tXE5a-000000049MM-2w8p; Mon, 13 Jan 2025 06:38:18 +0000 Received: from nyc.source.kernel.org ([2604:1380:45d1:ec00::3]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tXE39-000000048zz-3Khl; Mon, 13 Jan 2025 06:35:49 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by nyc.source.kernel.org (Postfix) with ESMTP id 47CB2A400CC; Mon, 13 Jan 2025 06:33:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 2794CC4CEE3; Mon, 13 Jan 2025 06:35:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1736750146; bh=TVWgIhv7jNPBn03yzeSSA6nU+Yg1gSNtcBJ4IGCNeJw=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=d1f3cbF5Jlts0cA079nixdITOu2A6yJOvh1HemRh4Qk3aHbyn+Bli3MTQT5YclCZM 6FOTMrYRk5KMUUGIYh7begdpW8Z6qEP5praTmx45aT5XQUOzoi81bYzlzRZLAIe07R zvAbCnOj6LhIWGLSAq4F8e3op8zFilpUAXstcJKON0kRopovUb9UtIHPbw+X+M61IY RGy84gcPDr//LNRi3b2vmyOIn4A60rdG/ol+U1JCYtckrFISiri9KIYbfxk/naoJxB dkmRuKaKvvx/ps14MfyueHFNh9jgMrZF4ZVnirlfjCMWdac9d8nbZYfIY/aZLqsNfz 1su8mPzOaJVTw== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 11338C02181; Mon, 13 Jan 2025 06:35:46 +0000 (UTC) From: jiebing chen via B4 Relay Date: Mon, 13 Jan 2025 14:35:13 +0800 Subject: [PATCH 1/3] ASoC: dt-bindings: Add Amlogic S4 audio MIME-Version: 1.0 Message-Id: <20250113-audio_drvier-v1-1-8c14770f38a0@amlogic.com> References: <20250113-audio_drvier-v1-0-8c14770f38a0@amlogic.com> In-Reply-To: <20250113-audio_drvier-v1-0-8c14770f38a0@amlogic.com> To: Jerome Brunet , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jaroslav Kysela , Takashi Iwai , Neil Armstrong , Kevin Hilman , Martin Blumenstingl Cc: linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, jiebing chen X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1736750144; l=2813; i=jiebing.chen@amlogic.com; s=20250110; h=from:subject:message-id; bh=WCHwNizSKV+MVm8cr+tvi7sYlTiE07e5O4lnJdR4l0s=; b=EAQ/sWZRwRHDES9kXCR4bRpzb5k5JJQvE7U+C4aMeBUpmUb95W8OSeWgevMGcsLYQkNFO64Yf zYgk09Bs42sDcegEYaRYDt0ObX2B+i8IhDGiH0cY7qebfgvrr4m5mpA X-Developer-Key: i=jiebing.chen@amlogic.com; a=ed25519; pk=6rFvvF45A84pLNRy03hfUHeROxHCnZ+1KAGw/DoqKic= X-Endpoint-Received: by B4 Relay for jiebing.chen@amlogic.com/20250110 with auth_id=316 X-Original-From: jiebing chen X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250112_223547_963072_F680DADF X-CRM114-Status: GOOD ( 10.39 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: jiebing.chen@amlogic.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: jiebing chen Add documentation describing the Amlogic S4 TDM output pad and toacodec. Signed-off-by: jiebing chen --- .../bindings/sound/amlogic,s4-tdmout-pad.yaml | 36 ++++++++++++++++++ .../bindings/sound/amlogic,s4-tocodec.yaml | 44 ++++++++++++++++++++++ 2 files changed, 80 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/amlogic,s4-tdmout-pad.yaml b/Documentation/devicetree/bindings/sound/amlogic,s4-tdmout-pad.yaml new file mode 100644 index 0000000000000000000000000000000000000000..52c945e63fb277c92149fad7abd69355f5c9fc9d --- /dev/null +++ b/Documentation/devicetree/bindings/sound/amlogic,s4-tdmout-pad.yaml @@ -0,0 +1,36 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +# Copyright (C) 2024 Amlogic, Inc. All rights reserved +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/amlogic,s4-tdmout-pad.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Amlogic TDM Internal PAD + +maintainers: + - Jiebing Chen + +allOf: + - $ref: dai-common.yaml# + +properties: + compatible: + items: + - const: amlogic,s4-tdmout-pad + reg: + maxItems: 1 + + sound-name-prefix: true + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + audio-controller@e58 { + compatible = "amlogic,s4-tdmout-pad"; + reg = <0xe58 0x28>; + }; diff --git a/Documentation/devicetree/bindings/sound/amlogic,s4-tocodec.yaml b/Documentation/devicetree/bindings/sound/amlogic,s4-tocodec.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a4d7388c0e48095b4aea0530c7feafcaf066b063 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/amlogic,s4-tocodec.yaml @@ -0,0 +1,44 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +# Copyright (C) 2024 Amlogic, Inc. All rights reserved +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/amlogic,s4-tocodec.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Amlogic S4 Audio Tocodec Control + +maintainers: + - Jiebing Chen + +allOf: + - $ref: dai-common.yaml# + +properties: + compatible: + items: + - const: amlogic,s4-tocodec + + reg: + maxItems: 1 + + resets: + maxItems: 1 + + sound-name-prefix: true + +required: + - compatible + - reg + - resets + +additionalProperties: false + +examples: + - | + #include + audio-controller@740 { + compatible = "amlogic,s4-tocodec"; + reg = <0x0 0x740 0x0 0x4>; + sound-name-prefix = "TOACODEC"; + resets = <&clkc_audio AUD_RESET_TOACODEC>; + };