Message ID | 20210519203754.27184-1-macroalpha82@gmail.com |
---|---|
Headers | show |
Series | ASoC: codecs: add rk817 support | expand |
I've applied the non-Arm patches. The following changes since commit 6efb943b8616ec53a5e444193dccf1af9ad627b5: Linux 5.13-rc1 (2021-05-09 14:17:44 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git tb-mfd-asoc-v5.14 for you to fetch changes up to 437faaa6cebadf8ff4c2c28d7cb26ed4e34aeb14: dt-bindings: Add Rockchip rk817 audio CODEC support (2021-06-01 13:40:41 +0100) ---------------------------------------------------------------- Immutable branch between MFD and ASoC due for the v5.14 merge window ---------------------------------------------------------------- Chris Morgan (3): mfd: Add Rockchip rk817 audio CODEC support ASoC: Add Rockchip rk817 audio CODEC support dt-bindings: Add Rockchip rk817 audio CODEC support Documentation/devicetree/bindings/mfd/rk808.txt | 188 +++++++++ drivers/mfd/rk808.c | 81 ++++ include/linux/mfd/rk808.h | 81 ++++ sound/soc/codecs/Kconfig | 6 + sound/soc/codecs/Makefile | 2 + sound/soc/codecs/rk817_codec.c | 539 ++++++++++++++++++++++++ 6 files changed, 897 insertions(+) create mode 100644 sound/soc/codecs/rk817_codec.c -- Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog
On Tue, 01 Jun 2021, Lee Jones wrote: > I've applied the non-Arm patches. > > The following changes since commit 6efb943b8616ec53a5e444193dccf1af9ad627b5: > > Linux 5.13-rc1 (2021-05-09 14:17:44 -0700) > > are available in the Git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git tb-mfd-asoc-v5.14 > > for you to fetch changes up to 437faaa6cebadf8ff4c2c28d7cb26ed4e34aeb14: > > dt-bindings: Add Rockchip rk817 audio CODEC support (2021-06-01 13:40:41 +0100) > > ---------------------------------------------------------------- > Immutable branch between MFD and ASoC due for the v5.14 merge window > > ---------------------------------------------------------------- > Chris Morgan (3): > mfd: Add Rockchip rk817 audio CODEC support > ASoC: Add Rockchip rk817 audio CODEC support > dt-bindings: Add Rockchip rk817 audio CODEC support > > Documentation/devicetree/bindings/mfd/rk808.txt | 188 +++++++++ > drivers/mfd/rk808.c | 81 ++++ > include/linux/mfd/rk808.h | 81 ++++ > sound/soc/codecs/Kconfig | 6 + > sound/soc/codecs/Makefile | 2 + > sound/soc/codecs/rk817_codec.c | 539 ++++++++++++++++++++++++ > 6 files changed, 897 insertions(+) > create mode 100644 sound/soc/codecs/rk817_codec.c Looks like the builders reported a W=1 warning introduced by the set. Would you like me to fix it and submit a patch? -- Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog
On Tue, Jun 01, 2021 at 04:58:32PM +0100, Lee Jones wrote: > On Tue, 01 Jun 2021, Lee Jones wrote: > > > I've applied the non-Arm patches. > > > > The following changes since commit 6efb943b8616ec53a5e444193dccf1af9ad627b5: > > > > Linux 5.13-rc1 (2021-05-09 14:17:44 -0700) > > > > are available in the Git repository at: > > > > git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git tb-mfd-asoc-v5.14 > > > > for you to fetch changes up to 437faaa6cebadf8ff4c2c28d7cb26ed4e34aeb14: > > > > dt-bindings: Add Rockchip rk817 audio CODEC support (2021-06-01 13:40:41 +0100) > > > > ---------------------------------------------------------------- > > Immutable branch between MFD and ASoC due for the v5.14 merge window > > > > ---------------------------------------------------------------- > > Chris Morgan (3): > > mfd: Add Rockchip rk817 audio CODEC support > > ASoC: Add Rockchip rk817 audio CODEC support > > dt-bindings: Add Rockchip rk817 audio CODEC support > > > > Documentation/devicetree/bindings/mfd/rk808.txt | 188 +++++++++ > > drivers/mfd/rk808.c | 81 ++++ > > include/linux/mfd/rk808.h | 81 ++++ > > sound/soc/codecs/Kconfig | 6 + > > sound/soc/codecs/Makefile | 2 + > > sound/soc/codecs/rk817_codec.c | 539 ++++++++++++++++++++++++ > > 6 files changed, 897 insertions(+) > > create mode 100644 sound/soc/codecs/rk817_codec.c > > Looks like the builders reported a W=1 warning introduced by the set. > > Would you like me to fix it and submit a patch? If it's a simple fix sure. I'm pulling the branch now and will confirm the warning otherwise. Thank you. > > -- > Lee Jones [李琼斯] > Senior Technical Lead - Developer Services > Linaro.org │ Open source software for Arm SoCs > Follow Linaro: Facebook | Twitter | Blog
On Tue, Jun 01, 2021 at 04:58:32PM +0100, Lee Jones wrote: > On Tue, 01 Jun 2021, Lee Jones wrote: > > > I've applied the non-Arm patches. > > > > The following changes since commit 6efb943b8616ec53a5e444193dccf1af9ad627b5: > > > > Linux 5.13-rc1 (2021-05-09 14:17:44 -0700) > > > > are available in the Git repository at: > > > > git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git tb-mfd-asoc-v5.14 > > > > for you to fetch changes up to 437faaa6cebadf8ff4c2c28d7cb26ed4e34aeb14: > > > > dt-bindings: Add Rockchip rk817 audio CODEC support (2021-06-01 13:40:41 +0100) > > > > ---------------------------------------------------------------- > > Immutable branch between MFD and ASoC due for the v5.14 merge window > > > > ---------------------------------------------------------------- > > Chris Morgan (3): > > mfd: Add Rockchip rk817 audio CODEC support > > ASoC: Add Rockchip rk817 audio CODEC support > > dt-bindings: Add Rockchip rk817 audio CODEC support > > > > Documentation/devicetree/bindings/mfd/rk808.txt | 188 +++++++++ > > drivers/mfd/rk808.c | 81 ++++ > > include/linux/mfd/rk808.h | 81 ++++ > > sound/soc/codecs/Kconfig | 6 + > > sound/soc/codecs/Makefile | 2 + > > sound/soc/codecs/rk817_codec.c | 539 ++++++++++++++++++++++++ > > 6 files changed, 897 insertions(+) > > create mode 100644 sound/soc/codecs/rk817_codec.c > > Looks like the builders reported a W=1 warning introduced by the set. > > Would you like me to fix it and submit a patch? I can't seem to reproduce the warning, are there more details as to what is causing it? Thank you. > > -- > Lee Jones [李琼斯] > Senior Technical Lead - Developer Services > Linaro.org │ Open source software for Arm SoCs > Follow Linaro: Facebook | Twitter | Blog
On Tue, 01 Jun 2021, Chris Morgan wrote: > On Tue, Jun 01, 2021 at 04:58:32PM +0100, Lee Jones wrote: > > On Tue, 01 Jun 2021, Lee Jones wrote: > > > > > I've applied the non-Arm patches. > > > > > > The following changes since commit 6efb943b8616ec53a5e444193dccf1af9ad627b5: > > > > > > Linux 5.13-rc1 (2021-05-09 14:17:44 -0700) > > > > > > are available in the Git repository at: > > > > > > git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git tb-mfd-asoc-v5.14 > > > > > > for you to fetch changes up to 437faaa6cebadf8ff4c2c28d7cb26ed4e34aeb14: > > > > > > dt-bindings: Add Rockchip rk817 audio CODEC support (2021-06-01 13:40:41 +0100) > > > > > > ---------------------------------------------------------------- > > > Immutable branch between MFD and ASoC due for the v5.14 merge window > > > > > > ---------------------------------------------------------------- > > > Chris Morgan (3): > > > mfd: Add Rockchip rk817 audio CODEC support > > > ASoC: Add Rockchip rk817 audio CODEC support > > > dt-bindings: Add Rockchip rk817 audio CODEC support > > > > > > Documentation/devicetree/bindings/mfd/rk808.txt | 188 +++++++++ > > > drivers/mfd/rk808.c | 81 ++++ > > > include/linux/mfd/rk808.h | 81 ++++ > > > sound/soc/codecs/Kconfig | 6 + > > > sound/soc/codecs/Makefile | 2 + > > > sound/soc/codecs/rk817_codec.c | 539 ++++++++++++++++++++++++ > > > 6 files changed, 897 insertions(+) > > > create mode 100644 sound/soc/codecs/rk817_codec.c > > > > Looks like the builders reported a W=1 warning introduced by the set. > > > > Would you like me to fix it and submit a patch? > > I can't seem to reproduce the warning, are there more details as to > what is causing it? Yes, it's a W=1 warning. Put that on your command line. -- Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog
On Tue, Jun 01, 2021 at 06:39:44PM +0100, Lee Jones wrote: > On Tue, 01 Jun 2021, Chris Morgan wrote: > > > On Tue, Jun 01, 2021 at 04:58:32PM +0100, Lee Jones wrote: > > > On Tue, 01 Jun 2021, Lee Jones wrote: > > > > > > > I've applied the non-Arm patches. > > > > > > > > The following changes since commit 6efb943b8616ec53a5e444193dccf1af9ad627b5: > > > > > > > > Linux 5.13-rc1 (2021-05-09 14:17:44 -0700) > > > > > > > > are available in the Git repository at: > > > > > > > > git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git tb-mfd-asoc-v5.14 > > > > > > > > for you to fetch changes up to 437faaa6cebadf8ff4c2c28d7cb26ed4e34aeb14: > > > > > > > > dt-bindings: Add Rockchip rk817 audio CODEC support (2021-06-01 13:40:41 +0100) > > > > > > > > ---------------------------------------------------------------- > > > > Immutable branch between MFD and ASoC due for the v5.14 merge window > > > > > > > > ---------------------------------------------------------------- > > > > Chris Morgan (3): > > > > mfd: Add Rockchip rk817 audio CODEC support > > > > ASoC: Add Rockchip rk817 audio CODEC support > > > > dt-bindings: Add Rockchip rk817 audio CODEC support > > > > > > > > Documentation/devicetree/bindings/mfd/rk808.txt | 188 +++++++++ > > > > drivers/mfd/rk808.c | 81 ++++ > > > > include/linux/mfd/rk808.h | 81 ++++ > > > > sound/soc/codecs/Kconfig | 6 + > > > > sound/soc/codecs/Makefile | 2 + > > > > sound/soc/codecs/rk817_codec.c | 539 ++++++++++++++++++++++++ > > > > 6 files changed, 897 insertions(+) > > > > create mode 100644 sound/soc/codecs/rk817_codec.c > > > > > > Looks like the builders reported a W=1 warning introduced by the set. > > > > > > Would you like me to fix it and submit a patch? > > > > I can't seem to reproduce the warning, are there more details as to > > what is causing it? > > Yes, it's a W=1 warning. Put that on your command line. Got it. Want me to resubmit the patch? Looks like I was requesting a return value from a function and not doing anything with it. Thank you > > -- > Lee Jones [李琼斯] > Senior Technical Lead - Developer Services > Linaro.org │ Open source software for Arm SoCs > Follow Linaro: Facebook | Twitter | Blog
Am Dienstag, 1. Juni 2021, 20:33:51 CEST schrieb Chris Morgan: > On Tue, Jun 01, 2021 at 06:39:44PM +0100, Lee Jones wrote: > > On Tue, 01 Jun 2021, Chris Morgan wrote: > > > > > On Tue, Jun 01, 2021 at 04:58:32PM +0100, Lee Jones wrote: > > > > On Tue, 01 Jun 2021, Lee Jones wrote: > > > > > > > > > I've applied the non-Arm patches. > > > > > > > > > > The following changes since commit 6efb943b8616ec53a5e444193dccf1af9ad627b5: > > > > > > > > > > Linux 5.13-rc1 (2021-05-09 14:17:44 -0700) > > > > > > > > > > are available in the Git repository at: > > > > > > > > > > git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git tb-mfd-asoc-v5.14 > > > > > > > > > > for you to fetch changes up to 437faaa6cebadf8ff4c2c28d7cb26ed4e34aeb14: > > > > > > > > > > dt-bindings: Add Rockchip rk817 audio CODEC support (2021-06-01 13:40:41 +0100) > > > > > > > > > > ---------------------------------------------------------------- > > > > > Immutable branch between MFD and ASoC due for the v5.14 merge window > > > > > > > > > > ---------------------------------------------------------------- > > > > > Chris Morgan (3): > > > > > mfd: Add Rockchip rk817 audio CODEC support > > > > > ASoC: Add Rockchip rk817 audio CODEC support > > > > > dt-bindings: Add Rockchip rk817 audio CODEC support > > > > > > > > > > Documentation/devicetree/bindings/mfd/rk808.txt | 188 +++++++++ > > > > > drivers/mfd/rk808.c | 81 ++++ > > > > > include/linux/mfd/rk808.h | 81 ++++ > > > > > sound/soc/codecs/Kconfig | 6 + > > > > > sound/soc/codecs/Makefile | 2 + > > > > > sound/soc/codecs/rk817_codec.c | 539 ++++++++++++++++++++++++ > > > > > 6 files changed, 897 insertions(+) > > > > > create mode 100644 sound/soc/codecs/rk817_codec.c > > > > > > > > Looks like the builders reported a W=1 warning introduced by the set. > > > > > > > > Would you like me to fix it and submit a patch? > > > > > > I can't seem to reproduce the warning, are there more details as to > > > what is causing it? > > > > Yes, it's a W=1 warning. Put that on your command line. > > Got it. Want me to resubmit the patch? Looks like I was requesting a > return value from a function and not doing anything with it. from Lee's earlier mail I guess he prefers a followup patch to fix the issue.
Enjoy! The following changes since commit 6efb943b8616ec53a5e444193dccf1af9ad627b5: Linux 5.13-rc1 (2021-05-09 14:17:44 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git tags/tb-mfd-asoc-v5.14-1 for you to fetch changes up to ef7570b67541d8b938df1e45f56e54be70bf1360: ASoC: rk817: fix a warning in rk817_probe() (2021-06-02 08:05:23 +0100) ---------------------------------------------------------------- Immutable branch between MFD and ASoC due for the v5.14 merge window ---------------------------------------------------------------- Chris Morgan (4): mfd: Add Rockchip rk817 audio CODEC support ASoC: Add Rockchip rk817 audio CODEC support dt-bindings: Add Rockchip rk817 audio CODEC support ASoC: rk817: fix a warning in rk817_probe() Documentation/devicetree/bindings/mfd/rk808.txt | 188 +++++++++ drivers/mfd/rk808.c | 81 ++++ include/linux/mfd/rk808.h | 81 ++++ sound/soc/codecs/Kconfig | 6 + sound/soc/codecs/Makefile | 2 + sound/soc/codecs/rk817_codec.c | 538 ++++++++++++++++++++++++ 6 files changed, 896 insertions(+) create mode 100644 sound/soc/codecs/rk817_codec.c -- Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog
On Wed, 19 May 2021 15:37:50 -0500, Chris Morgan wrote: > This series is to add support for the Rockchip rk817 audio codec which > is present in all Rockchip rk817 MFD chips. > > Changes in v12: > - Updated codec cell in MFD driver to a single line. > Changes in v11: > - Stopped checking for presence of parent node in codec driver, as > driver should never be called if parent device doesn't exist to call > it. > - Made codec subnode optional and stopped returning errors if it is > missing. > - Downgraded missing codec clock message from dev_err to dev_dbg. > Users who choose to use the rk817 PMIC but do not choose to use the > codec will not get an error message unless they have debugging > enabled, whereas users who wish to use the codec but don't have the > clock defined will not get an error message unless they have > debug messages enabled. This seems like a fair compromise between > mututally exclusive users. Note that errors with the clock or codec > will still result in a dev_err. > - Updated DT documentation to note that codec subnode is optional if > no properties are to exist beneath it. > Changes in v10: > - Correct order of test/ack/signed-off to chronological order. > - Removed ifdef from mfd driver keep cell from being added when the > codec was not to be built. > - Changed codec DT parsing messages from error to debug to prevent > errors in dmesg log in the rare but valid case a user has the rk817 > PMIC but does not use the codec. > Changes in v9: > - Add cover letter. > - Remove documentation for interrupt parent per Rob Herring's request. > - Remove unused MODULE_DEVICE_TABLE to fix a bug identified by kernel test > robot. > Changes in v8: > - Added additional documentation for missing properties of > #sound-dai-cells, interrupt-parent, and wakeup-source for mfd > documentation. > - Corrected order of elements descriptions in device tree documentation. > - Changed name of "mic-in-differential" to > "rockchip,mic-in-differential". > - Changed name of sound card from "rockchip,rk817-codec" to "Analog". > - Removed unused resets and reset-names from the i2s1_2ch node. > Changes in v7: > - Removed ifdef around register definitions for MFD. > - Replaced codec documentation with updates to MFD documentation. > - Reordered elements in example to comply with upstream rules. > - Added binding update back for Odroid Go Advance as requested. > - Submitting patches from gmail now. > Changes in v6: > - Included additional project maintainers for correct subsystems. > - Removed unneeded compatible from DT documentation. > - Removed binding update for Odroid Go Advance (will do in separate > series). > Changes in v5: > - Move register definitions from rk817_codec.h to main rk808.h register > definitions. > - Add volatile register for codec bits. > - Add default values for codec bits. > - Removed of_compatible from mtd driver (not necessary). > - Switched to using parent regmap instead of private regmap for codec. > Changes in v4: > - Created set_pll() call. > - Created user visible gain control in mic. > - Check for return value of clk_prepare_enable(). > - Removed duplicate clk_prepare_enable(). > - Split DT documentation to separate commit. > Changes in v3: > - Use DAPM macros to set audio path. > - Updated devicetree binding (as every rk817 has this codec chip). > - Changed documentation to yaml format. > - Split MFD changes to separate commit. > Changes in v2: > - Fixed audio path registers to solve some bugs. > > [...] Applied, thanks! [4/4] arm64: dts: rockchip: add rk817 codec to Odroid Go commit: 18d5c7bf50c6d820c366c2a23d71d468b14c87d6 Best regards, -- Heiko Stuebner <heiko@sntech.de>
From: Chris Morgan <macromorgan@hotmail.com> This series is to add support for the Rockchip rk817 audio codec which is present in all Rockchip rk817 MFD chips. Changes in v12: - Updated codec cell in MFD driver to a single line. Changes in v11: - Stopped checking for presence of parent node in codec driver, as driver should never be called if parent device doesn't exist to call it. - Made codec subnode optional and stopped returning errors if it is missing. - Downgraded missing codec clock message from dev_err to dev_dbg. Users who choose to use the rk817 PMIC but do not choose to use the codec will not get an error message unless they have debugging enabled, whereas users who wish to use the codec but don't have the clock defined will not get an error message unless they have debug messages enabled. This seems like a fair compromise between mututally exclusive users. Note that errors with the clock or codec will still result in a dev_err. - Updated DT documentation to note that codec subnode is optional if no properties are to exist beneath it. Changes in v10: - Correct order of test/ack/signed-off to chronological order. - Removed ifdef from mfd driver keep cell from being added when the codec was not to be built. - Changed codec DT parsing messages from error to debug to prevent errors in dmesg log in the rare but valid case a user has the rk817 PMIC but does not use the codec. Changes in v9: - Add cover letter. - Remove documentation for interrupt parent per Rob Herring's request. - Remove unused MODULE_DEVICE_TABLE to fix a bug identified by kernel test robot. Changes in v8: - Added additional documentation for missing properties of #sound-dai-cells, interrupt-parent, and wakeup-source for mfd documentation. - Corrected order of elements descriptions in device tree documentation. - Changed name of "mic-in-differential" to "rockchip,mic-in-differential". - Changed name of sound card from "rockchip,rk817-codec" to "Analog". - Removed unused resets and reset-names from the i2s1_2ch node. Changes in v7: - Removed ifdef around register definitions for MFD. - Replaced codec documentation with updates to MFD documentation. - Reordered elements in example to comply with upstream rules. - Added binding update back for Odroid Go Advance as requested. - Submitting patches from gmail now. Changes in v6: - Included additional project maintainers for correct subsystems. - Removed unneeded compatible from DT documentation. - Removed binding update for Odroid Go Advance (will do in separate series). Changes in v5: - Move register definitions from rk817_codec.h to main rk808.h register definitions. - Add volatile register for codec bits. - Add default values for codec bits. - Removed of_compatible from mtd driver (not necessary). - Switched to using parent regmap instead of private regmap for codec. Changes in v4: - Created set_pll() call. - Created user visible gain control in mic. - Check for return value of clk_prepare_enable(). - Removed duplicate clk_prepare_enable(). - Split DT documentation to separate commit. Changes in v3: - Use DAPM macros to set audio path. - Updated devicetree binding (as every rk817 has this codec chip). - Changed documentation to yaml format. - Split MFD changes to separate commit. Changes in v2: - Fixed audio path registers to solve some bugs. Chris Morgan (4): mfd: Add Rockchip rk817 audio CODEC support ASoC: Add Rockchip rk817 audio CODEC support dt-bindings: Add Rockchip rk817 audio CODEC support arm64: dts: rockchip: add rk817 codec to Odroid Go .../devicetree/bindings/mfd/rk808.txt | 188 ++++++ .../boot/dts/rockchip/rk3326-odroid-go2.dts | 36 +- drivers/mfd/rk808.c | 81 +++ include/linux/mfd/rk808.h | 81 +++ sound/soc/codecs/Kconfig | 6 + sound/soc/codecs/Makefile | 2 + sound/soc/codecs/rk817_codec.c | 539 ++++++++++++++++++ 7 files changed, 931 insertions(+), 2 deletions(-) create mode 100644 sound/soc/codecs/rk817_codec.c