Skip to contentSkip to conversation

add support for Freescale's MMA8653FC 10 bit accelerometer

PATCH Superseded Martin Kepplinger 2 participants 5 messages Mar 20, 2015 – Mar 26, 2015

Subsystems (3)

v5 of 6 Superseded Latest is v6 →

lore
Share & tools
lore
#0 lore raw

PATCH v5 1/1 add support for Freescale's MMA8653FC 10 bit accelerometer

From: Martin Kepplinger <martin.kepplinger-SN7IsUiht6C/[email protected]>

The MMA8653FC is a low-power, three-axis, capacitive micromachined accelerometer with 10 bits of resolution with flexible user-programmable options.

Embedded interrupt functions enable overall power savings, by relieving the host processor from continuously polling data, for example using the poll() system call.

The device can be configured to generate wake-up interrupt signals from any combination of the configurable embedded functions, enabling the MMA8653FC to monitor events while remaining in a low-power mode during periods of inactivity.

This driver provides devicetree properties to program the device's behaviour and a simple, tested and documented sysfs interface. The data sheet and more information is available on Freescale's website.

---

patch revision history
......................
v5 clean up (suggested by Varka Bhadram) and move the driver to staging v4 changes DT propery names, adds a missing interrupt source and removes
the DT option to set interrupt line active high due to unsuccesful testing
v3 moves the driver from drivers/input/misc to drivers/misc
v2 corrects licensing and commit messages and adds appropriate recipients

 drivers/staging/Kconfig               |   2 +
 drivers/staging/mma8653fc/Kconfig     |  10 +
 drivers/staging/mma8653fc/Makefile    |   1 +
 drivers/staging/mma8653fc/TODO        | 146 ++++++
 drivers/staging/mma8653fc/mma8653fc.c | 864 ++++++++++++++++++++++++++++++++++
 5 files changed, 1023 insertions(+)
 create mode 100644 drivers/staging/mma8653fc/Kconfig
 create mode 100644 drivers/staging/mma8653fc/Makefile
 create mode 100644 drivers/staging/mma8653fc/TODO
 create mode 100644 drivers/staging/mma8653fc/mma8653fc.c
drivers/staging/Kconfig +2 -0
index 45baa83..661e5f5 100644
@@ -108,4 +108,6 @@ source "drivers/staging/fbtft/Kconfig"
 
 source "drivers/staging/i2o/Kconfig"
 
+source "drivers/staging/mma8653fc/Kconfig"
+
 endif # STAGING
drivers/staging/mma8653fc/Kconfig new file +10 -0
new file mode 100644
index 0000000..988451b
@@ -0,0 +1,10 @@
+config MMA8653FC
+        tristate "MMA8653FC - Freescale's 3-Axis, 10-bit Digital Accelerometer"
+        depends on I2C
+        default n
+        help
+          Say Y here if you want to support Freescale's MMA8653FC Accelerometer
+          through I2C interface.
+
+          To compile this driver as a module, choose M here: the
+          module will be called mma8653fc.
drivers/staging/mma8653fc/Makefile new file +1 -0
new file mode 100644
index 0000000..9a245a3
@@ -0,0 +1 @@
+obj-$(CONFIG_MMA8653FC)         += mma8653fc.o
drivers/staging/mma8653fc/TODO new file +146 -0

146 lines not on this page · raw message

drivers/staging/mma8653fc/mma8653fc.c new file +864 -0

864 lines not on this page · raw message

Signature · 6 lines
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#1 lore raw

PATCH v5 1/1 add support for Freescale's MMA8653FC 10 bit accelerometer

From: Martin Kepplinger <[email protected]>

The MMA8653FC is a low-power, three-axis, capacitive micromachined accelerometer with 10 bits of resolution with flexible user-programmable options.

Embedded interrupt functions enable overall power savings, by relieving the host processor from continuously polling data, for example using the poll() system call.

The device can be configured to generate wake-up interrupt signals from any combination of the configurable embedded functions, enabling the MMA8653FC to monitor events while remaining in a low-power mode during periods of inactivity.

This driver provides devicetree properties to program the device's behaviour and a simple, tested and documented sysfs interface. The data sheet and more information is available on Freescale's website.

---

