All of lore.kernel.org
 help / color / mirror / Atom feed
From: wangweidong.a@awinic.com
To: lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org,
	krzysztof.kozlowski+dt@linaro.org, perex@perex.cz,
	tiwai@suse.com, ckeepax@opensource.cirrus.com,
	rf@opensource.cirrus.com, pierre-louis.bossart@linux.intel.com,
	james.schulman@cirrus.com, flatmax@flatmax.com,
	cezary.rojewski@intel.com, wangweidong.a@awinic.com,
	povik+lin@cutebit.org, yangxiaohua@everest-semi.com,
	daniel.beer@igorinstitute.com, 13691752556@139.com,
	srinivas.kandagatla@linaro.org, jonathan.albrieux@gmail.com,
	steve@sk2.org, alsa-devel@alsa-project.org,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: liweilei@awinic.com, zhaolei@awinic.com, yijiangtao@awinic.com
Subject: [PATCH V9 5/5] ASoC: dt-bindings: Add schema for "awinic,aw88395"
Date: Fri,  6 Jan 2023 11:28:35 +0800	[thread overview]
Message-ID: <20230106032835.141918-6-wangweidong.a@awinic.com> (raw)
In-Reply-To: <20230106032835.141918-1-wangweidong.a@awinic.com>

From: Weidong Wang <wangweidong.a@awinic.com>

Add a DT schema for describing Awinic AW88395 audio amplifiers. They are
controlled using I2C.

Signed-off-by: Weidong Wang <wangweidong.a@awinic.com>
---
 .../bindings/sound/awinic,aw88395.yaml        | 53 +++++++++++++++++++
 1 file changed, 53 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/sound/awinic,aw88395.yaml

diff --git a/Documentation/devicetree/bindings/sound/awinic,aw88395.yaml b/Documentation/devicetree/bindings/sound/awinic,aw88395.yaml
new file mode 100644
index 000000000000..35eef7d818a2
--- /dev/null
+++ b/Documentation/devicetree/bindings/sound/awinic,aw88395.yaml
@@ -0,0 +1,53 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/sound/awinic,aw88395.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Awinic AW88395 Smart Audio Amplifier
+
+maintainers:
+  - Weidong Wang <wangweidong.a@awinic.com>
+
+description:
+  The Awinic AW88395 is an I2S/TDM input, high efficiency
+  digital Smart K audio amplifier with an integrated 10.25V
+  smart boost convert.
+
+allOf:
+  - $ref: dai-common.yaml#
+
+properties:
+  compatible:
+    const: awinic,aw88395
+
+  reg:
+    maxItems: 1
+
+  '#sound-dai-cells':
+    const: 0
+
+  reset-gpios:
+    maxItems: 1
+
+required:
+  - compatible
+  - reg
+  - '#sound-dai-cells'
+  - reset-gpios
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/gpio/gpio.h>
+    i2c {
+        #address-cells = <1>;
+        #size-cells = <0>;
+        audio-codec@34 {
+            compatible = "awinic,aw88395";
+            reg = <0x34>;
+            #sound-dai-cells = <0>;
+            reset-gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
+        };
+    };
-- 
2.39.0


WARNING: multiple messages have this Message-ID (diff)
From: wangweidong.a@awinic.com
To: lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org,
	krzysztof.kozlowski+dt@linaro.org, perex@perex.cz,
	tiwai@suse.com, ckeepax@opensource.cirrus.com,
	rf@opensource.cirrus.com, pierre-louis.bossart@linux.intel.com,
	james.schulman@cirrus.com, flatmax@flatmax.com,
	cezary.rojewski@intel.com, wangweidong.a@awinic.com,
	povik+lin@cutebit.org, yangxiaohua@everest-semi.com,
	daniel.beer@igorinstitute.com, 13691752556@139.com,
	srinivas.kandagatla@linaro.org, jonathan.albrieux@gmail.com,
	steve@sk2.org, alsa-devel@alsa-project.org,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: yijiangtao@awinic.com, zhaolei@awinic.com, liweilei@awinic.com
Subject: [PATCH V9 5/5] ASoC: dt-bindings: Add schema for "awinic,aw88395"
Date: Fri,  6 Jan 2023 11:28:35 +0800	[thread overview]
Message-ID: <20230106032835.141918-6-wangweidong.a@awinic.com> (raw)
In-Reply-To: <20230106032835.141918-1-wangweidong.a@awinic.com>

From: Weidong Wang <wangweidong.a@awinic.com>

Add a DT schema for describing Awinic AW88395 audio amplifiers. They are
controlled using I2C.

Signed-off-by: Weidong Wang <wangweidong.a@awinic.com>
---
 .../bindings/sound/awinic,aw88395.yaml        | 53 +++++++++++++++++++
 1 file changed, 53 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/sound/awinic,aw88395.yaml

