From patchwork Tue Nov 5 09:11:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fei Shao X-Patchwork-Id: 13862702 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 36BA5D1266B for ; Tue, 5 Nov 2024 09:16:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=f+4NwQTv7E4920mh+Y7a29gPk9vmlaHbaiEomCWWFMY=; b=XXg+lyEoqI0ENJ 1sISH6Oo8J53AH55PKVbEIaLfFasfB0Ni3FvqrTHrOhyZReqwv4wiA8QWCTVxSFjkz6/gvApAFpq5 J9TY5CI/sab9nvm/4jWwsUlPD8qFRlGl6XmiGdqtzdPnLuLvumSSoko+SRpY9YR1DzeJhS/Nw4UgM 3L2NmZxkX4B+3pTH+DSKtklIfwBLoJGDDFmpt0Pol/UTRfPu3Yo+ZXXhwOp8GSVgAFlLHjTE4jLGL ECILJzX41uhL/8icltayVknE5po+oTMJ5C9P2UxfKFc8Vp6WE5omhVlqF2ABQiBrr0efAxrYSesM4 wzYSdfXUUrJlIDt6oVXg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t8FfX-0000000GT8d-3jej; Tue, 05 Nov 2024 09:16:11 +0000 Received: from mail-pf1-x42d.google.com ([2607:f8b0:4864:20::42d]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t8FcT-0000000GSSj-0IiU for linux-mediatek@lists.infradead.org; Tue, 05 Nov 2024 09:13:03 +0000 Received: by mail-pf1-x42d.google.com with SMTP id d2e1a72fcca58-71e70c32cd7so4614984b3a.1 for ; Tue, 05 Nov 2024 01:13:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1730797980; x=1731402780; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=f+4NwQTv7E4920mh+Y7a29gPk9vmlaHbaiEomCWWFMY=; b=X8xfQ9L+EGJK39HzrZLHu7YSL9wkxoLOzgTsVbGPOl0zFvzAFtdKcoXAT4JiwMjxHk kfHjipPTZlinKjRZ0Ogn8KryuiR43FFwuelL34dSOUJ4XUFea3re71viA9b7dKjX6djr piGyBdZ+yXNYc6EhOcJIvUflQqToZUrcb/2mM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730797980; x=1731402780; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=f+4NwQTv7E4920mh+Y7a29gPk9vmlaHbaiEomCWWFMY=; b=M7tUC0Khi+/YGX53PosRo7qwvZxi26X548EzIyRGYnpHiOv4N53wog92ZAXuvqz58X 5qNNW51epztcdjULInjHRZ2qI1iBsze0eyAaBivYz0LcjDrbYs0w9lwPRamX/gqJe7tx Wa1a7Jm0IAXYRr+U3isc9hfCUzqUYUk9V45rWbJLTdt2yEfiMKuY0Cf3qdooe60O8uG+ i4AwJ5m1EcwMwbM65SL5sMCmjadd694i0iw1WQgPPM38PixbZfBfpajr5ZN47mZJ6IAz X6GtiajDLV3jfsatkSpebBhCMZ/onVmY/Oph5Xj9zyOr9f0xCRziPambLR982anEB1ZY 5NnA== X-Forwarded-Encrypted: i=1; AJvYcCV/5hJ4gVlVFBC/xoHA9WTBIXzxiG8MvHtBTygDmSi1XMINKDO+nivLmLUzkMsI35UcH5xFxz74ehPHdeVC5Q==@lists.infradead.org X-Gm-Message-State: AOJu0YxVto7hAQUtCP19LkWT4Bx5ptVLfE2fZ3swkj2/X6yB6D5ZHOE0 nwoiIcSVPm6YrM8djJkkZNENaBhX1QcqO9pb3ZBpVHLIilag1C4j/8x1u9G/3A== X-Google-Smtp-Source: AGHT+IFfp3tQ5uLnmExGkLWD+ytb0gK4uUh68a0Vvv88I2b/msUwcuNAU6GAKyLacYFjAI1B1n9KVA== X-Received: by 2002:a05:6a00:3d44:b0:71e:1722:d02c with SMTP id d2e1a72fcca58-72062f81d35mr48493079b3a.3.1730797979801; Tue, 05 Nov 2024 01:12:59 -0800 (PST) Received: from fshao-p620.tpe.corp.google.com ([2401:fa00:1:10:20ee:3712:ce0b:1ed7]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-720bc1e7825sm8943185b3a.76.2024.11.05.01.12.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Nov 2024 01:12:59 -0800 (PST) From: Fei Shao To: Mark Brown Subject: [PATCH v2] ASoC: dt-bindings: mediatek,mt8188-mt6359: Add mediatek,adsp property Date: Tue, 5 Nov 2024 17:11:36 +0800 Message-ID: <20241105091246.3944946-1-fshao@chromium.org> X-Mailer: git-send-email 2.47.0.277.g8800431eea-goog MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241105_011301_152988_D5CE1862 X-CRM114-Status: GOOD ( 12.68 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rob Herring , Conor Dooley , linux-kernel@vger.kernel.org, linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, Trevor Wu , Matthias Brugger , Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org, AngeloGioacchino Del Regno Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org On some MediaTek SoCs, an Audio DSP (ADSP) is integrated as a separate hardware block that leverages Sound Open Firmware (SOF) and provides additional audio functionalities. This hardware is optional, and the audio subsystem will still function normally when it's not present. To enable ADSP support, a 'mediatek,adsp' property is required in the sound card node to pass the ADSP phandle. This allows AFE to link to ADSP when the sound card is probed. MT8188 has ADSP integrated, so add the 'mediatek,adsp' property to allow using it in the audio subsystem. This fixes dtbs_check error: Unevaluated properties are not allowed ('mediatek,adsp' was unexpected) Signed-off-by: Fei Shao Reviewed-by: Rob Herring (Arm) --- This patch is based on a previous [v1] series. This is sent as an individual patch in v2 because the other patches in the [v1] series are either invalid or for different purpose in different binding, so I think it'd be better to send them separately. [v1]: https://lore.kernel.org/all/20241025104548.1220076-2-fshao@chromium.org/ Changes in v2: - drop `mediatek,dai-link` vendor property because its goal can be achieved by using the existing `audio-routing` - update property description - update commit message .../devicetree/bindings/sound/mediatek,mt8188-mt6359.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/mediatek,mt8188-mt6359.yaml b/Documentation/devicetree/bindings/sound/mediatek,mt8188-mt6359.yaml index f94ad0715e32..ba482747f0e6 100644 --- a/Documentation/devicetree/bindings/sound/mediatek,mt8188-mt6359.yaml +++ b/Documentation/devicetree/bindings/sound/mediatek,mt8188-mt6359.yaml @@ -29,6 +29,13 @@ properties: $ref: /schemas/types.yaml#/definitions/phandle description: The phandle of MT8188 ASoC platform. + mediatek,adsp: + $ref: /schemas/types.yaml#/definitions/phandle + description: + The phandle of the MT8188 ADSP platform, which is the optional Audio DSP + hardware that provides additional audio functionalities if present. + The AFE will link to ADSP when the phandle is provided. + patternProperties: "^dai-link-[0-9]+$": type: object