From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) (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 B06BF3FF1D6 for ; Thu, 28 May 2026 17:48:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779990539; cv=none; b=oFXO/0bQcPgD/X0Ifw52VRkdPJdeTJdlpQRWUQ206YaARxCaSIXuSOWK6MrkT7qhr2iDQN1mcFclM/y3H8YdHaZsPFr/z7vx5x3iIwxfMdFhdMrW+CCBrgjADXNcGiB+AT0jeBUMEOoyHaE2Rd6jOJzQzZ4/+csh+87+/lWe30s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779990539; c=relaxed/simple; bh=LAEiKGBFn6SOrB641iglxx49Xyy2dHZnkZlRr42e7gY=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=LbwNGBJYsFUa36UXY9YnLPVtafFwuf8tfQny6gnPfYg0zsT4kQTm/TqjPSZAIC1QpxoK6cg3gsti+JBew/sIKzGWDe0W/zXzo3pZne/3yKgqQCzSyVvcEhm7Y6+FjejxHUXsIfLkRSs0zZ4CzK7+w9RIh2Qz3PMJPkfDIdmu7bw= 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=Tsr6V3C3; arc=none smtp.client-ip=209.85.128.48 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="Tsr6V3C3" Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-4891e5b9c1fso113963975e9.2 for ; Thu, 28 May 2026 10:48:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1779990534; x=1780595334; 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; bh=1qXnXLkY1CCgVaXoTscYWjlLp5qZd4EXN61dC6lHCH8=; b=Tsr6V3C3Rpn2GWJtsYDyKzKLxeUZmBhRsMHi4yhA2UoAao4/xAO8knYYh8eQyo6pS/ 7OD2ONLI2KVyrZV9aNZc1jOUOjxaq1eNy2mMLSTKtmXml8XbTdibGWL76VC6UTU7vuop ZCOniod7so1h1NvWbIrkwrxQCMuFjCevVzoLO8Xl3j5tz6XdmtCDpE7CoiyYiaWHsZOB hhF2OBT57yeLl5n29ERZOFaxwH1gn9zThB6mDU7tmPDkOVid4xYj6KZ+1nheQliknslN JZBvidqYSn6McEqrIgK0toYerc9V1aoXcOBKBdMAAoznBSkSxhOvWSroJ+NMEiJSuQ4A CqzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779990534; x=1780595334; 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; bh=1qXnXLkY1CCgVaXoTscYWjlLp5qZd4EXN61dC6lHCH8=; b=CQTzjmp1c+ysDlGjEA5jadwH9EHjWHnCn4bQhfUjvJ7xH+YkOmZjuUQ1f9upwLyohh +gWuMsO99+n698acd52hrsXaRuU92+MFxdMmgkJDWBnwMIcbk7eJkD16xJPy9EQwX/Af kl01N/H/GHdYTFEtMVAQLwtEj0GnrbpvFOwg50IHfoBaIFx/u6qUMU3ytlmZYoWaBCMk fg9hN6Gwk7iQ0QpaLNw6GAYkCMQUw2nwUSIU5zZeOdZUJPqklLpOd6ZwfsMUuRRfthkj DdU5FZCvgXtaiqSIs01VKoWNB1/Oa20piVZ7aYLSQkhBDprxwEV7salnQ/Omxrouf74M 1Tiw== X-Forwarded-Encrypted: i=1; AFNElJ8ObCvJj0as+wSEqgQM068RtSiDEH5u4QlOoZCnopCq5A8SDplJxA4Ghrla+iQ8sAKR1b554gakmp2jwuI=@vger.kernel.org X-Gm-Message-State: AOJu0YydQui/ZalBYiSWazDpSOqoEilhj+kO352pAXPBheZM0YY2nRBa Ju/mitPfzEusURIHcKC2IklrX/UN7xpc6EaLTZb6MGhUBcCXOIAzYfnl X-Gm-Gg: Acq92OGEO0W/JpCCafvauQoIgA6KrSehMAKgZNVGZVb9FIZDW82KFtUJ6JuRm/4xuyq srQgqh4qOUKKVyFz4uqOBQ9VactjEzixn5vgEGH3qtSDWYGEwx9QA8mFoKMzTA4GfQKFayGgtMq A1Z4Ln7RcnyLsPf1XLeO54LttmTYqupIq1jdGspg2CjZJZtvjzr6W1i1ax+DaAzTpbCBWXBlDFv 3vlJWyZuiIQo7SdQn4yulx5YQMKOc8BhhOOqhtCDYg/VmxL+W3V8+3jzRubNGEht2PumEusLzfg ahfjmRTQH/obWCK0N88jl/PxtsQBKLVc3/pBJOjL0bFlSk7f3vEzRJg4RO9e+V8PUVmX65jMqyE seVWnj1ynpMfUWpxZ0uKTZYSY6pOe7LpDtq10QPaJWv68PpVRHIPCNaFmrdOkd5NWvjiSmyCvBd 0NwnIoGTvYYbtmF4Xc0SnWYsXithmzUGTBaesswejeJIH/wON+dX2l8t9TfkgT0ltePeaKYVmVI E5LKb4= X-Received: by 2002:a05:600c:b99:b0:490:4ebc:b80a with SMTP id 5b1f17b1804b1-4904ebcbac7mr432758575e9.11.1779990533962; Thu, 28 May 2026 10:48:53 -0700 (PDT) Received: from Ansuel-XPS24 (host-79-42-252-49.retail.telecomitalia.it. [79.42.252.49]) by smtp.googlemail.com with ESMTPSA id 5b1f17b1804b1-4909235d4e5sm75342625e9.2.2026.05.28.10.48.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 May 2026 10:48:53 -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 , Kuninori Morimoto , Chen-Yu Tsai , 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 v3 2/4] ASoC: dt-bindings: Add Airoha AN7581 AFE with WM8960 Codec schema Date: Thu, 28 May 2026 19:48:30 +0200 Message-ID: <20260528174840.28644-3-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260528174840.28644-1-ansuelsmth@gmail.com> References: <20260528174840.28644-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 YAML schema for Airoha AN7581 AFE with the specific WM8960 i2c Codec. This gives example on how to define and connect the AFE driver with the WM9860 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..b637c294657f --- /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 + + properties: + sound-dai: + items: + - description: The phandle of AN7581 platform. + + required: + - sound-dai + + additionalProperties: false + + codec: + type: object + + properties: + sound-dai: + items: + - description: The phandle of WM8960 i2c codec. + + required: + - sound-dai + + additionalProperties: false + +unevaluatedProperties: false + +required: + - compatible + - audio-routing + - platform + - codec + +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