Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp826161imu; Fri, 25 Jan 2019 11:43:46 -0800 (PST) X-Google-Smtp-Source: ALg8bN69qfWCNxg8PgvrMcvRvjqPuL2jfEQOjCarbHkZwh2YvNdmWlni8d790v+GZMDeaHgv7IEf X-Received: by 2002:a63:6506:: with SMTP id z6mr4560311pgb.334.1548445426654; Fri, 25 Jan 2019 11:43:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548445426; cv=none; d=google.com; s=arc-20160816; b=W6EYskB0QFMRwoF0EH7194rQKOQYVkPSN4aKnIIdQZkSKfrVRIV9twghN/WEoNXuKY PTT4kzVAfVVF6AO5CH0j1iGY2aEORiI+SzaDnQ4ZWFjbTcSwBqkAqwU3kVoAQ2jmexud Yp9S6o/mZz42CSb74W3jL3+7jY5wK+BDGsmXWouuqd3jpt/MzwmL+I11tE4IyIHY3/Lj vVJHwxoe1c4X3Dk5S4wcfqe26RZbccpl0KXb3vhJVmsP5JFChqFnfA4AMiqiSAXs423l Ns3B0a2K1YOBA7AqmeH6kQ72/FGiWDM2qNQY9in9+MOC8d9DoXR3PxqlQU7MOo5y11BJ C2NA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=bQO1PTT0Ok9BIQryVdeo//V3RAzC/JEpl5AvgvqLqys=; b=vPaDmT2LSNhGjI2nixTr8cqXmZlej+L4YF1ht8ajgQDedXaV+gDr/Uswd32DiomSt8 apa5SxRAgbxCEaTjeZjMEQOx2uGemekAdFNcg6zQcaJ7biYW+UX4TtoxI5gYkAUUwFAg l044MY3GVKpllbtVdibckamUa0MuolrWDiLrfet6jCcVyatp++hqHG0+Kd3khRSiUz+i +kRkGqDrdOId3xM/hzJBgSJkETpNQ0WRAGfXmGW+18lkSESnXrhbpMuhJVRJ8jln04O8 gXZG2nddwr/lJhUacL3/Lf+2G/nwvUoDXNdlps8rz46N6hc0DG0zgdHOIApuBV7cB/Fv sw4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=l7bpzApd; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h85si26285755pfd.27.2019.01.25.11.43.31; Fri, 25 Jan 2019 11:43:46 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=l7bpzApd; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726418AbfAYTnX (ORCPT + 99 others); Fri, 25 Jan 2019 14:43:23 -0500 Received: from mail-pg1-f194.google.com ([209.85.215.194]:36683 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725778AbfAYTnX (ORCPT ); Fri, 25 Jan 2019 14:43:23 -0500 Received: by mail-pg1-f194.google.com with SMTP id n2so4618007pgm.3; Fri, 25 Jan 2019 11:43:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=bQO1PTT0Ok9BIQryVdeo//V3RAzC/JEpl5AvgvqLqys=; b=l7bpzApdN9NPb6OoWIHMYZiqAx2uDx1DAYOPd0ahUNey1d36c3CtEDQTzjnYX16mui jWbKPEpXUmA4wn/blIvUMnZq6MZSFRe0af3uGfdNAlNl8MX27ux4mNeOw7PhVOY4qRK6 g/vzafBRorEE/udMhWBxLesngZSjE8WKMu0fJvHrdwmX54DCQ6Ycgoc3IDotqNHAiXhy TXyQnAtgTSLWpLTnEyRIRymh1w6AWYrzZc3uPZQzHiaEZm5bx/qSVHNo8g+0JgtJSWf6 wvxyjVxT3oS8n9P9x2l/Nl0+MRK7bxBMij3yy6bQIurRSy8o/Pwr7CN1A64hpeGh6bRG qjdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=bQO1PTT0Ok9BIQryVdeo//V3RAzC/JEpl5AvgvqLqys=; b=IDzcrMkb186P4XT+6VMIFl2ozL1N9lEa8AEmrrrj8onDEhH75OX4kS0HkUE8dc/S3q U2lhH3xm83XTORESIKgqUDbj9XkiKJFQCxwjpCDmHukE8qZ8Y3mXplMUUUitj06RzHd3 1QA0EIFM31pi0roMrbJZD4rL+xGcn5LMLGodVq70JXVbEV9M8H+akzxnPtqP+4k+gDdB 6XNnA75oZXUQPKTU4XIyQLsClSYoit+kdLDVwdTIWgXede1UK1WWQ/YIwbSjXFDio8Di eArZtps5obX26SJ1nBkrkWcdPtLLQmbEQRXwCYQlMMe9NdS7NqcWEGK1SleERK30gNTR BoCQ== X-Gm-Message-State: AJcUukfC4rAZJM1Q+9W6pI2CGIDuHoxfzEVeOQ3ls/06iYcP3aR63nWB wsmGjphtbkn6OT0jrJ2MlK4= X-Received: by 2002:a63:7512:: with SMTP id q18mr10242712pgc.231.1548445401729; Fri, 25 Jan 2019 11:43:21 -0800 (PST) Received: from Asurada-Nvidia.nvidia.com (thunderhill.nvidia.com. [216.228.112.22]) by smtp.gmail.com with ESMTPSA id n78sm51193550pfk.19.2019.01.25.11.43.20 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 25 Jan 2019 11:43:21 -0800 (PST) Date: Fri, 25 Jan 2019 11:43:16 -0800 From: Nicolin Chen To: Viorel Suman Cc: Liam Girdwood , Mark Brown , Rob Herring , Mark Rutland , Jaroslav Kysela , Takashi Iwai , Timur Tabi , Xiubo Li , Fabio Estevam , "S.j. Wang" , Daniel Baluta , Cosmin Samoila , "alsa-devel@alsa-project.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linuxppc-dev@lists.ozlabs.org" , dl-linux-imx , Viorel Suman Subject: Re: [PATCH v4 2/3] ASoC: add fsl_audmix DT binding documentation Message-ID: <20190125194315.GA21222@Asurada-Nvidia.nvidia.com> References: <1548155654-12985-1-git-send-email-viorel.suman@nxp.com> <1548155654-12985-3-git-send-email-viorel.suman@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1548155654-12985-3-git-send-email-viorel.suman@nxp.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 22, 2019 at 11:14:27AM +0000, Viorel Suman wrote: > Add the DT binding documentation for NXP Audio Mixer > CPU DAI driver. > > Signed-off-by: Viorel Suman > --- > .../devicetree/bindings/sound/fsl,audmix.txt | 54 ++++++++++++++++++++++ > 1 file changed, 54 insertions(+) > create mode 100644 Documentation/devicetree/bindings/sound/fsl,audmix.txt > > diff --git a/Documentation/devicetree/bindings/sound/fsl,audmix.txt b/Documentation/devicetree/bindings/sound/fsl,audmix.txt > new file mode 100644 > index 0000000..45f807e > --- /dev/null > +++ b/Documentation/devicetree/bindings/sound/fsl,audmix.txt > @@ -0,0 +1,54 @@ > +NXP Audio Mixer (AUDMIX). > + > +The Audio Mixer is a on-chip functional module that allows mixing of two > +audio streams into a single audio stream. Audio Mixer has two input serial > +audio interfaces. These are driven by two Synchronous Audio interface > +modules (SAI). Each input serial interface carries 8 audio channels in its > +frame in TDM manner. Mixer mixes audio samples of corresponding channels > +from two interfaces into a single sample. Before mixing, audio samples of > +two inputs can be attenuated based on configuration. The output of the > +Audio Mixer is also a serial audio interface. Like input interfaces it has > +the same TDM frame format. This output is used to drive the serial DAC TDM > +interface of audio codec and also sent to the external pins along with the > +receive path of normal audio SAI module for readback by the CPU. > + > +The output of Audio Mixer can be selected from any of the three streams > + - serial audio input 1 > + - serial audio input 2 > + - mixed audio > + > +Mixing operation is independent of audio sample rate but the two audio > +input streams must have same audio sample rate with same number of channels > +in TDM frame to be eligible for mixing. > + > +Device driver required properties: > +================================= > + - compatible : Compatible list, contains "fsl,imx8qm-audmix" > + > + - reg : Offset and length of the register set for the device. > + > + - clocks : Must contain an entry for each entry in clock-names. > + > + - clock-names : Must include the "ipg" for register access. > + > + - power-domains : Must contain the phandle to AUDMIX power domain node > + > + - dais : Must contain a list of phandles to AUDMIX connected > + DAIs. The current implementation requires two phandles > + to SAI interfaces to be provided, the first SAI in the > + list being used to route the AUDMIX output. > + > + - model : Must contain machine driver name which will configure > + and instantiate the appropriate audio card. I don't feel this is necessary for DT node. The driver should be able to figure out a proper name for the machine driver: it could use the compatible string to get "imx8qm-audmix" as the name like fsl_ssi; Or it could have built-in "imx-audmix" of_device_id data corresponding to "fsl,imx8qm-audmix" compatible string -- for any non-imx compatible in the future, use something else. Thanks Nic > + > +Device driver configuration example: > +====================================== > + audmix: audmix@59840000 { > + compatible = "fsl,imx8qm-audmix"; > + reg = <0x0 0x59840000 0x0 0x10000>; > + clocks = <&clk IMX8QXP_AUD_AUDMIX_IPG>; > + clock-names = "ipg"; > + power-domains = <&pd_audmix>; > + dais = <&sai4>, <&sai5>; > + model = "imx-audmix"; > + }; > -- > 2.7.4 >