Update adau7118 dt-bindings
Subsystems (4)
Nuno Sá
maintainercover Update adau7118 dt-bindings
This is a follow-up patch as requested by Rob. The dt-bindings patch for this device was applied before Rob's review. Here is the link to the review:
https://lore.kernel.org/alsa-devel/20191010210850.GA20184@bogus/
Nuno Sá (2):
dt-bindings: asoc: adau7118: Cleanup
ASOC: adau7118: Change regulators id
.../bindings/sound/adi,adau7118.yaml | 25 ++++++++----------- sound/soc/codecs/adau7118.c | 4 +-- 2 files changed, 12 insertions(+), 17 deletions(-)
Signature · 1 line
2.23.0
Nuno Sá
maintainerPATCH 1/2 dt-bindings: asoc: adau7118: Cleanup
This changes are in accordance with the review done to this bindings. This is a follow-up patch to 969d49b2cdc8.
--- .../bindings/sound/adi,adau7118.yaml | 25 ++++++++----------- 1 file changed, 10 insertions(+), 15 deletions(-)
Documentation/devicetree/bindings/sound/adi,adau7118.yaml +10 -15
@@ -26,13 +26,11 @@ properties: "#sound-dai-cells": const: 0 - IOVDD-supply: + iovdd-supply: description: Digital Input/Output Power Supply. - $ref: "/schemas/types.yaml#/definitions/phandle" - DVDD-supply: + dvdd-supply: description: Internal Core Digital Power Supply. - $ref: "/schemas/types.yaml#/definitions/phandle" adi,decimation-ratio: description: |
@@ -58,23 +56,21 @@ properties: required: - "#sound-dai-cells" - compatible - - IOVDD-supply - - DVDD-supply + - iovdd-supply + - dvdd-supply examples: - | - i2c0 { + i2c { /* example with i2c support */ #address-cells = <1>; #size-cells = <0>; - status = "okay"; - adau7118_codec: adau7118-codec@14 { + adau7118_codec: audio-codec@14 { compatible = "adi,adau7118"; reg = <14>; #sound-dai-cells = <0>; - status = "okay"; - IOVDD-supply = <&supply>; - DVDD-supply = <&supply>; + iovdd-supply = <&supply>; + dvdd-supply = <&supply>; adi,pdm-clk-map = <1 1 0 0>; adi,decimation-ratio = <16>; };
@@ -84,7 +80,6 @@ examples: adau7118_codec_hw: adau7118-codec-hw { compatible = "adi,adau7118"; #sound-dai-cells = <0>; - status = "okay"; - IOVDD-supply = <&supply>; - DVDD-supply = <&supply>; + iovdd-supply = <&supply>; + dvdd-supply = <&supply>; };
Signature · 6 lines
2.23.0 _______________________________________________ Alsa-devel mailing list [email protected] https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Mark Brown
maintainerRe: [alsa-devel] [PATCH 1/2] dt-bindings: asoc: adau7118: Cleanup
Quoted 2 lines · Nuno Sá
This changes are in accordance with the review done to this bindings. This is a follow-up patch to
969d49b2cdc8.
Please include human readable descriptions of things like commits and issues being discussed in e-mail in your mails, this makes them much easier for humans to read especially when they have no internet access. I do frequently catch up on my mail on flights or while otherwise travelling so this is even more pressing for me than just being about making things a bit easier to read.
Sa, Nuno
maintainerRe: [alsa-devel] [PATCH 1/2] dt-bindings: asoc: adau7118: Cleanup
Hi Mark,
On Mon, 2019-10-21 at 15:52 +0100, Mark Brown wrote:]
Quoted 6 lines · Nuno Sá
Quoted 3 lines
This changes are in accordance with the review done to this bindings.
This is a follow-up patch to969d49b2cdc8.
Quoted 7 lines
Please include human readable descriptions of things like commits and issues being discussed in e-mail in your mails, this makes them much easier for humans to read especially when they have no internet access.
I do frequently catch up on my mail on flights or while otherwise travelling so this is even more pressing for me than just being about making things a bit easier to read.
Noted, I won't use commit hashes like this anymore. Also, I saw that you applied the patch already and just FYI, the patch:
b2d6ee753126 (origin/for-5.5) ASOC: adau7118: Change regulators id
is pointing to b670e44fc3bd in it's description which does not exist.
I see that descriptions like this can lead to this situations. Sorry about this...
Regards,
Nuno Sá
_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Re: [alsa-devel] [PATCH 1/2] dt-bindings: asoc: adau7118: Cleanup
In reply to Nuno SáQuoted 8 lines · Nuno Sá
This changes are in accordance with the review done to this bindings. This is a follow-up patch to
969d49b2cdc8.Signed-off-by Nuno Sá <[email protected]>--- .../bindings/sound/adi,adau7118.yaml | 25 ++++++++----------- 1 file changed, 10 insertions(+), 15 deletions(-)
Still some issues here...
Quoted 30 lines
Documentation/devicetree/bindings/sound/adi,adau7118.yaml +4
-6@@ -26,13 +26,11 @@ properties: "#sound-dai-cells": const: 0 - IOVDD-supply: + iovdd-supply: description: Digital Input/Output Power Supply. - $ref: "/schemas/types.yaml#/definitions/phandle" - DVDD-supply: + dvdd-supply: description: Internal Core Digital Power Supply. - $ref: "/schemas/types.yaml#/definitions/phandle" adi,decimation-ratio: description: |@@ -58,23 +56,21 @@ properties: required: - "#sound-dai-cells" - compatible - - IOVDD-supply - - DVDD-supply + - iovdd-supply + - dvdd-supply
Documentation/devicetree/bindings/sound/adi,adau7118.yaml properties: · line 68
Quoted 10 lines
Documentation/devicetree/bindings/sound/adi,adau7118.yaml +2
-3examples: - | - i2c0 { + i2c { /* example with i2c support */ #address-cells = <1>; #size-cells = <0>; - status = "okay"; - adau7118_codec: adau7118-codec@14 { + adau7118_codec: audio-codec@14 {
Documentation/devicetree/bindings/sound/adi,adau7118.example.dts:21.44-29.15:
Warning (i2c_bus_reg): /example-0/i2c/audio-codec@14: I2C bus unit address format error, expected "e"
Unit-address should be in hex.
Quoted 24 lines
Documentation/devicetree/bindings/sound/adi,adau7118.yaml +4
-7compatible = "adi,adau7118"; reg = <14>; #sound-dai-cells = <0>; - status = "okay"; - IOVDD-supply = <&supply>; - DVDD-supply = <&supply>; + iovdd-supply = <&supply>; + dvdd-supply = <&supply>; adi,pdm-clk-map = <1 1 0 0>; adi,decimation-ratio = <16>; };@@ -84,7 +80,6 @@ examples: adau7118_codec_hw: adau7118-codec-hw { compatible = "adi,adau7118"; #sound-dai-cells = <0>; - status = "okay"; - IOVDD-supply = <&supply>; - DVDD-supply = <&supply>; + iovdd-supply = <&supply>; + dvdd-supply = <&supply>; }; --2.23.0
Nuno Sá
maintainerPATCH 2/2 ASOC: adau7118: Change regulators id
In reply to Nuno SáChange the regulators id in accordance with b670e44fc3bd.
--- sound/soc/codecs/adau7118.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
sound/soc/codecs/adau7118.c +2 -2
@@ -463,14 +463,14 @@ static void adau7118_regulator_disable(void *data)static int adau7118_regulator_setup (struct adau7118_data *st) { - st->iovdd =devm_regulator_get (st->dev,"IOVDD" ); + st->iovdd =devm_regulator_get (st->dev,"iovdd" );if (IS_ERR (st->iovdd)) {dev_err (st->dev,"Could not get iovdd: %ld\n" ,PTR_ERR (st->iovdd));return PTR_ERR (st->iovdd); } - st->dvdd =devm_regulator_get (st->dev,"DVDD" ); + st->dvdd =devm_regulator_get (st->dev,"dvdd" );if (IS_ERR (st->dvdd)) {dev_err (st->dev,"Could not get dvdd: %ld\n" ,PTR_ERR (st->dvdd));
Signature · 1 line
2.23.0