Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1296553 > unrolled thread

[PATCH v2 1/2] ASoC: rt5616: add an of_match table

Started byCaesar Wang <wxt@rock-chips.com>
First post2015-12-22 06:50 +0100
Last post2015-12-23 01:40 +0100
Articles 4 — 3 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH v2 1/2] ASoC: rt5616: add an of_match table Caesar Wang <wxt@rock-chips.com> - 2015-12-22 06:50 +0100
    [PATCH v2 2/2] dt-bindings: sound: add devicetree document for rt5616 Caesar Wang <wxt@rock-chips.com> - 2015-12-22 06:50 +0100
      Re: [PATCH v2 2/2] dt-bindings: sound: add devicetree document for  rt5616 Mark Brown <broonie@kernel.org> - 2015-12-23 01:00 +0100
      Re: [PATCH v2 2/2] dt-bindings: sound: add devicetree document for  rt5616 Rob Herring <robh@kernel.org> - 2015-12-23 01:40 +0100

#1296553 — [PATCH v2 1/2] ASoC: rt5616: add an of_match table

FromCaesar Wang <wxt@rock-chips.com>
Date2015-12-22 06:50 +0100
Subject[PATCH v2 1/2] ASoC: rt5616: add an of_match table
Message-ID<qInZD-8gJ-1@gated-at.bofh.it>
Add a device tree match table. This serves to make the driver's support
of device tree more explicit.

Signed-off-by: Caesar Wang <wxt@rock-chips.com>
---

Changes in v2: None
Changes in v1: None

 sound/soc/codecs/rt5616.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/sound/soc/codecs/rt5616.c b/sound/soc/codecs/rt5616.c
index f4005cb..e01a32d 100644
--- a/sound/soc/codecs/rt5616.c
+++ b/sound/soc/codecs/rt5616.c
@@ -1287,6 +1287,14 @@ static const struct i2c_device_id rt5616_i2c_id[] = {
 };
 MODULE_DEVICE_TABLE(i2c, rt5616_i2c_id);
 
+#if defined(CONFIG_OF)
+static const struct of_device_id rt5616_of_match[] = {
+	{ .compatible = "realtek,rt5616", },
+	{},
+};
+MODULE_DEVICE_TABLE(of, rt5616_of_match);
+#endif
+
 static int rt5616_i2c_probe(struct i2c_client *i2c,
 		    const struct i2c_device_id *id)
 {
@@ -1359,6 +1367,7 @@ static void rt5616_i2c_shutdown(struct i2c_client *client)
 static struct i2c_driver rt5616_i2c_driver = {
 	.driver = {
 		.name = "rt5616",
+		.of_match_table = of_match_ptr(rt5616_of_match),
 	},
 	.probe = rt5616_i2c_probe,
 	.remove = rt5616_i2c_remove,
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [next] | [standalone]


#1296556 — [PATCH v2 2/2] dt-bindings: sound: add devicetree document for rt5616

FromCaesar Wang <wxt@rock-chips.com>
Date2015-12-22 06:50 +0100
Subject[PATCH v2 2/2] dt-bindings: sound: add devicetree document for rt5616
Message-ID<qInZE-8gJ-9@gated-at.bofh.it>
In reply to#1296553
Add the description for rt5616 codec.

Signed-off-by: Caesar Wang <wxt@rock-chips.com>

---

Changes in v2:
- As Frank comments, rt5616@1b to instead of rt5616.
- Update the Pins device from Bard.

Changes in v1:
- As Heiko comments, remove the not exist option properties.

 Documentation/devicetree/bindings/sound/rt5616.txt | 26 ++++++++++++++++++++++
 1 file changed, 26 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/sound/rt5616.txt

diff --git a/Documentation/devicetree/bindings/sound/rt5616.txt b/Documentation/devicetree/bindings/sound/rt5616.txt
new file mode 100644
index 0000000..efc48c6
--- /dev/null
+++ b/Documentation/devicetree/bindings/sound/rt5616.txt
@@ -0,0 +1,26 @@
+RT5616 audio CODEC
+
+This device supports I2C only.
+
+Required properties:
+
+- compatible : "realtek,rt5616".
+
+- reg : The I2C address of the device.
+
+Pins on the device (for linking into audio routes) for RT5616:
+
+  * IN1P
+  * IN2P
+  * IN2N
+  * LOUTL
+  * LOUTR
+  * HPOL
+  * HPOR
+
+Example:
+
+codec: rt5616@1b {
+	compatible = "realtek,rt5616";
+	reg = <0x1b>;
+};
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [next] | [standalone]


#1297154 — Re: [PATCH v2 2/2] dt-bindings: sound: add devicetree document for rt5616

FromMark Brown <broonie@kernel.org>
Date2015-12-23 01:00 +0100
SubjectRe: [PATCH v2 2/2] dt-bindings: sound: add devicetree document for rt5616
Message-ID<qIF0u-29Z-15@gated-at.bofh.it>
In reply to#1296556

[Multipart message — attachments visible in raw view] — view raw

On Tue, Dec 22, 2015 at 01:45:03PM +0800, Caesar Wang wrote:
> Add the description for rt5616 codec.

Please use subject lines matching the style for the subsystem.

[toc] | [prev] | [next] | [standalone]


#1297178 — Re: [PATCH v2 2/2] dt-bindings: sound: add devicetree document for rt5616

FromRob Herring <robh@kernel.org>
Date2015-12-23 01:40 +0100
SubjectRe: [PATCH v2 2/2] dt-bindings: sound: add devicetree document for rt5616
Message-ID<qIFDc-2Co-15@gated-at.bofh.it>
In reply to#1296556
On Tue, Dec 22, 2015 at 01:45:03PM +0800, Caesar Wang wrote:
> Add the description for rt5616 codec.
> 
> Signed-off-by: Caesar Wang <wxt@rock-chips.com>
> 
> ---
> 
> Changes in v2:
> - As Frank comments, rt5616@1b to instead of rt5616.
> - Update the Pins device from Bard.
> 
> Changes in v1:
> - As Heiko comments, remove the not exist option properties.

> 
>  Documentation/devicetree/bindings/sound/rt5616.txt | 26 ++++++++++++++++++++++
>  1 file changed, 26 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/sound/rt5616.txt

Acked-by: Rob Herring <robh@kernel.org>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web