This would be v5 aswell, but appies to the current -next tree.

 drivers/staging/mma8653fc/Kconfig     |  10 +
 drivers/staging/mma8653fc/Makefile    |   1 +
 drivers/staging/mma8653fc/TODO        | 146 ++++++
 drivers/staging/mma8653fc/mma8653fc.c | 864 ++++++++++++++++++++++++++++++++++
 4 files changed, 1021 insertions(+)
 create mode 100644 drivers/staging/mma8653fc/Kconfig
 create mode 100644 drivers/staging/mma8653fc/Makefile
 create mode 100644 drivers/staging/mma8653fc/TODO
 create mode 100644 drivers/staging/mma8653fc/mma8653fc.c
drivers/staging/mma8653fc/Kconfig new file +10 -0
new file mode 100644
index 0000000..988451b
@@ -0,0 +1,10 @@
+config MMA8653FC
+        tristate "MMA8653FC - Freescale's 3-Axis, 10-bit Digital Accelerometer"
+        depends on I2C
+        default n
+        help
+          Say Y here if you want to support Freescale's MMA8653FC Accelerometer
+          through I2C interface.
+
+          To compile this driver as a module, choose M here: the
+          module will be called mma8653fc.
drivers/staging/mma8653fc/Makefile new file +1 -0
new file mode 100644
index 0000000..9a245a3
@@ -0,0 +1 @@
+obj-$(CONFIG_MMA8653FC)         += mma8653fc.o
drivers/staging/mma8653fc/TODO new file +146 -0

146 lines not on this page · raw message

drivers/staging/mma8653fc/mma8653fc.c new file +864 -0

864 lines not on this page · raw message

Signature · 1 line
2.1.4
#2 lore raw

PATCH v5 1/1 add support for Freescale's MMA8653FC 10 bit accelerometer

From: Martin Kepplinger <[email protected]>

The MMA8653FC is a low-power, three-axis, capacitive micromachined accelerometer with 10 bits of resolution with flexible user-programmable options.

Embedded interrupt functions enable overall power savings, by relieving the host processor from continuously polling data, for example using the poll() system call.

The device can be configured to generate wake-up interrupt signals from any combination of the configurable embedded functions, enabling the MMA8653FC to monitor events while remaining in a low-power mode during periods of inactivity.

This driver provides devicetree properties to program the device's behaviour and a simple, tested and documented sysfs interface. The data sheet and more information is available on Freescale's website.

---

Sorry, I forgot the Kconfig integration into drivers/staging. This applies and builds.

 drivers/staging/Kconfig               |   2 +
 drivers/staging/mma8653fc/Kconfig     |  10 +
 drivers/staging/mma8653fc/Makefile    |   1 +
 drivers/staging/mma8653fc/TODO        | 146 ++++++
 drivers/staging/mma8653fc/mma8653fc.c | 864 ++++++++++++++++++++++++++++++++++
 5 files changed, 1023 insertions(+)
 create mode 100644 drivers/staging/mma8653fc/Kconfig
 create mode 100644 drivers/staging/mma8653fc/Makefile
 create mode 100644 drivers/staging/mma8653fc/TODO
 create mode 100644 drivers/staging/mma8653fc/mma8653fc.c
drivers/staging/Kconfig +2 -0
index bfacf69..834d949 100644
@@ -112,4 +112,6 @@ source "drivers/staging/i2o/Kconfig"
 
 source "drivers/staging/fsl-mc/Kconfig"
 
+source "drivers/staging/mma8653fc/Kconfig"
+
 endif # STAGING
drivers/staging/mma8653fc/Kconfig new file +10 -0
new file mode 100644
index 0000000..988451b
@@ -0,0 +1,10 @@
+config MMA8653FC
+        tristate "MMA8653FC - Freescale's 3-Axis, 10-bit Digital Accelerometer"
+        depends on I2C
+        default n
+        help
+          Say Y here if you want to support Freescale's MMA8653FC Accelerometer
+          through I2C interface.
+
+          To compile this driver as a module, choose M here: the
+          module will be called mma8653fc.
drivers/staging/mma8653fc/Makefile new file +1 -0
new file mode 100644
index 0000000..9a245a3
@@ -0,0 +1 @@
+obj-$(CONFIG_MMA8653FC)         += mma8653fc.o
drivers/staging/mma8653fc/TODO new file +146 -0

146 lines not on this page · raw message

drivers/staging/mma8653fc/mma8653fc.c new file +864 -0

864 lines not on this page · raw message

Signature · 1 line
2.1.4
#3 lore raw

PATCH v5 1/1 add support for Freescale's MMA8653FC 10 bit accelerometer

