Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1506766ybt; Thu, 2 Jul 2020 07:12:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxcAflvnzknQkdVbuSTL7VyyL4FFEJtMzFQJc3YvAW4pZrFBaOU2jIR5By6UpGd3tfVNuK8 X-Received: by 2002:a17:906:1187:: with SMTP id n7mr22652539eja.161.1593699177189; Thu, 02 Jul 2020 07:12:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593699177; cv=none; d=google.com; s=arc-20160816; b=C0Vo0N3xGjLtN+Ygd1ZifjQjX8uB7lvkf9vBWB/QkDAYbHna5XKbJTTeeiMNDaMyCA T1CTcWzhv7I53bRzLrgKXjRFD8w0nDr8TyRbkBhwzJqESd+3/fw4mdkaAdqFD5FO4rdE rUE1YKvxBWicMw/eucmFHBlns1B10EkWOC8K6pkji0xhYzRiY1CDBS5P7CkBOYzy49z1 qH5I7ZbfzP0xyZRWMxCvNA7o1VWVhc5yp5z2kww6p1FKPGGHsE/lwQsxrf+LQPe2e+Fs EPB0SLjqHQO3n1uro3mIXeTf729UKci8uyVfKGEVCLGm+L09m4Ga/P3v/lnJ/dDRYicM 06xA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:from; bh=JLA7akPJ/xJtW/PQRCJ5+r+bPSAAwpV0vMPKvzNsotI=; b=PmcDT7E8MjIqMxGx6AAgbjcheaWJOMrTuhtQdvlPIjRV4hcux8U2GEgYxGkGRo1ZTR 0o8dbogdnx2NRC3JsG1wUiO9THiShy9I2iXASE/9qwhNIOJg32ibofKKs6SjK1C/HRHN A8C5af9FJoao49jaRjtv4FDTIejPEnKiE3HhK8fPEntv5KxpEw5qRlg+Ji8HoXwz5Dy2 U1erqzm+9P/sy5BHoupH45W3/fcqAdSGadUIpZssUJOTThA1K7FEsW6QwHKca6LYfG+Q MErV+N8DSzIdEPVsSRPwugG+JgS/dbwmbOIYRAZ0E5hCmvp6Ceth3jTI4HDy4cOrb4CZ UCKw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id sd15si5607893ejb.606.2020.07.02.07.12.32; Thu, 02 Jul 2020 07:12:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729719AbgGBOMW (ORCPT + 99 others); Thu, 2 Jul 2020 10:12:22 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:59148 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728651AbgGBOMU (ORCPT ); Thu, 2 Jul 2020 10:12:20 -0400 Received: from xps.home (unknown [IPv6:2a01:e35:2fb5:1510:315a:ecf0:6250:a3ed]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: aferraris) by bhuna.collabora.co.uk (Postfix) with ESMTPSA id 8C01F2A5EC3; Thu, 2 Jul 2020 15:12:18 +0100 (BST) From: Arnaud Ferraris Cc: kernel@collabora.com, Liam Girdwood , Mark Brown , Rob Herring , Timur Tabi , Nicolin Chen , Xiubo Li , Fabio Estevam , Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: [PATCH 1/2] dt-bindings: sound: fsl-asoc-card: add new compatible for I2S slave Date: Thu, 2 Jul 2020 16:11:14 +0200 Message-Id: <20200702141114.232688-2-arnaud.ferraris@collabora.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200702141114.232688-1-arnaud.ferraris@collabora.com> References: <20200702141114.232688-1-arnaud.ferraris@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org fsl-asoc-card currently doesn't support generic codecs with the SoC acting as I2S slave. This commit adds a new `fsl,imx-audio-i2s-slave` for this use-case, as well as the following mandatory properties: - `audio-codec-dai-name` for specifying the codec DAI to be used - `audio-slot-width` Signed-off-by: Arnaud Ferraris --- .../bindings/sound/fsl-asoc-card.txt | 23 ++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/sound/fsl-asoc-card.txt b/Documentation/devicetree/bindings/sound/fsl-asoc-card.txt index 133d7e14a4d0..694a138df462 100644 --- a/Documentation/devicetree/bindings/sound/fsl-asoc-card.txt +++ b/Documentation/devicetree/bindings/sound/fsl-asoc-card.txt @@ -22,6 +22,8 @@ Note: The card is initially designed for those sound cards who use AC'97, I2S The compatible list for this generic sound card currently: "fsl,imx-audio-ac97" + "fsl,imx-audio-i2s-slave" + "fsl,imx-audio-cs42888" "fsl,imx-audio-cs427x" @@ -75,7 +77,13 @@ Optional unless SSI is selected as a CPU DAI: - mux-ext-port : The external port of the i.MX audio muxer -Example: +Optional unless compatible is "fsl,imx-audio-i2s-slave": + + - audio-codec-dai-name: The name of the DAI provided by the codec + + - audio-slot-width : The audio sample format + +Examples: sound-cs42888 { compatible = "fsl,imx-audio-cs42888"; model = "cs42888-audio"; @@ -96,3 +104,16 @@ sound-cs42888 { "AIN2L", "Line In Jack", "AIN2R", "Line In Jack"; }; + +sound-bluetooth { + compatible = "fsl,imx-audio-i2s-slave"; + audio-cpu = <&ssi1>; + audio-codec = <&codec_bluetooth>; + audio-codec-dai-name = "bt-sco-pcm-wb"; + audio-slot-width = <16>; + audio-routing = + "RX", "Mic Jack", + "Headphone Jack", "TX"; + mux-int-port = <1>; + mux-ext-port = <4>; +}; -- 2.27.0