From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lee Jones Subject: Re: [PATCH v2 1/9] dmaengine: st_fdma: Add STMicroelectronics FDMA DT binding documentation Date: Mon, 14 Sep 2015 09:19:37 +0100 Message-ID: <20150914081937.GF27591@x1> References: <1441980871-24475-1-git-send-email-peter.griffin@linaro.org> <1441980871-24475-2-git-send-email-peter.griffin@linaro.org> <51503956.PMFrWKUjxX@wuerfel> <20150912120752.GA19897@griffinp-ThinkPad-X1-Carbon-2nd> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Content-Disposition: inline In-Reply-To: <20150912120752.GA19897@griffinp-ThinkPad-X1-Carbon-2nd> Sender: linux-kernel-owner@vger.kernel.org To: Peter Griffin Cc: Arnd Bergmann , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, srinivas.kandagatla@gmail.com, maxime.coquelin@st.com, patrice.chotard@st.com, vinod.koul@intel.com, devicetree@vger.kernel.org, robh+dt@kernel.org, dmaengine@vger.kernel.org, Ludovic Barre List-Id: devicetree@vger.kernel.org On Sat, 12 Sep 2015, Peter Griffin wrote: > Hi Arnd, >=20 > On Fri, 11 Sep 2015, Arnd Bergmann wrote: >=20 > > On Friday 11 September 2015 15:14:23 Peter Griffin wrote: > > > +- st,fdma-id : Must contain fdma controller number > >=20 > > What for? >=20 > It is used by the driver to generate a unique firmware name. > Basically we need to know which controller instance we > are as each controller has a different firmware which needs > to be loaded. >=20 > Rob did say that having a index type property is undesirable > over here, see my reply at the bottom > http://www.spinics.net/lists/devicetree/msg92529.html. >=20 > However I can't think of any other useful properties we could add > to derive this information. I wouldn't use a property at all. Why not use the compatible string? Who chooses the naming scheme of the firmware binary? Is there any reason they can't be: fdma_STiH407_audio.elf fdma_STiH407_app.elf fdma_STiH407_free_running.elf Then you can have a different compatible for each: compatible =3D "st,stih407-fdma-mpe31-audio"; compatible =3D "st,stih407-fdma-mpe31-app"; compatible =3D "st,stih407-fdma-mpe31-free-running"; [...] > > > +Example: > > > + > > > + snd_uni_player2: snd-uni-player@2 { > > > + compatible =3D "st,snd_uni_player"; > >=20 > > Maybe change the compatible string to "st,snd-uni-player"? >=20 > Just checking the upstream driver which got merged for v4.3 > and the compatible has changed to "st,sti-uni-player" so I > can update the DT doc example to use this in v3. >=20 > >=20 > > The string you use here would not be acceptable for a binding. >=20 > Presumably it is the use of "underscores" in the compatible which > is not allowed? Is that correct? Yes. --=20 Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org =E2=94=82 Open source software for ARM SoCs =46ollow Linaro: Facebook | Twitter | Blog