From: Martin Kepplinger <martin.kepplinger-SN7IsUiht6C/[email protected]>

The MMA8653FC is a low-power, three-axis, capacitive micromachined accelerometer with 10 bits of resolution with flexible user-programmable options.

Embedded interrupt functions enable overall power savings, by relieving the host processor from continuously polling data, for example using the poll() system call.

The device can be configured to generate wake-up interrupt signals from any combination of the configurable embedded functions, enabling the MMA8653FC to monitor events while remaining in a low-power mode during periods of inactivity.

This driver provides devicetree properties to program the device's behaviour and a simple, tested and documented sysfs interface. The data sheet and more information is available on Freescale's website.

---

Still, I was missing the drivers/staging Makefile addition. This applies and builds automatically.

 drivers/staging/Kconfig               |   2 +
 drivers/staging/Makefile              |   1 +
 drivers/staging/mma8653fc/Kconfig     |  10 +
 drivers/staging/mma8653fc/Makefile    |   1 +
 drivers/staging/mma8653fc/TODO        | 146 ++++++
 drivers/staging/mma8653fc/mma8653fc.c | 864 ++++++++++++++++++++++++++++++++++
 6 files changed, 1024 insertions(+)
 create mode 100644 drivers/staging/mma8653fc/Kconfig
 create mode 100644 drivers/staging/mma8653fc/Makefile
 create mode 100644 drivers/staging/mma8653fc/TODO
 create mode 100644 drivers/staging/mma8653fc/mma8653fc.c
drivers/staging/Kconfig +2 -0
index bfacf69..834d949 100644
@@ -112,4 +112,6 @@ source "drivers/staging/i2o/Kconfig"
 
 source "drivers/staging/fsl-mc/Kconfig"
 
+source "drivers/staging/mma8653fc/Kconfig"
+
 endif # STAGING
drivers/staging/Makefile +1 -0
index 2bbd1bf..cfea86a 100644
@@ -48,3 +48,4 @@ obj-$(CONFIG_COMMON_CLK_XLNX_CLKWZRD)	+= clocking-wizard/
 obj-$(CONFIG_FB_TFT)		+= fbtft/
 obj-$(CONFIG_I2O)		+= i2o/
 obj-$(CONFIG_FSL_MC_BUS)	+= fsl-mc/
+obj-$(CONFIG_MMA8653FC)		+= mma8653fc/
drivers/staging/mma8653fc/Kconfig new file +10 -0
new file mode 100644
index 0000000..988451b
@@ -0,0 +1,10 @@
+config MMA8653FC
+        tristate "MMA8653FC - Freescale's 3-Axis, 10-bit Digital Accelerometer"
+        depends on I2C
+        default n
+        help
+          Say Y here if you want to support Freescale's MMA8653FC Accelerometer
+          through I2C interface.
+
+          To compile this driver as a module, choose M here: the
+          module will be called mma8653fc.
drivers/staging/mma8653fc/Makefile new file +1 -0
new file mode 100644
index 0000000..9a245a3
@@ -0,0 +1 @@
+obj-$(CONFIG_MMA8653FC)         += mma8653fc.o
drivers/staging/mma8653fc/TODO new file +146 -0

146 lines not on this page · raw message

drivers/staging/mma8653fc/mma8653fc.c new file +864 -0

864 lines not on this page · raw message

Signature · 1 line
2.1.4
maintainer
#4 lore raw
Quoted 19 lines · Martin Kepplinger

From: Martin Kepplinger <martin.kepplinger-SN7IsUiht6C/[email protected]>

The MMA8653FC is a low-power, three-axis, capacitive micromachined accelerometer with 10 bits of resolution with flexible user-programmable options.

Embedded interrupt functions enable overall power savings, by relieving the host processor from continuously polling data, for example using the poll() system call.

The device can be configured to generate wake-up interrupt signals from any combination of the configurable embedded functions, enabling the MMA8653FC to monitor events while remaining in a low-power mode during periods of inactivity.

This driver provides devicetree properties to program the device's behaviour and a simple, tested and documented sysfs interface. The data sheet and more information is available on Freescale's website.

Quoted 6 lines

---

Still, I was missing the drivers/staging Makefile addition. This applies and builds automatically.

You sent 4 different copies of a "v5" patch, which kind of defeats the whole purpose of a "v" number...

All of them now deleted from my todo queue, get it together and send a correct one, properly numbered.

thanks,

greg k-h