* [PATCH 0/2] Add DT binding support for mmc35240
@ 2015-07-17 8:34 Jandy Gou
2015-07-17 8:34 ` Jandy Gou
2015-07-17 8:34 ` Jandy Gou
0 siblings, 2 replies; 10+ messages in thread
From: Jandy Gou @ 2015-07-17 8:34 UTC (permalink / raw)
To: jic23
Cc: daniel.baluta, viorel.suman, knaack.h, lars, pmeerw, linux-iio,
linux-kernel, devicetree, Jandy Gou
Add basic DT binding for mmc35240
Add DT binding doc for mmc35240
Jandy Gou (2):
iio: magnetometer: mmc35240: Add DT binding
iio: magnetometer: mmc35240: Add DT binding doc
.../devicetree/bindings/iio/magnetometer/mmc35240.txt | 13 +++++++++++++
drivers/iio/magnetometer/mmc35240.c | 7 +++++++
2 files changed, 20 insertions(+)
create mode 100644 Documentation/devicetree/bindings/iio/magnetometer/mmc35240.txt
--
1.9.1
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 1/2] iio: magnetometer: mmc35240: Add DT binding
@ 2015-07-17 8:34 ` Jandy Gou
0 siblings, 0 replies; 10+ messages in thread
From: Jandy Gou @ 2015-07-17 8:34 UTC (permalink / raw)
To: jic23
Cc: daniel.baluta, viorel.suman, knaack.h, lars, pmeerw, linux-iio,
linux-kernel, devicetree, Jandy Gou
Signed-off-by: Jandy Gou <qingsong.gou@ck-telecom.com>
---
drivers/iio/magnetometer/mmc35240.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/drivers/iio/magnetometer/mmc35240.c b/drivers/iio/magnetometer/mmc35240.c
index 7a2ea71..9bc542d 100644
--- a/drivers/iio/magnetometer/mmc35240.c
+++ b/drivers/iio/magnetometer/mmc35240.c
@@ -550,6 +550,12 @@ static const struct dev_pm_ops mmc35240_pm_ops = {
SET_SYSTEM_SLEEP_PM_OPS(mmc35240_suspend, mmc35240_resume)
};
+static const struct of_device_id mmc35240_of_match[] = {
+ { .compatible = "memsic,mmc35240", },
+ { }
+};
+MODULE_DEVICE_TABLE(of, mmc35240_of_match);
+
static const struct acpi_device_id mmc35240_acpi_match[] = {
{"MMC35240", 0},
{ },
@@ -565,6 +571,7 @@ MODULE_DEVICE_TABLE(i2c, mmc35240_id);
static struct i2c_driver mmc35240_driver = {
.driver = {
.name = MMC35240_DRV_NAME,
+ .of_match_table = mmc35240_of_match,
.pm = &mmc35240_pm_ops,
.acpi_match_table = ACPI_PTR(mmc35240_acpi_match),
},
--
1.9.1
^ permalink raw reply related [flat|nested] 10+ messages in thread* [PATCH 1/2] iio: magnetometer: mmc35240: Add DT binding
@ 2015-07-17 8:34 ` Jandy Gou
0 siblings, 0 replies; 10+ messages in thread
From: Jandy Gou @ 2015-07-17 8:34 UTC (permalink / raw)
To: jic23-DgEjT+Ai2ygdnm+yROfE0A
Cc: daniel.baluta-ral2JQCrhuEAvxtiuMwx3w,
viorel.suman-ral2JQCrhuEAvxtiuMwx3w, knaack.h-Mmb7MZpHnFY,
lars-Qo5EllUWu/uELgA04lAiVw, pmeerw-jW+XmwGofnusTnJN9+BGXg,
linux-iio-u79uwXL29TY76Z2rM5mHXA,
linux-kernel-u79uwXL29TY76Z2rM5mHXA,
devicetree-u79uwXL29TY76Z2rM5mHXA, Jandy Gou
Signed-off-by: Jandy Gou <qingsong.gou-iOBi6ErZv8IxpvK4C0GaPQ@public.gmane.org>
---
drivers/iio/magnetometer/mmc35240.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/drivers/iio/magnetometer/mmc35240.c b/drivers/iio/magnetometer/mmc35240.c
index 7a2ea71..9bc542d 100644
--- a/drivers/iio/magnetometer/mmc35240.c
+++ b/drivers/iio/magnetometer/mmc35240.c
@@ -550,6 +550,12 @@ static const struct dev_pm_ops mmc35240_pm_ops = {
SET_SYSTEM_SLEEP_PM_OPS(mmc35240_suspend, mmc35240_resume)
};
+static const struct of_device_id mmc35240_of_match[] = {
+ { .compatible = "memsic,mmc35240", },
+ { }
+};
+MODULE_DEVICE_TABLE(of, mmc35240_of_match);
+
static const struct acpi_device_id mmc35240_acpi_match[] = {
{"MMC35240", 0},
{ },
@@ -565,6 +571,7 @@ MODULE_DEVICE_TABLE(i2c, mmc35240_id);
static struct i2c_driver mmc35240_driver = {
.driver = {
.name = MMC35240_DRV_NAME,
+ .of_match_table = mmc35240_of_match,
.pm = &mmc35240_pm_ops,
.acpi_match_table = ACPI_PTR(mmc35240_acpi_match),
},
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 10+ messages in thread* Re: [PATCH 1/2] iio: magnetometer: mmc35240: Add DT binding
@ 2015-07-17 10:38 ` Daniel Baluta
0 siblings, 0 replies; 10+ messages in thread
From: Daniel Baluta @ 2015-07-17 10:38 UTC (permalink / raw)
To: Jandy Gou
Cc: Jonathan Cameron, Daniel Baluta, viorel.suman, Hartmut Knaack,
Lars-Peter Clausen, Peter Meerwald, linux-iio@vger.kernel.org,
Linux Kernel Mailing List, devicetree
On Fri, Jul 17, 2015 at 11:34 AM, Jandy Gou <qingsong.gou@ck-telecom.com> wrote:
> Signed-off-by: Jandy Gou <qingsong.gou@ck-telecom.com>
Acked-by: Daniel Baluta <daniel.baluta@intel.com>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 1/2] iio: magnetometer: mmc35240: Add DT binding
@ 2015-07-17 10:38 ` Daniel Baluta
0 siblings, 0 replies; 10+ messages in thread
From: Daniel Baluta @ 2015-07-17 10:38 UTC (permalink / raw)
To: Jandy Gou
Cc: Jonathan Cameron, Daniel Baluta,
viorel.suman-ral2JQCrhuEAvxtiuMwx3w, Hartmut Knaack,
Lars-Peter Clausen, Peter Meerwald,
linux-iio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Linux Kernel Mailing List, devicetree-u79uwXL29TY76Z2rM5mHXA
On Fri, Jul 17, 2015 at 11:34 AM, Jandy Gou <qingsong.gou-iOBi6ErZv8IxpvK4C0GaPQ@public.gmane.org> wrote:
> Signed-off-by: Jandy Gou <qingsong.gou-iOBi6ErZv8IxpvK4C0GaPQ@public.gmane.org>
Acked-by: Daniel Baluta <daniel.baluta-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 1/2] iio: magnetometer: mmc35240: Add DT binding
2015-07-17 10:38 ` Daniel Baluta
(?)
@ 2015-07-19 9:56 ` Jonathan Cameron
-1 siblings, 0 replies; 10+ messages in thread
From: Jonathan Cameron @ 2015-07-19 9:56 UTC (permalink / raw)
To: Daniel Baluta, Jandy Gou
Cc: viorel.suman, Hartmut Knaack, Lars-Peter Clausen, Peter Meerwald,
linux-iio@vger.kernel.org, Linux Kernel Mailing List, devicetree
On 17/07/15 11:38, Daniel Baluta wrote:
> On Fri, Jul 17, 2015 at 11:34 AM, Jandy Gou <qingsong.gou@ck-telecom.com> wrote:
>> Signed-off-by: Jandy Gou <qingsong.gou@ck-telecom.com>
>
> Acked-by: Daniel Baluta <daniel.baluta@intel.com>
>
Applied to the togreg branch of iio.git - initially pushed out as testing for the
autobuilders to play with it.
Thanks,
Jonathan
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 2/2] iio: magnetometer: mmc35240: Add DT binding doc
@ 2015-07-17 8:34 ` Jandy Gou
0 siblings, 0 replies; 10+ messages in thread
From: Jandy Gou @ 2015-07-17 8:34 UTC (permalink / raw)
To: jic23
Cc: daniel.baluta, viorel.suman, knaack.h, lars, pmeerw, linux-iio,
linux-kernel, devicetree, Jandy Gou
Signed-off-by: Jandy Gou <qingsong.gou@ck-telecom.com>
---
.../devicetree/bindings/iio/magnetometer/mmc35240.txt | 13 +++++++++++++
1 file changed, 13 insertions(+)
create mode 100644 Documentation/devicetree/bindings/iio/magnetometer/mmc35240.txt
diff --git a/Documentation/devicetree/bindings/iio/magnetometer/mmc35240.txt b/Documentation/devicetree/bindings/iio/magnetometer/mmc35240.txt
new file mode 100644
index 0000000..a01235c
--- /dev/null
+++ b/Documentation/devicetree/bindings/iio/magnetometer/mmc35240.txt
@@ -0,0 +1,13 @@
+* MEMSIC MMC35240 magnetometer sensor
+
+Required properties:
+
+ - compatible : should be "memsic,mmc35240"
+ - reg : the I2C address of the magnetometer
+
+Example:
+
+mmc35240@30 {
+ compatible = "memsic,mmc35240";
+ reg = <0x30>;
+};
--
1.9.1
^ permalink raw reply related [flat|nested] 10+ messages in thread* [PATCH 2/2] iio: magnetometer: mmc35240: Add DT binding doc
@ 2015-07-17 8:34 ` Jandy Gou
0 siblings, 0 replies; 10+ messages in thread
From: Jandy Gou @ 2015-07-17 8:34 UTC (permalink / raw)
To: jic23-DgEjT+Ai2ygdnm+yROfE0A
Cc: daniel.baluta-ral2JQCrhuEAvxtiuMwx3w,
viorel.suman-ral2JQCrhuEAvxtiuMwx3w, knaack.h-Mmb7MZpHnFY,
lars-Qo5EllUWu/uELgA04lAiVw, pmeerw-jW+XmwGofnusTnJN9+BGXg,
linux-iio-u79uwXL29TY76Z2rM5mHXA,
linux-kernel-u79uwXL29TY76Z2rM5mHXA,
devicetree-u79uwXL29TY76Z2rM5mHXA, Jandy Gou
Signed-off-by: Jandy Gou <qingsong.gou-iOBi6ErZv8IxpvK4C0GaPQ@public.gmane.org>
---
.../devicetree/bindings/iio/magnetometer/mmc35240.txt | 13 +++++++++++++
1 file changed, 13 insertions(+)
create mode 100644 Documentation/devicetree/bindings/iio/magnetometer/mmc35240.txt
diff --git a/Documentation/devicetree/bindings/iio/magnetometer/mmc35240.txt b/Documentation/devicetree/bindings/iio/magnetometer/mmc35240.txt
new file mode 100644
index 0000000..a01235c
--- /dev/null
+++ b/Documentation/devicetree/bindings/iio/magnetometer/mmc35240.txt
@@ -0,0 +1,13 @@
+* MEMSIC MMC35240 magnetometer sensor
+
+Required properties:
+
+ - compatible : should be "memsic,mmc35240"
+ - reg : the I2C address of the magnetometer
+
+Example:
+
+mmc35240@30 {
+ compatible = "memsic,mmc35240";
+ reg = <0x30>;
+};
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 10+ messages in thread* Re: [PATCH 2/2] iio: magnetometer: mmc35240: Add DT binding doc
2015-07-17 8:34 ` Jandy Gou
(?)
@ 2015-07-19 9:57 ` Jonathan Cameron
-1 siblings, 0 replies; 10+ messages in thread
From: Jonathan Cameron @ 2015-07-19 9:57 UTC (permalink / raw)
To: Jandy Gou
Cc: daniel.baluta, viorel.suman, knaack.h, lars, pmeerw, linux-iio,
linux-kernel, devicetree
On 17/07/15 09:34, Jandy Gou wrote:
> Signed-off-by: Jandy Gou <qingsong.gou@ck-telecom.com>
This is so trivial, I'm taking it without waiting for the standard device tree ack / 3 weeks.
Applied to the togreg branch of iio.git - initially pushed out as testing.
> ---
> .../devicetree/bindings/iio/magnetometer/mmc35240.txt | 13 +++++++++++++
> 1 file changed, 13 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/iio/magnetometer/mmc35240.txt
>
> diff --git a/Documentation/devicetree/bindings/iio/magnetometer/mmc35240.txt b/Documentation/devicetree/bindings/iio/magnetometer/mmc35240.txt
> new file mode 100644
> index 0000000..a01235c
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/iio/magnetometer/mmc35240.txt
> @@ -0,0 +1,13 @@
> +* MEMSIC MMC35240 magnetometer sensor
> +
> +Required properties:
> +
> + - compatible : should be "memsic,mmc35240"
> + - reg : the I2C address of the magnetometer
> +
> +Example:
> +
> +mmc35240@30 {
> + compatible = "memsic,mmc35240";
> + reg = <0x30>;
> +};
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 0/2] Add DT binding support for mmc35240
@ 2015-07-17 7:35 Jandy Gou
2015-07-17 7:35 ` [PATCH 2/2] iio: magnetometer: mmc35240: Add DT binding doc Jandy Gou
0 siblings, 1 reply; 10+ messages in thread
From: Jandy Gou @ 2015-07-17 7:35 UTC (permalink / raw)
To: jic23
Cc: daniel.baluta, viorel.suman, knaack.h, lars, pmeerw, linux-iio,
linux-kernel, Jandy Gou
Add basic DT binding for mmc35240
Add DT binding doc for mmc35240
Jandy Gou (2):
iio: magnetometer: mmc35240: Add DT binding
iio: magnetometer: mmc35240: Add DT binding doc
.../devicetree/bindings/iio/magnetometer/mmc35240.txt | 13 +++++++++++++
drivers/iio/magnetometer/mmc35240.c | 7 +++++++
2 files changed, 20 insertions(+)
create mode 100644 Documentation/devicetree/bindings/iio/magnetometer/mmc35240.txt
--
1.9.1
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 2/2] iio: magnetometer: mmc35240: Add DT binding doc
2015-07-17 7:35 [PATCH 0/2] Add DT binding support for mmc35240 Jandy Gou
@ 2015-07-17 7:35 ` Jandy Gou
0 siblings, 0 replies; 10+ messages in thread
From: Jandy Gou @ 2015-07-17 7:35 UTC (permalink / raw)
To: jic23
Cc: daniel.baluta, viorel.suman, knaack.h, lars, pmeerw, linux-iio,
linux-kernel, Jandy Gou
Signed-off-by: Jandy Gou <qingsong.gou@ck-telecom.com>
---
.../devicetree/bindings/iio/magnetometer/mmc35240.txt | 13 +++++++++++++
1 file changed, 13 insertions(+)
create mode 100644 Documentation/devicetree/bindings/iio/magnetometer/mmc35240.txt
diff --git a/Documentation/devicetree/bindings/iio/magnetometer/mmc35240.txt b/Documentation/devicetree/bindings/iio/magnetometer/mmc35240.txt
new file mode 100644
index 0000000..a01235c
--- /dev/null
+++ b/Documentation/devicetree/bindings/iio/magnetometer/mmc35240.txt
@@ -0,0 +1,13 @@
+* MEMSIC MMC35240 magnetometer sensor
+
+Required properties:
+
+ - compatible : should be "memsic,mmc35240"
+ - reg : the I2C address of the magnetometer
+
+Example:
+
+mmc35240@30 {
+ compatible = "memsic,mmc35240";
+ reg = <0x30>;
+};
--
1.9.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
end of thread, other threads:[~2015-07-19 9:57 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-17 8:34 [PATCH 0/2] Add DT binding support for mmc35240 Jandy Gou
2015-07-17 8:34 ` [PATCH 1/2] iio: magnetometer: mmc35240: Add DT binding Jandy Gou
2015-07-17 8:34 ` Jandy Gou
2015-07-17 10:38 ` Daniel Baluta
2015-07-17 10:38 ` Daniel Baluta
2015-07-19 9:56 ` Jonathan Cameron
2015-07-17 8:34 ` [PATCH 2/2] iio: magnetometer: mmc35240: Add DT binding doc Jandy Gou
2015-07-17 8:34 ` Jandy Gou
2015-07-19 9:57 ` Jonathan Cameron
-- strict thread matches above, loose matches on Subject: below --
2015-07-17 7:35 [PATCH 0/2] Add DT binding support for mmc35240 Jandy Gou
2015-07-17 7:35 ` [PATCH 2/2] iio: magnetometer: mmc35240: Add DT binding doc Jandy Gou
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.