Skip to contentSkip to conversation

Kconfig help descriptions

DISCUSSION Russell King - ARM Linux 5 participants 7 messages Jul 21, 2011 – Jul 25, 2011

lore
Share & tools
lore
#0 lore raw

Some of the Kconfig help descriptions aren't very useful - for example:

| CONFIG_TWL4030_MADC:
| 
| This driver provides support for triton TWL4030-MADC. The
| driver supports both RT and SW conversion methods.
| 
| This driver can be built as a module. If so it will be
| named twl4030-madc

What is madc? What does it do? Do I enable it for the OMAP 4430SDP ?

#1 lore raw
Quoted 11 lines · Russell King - ARM Linux

Some of the Kconfig help descriptions aren't very useful - for example:

| CONFIG_TWL4030_MADC:
| 
| This driver provides support for triton TWL4030-MADC. The
| driver supports both RT and SW conversion methods.
| 
| This driver can be built as a module. If so it will be
| named twl4030-madc

What is madc? What does it do? Do I enable it for the OMAP 4430SDP ?

Monitoring ADC.

Signature · 1 line
balbi
#2 lore raw
Quoted 11 lines · Felipe Balbi
Quoted 10 lines · Russell King - ARM Linux

Some of the Kconfig help descriptions aren't very useful - for example:

| CONFIG_TWL4030_MADC:
| 
| This driver provides support for triton TWL4030-MADC. The
| driver supports both RT and SW conversion methods.
| 
| This driver can be built as a module. If so it will be
| named twl4030-madc
Quoted 3 lines
Quoted 1 line

What is madc? What does it do? Do I enable it for the OMAP 4430SDP ?

Monitoring ADC.

Well, why doesn't the text _say_ that then? I'm still none the wiser whether it should be enabled or not. What's it used for? Who uses it? When should it be enabled?

Acked-by Guenter Roeck
#3 lore raw
In reply to Russell King - ARM Linux

Hi,

Quoted 11 lines · Russell King - ARM Linux

Some of the Kconfig help descriptions aren't very useful - for example:

| CONFIG_TWL4030_MADC:
| 
| This driver provides support for triton TWL4030-MADC. The
| driver supports both RT and SW conversion methods.
| 
| This driver can be built as a module. If so it will be
| named twl4030-madc

What is madc? What does it do? Do I enable it for the OMAP 4430SDP ?

the problem seems to be worse then you thought:

$ git ls-files drivers/  | grep madc
drivers/hwmon/twl4030-madc-hwmon.c
drivers/mfd/twl4030-madc.c

Both from the same author:

$ git grep -e MODULE_AUTHOR drivers/mfd/twl4030-madc.c drivers/hwmon/twl4030-madc-hwmon.c
drivers/hwmon/twl4030-madc-hwmon.c:MODULE_AUTHOR("J Keerthy");
drivers/mfd/twl4030-madc.c:MODULE_AUTHOR("J Keerthy");

but added on different commits:

commit f99c1d4f94f91fd3a20bd2eaa3be9c5e7d2668eb

Author: Keerthy <[email protected]>
Date:   Tue Mar 1 19:12:26 2011 +0530

mfd: Add twl4030 madc driver

Introducing a driver for MADC on TWL4030 powerIC. MADC stands for monitoring ADC. This driver monitors the real time conversion of analog signals like battery temperature, battery cuurent etc.

commit 0070bddfe7275e5bc763884a8ac59651f4e79eab

Author: Keerthy <[email protected]>
Date:   Tue Mar 1 19:12:36 2011 +0530

hwmon: twl4030: Hwmon Driver for TWL4030 MADC

This driver exposes the sysfs nodes of the TWL4030 MADC module. All the voltage channel values are expressed in terms of mV. Channel 13 and channel 14 are reserved. There are channels which represent temperature and current the output is represented by celcius and mA respectively.

Signature · 1 line
balbi
#4 lore raw

Hello Russel,

MADC stands for monitoring ADC. It is part of TWL4030 power IC. TWL4030 is only on OMAP3 and hence not applicable for OMAP4.

The driver is split accross mfd and hwmon. Generic ADC reading part is in mfd and exposing the individual ADC channel sysfs nodes is part of hwmon. I apologize for missing this information in KConfig help. I will post a patch to update this.

Quoted 62 lines · Felipe Balbi

Hi,

Quoted 11 lines · Russell King - ARM Linux

Some of the Kconfig help descriptions aren't very useful - for example:

| CONFIG_TWL4030_MADC:
|
| This driver provides support for triton TWL4030-MADC. The
| driver supports both RT and SW conversion methods.
|
| This driver can be built as a module. If so it will be
| named twl4030-madc

What is madc?  What does it do?  Do I enable it for the OMAP 4430SDP ?

the problem seems to be worse then you thought:

$ git ls-files drivers/  | grep madc
drivers/hwmon/twl4030-madc-hwmon.c
drivers/mfd/twl4030-madc.c

Both from the same author:

$ git grep -e MODULE_AUTHOR drivers/mfd/twl4030-madc.c drivers/hwmon/twl4030-madc-hwmon.c
drivers/hwmon/twl4030-madc-hwmon.c:MODULE_AUTHOR("J Keerthy");
drivers/mfd/twl4030-madc.c:MODULE_AUTHOR("J Keerthy");

but added on different commits:

commit f99c1d4f94f91fd3a20bd2eaa3be9c5e7d2668eb
Author: Keerthy <[email protected]>
Date:   Tue Mar 1 19:12:26 2011 +0530

   mfd: Add twl4030 madc driver

   Introducing a driver for MADC on TWL4030 powerIC. MADC stands for monitoring ADC. This driver monitors the real time conversion of analog signals like battery temperature, battery cuurent etc.

commit 0070bddfe7275e5bc763884a8ac59651f4e79eab
Author: Keerthy <[email protected]>
Date:   Tue Mar 1 19:12:36 2011 +0530

   hwmon: twl4030: Hwmon Driver for TWL4030 MADC

   This driver exposes the sysfs nodes of the TWL4030 MADC module. All the voltage channel values are expressed in terms of mV. Channel 13 and channel 14 are reserved. There are channels which represent temperature and current the output is represented by celcius and mA respectively.

--
balbi

Signature · 6 lines
Regards and Thanks,
Keerthy
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#5 lore raw

Keerthy,

Quoted 10 lines · KEERTHY

Hello Russel,

MADC stands for monitoring ADC. It is part of TWL4030 power IC. TWL4030 is only on OMAP3 and hence not applicable for OMAP4.

The driver is split accross mfd and hwmon. Generic ADC reading part is in mfd and exposing the individual ADC channel sysfs nodes is part of hwmon. I apologize for missing this information in KConfig help. I will post a patch to update this.

Avoid top posting while replying on patches.

Regards
Santosh

#6 lore raw
In reply to Felipe Balbi
Quoted 5 lines · Felipe Balbi

the problem seems to be worse then you thought:

$ git ls-files drivers/  | grep madc
drivers/hwmon/twl4030-madc-hwmon.c
drivers/mfd/twl4030-madc.c

This is normal for this sort of auxiliary ADC - they're *normally* used for system monitoring and should show up in hwmon but are more general purpose than that so you get a MFD core which drives the actual ADC and a hwomon driver which uses the core to expose things to userspace.

Sadly we don't have a subsystem for ADCs yet, IIO might be it but it's really designed for much higher volume ADCs.