diff --git a/Documentation/devicetree/bindings/sound/awinic,aw88395.yaml b/Documentation/devicetree/bindings/sound/awinic,aw88395.yaml
new file mode 100644
index 000000000000..35eef7d818a2
--- /dev/null
+++ b/Documentation/devicetree/bindings/sound/awinic,aw88395.yaml
@@ -0,0 +1,53 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/sound/awinic,aw88395.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Awinic AW88395 Smart Audio Amplifier
+
+maintainers:
+  - Weidong Wang <wangweidong.a@awinic.com>
+
+description:
+  The Awinic AW88395 is an I2S/TDM input, high efficiency
+  digital Smart K audio amplifier with an integrated 10.25V
+  smart boost convert.
+
+allOf:
+  - $ref: dai-common.yaml#
+
+properties:
+  compatible:
+    const: awinic,aw88395
+
+  reg:
+    maxItems: 1
+
+  '#sound-dai-cells':
+    const: 0
+
+  reset-gpios:
+    maxItems: 1
+
+required:
+  - compatible
+  - reg
+  - '#sound-dai-cells'
+  - reset-gpios
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/gpio/gpio.h>
+    i2c {
+        #address-cells = <1>;
+        #size-cells = <0>;
+        audio-codec@34 {
+            compatible = "awinic,aw88395";
+            reg = <0x34>;
+            #sound-dai-cells = <0>;
+            reset-gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
+        };
+    };
-- 
2.39.0


  parent reply	other threads:[~2023-01-06  3:29 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-06  3:28 [PATCH V9 0/5] ASoC: codecs: Add Awinic AW883XX audio amplifier driver wangweidong.a
2023-01-06  3:28 ` wangweidong.a
2023-01-06  3:28 ` [PATCH V9 1/5] ASoC: codecs: Add i2c and codec registration for aw883xx and their associated operation functions wangweidong.a
2023-01-06  3:28   ` wangweidong.a
2023-01-06  3:28 ` [PATCH V9 2/5] ASoC: codecs: Aw883xx function for ACF file parse and check wangweidong.a
2023-01-06  3:28   ` wangweidong.a
2023-01-06  3:28 ` [PATCH V9 3/5] ASoC: codecs: Aw883xx common function for ALSA Audio Driver wangweidong.a
2023-01-06  3:28   ` wangweidong.a
2023-01-06  3:28 ` [PATCH V9 4/5] ASoC: codecs: Aw883xx chip register file, data type file and Kconfig Makefile wangweidong.a
2023-01-06  3:28   ` wangweidong.a
2023-01-06 12:40   ` kernel test robot
2023-01-06 12:40     ` kernel test robot
2023-01-09 19:00   ` kernel test robot
2023-01-09 19:00     ` kernel test robot
2023-01-11  2:02     ` wangweidong.a
2023-01-11  2:02       ` wangweidong.a
2023-01-11  8:38       ` Martin Povišer
2023-01-11  8:38         ` Martin Povišer
2023-01-13  3:46         ` wangweidong.a
2023-01-13  3:46           ` wangweidong.a
2023-01-11  8:53       ` Krzysztof Kozlowski
2023-01-11  8:53         ` Krzysztof Kozlowski
2023-01-06  3:28 ` wangweidong.a [this message]
2023-01-06  3:28   ` [PATCH V9 5/5] ASoC: dt-bindings: Add schema for "awinic,aw88395" wangweidong.a
2023-01-06  8:30   ` Krzysztof Kozlowski
2023-01-06  8:30     ` [PATCH V9 5/5] ASoC: dt-bindings: Add schema for "awinic, aw88395" Krzysztof Kozlowski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230106032835.141918-6-wangweidong.a@awinic.com \
    --to=wangweidong.a@awinic.com \
    --cc=13691752556@139.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=cezary.rojewski@intel.com \
    --cc=ckeepax@opensource.cirrus.com \
    --cc=daniel.beer@igorinstitute.com \
    --cc=devicetree@vger.kernel.org \
    --cc=flatmax@flatmax.com \
    --cc=james.schulman@cirrus.com \
    --cc=jonathan.albrieux@gmail.com \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=lgirdwood@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=liweilei@awinic.com \
    --cc=perex@perex.cz \
    --cc=pierre-louis.bossart@linux.intel.com \
    --cc=povik+lin@cutebit.org \
    --cc=rf@opensource.cirrus.com \
    --cc=robh+dt@kernel.org \
    --cc=srinivas.kandagatla@linaro.org \
    --cc=steve@sk2.org \
    --cc=tiwai@suse.com \
    --cc=yangxiaohua@everest-semi.com \
    --cc=yijiangtao@awinic.com \
    --cc=zhaolei@awinic.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.