From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) (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 DE7B936B048 for ; Fri, 31 Jul 2026 06:43:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785480226; cv=none; b=Fz65ViZj2G31iZp6+jgXbcayTqiBqFq6S9hSPUrhX1UqcKYPaGfmf1zGomDjdlUo7IClnMa2nypOpTJ8LPEqEGghVfDqHDzN32bk7ej30D+EiZEj9OD+TouBkTfIlipmcRLEyhbZSPlamLB6efIM57Dwwzdq0MFBKoso//H8GAc= 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.42 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-f42.google.com with SMTP id ffacd0b85a97d-47f71156e1aso294726f8f.3 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=DSKUWvOI/5BJy3XAN40UxKu1RtKCtvaOww8LmMpM5s9GewZRqnHrgmhIsdHQpn+OCH 1+QiFvwTT4GkucknyFHsAleZcx6Ozf8e/V0a0jkeCCXF0oDFrKvUsBYwstYtf8+G22bF tFzTT6kZDuGTwYfaGELOoFlJooG7Bjd4+4criiYbuh/yyspdJc0o9JW9j7bIUpbTcoZl v1K9vyVa8lUSEA/NHIsWb4KorEZFFCDmtrK41Gb9d/EiuW2R6z8aAIJDtzNF6CUuFCw0 JhIuNBifo1pMiBR+Ua82uTacn5FtslBZTm7HPxbSLbjyKObXlGXSFPZiNlxWPdSV+EtY x1Iw== X-Forwarded-Encrypted: i=1; AHgh+Rr1/cq5sbVOnwzWlx3arl3X/W5dwT7X6yFmPNiBy/tbqeexi0EKbz6sgUhockkpUMf6t+rGZwDcOPq2KQ==@vger.kernel.org X-Gm-Message-State: AOJu0YywPyipx3Sx34yEt67TGVj7GyQ9yi3zsB1aPgJVJDSjV8M5lWs/ Rg0IOGODrkluH59ivqTwZV8UUe8E2MNFDcu8YpS2r7vwX7o9QRpQwJXb X-Gm-Gg: AR+sD13uFqclX6XJuhStl8cRMr10gm8l97fOVo9HmujNovih5U1R119bDlUIIS4Ja+g vLqCRpjHvncv6LlXG/pcyMcnPn6LVLd3BMrKGQmDrZ09voY6wVvQfJCBmcEPUFy3Y6xBftwEVYS mFBHZey4ZMi+W4g5OsD66B8b66ftSA8V+iUuHrtaDP4eqZnDGDhT4jPbafqtPudQSKwZ8p8gBxa fbhy4/oBAhXs2XPS6cmCsB1CTIaUZuFc4OlaPIs1tW1nrkAL8BNeq3QAlD06cwWwhgYh0yjZQ+g eUEVVJqoMIxNxKEC00hNu/sJmvyfjfFZBU13hFCM7MyEeILVUvpDe3lj5xEvcwZq/6QLxRh4eB6 KNFn1rEMUVrHUCNM97lW+uZPtcFgJx1IcGpbcpkv5KoaFIZPuRStKyOU1PMg+Zy6EZYI2wvQDA0 +QKhgJ3qhNZNwywQi79OBl1OM2yGEqsiB1x1FDJxp862Ag/xR8f1LKhq9IOEpg+2Ea3L6JXBdgG 7rahwEyR/4MBy7BmfGzbbq4AAN6XvshKH2I0e7iq8WeVK2ubjmbEA== 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-sound@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