Message ID | 20190226070742.30551-1-daniel.baluta@nxp.com (mailing list archive) |
---|---|
Headers | show |
Series | Enable wm8524 on i.MX8MQ | expand |
Hi Daniel, On Tue, Feb 26, 2019 at 4:08 AM Daniel Baluta <daniel.baluta@nxp.com> wrote: > > On i.MX8MQ we can start the party using the wm8524 codec > which gets it's data through the SAI2 interface. > > In order to make it work this patch series enables the SDMA nodes, > sets the correct pinctrl configuration and uses the simple card > machine driver to put everything together. > > Changes since v2: > - s/QM/MQ after Chris comments > > Changes since v1: > - added cover letter > - remove "fsl,imx8mq-sdma" compatible for sdma. Why? It is good practice to add the new compatible entry. In case we find out a need for a fix that only affects imx8mq in the future we can do that by using the specific compatible and no dts change will be needed. > > Daniel Baluta (5): > arm64: dts: imx8mq: Add SDMA nodes > arm64: dts: imx8mq: Add SAI2 node > arm64: dts: imx8mq: Add SAI pinctrl configuration > arm64: dts: imx8mq: Enable SAI2 for wm8524 codec > arm64: dts: imx8mq: Enable wm8524 codec I would suggest making the last three patches as a single one. Also, please make the Subject as: arm64: dts: imx8mq-evk when a patch is specific to the imx8mq-evk dts.
On Tue, Feb 26, 2019 at 2:53 PM Fabio Estevam <festevam@gmail.com> wrote: > > Hi Daniel, > > On Tue, Feb 26, 2019 at 4:08 AM Daniel Baluta <daniel.baluta@nxp.com> wrote: > > > > On i.MX8MQ we can start the party using the wm8524 codec > > which gets it's data through the SAI2 interface. > > > > In order to make it work this patch series enables the SDMA nodes, > > sets the correct pinctrl configuration and uses the simple card > > machine driver to put everything together. > > > > Changes since v2: > > - s/QM/MQ after Chris comments > > > > Changes since v1: > > - added cover letter > > - remove "fsl,imx8mq-sdma" compatible for sdma. > > Why? It is good practice to add the new compatible entry. I get your point here. But for the moment it is identical with "fsl,imx7d-sdma" so there is no need to add it now! See the discussion here, and comment from Lucas: https://lkml.org/lkml/2019/1/28/194 So, I prefer to keep it simple. > > In case we find out a need for a fix that only affects imx8mq in the > future we can do that by using the specific compatible and no dts > change will be needed. > > > > > Daniel Baluta (5): > > arm64: dts: imx8mq: Add SDMA nodes > > arm64: dts: imx8mq: Add SAI2 node > > arm64: dts: imx8mq: Add SAI pinctrl configuration > > arm64: dts: imx8mq: Enable SAI2 for wm8524 codec > > arm64: dts: imx8mq: Enable wm8524 codec > > I would suggest making the last three patches as a single one. I'm not convinced about this. I try to separate patches like this in order for people to really understand step by step how audio is enabled on i.MX board. I will give a second thought though. Maybe 3/5 and 4/5 could be squashed together. > > Also, please make the Subject as: arm64: dts: imx8mq-evk when a patch > is specific to the imx8mq-evk dts. Indeed, will fix in next version.
On Tue, Feb 26, 2019 at 10:05 AM Daniel Baluta <daniel.baluta@gmail.com> wrote: > I get your point here. But for the moment it is identical with > "fsl,imx7d-sdma" so there is no need to add it now! > > See the discussion here, and comment from Lucas: > > https://lkml.org/lkml/2019/1/28/194 Lucas' suggestion was not change the sdma driver code and I also agree with it. The SoC dts should still use: compatible = "fsl, imx8mq-sdma","fsl,imx7d-sdma";
On Tue, Feb 26, 2019 at 3:10 PM Fabio Estevam <festevam@gmail.com> wrote: > > On Tue, Feb 26, 2019 at 10:05 AM Daniel Baluta <daniel.baluta@gmail.com> wrote: > > > I get your point here. But for the moment it is identical with > > "fsl,imx7d-sdma" so there is no need to add it now! > > > > See the discussion here, and comment from Lucas: > > > > https://lkml.org/lkml/2019/1/28/194 > > Lucas' suggestion was not change the sdma driver code and I also agree with it. > > The SoC dts should still use: > > compatible = "fsl, imx8mq-sdma","fsl,imx7d-sdma"; Ok, makes sense. Will fix in next version.