Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754023AbbDBSrW (ORCPT ); Thu, 2 Apr 2015 14:47:22 -0400 Received: from mail-gw2-out.broadcom.com ([216.31.210.63]:23972 "EHLO mail-gw2-out.broadcom.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752459AbbDBSrS (ORCPT ); Thu, 2 Apr 2015 14:47:18 -0400 X-IronPort-AV: E=Sophos;i="5.11,512,1422950400"; d="scan'208";a="61086146" Message-ID: <551D8EAB.3070803@broadcom.com> Date: Thu, 2 Apr 2015 11:47:07 -0700 From: Lori Hikichi User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.0 MIME-Version: 1.0 To: Mark Brown , Scott Branden CC: Rob Herring , Pawel Moll , "Mark Rutland" , Ian Campbell , Kumar Gala , "Liam Girdwood" , Jaroslav Kysela , "Takashi Iwai" , , , , , , Dmitry Torokhov , Anatol Pomazao , , , , Subject: Re: [PATCH 1/2] ASoC: cygnus-audio: adding device tree bindings References: <1427771784-29950-1-git-send-email-sbranden@broadcom.com> <1427771784-29950-2-git-send-email-sbranden@broadcom.com> <20150331055806.GB2869@sirena.org.uk> In-Reply-To: <20150331055806.GB2869@sirena.org.uk> Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2218 Lines: 58 On 15-03-30 10:58 PM, Mark Brown wrote: > On Mon, Mar 30, 2015 at 08:16:23PM -0700, Scott Branden wrote: > >> +SSP Subnode properties: >> +- dai-name: The name of the DAI registered with ASOC > > ASoC. > Okay. > Why is this in the DT - it sounds like this is just an internal > implementation detail for Linux, not a property of the hardware. > Will move into the driver code. >> +- mode: Controls if this port should be configured as I2S or TDM mode. >> + Valid values are: "tdm" or "i2s" >> +- tdm-bits-per-frame: only if mode is "tdm" then this property must set. >> + Valid values are (128/256/512) > > We'd normally leave these up to the machine driver to set as they're > link wide things for system integration. The bits per frame in > particular looks like something that's not going to be fixed by the > hardware and could be varied at runtime. > I was using the device tree to set some board specific properties of our audio serial port driver. The idea was that these properties would only need to be one value for a specific board. Therefore, we could set them in the device tree and then not have to set them in the machine file. I thought it would help keep the machine file a little more basic. Moving these to the machine file is reasonable and will allow for a more dynamic usage of our driver. I will move them to machine file. >> +- port-status: Controls if port is enabled or not >> + Valid values "enabled" or "disabled" > > This sounds like it's replicating the DT standard status property? > Okay. Will replace with "status" >> +- channel-group: Control grouping of serial port >> + Valid values are "2_0", "3_1", or "5_1" > > What does this mean? It looks like it's setting the number of channels > which again seems like a runtime thing. > It is a configuration where we can link together two or three of the ports to allow for synchronized starts and stop. I will look into another method of configuring this operational mode. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/