From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E29B836B04E for ; Fri, 31 Jul 2026 06:43:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785480226; cv=none; b=h4p8pBkuRZyx5PuiUK+3wxU1/n+L2ypYSm60xTjnlcaeSXFLzkxtgrJwlLY/MDZlm+jFIdZVbXhkjRyQZXMJ5ikJukbTGk7EVsc8GyyVFgVScl6AM/Qsot/mEnctLIDjwMp4OIWAuftVbjT/QUDxQXOCZl8GiJH4XUN+VYYIsOA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785480226; c=relaxed/simple; bh=nlK0PA7MW7EkEIL9JVw3V88axZ5KuKGuZx3UqZD1fBQ=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ktR8tfUfHUSvXNPVLsGfddS6PLDUyGHGEaXCP+mo/eM4OHP8J3j2bc/fJMECE3kJPgMGHh8/ln7YTauHQjrYocUTng7HjRr0ZFyrSo2IHlAmUcNQEgneqhbhNMU9TH863TTmKx3LiqldKkx2M/vsDZRMgBALW+K4ZqTIS30Pod0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=DYpQAtIn; arc=none smtp.client-ip=209.85.221.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="DYpQAtIn" Received: by mail-wr1-f43.google.com with SMTP id ffacd0b85a97d-47c6e9a694bso333321f8f.1 for ; Thu, 30 Jul 2026 23:43:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1785480223; x=1786085023; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=IgnUpwnV1t4cwN6jU5Y16Qf71IuC1i/l86Q5fHMRYQY=; b=DYpQAtIn1N6AmERS8cZaz7GWd/7KzSB1RHR4XxdhQ56Wso779yP7ni4Bd7DVgqqA7g U7nMi7XjFg7jcXanQb4JquVz/NU+8xXAYo4g77TyN9wsFA2QrftjweGcBJhybPrtaN2E I+bOVzR3jZs7e8YgBAM7mYx1ydbaoDFSq3mInPZNXrNKSmtwz+e2vo0h1ASINUTF9ZYm v4g9jVcH1M5/5a4WsWZN90iYPseGzkzYy/7LnRVN70iN6pZenp/IA1bP6KPXAHSsH+5U 5LnFAGwrmLmE0fyB2Ly5CvEkyPthsnPS+lj+3cQ0avbEKqAf+G9eG/Av4Q6k72soJMLl F1nQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785480223; x=1786085023; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=IgnUpwnV1t4cwN6jU5Y16Qf71IuC1i/l86Q5fHMRYQY=; b=dDaNvjBhyueN9QK2aWtdmL+7xEButBEdpQTT7X6G8x3sIiCB5sxgLeg/Pgy3C73+vM Ug8fmhnj3msItBnD0u+CxORwsOSsEGtffOLZtDx8tkhwKzaktBtgp9oK1gsNI8REUJYe LifOAkLCNTQpppBi4SMm6UIzeSVe/kOWYTV35b2RD7Kmjg8lfAafdi9J5oe6nAjT5VB+ uWW6pcr3lDPYtfMlPvYZkkzvu8v4dG0Xamzvt/CNKhzSiouLbYL1rmm3Y4DrXMbOj9S+ pIbxMSj66vQLfMuYG9KVjp0tw5ar756WdeTA1wgdd1DBF0C8HtDifD22Awkb0bTusq5h 4l6g== X-Forwarded-Encrypted: i=1; AHgh+RodpKusFj7isyU5+I8W0fv+Q3vjCO4yu1wNggLjRvxmBGqXEDAYlCwuf9sb51uiHAjj8si2im7UHG5csFE=@vger.kernel.org X-Gm-Message-State: AOJu0Yx96gQvNfc7SWDQ4YSLcFALVA8tsFQ0giYGERcEVe4E5ND07F9p dVEC2vdz6+z3Ud9lsPNHKHXggTo/0LQaAP+Ty0gC1UaOJu+DVRfAdIf9 X-Gm-Gg: AR+sD11bDw9WyvoFot3vKFZcJiW7frb6plHFVLh9jPCZiU6cp2flJQPIP7Ytk+jV2Ta Oor3Wv+FXcI7ejto9ZOAkgWcfeaGMyxpTlDTF0WsQesmgqRzETzkUaMUwIr2d2wPk/SXUOmfDoe DnchHw56vE/Zq/vKOEAXHciV0cg8hR8txw1gTZRfiluCvm1tbiafyPa3ui7fLBXoXidacGmB1MT 26TGftOzIwuvUBZXUO+TQPnQNllsQ+ATRuRkvXqMx5y0fGnP60btvap6rtQ7DvUrJvjaFRqFyvb cA5tWfOGneAIG6KhsV/hjT4RuvQgLjT4OwjwBNldnJXWs5DfDohsBfQ5Dz5Fl6vypzatY8RLXOm Orj5MArbe4xHI7/SVwfzLkileBDVhv0PhzKfdF3YuAnEg2NFEgmDtLz3mTQi7/p9KB45rgihxr0 KMRpbuiTO9FCFOaoOs6D+efdnyK+Gf1jXJSvA6EEFh4Uorn372pMDiTPHReuTXLplNpkBhPdGwN jpwnvB4ukZyK3zBR1nZJ13XMQTW58oJpaLb5vD2tOD6O095btUJcw== X-Received: by 2002:a5d:5f48:0:b0:47f:93d8:f4c6 with SMTP id ffacd0b85a97d-47fd2b716dbmr1962060f8f.59.1785480223099; Thu, 30 Jul 2026 23:43:43 -0700 (PDT) Received: from Ansuel-XPS24.localdomain (host-87-11-254-126.retail.telecomitalia.it. [87.11.254.126]) by smtp.googlemail.com with ESMTPSA id ffacd0b85a97d-47fd41cfdc6sm1372488f8f.8.2026.07.30.23.43.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Jul 2026 23:43:42 -0700 (PDT) From: Christian Marangi To: Christian Marangi , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jaroslav Kysela , Takashi Iwai , Matthias Brugger , AngeloGioacchino Del Regno , Philipp Zabel , Cyril Chao , Darren Ye , Daniel Golle , Rosen Penev , bui duc phuc , linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH v4 2/4] ASoC: dt-bindings: Add Airoha AN7581 AFE with WM8960 Codec schema Date: Fri, 31 Jul 2026 08:43:22 +0200 Message-ID: <20260731064326.2284228-3-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260731064326.2284228-1-ansuelsmth@gmail.com> References: <20260731064326.2284228-1-ansuelsmth@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add DT schema for Airoha AN7581 Sound Card with the specific WM8960 i2c Codec and AFE as platform driver. This gives example on how to define and connect the AFE driver with the WM8960 for full functionality. Signed-off-by: Christian Marangi --- .../bindings/sound/airoha,an7581-wm8960.yaml | 71 +++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/airoha,an7581-wm8960.yaml diff --git a/Documentation/devicetree/bindings/sound/airoha,an7581-wm8960.yaml b/Documentation/devicetree/bindings/sound/airoha,an7581-wm8960.yaml new file mode 100644 index 000000000000..8886fbb6b43c --- /dev/null +++ b/Documentation/devicetree/bindings/sound/airoha,an7581-wm8960.yaml @@ -0,0 +1,71 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/airoha,an7581-wm8960.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Airoha AN7581 sound card with WM8960 codec + +maintainers: + - Christian Marangi + +allOf: + - $ref: sound-card-common.yaml# + +properties: + compatible: + const: airoha,an7581-wm8960-sound + + platform: + type: object + + additionalProperties: false + + properties: + sound-dai: + items: + - description: The phandle of AN7581 platform. + + required: + - sound-dai + + codec: + type: object + + additionalProperties: false + + properties: + sound-dai: + items: + - description: The phandle of WM8960 i2c codec. + + required: + - sound-dai + +required: + - compatible + - audio-routing + - platform + - codec + +unevaluatedProperties: false + +examples: + - | + sound { + compatible = "airoha,an7581-wm8960-sound"; + model = "an7581-wm8960"; + audio-routing = + "Headphone", "HP_L", + "Headphone", "HP_R", + "LINPUT1", "AMIC", + "RINPUT1", "AMIC"; + + platform { + sound-dai = <&afe>; + }; + + codec { + sound-dai = <&wm8960>; + }; + }; -- 2.53.0