<div dir="ltr">Hi Markus,<div><br></div><div style>I've already submitted basically this and it's in linux-next:</div><div style><a href="http://git.kernel.org/?p=linux/kernel/git/next/linux-next.git;a=commitdiff;h=28c55dc1acc863cb29832b5be2464ebcdafdc3d5">http://git.kernel.org/?p=linux/kernel/git/next/linux-next.git;a=commitdiff;h=28c55dc1acc863cb29832b5be2464ebcdafdc3d5</a><br>
</div><div style><br></div><div style>Also:</div><div style><span style="font-family:arial,sans-serif;font-size:12.499999046325684px">+Example:</span><br style="font-family:arial,sans-serif;font-size:12.499999046325684px">
<span style="font-family:arial,sans-serif;font-size:12.499999046325684px">+ w1: w1@10009000 {</span><br style="font-family:arial,sans-serif;font-size:12.499999046325684px"><span style="font-family:arial,sans-serif;font-size:12.499999046325684px">+ compatible = "fsl,imx27-w1";</span><br style="font-family:arial,sans-serif;font-size:12.499999046325684px">
<span style="font-family:arial,sans-serif;font-size:12.499999046325684px">+ reg = <0x10009000 0x1000>;</span><br style="font-family:arial,sans-serif;font-size:12.499999046325684px"><span style="font-family:arial,sans-serif;font-size:12.499999046325684px">+ };</span><br>
</div><div style>...</div><div style><span style="font-family:arial,sans-serif;font-size:12.499999046325684px">+struct of_device_id mxc_w1_of_ids[] = {</span><br style="font-family:arial,sans-serif;font-size:12.499999046325684px">
<span style="font-family:arial,sans-serif;font-size:12.499999046325684px">+ { .compatible = "fsl,imx21-w1", },</span><br style="font-family:arial,sans-serif;font-size:12.499999046325684px"><span style="font-family:arial,sans-serif;font-size:12.499999046325684px">+ { /* sentinel */ }</span><br style="font-family:arial,sans-serif;font-size:12.499999046325684px">
<span style="font-family:arial,sans-serif;font-size:12.499999046325684px">+};</span><br></div><div style><br></div><div style>Isn't there a mismatch imx27 vs imx21 here?</div><div style><br></div><div style>Regards,</div>
<div style><br></div><div style>Martin</div><div style><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Feb 23, 2013 at 6:35 PM, Markus Pargmann <span dir="ltr"><<a href="mailto:mpa@pengutronix.de" target="_blank">mpa@pengutronix.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Add devicetree support for mxc_w1 driver.<br>
<br>
Signed-off-by: Markus Pargmann <<a href="mailto:mpa@pengutronix.de">mpa@pengutronix.de</a>><br>
---<br>
Documentation/devicetree/bindings/w1/fsl,mxc-w1.txt | 13 +++++++++++++<br>
drivers/w1/masters/mxc_w1.c | 7 +++++++<br>
2 files changed, 20 insertions(+)<br>
create mode 100644 Documentation/devicetree/bindings/w1/fsl,mxc-w1.txt<br>
<br>
diff --git a/Documentation/devicetree/bindings/w1/fsl,mxc-w1.txt b/Documentation/devicetree/bindings/w1/fsl,mxc-w1.txt<br>
new file mode 100644<br>
index 0000000..686ced4<br>
--- /dev/null<br>
+++ b/Documentation/devicetree/bindings/w1/fsl,mxc-w1.txt<br>
@@ -0,0 +1,13 @@<br>
+Freescale driver for Dalla's 1-wire bus master on imx chips<br>
+<br>
+This driver supports imx21,27,31,35.<br>
+<br>
+Required properties:<br>
+- compatible : "fsl,<chip>-w1"<br>
+- reg : Should be the memory range.<br>
+<br>
+Example:<br>
+ w1: w1@10009000 {<br>
+ compatible = "fsl,imx27-w1";<br>
+ reg = <0x10009000 0x1000>;<br>
+ };<br>
diff --git a/drivers/w1/masters/mxc_w1.c b/drivers/w1/masters/mxc_w1.c<br>
index 708a25f..827ff7f 100644<br>
--- a/drivers/w1/masters/mxc_w1.c<br>
+++ b/drivers/w1/masters/mxc_w1.c<br>
@@ -186,9 +186,16 @@ static int mxc_w1_remove(struct platform_device *pdev)<br>
return 0;<br>
}<br>
<br>
+struct of_device_id mxc_w1_of_ids[] = {<br>
+ { .compatible = "fsl,imx21-w1", },<br>
+ { /* sentinel */ }<br>
+};<br>
+MODULE_DEVICE_TABLE(of, mxc_w1_of_ids);<br>
+<br>
static struct platform_driver mxc_w1_driver = {<br>
.driver = {<br>
.name = "mxc_w1",<br>
+ .of_match_table = mxc_w1_of_ids,<br>
},<br>
.probe = mxc_w1_probe,<br>
.remove = mxc_w1_remove,<br>
<span class="HOEnZb"><font color="#888888">--<br>
1.8.1.2<br>
<br>
<br>
_______________________________________________<br>
linux-arm-kernel mailing list<br>
<a href="mailto:linux-arm-kernel@lists.infradead.org">linux-arm-kernel@lists.infradead.org</a><br>
<a href="http://lists.infradead.org/mailman/listinfo/linux-arm-kernel" target="_blank">http://lists.infradead.org/mailman/listinfo/linux-arm-kernel</a><br>
</font></span></blockquote></div><br></div>