From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53]) (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 4C94D30F93D for ; Thu, 20 Nov 2025 23:30:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763681407; cv=none; b=c8xfcjwiUSZbTOfmPZvJFr7iiCIazOX9yZgYMG60vjLEWhUkd3seJLgbxUUTN7iJQ+SOf0nbCYUNb5WIT4l3/4hz+srusWeevnqo9zPjU7pj8uYp4nE7etQPXjI3euV8sK2gcc5fyJgCFR8QzoCPbqOodrOzUeylhgRPcsbqUw4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763681407; c=relaxed/simple; bh=xZAMMTzqv3xW7C+UMRhWcflE3oJn9Xg5Wy7C+qUtd+c=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=aNlX2nLgnxGWm3CmTfbktXFURIXbVPerqvlylT22q2/bIRXhV1kJe1tKw+Y13P7HH3dobeOFMkEbPYI+wtCxY/nI4tJs+EXKaooDaGC8ZFs8te5TZPa5tgJVPZflbJl05cXDiGoBvHCgB73BSDLA6TesgugVzGC7HJxlsgcafuM= 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=OgTVZTDi; arc=none smtp.client-ip=209.85.221.53 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="OgTVZTDi" Received: by mail-wr1-f53.google.com with SMTP id ffacd0b85a97d-42b427cda88so1013298f8f.0 for ; Thu, 20 Nov 2025 15:30:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1763681403; x=1764286203; 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=3+/E1TIhpDRo8RKAqJEHauT5WqKU3CX8xyLt8d/UFSM=; b=OgTVZTDimZJQWNx2ltx++zQPNO7lsRXZ/bwJ1BR5caIRibnHuqR5uAqoeagjfZMxGx F3IAgQ2xrgcrRLTykHgo9y0UoOLjcPUB9t7FFagFzi5NpnP6vnWCiEK7AZZwuZXTdFPZ BK/Mbo5SVMOs7Guw2svtGePTm7tmFu77ICPhqQr4X+WaRlHnjUJHl15AMzEXKVw+SDnK TA2PvuQU5a7YvPACSzL5JbuQFfaJadhApzjYrc8E/svrU5HXgjEIykfXuV2SXSjO0tVg cDjdaMV4QM5GyNrVQrDdhNM7potLi1ZC+dVGF8SEYPT4v83kt9VLgwYIR8XkXOBCfJ6P vqew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763681403; x=1764286203; 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=3+/E1TIhpDRo8RKAqJEHauT5WqKU3CX8xyLt8d/UFSM=; b=gCZy6kdDu9Yb85vSXvcq+dz//kFsHjjsYSUKN+73clOAhhpF/3vlezKw136/ff0I/p Ki7lQXWYiCaWHRbfz72Wn0Tb2ahPuVnOKbrFaqgg/U5/GSK2lADJT05MWJH+usLPSGv8 TByi55w4tkRwZAzGClRxo3LDw6zDcbsRzNTD9Fof+QoczCv+agS2qgYk8B7oUf+wPkO/ SK8/3C2C8jhvetK1X2Cvql96hDBeuMkE6UuPs+/PObbfGOKfWx0j0hiYCoU6A9PNd05Q JsMi97XHmmX0dRarh5LA2B/lqRfjs2EtEoyRDay9lC8guJdG6iNsqL4b5sq7nCTiV20k LVbg== X-Forwarded-Encrypted: i=1; AJvYcCX4QzvH1C0IaLwcJItK+qCVwG1TxxX33Wg7zvwT/LIDW0Ys161ktq+9zztlVR+CqltVUSzMnrjgvYM=@vger.kernel.org X-Gm-Message-State: AOJu0Yzr6x3jj0otpkR6eTeZZZHTOOhOS8+F1nRC0pLGtx0FNAWBEhKQ seuxyUCZF+KtNMzzUsBcXd1+RB5Yds41/58XoYlrwgjY3inLMn/8hmQ0 X-Gm-Gg: ASbGncuHrbCMJsGrM9dsZcivcEXq//pp2vIMIwrNz0LPQuEpdB3M3ItodNMflLTKpIz 4lzzm23kT53G/7XFyvp2eQZBBR5PBP9cUlEsjVp94CRvSq2gFriiTigLruDATPOwtu2nzbNnAMg 0o3u1nNqrMp7pKOeqx9oBR72Y5hNeYdRkzAcyD4HF/uaF0HBVEqFpXsJNuik8PTlcwpZrylwwIH D/88sVoPs4T5DOq2JvDVdjwgSxgwUacylxiJlY9v72K0LGbrW0rc0phGp5rCIgmEaMNjtZUFeO2 DPFCB2aj7PFJP5yC3T/Ll6RXCa5nbe/Vw2D94fewMhaPkRXn5ZVNJ3ZCZdwS6mV4+2GnRE9gMXD uZXiwvPvCicopAi7+WmSoLPJV+2UGQvOM7O6twPHYeTOZTWH4KRI7t6p+ixNCO13oU7JSc7cQdD O9lZzDKR62dkKWqCu4KY8iE64QfSzK0++dQ7vM2PhwQC3mAkfozHk= X-Google-Smtp-Source: AGHT+IHqEb8VCudY5XeW4oLvZSGAjMxNC8ruQ7rhvDVg5aKGaQnnkgzkoE9uKt2k4/hXUDSeMYg4Nw== X-Received: by 2002:a05:6000:420e:b0:426:d5a0:bac8 with SMTP id ffacd0b85a97d-42cc1d19624mr85145f8f.56.1763681403285; Thu, 20 Nov 2025 15:30:03 -0800 (PST) Received: from Ansuel-XPS24 (93-34-90-37.ip49.fastwebnet.it. [93.34.90.37]) by smtp.googlemail.com with ESMTPSA id ffacd0b85a97d-42cb7fb9022sm7776315f8f.36.2025.11.20.15.30.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Nov 2025 15:30:02 -0800 (PST) From: Christian Marangi To: Lorenzo Bianconi , Ray Liu , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jaroslav Kysela , Takashi Iwai , Christian Marangi , Matthias Brugger , AngeloGioacchino Del Regno , Cyril Chao , Arnd Bergmann , Kuninori Morimoto , =?UTF-8?q?N=C3=ADcolas=20F=2E=20R=2E=20A=2E=20Prado?= , linux-arm-kernel@lists.infradead.org, linux-spi@vger.kernel.org, linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: [PATCH 2/3] ASoC: dt-bindings: Add Airoha AN7581 AFE YAML Date: Fri, 21 Nov 2025 00:29:11 +0100 Message-ID: <20251120232913.32532-3-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251120232913.32532-1-ansuelsmth@gmail.com> References: <20251120232913.32532-1-ansuelsmth@gmail.com> Precedence: bulk X-Mailing-List: linux-spi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add documentation for Airoha AN7581 AFE YAML schema. Signed-off-by: Christian Marangi --- .../bindings/sound/airoha,an7581-wm8960.yaml | 67 +++++++++++++++++++ 1 file changed, 67 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..ebeda0876280 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/airoha,an7581-wm8960.yaml @@ -0,0 +1,67 @@ +# 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: + description: The phandle of AN7581 platform. + maxItems: 1 + required: + - sound-dai + + codec: + type: object + additionalProperties: false + properties: + sound-dai: + description: The phandle of wm8960 codec. + maxItems: 1 + required: + - sound-dai + +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.51.0