[RFC PATCH 1/5] dt-bindings: power: Add battery types

2017-08-01 Thread Marek Belisko
From: Marek Belisko Signed-off-by: Marek Belisko --- include/dt-bindings/power/power.h | 11 +++ 1 file changed, 11 insertions(+) create mode 100644 include/dt-bindings/power/power.h diff --git a/include/dt-bindings/power/power.h b/include/dt-bindings/power/power.h new file mode

[RFC PATCH 3/5] power/generic-adc-battery: Add support for temperature and add check for charge from iio current channel

2017-08-01 Thread Marek Belisko
From: Marek Belisko Status reporting not working yet. During boot when workqueue is called status is updated (by reading iio current channel but value is -705 (reason unknown as later report correct value). Signed-off-by: Marek Belisko --- drivers/power/supply/generic-adc-battery.c | 18

[RFC PATCH 2/5] power: generic-adc-battery: Parse more properties from DT

2017-08-01 Thread Marek Belisko
From: Marek Belisko Signed-off-by: Marek Belisko --- drivers/power/supply/generic-adc-battery.c | 68 ++ 1 file changed, 68 insertions(+) diff --git a/drivers/power/supply/generic-adc-battery.c b/drivers/power/supply/generic-adc-battery.c index b5e9208..d4daa6a

[RFC PATCH 4/5] power: Add formula for computing LiIon State of Charge from Voltage

2017-08-01 Thread Marek Belisko
From: Marek Belisko The formula appears to be known in RC model communities. We did find the first reference on the web in a a forum post by "SilverFox" from 04-16-2008: http://www.candlepowerforums.com/vb/showthread.php?115871-Li-Ion-State-of-Charge-and-Voltage-Measurements#post244

[RFC PATCH 0/5] Add formula for LiIon batteries to compute capacity

2017-08-01 Thread Marek Belisko
battery. This patches was tested on gta04 and works fine. Thanks for comments. Marek Belisko (5): dt-bindings: power: Add battery types power: generic-adc-battery: Parse more properties from DT power/generic-adc-battery: Add support for temperature and add check for charge from iio current

[RFC PATCH 5/5] power: generic-adc-battery: Add capacity handling

2017-08-01 Thread Marek Belisko
From: Marek Belisko Signed-off-by: Marek Belisko --- drivers/power/supply/generic-adc-battery.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/power/supply/generic-adc-battery.c b/drivers/power/supply/generic-adc-battery.c index 0d27b59..9ce51d2 100644 --- a

[PATCH] ARM: dts: omap3-gta04: Add RFID eeprom node

2016-06-04 Thread Marek Belisko
From: "H. Nikolaus Schaller" Define RFID eeprom node which is present on gta04 device. Signed-off-by: H. Nikolaus Schaller Signed-off-by: Marek Belisko --- arch/arm/boot/dts/omap3-gta04.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/omap3-gta04.dt

[PATCH 4/5] ARM: dta: omap3-gta04: Define and use hmc5843 irq pin

2016-05-17 Thread Marek Belisko
From: "H. Nikolaus Schaller" Define pinmux and usage if irq pin. Signed-off-by: H. Nikolaus Schaller --- arch/arm/boot/dts/omap3-gta04.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch/arm/boot/dts/omap3-gta04.dtsi index 094e5e1..55

[PATCH 0/5] ARM: dts: omap3-gta04: Various updates

2016-05-17 Thread Marek Belisko
-gat04: Fix wifi handling Marek Belisko (1): ARM: dts: omap3-gta04: Add backlight support arch/arm/boot/dts/omap3-gta04.dtsi | 60 -- 1 file changed, 57 insertions(+), 3 deletions(-) -- 2.5.0

[PATCH 1/5] ARM: dts: omap3-gta04: Add backlight support

2016-05-17 Thread Marek Belisko
Define pwm backlight node which is using dmtimer pwm. Signed-off-by: Marek Belisko --- arch/arm/boot/dts/omap3-gta04.dtsi | 22 ++ 1 file changed, 22 insertions(+) diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch/arm/boot/dts/omap3-gta04.dtsi index ab9fb8f..cef8b23

[PATCH 3/5] ARM: dta: omap3-gta04: Define and use itg3200 irq pin

2016-05-17 Thread Marek Belisko
From: "H. Nikolaus Schaller" Define pinmux and usage if irq pin + fix irq edge. Signed-off-by: H. Nikolaus Schaller --- arch/arm/boot/dts/omap3-gta04.dtsi | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch/arm/boot/dts/omap3

[PATCH 2/5] ARM: dts: omap3-gta04: Define and use bma180 irq pin

2016-05-17 Thread Marek Belisko
From: "H. Nikolaus Schaller" Add pinmux and usage of bma180 irq pin. Signed-off-by: H. Nikolaus Schaller --- arch/arm/boot/dts/omap3-gta04.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch/arm/boot/dts/omap3-gta04.dtsi index cef8b23..e0

[PATCH 5/5] ARM: dts: omap3-gat04: Fix wifi handling

2016-05-17 Thread Marek Belisko
From: "H. Nikolaus Schaller" Without that change wifi card isn't probed because pwrseq is necessary for libertas chip. Signed-off-by: H. Nikolaus Schaller --- arch/arm/boot/dts/omap3-gta04.dtsi | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/oma

[PATCH] ARM: dts: twl4030: Add iio properties for bci subnode

2015-10-13 Thread Marek Belisko
Added new iio properties which are required for twl4030-charger driver and allow to use twl4030-madc indirectly. Signed-off-by: Marek Belisko --- arch/arm/boot/dts/twl4030.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/twl4030.dtsi b/arch/arm/boot/dts/twl4030.dtsi

[PATCH v3] Documentation: DT: twl-charger: document new iio properties

2015-09-25 Thread Marek Belisko
Document added iio properties to avoid using direct function call from twl4030-madc driver. Signed-off-by: Marek Belisko --- Documentation/devicetree/bindings/power/twl-charger.txt | 6 ++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/power/twl-charger.txt

[PATCH v3] ARM: dts: twl4030: Add iio properties for bci subnode

2015-09-25 Thread Marek Belisko
Added new iio properties which are required for twl4030-charger driver and allow to use twl4030-madc indirectly. Signed-off-by: Marek Belisko --- arch/arm/boot/dts/twl4030.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/twl4030.dtsi b/arch/arm/boot/dts/twl4030.dtsi

[PATCH v3] drivers: power: twl4030_charger: fix link problems when building as module

2015-09-25 Thread Marek Belisko
If either twl4030_charger or twl4030_madc is configured as MODULE, we get build (link) errors. To solve, the direct call of twl4030_get_madc_conversion() is replaced by a call to iio_read_channel_processed(). Signed-off-by: H. Nikolaus Schaller Signed-off-by: Marek Belisko --- changes from v2

[PATCH v2 3/3] ARM: dts: twl4030: add iio properties for bci subnode

2015-09-22 Thread Marek Belisko
Added new iio properties which are required for twl4030-charger driver and allow to use twl4030-madc indirectly. Signed-off-by: Marek Belisko --- arch/arm/boot/dts/twl4030.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/twl4030.dtsi b/arch/arm/boot/dts/twl4030.dtsi

[PATCH v2 1/3] drivers: power: twl4030_charger: fix link problems when building as module

2015-09-22 Thread Marek Belisko
If either twl4030_charger or twl4030_madc is configured as MODULE, we get build (link) errors. To solve, the direct call of twl4030_get_madc_conversion() is replaced by a call to iio_read_channel_processed(). Signed-off-by: H. Nikolaus Schaller Signed-off-by: Marek Belisko --- changes from V1

[PATCH v2 2/3] Documentation: DT: twl-charger: document new iio properties

2015-09-22 Thread Marek Belisko
Document added iio properties to avoid using direct funcion call from twl4030-madc driver. Signed-off-by: Marek Belisko --- Documentation/devicetree/bindings/power/twl-charger.txt | 5 + 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/power/twl-charger.txt

[PATCH] input: twl4030-vibra: Fix ERROR: Bad of_node_put() warning

2015-07-23 Thread Marek Belisko
/input/input2 node passed to of_find_node_by_name is put inside that function and new node is returned if found. Free returned node not already freed node. Signed-off-by: Marek Belisko --- drivers/input/misc/twl4030-vibra.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a

[PATCH RFC v2 2/3] tty: serial_core: Add hooks for uart slave drivers

2015-06-28 Thread Marek Belisko
From: "H. Nikolaus Schaller" 1. allow drivers to get notified in mctrl changes 2. allow drivers to get notified on rx data (indicating to the driver that the connected chip is active) Signed-off-by: H. Nikolaus Schaller Signed-off-by: Marek Belisko --- drivers/tty/serial/ser

[PATCH RFC v2 3/3] misc: Add w2g0004 gps receiver driver

2015-06-28 Thread Marek Belisko
From: "H. Nikolaus Schaller" Add driver for Wi2Wi w2g004 GPS module connected through uart. Use uart slave + notification hooks to glue with tty. Signed-off-by: H. Nikolaus Schaller Signed-off-by: Marek Belisko --- .../devicetree/bindings/misc/wi2wi,w2sg0004.txt| 18 + dr

[PATCH RFC v2 1/3] tty: serial core: provide method to search uart by phandle

2015-06-28 Thread Marek Belisko
From: "H. Nikolaus Schaller" 1. add registered uart_ports to a search list 2. provide a function to search an uart_port by phandle. This copies the mechanism how devm_usb_get_phy_by_phandle() works Signed-off-by: H. Nikolaus Schaller Signed-off-by: Marek Belisko --- Documentat

[PATCH RFC v2 0/3] UART slave device support

2015-06-28 Thread Marek Belisko
Post RFC V2 (test on 4.1) as it seems that V1 wasn't sent properly. Hi all, this patch series is our proposal to add hooks so that the driver for a device connected to an UART can monitor modem control lines and data activity of the connected chip. It contains an example for such a device driver

[PATCH 2/2] iio: adc: twl4030_madc: Fix description of twl4030_madc_set_current_generator()

2015-05-28 Thread Marek Belisko
From: "H. Nikolaus Schaller" The @chan parameter can be 0 or 1 and not a bit mask. Fix wrong description. Signed-off-by: H. Nikolaus Schaller Signed-off-by: Marek Belisko --- drivers/iio/adc/twl4030-madc.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/d

[PATCH 1/2] iio: adc: twl4030_madc: Fix calculation of the temperature sense current

2015-05-28 Thread Marek Belisko
. Nikolaus Schaller Signed-off-by: Marek Belisko --- drivers/iio/adc/twl4030-madc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/adc/twl4030-madc.c b/drivers/iio/adc/twl4030-madc.c index 94c5f05..6d2d429 100644 --- a/drivers/iio/adc/twl4030-madc.c +++ b/drive

[PATCH v2] ASoC: bt-sco: Add devicetree support for bt-sco codec

2015-05-08 Thread Marek Belisko
Add devicetree support for bluetooth SCO link codec. Signed-off-by: Marek Belisko --- changes from v1: - removed "linux,bt-sco" compatible property + update documentation Documentation/devicetree/bindings/sound/bt-sco.txt| 13 + Documentation/devicetree/bindi

[PATCH] ARM: dts: omap3-gta04: Add GSM audio support

2015-05-07 Thread Marek Belisko
Add voice audio card which is used for telephony on gta04 board. gtm601 codec is UMTS modem with pcm interface which get samples from microphone and provide data from other party side. Use simple audio card to describe audio card. Signed-off-by: Marek Belisko --- arch/arm/boot/dts/omap3-gta04

[PATCH] of: Add vendor prefix for Option

2015-05-07 Thread Marek Belisko
Add option to vendor-prefixes file which will be used for Option NV company. Signed-off-by: Marek Belisko --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation

[PATCH] ASoC: gtm601: Document GTM601 bindings

2015-05-07 Thread Marek Belisko
Add small documentation for GTM601 UMTS modem audio interface. Signed-off-by: Marek Belisko --- This one was corrupted in V2 series so sending update only. Documentation/devicetree/bindings/sound/gtm601.txt | 13 + 1 file changed, 13 insertions(+) create mode 100644 Documentation

[PATCH v2 1/4] ASoC: Add gtm601 codec driver

2015-05-06 Thread Marek Belisko
This driver add PCM interface to a GTM601 UMTS modem chip. There is no configuration interface. Signed-off-by: Marek Belisko --- sound/soc/codecs/Kconfig | 4 ++ sound/soc/codecs/Makefile | 2 + sound/soc/codecs/gtm601.c | 98 +++ 3 files changed

[PATCH v2 3/4] Documentation: vendor-prefixes: Add option prefix

2015-05-06 Thread Marek Belisko
Add option to vendor-prefixes file which will be used for Option NV company. Signed-off-by: Marek Belisko --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation

[PATCH v2 0/4] ASoC: Add gtm601 simple codec

2015-05-06 Thread Marek Belisko
Marek Belisko (4): ASoC: Add gtm601 codec driver Documentation: devicetree: sound: Add documentation for gtm601 codec Documentation: vendor-prefixes: Add option prefix ARM: dts: omap3-gta04: Add GSM audio support Documentation/devicetree/bindings/sound/gtm601.txt | 14 .../devicetree

[PATCH v2 2/4] Documentation: devicetree: sound: Add documentation for gtm601 codec

2015-05-06 Thread Marek Belisko
Add small documentation for gtm601 UMTS modem audio interface. Signed-off-by: Marek Belisko --- Documentation/devicetree/bindings/sound/gtm601.txt | 14 ++ 1 file changed, 14 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/gtm601.txt diff --git a

[PATCH v2 4/4] ARM: dts: omap3-gta04: Add GSM audio support

2015-05-06 Thread Marek Belisko
Add voice audio card which is used for telephony on gta04 board. gtm601 codec is UMTS modem with pcm interface which get samples from microphone and provide data from other party side. Used simple audio card to describe audio card. Signed-off-by: Marek Belisko --- arch/arm/boot/dts/omap3-gta04

[PATCH] ASoC: bt-sco: Add devicetree support for bt-sco codec

2015-05-05 Thread Marek Belisko
Add devicetree support for bt-sco generic bluetooth SCO link codec. Signed-off-by: Marek Belisko --- Documentation/devicetree/bindings/sound/bt-sco.txt| 13 + Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + sound/soc/codecs/bt-sco.c

[PATCH 2/3] Documentation: devicetree: sound: Add documentation for gtm601 codec

2015-04-30 Thread Marek Belisko
Add small documentation for gtm601 UMTS modem audio interface. Signed-off-by: Marek Belisko --- Documentation/devicetree/bindings/sound/gtm601.txt | 14 ++ 1 file changed, 14 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/gtm601.txt diff --git a

[PATCH 1/3] ASoC: Add gtm601 codec driver

2015-04-30 Thread Marek Belisko
This driver add PCM interface to a GTM601 UMTS modem chip. There is no configuration interface. Signed-off-by: Marek Belisko --- sound/soc/codecs/Kconfig | 4 ++ sound/soc/codecs/Makefile | 2 + sound/soc/codecs/gtm601.c | 106 ++ 3 files changed

[PATCH 3/3] Documentation: vendor-prefixes: Add option prefix

2015-04-30 Thread Marek Belisko
Add option to vendor-prefixes file which will be used for Option NV company. Signed-off-by: Marek Belisko --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation

[PATCH 0/3] ASoC: Add gtm601 simple codec

2015-04-30 Thread Marek Belisko
Following patch series add support for gtm601 PCM audio. gtm601 is UMTS modem which provide I2S interface for rx/tx data. Codec is connected to cpu in master mode (rate is determined by Master and Bit clocks). Marek Belisko (3): ASoC: Add gtm601 codec driver Documentation: devicetree: sound

[PATCH] power: bq27x00_battery: Add missing MODULE_ALIAS

2015-04-30 Thread Marek Belisko
Without MODULE_ALIAS bq27x00_battery module won't get loaded automatically. Signed-off-by: Marek Belisko --- drivers/power/bq27x00_battery.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/power/bq27x00_battery.c b/drivers/power/bq27x00_battery.c index a57433d..b6

[PATCH] ARM: dts: omap3-gta04: Add hdqw1 support

2015-04-28 Thread Marek Belisko
Enable omap-hdq for battery fuel gauge access. Signed-off-by: Marek Belisko Signed-off-by: H. Nikolaus Schaller --- arch/arm/boot/dts/omap3-gta04.dtsi | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch/arm/boot/dts/omap3-gta04.dtsi index

[PATCH] w1: slaves: Add dependency for W1_SLAVE_BQ27000

2015-04-28 Thread Marek Belisko
bq2700 slave driver depends on bq27x00-battery driver thus adding this dependency to config. When bq2700 is build as module bq27x00-battery will be loaded automatically. Signed-off-by: Marek Belisko --- drivers/w1/slaves/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/w1

[PATCH] power: bq27x00_battery: Add missing MODULE_ALIAS

2015-04-28 Thread Marek Belisko
Without MODULE_ALIAS bq27x00_battery module won't get loaded automatically. Signed-off-by: Marek Belisko --- drivers/power/bq27x00_battery.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/power/bq27x00_battery.c b/drivers/power/bq27x00_battery.c index a57433d..542927e 1

[PATCH v2] Documentation usb serial: fixed how to provide vendor and product id

2015-04-20 Thread Marek Belisko
module). Signed-off-by: H. Nikolaus Schaller Signed-off-by: Marek Belisko --- - fixed 2 sentences suggested by Johan Hovold Documentation/usb/usb-serial.txt | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Documentation/usb/usb-serial.txt b/Documentation/u

[PATCH v2] Documentation usb serial: fixed how to provide vendor and product id

2015-04-13 Thread Marek Belisko
module). Signed-off-by: H. Nikolaus Schaller Signed-off-by: Marek Belisko --- changes from v1: - add modern variant with /sys as preferred but also old one works so keep it in documentation (was removed in first version which was not correct) Documentation/usb/usb-serial.txt | 11 +++

[PATCH] Documentation: usb: serial: fixed how to provide vendor and product id

2015-03-28 Thread Marek Belisko
usbserial vendor=0x product=0x becomes (first is vendor, second is product) modprobe usbserial echo >/sys/bus/usb-serial/drivers/generic/new_id This patch changes the documentation file as needed. Signed-off-by: H. Nikolaus Schaller Signed-off-by: Marek Belisko ---

[PATCH] Documentation: usb: serial: fixed how to provide vendor and product id

2015-03-25 Thread Marek Belisko
From: "H. Nikolaus Schaller" While trying to test the Pyra GSM/GPS/3G module I had reconfigured the USB interface by mistake and therefore needed to run a different USB driver than CSC-ACM. It turned out that I need the "usbserial" driver. This file is an official description how to use it: Docu

[PATCH v2 2/2] Documentation: omap-twl4030: Move ti,codec property to optional

2015-03-13 Thread Marek Belisko
ti,codec property is not used in omap-twl4030 driver in linux kernel but we keep it as optional property, so that the existing dtbs do not become noncompliant after the change on other OS. Signed-off-by: Marek Belisko --- Documentation/devicetree/bindings/sound/omap-twl4030.txt | 3 +-- 1 file

[PATCH v2 0/2] ARM: devicetree: Remove unused ti,codec property

2015-03-13 Thread Marek Belisko
ly [1] from Peter Ujfalusi. Changes from v1: - keep ti,codec property in Documentation as optional that the existing dtbs do not become noncompliant after the change [1]: http://comments.gmane.org/gmane.linux.ports.arm.omap/124273 Marek Belisko (2): ARM: dts: omap3: Remove all references to ti,

[PATCH v2 1/2] ARM: dts: omap3: Remove all references to ti,codec property

2015-03-13 Thread Marek Belisko
ti,codec property is not used (parsed) in omap-twl4030 driver. The ti,twl4030-audio which ti,codec points by phandle is mfd driver and device for ASoC codec is created w/o DT compatible string. Removing all references in DT files. Signed-off-by: Marek Belisko --- arch/arm/boot/dts/omap3

[PATCH 2/2] Documentation: omap-twl4030: Remove ti,codec property

2015-03-12 Thread Marek Belisko
ti,codec property is not necessary anymore thus removing references from documentation. Signed-off-by: Marek Belisko --- Documentation/devicetree/bindings/sound/omap-twl4030.txt | 2 -- 1 file changed, 2 deletions(-) diff --git a/Documentation/devicetree/bindings/sound/omap-twl4030.txt b

[PATCH 0/2] ARM: devicetree: Remove unused ti,codec property

2015-03-12 Thread Marek Belisko
ly [1] from Peter Ujfalusi. [1]: http://comments.gmane.org/gmane.linux.ports.arm.omap/124273 Marek Belisko (2): ARM: dts: omap3: Remove all references to ti,codec property Documentation: omap-twl4030: Remove ti,codec property Documentation/devicetree/bindings/sound/omap-twl4030.txt | 2 --

[PATCH 1/2] ARM: dts: omap3: Remove all references to ti,codec property

2015-03-12 Thread Marek Belisko
ti,codec property is not used (parsed) in omap-twl4030 driver. The ti,twl4030-audio which ti,codec points by phandle is mfd driver and device for ASoC codec is created w/o DT compatible string. Removing all references in DT files. Signed-off-by: Marek Belisko --- arch/arm/boot/dts/omap3

[PATCH v4 2/6] power: twl4030_madc_battery: Add device tree support

2015-03-10 Thread Marek Belisko
Signed-off-by: Marek Belisko --- drivers/power/twl4030_madc_battery.c | 81 1 file changed, 81 insertions(+) diff --git a/drivers/power/twl4030_madc_battery.c b/drivers/power/twl4030_madc_battery.c index 6af28b5..4bcb4a9 100644 --- a/drivers/power

[PATCH v4 6/6] power: twl4030_madc_battery: Add missing MODULE_ALIAS

2015-03-10 Thread Marek Belisko
Without MODULE_ALIAS twl4030_madc_battery won't get loaded automatically. Signed-off-by: Marek Belisko --- drivers/power/twl4030_madc_battery.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/power/twl4030_madc_battery.c b/drivers/power/twl4030_madc_battery.c index 3e0005d..d0

[PATCH v4 5/6] power: twl4030_madc_battery: Add of_twl4030_madc_match to MODULE_DEVICE_TABLE

2015-03-10 Thread Marek Belisko
When twl_4030_madc_battery is build as module, MODULE_DEVICE_TABLE allow the module to be auto-loaded since the module will match the devices instantiated from device tree. Signed-off-by: Marek Belisko --- drivers/power/twl4030_madc_battery.c | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH v4 1/6] power: twl4030-madc-battery: Convert to iio consumer.

2015-03-10 Thread Marek Belisko
Because of added iio error handling private data allocation was converted to managed to simplify code. Signed-off-by: Marek Belisko Reviewed-By: Sebastian Reichel --- drivers/power/twl4030_madc_battery.c | 99 +++- 1 file changed, 64 insertions(+), 35 deletions

[PATCH v4 0/6] Convert twl4030_madc_battery to IIO consumer and add DT aupport

2015-03-10 Thread Marek Belisko
part of adding error handling for iio - free iio channels on error and on module removal [1] - https://lkml.org/lkml/2014/2/26/482dd Marek Belisko (6): power: twl4030-madc-battery: Convert to iio consumer. power: twl4030_madc_battery: Add device tree support Documentation: DT: Document

[PATCH v4 3/6] Documentation: DT: Document twl4030-madc-battery bindings

2015-03-10 Thread Marek Belisko
Signed-off-by: Marek Belisko --- .../bindings/power_supply/twl4030_madc_battery.txt | 43 ++ 1 file changed, 43 insertions(+) create mode 100644 Documentation/devicetree/bindings/power_supply/twl4030_madc_battery.txt diff --git a/Documentation/devicetree/bindings

[PATCH v4 4/6] ARM: dts: omap3-gta04: Add battery support

2015-03-10 Thread Marek Belisko
Added battery support for gta04 devices. Signed-off-by: Marek Belisko --- arch/arm/boot/dts/omap3-gta04.dtsi | 30 ++ 1 file changed, 30 insertions(+) diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch/arm/boot/dts/omap3-gta04.dtsi index fb3a696..cbf515a 100644

[PATCH] staging: iio: hmc5843: Set iio name property in sysfs

2015-02-28 Thread Marek Belisko
Without this change file name for hmc5843 is empty in /sys/bus/iio/devices/iio\:device*/name With this change name is reported correctly: cat /sys/bus/iio/devices/iio\:device*/name hmc5843 Signed-off-by: Marek Belisko --- drivers/staging/iio/magnetometer/hmc5843_core.c | 1 + 1 file changed, 1

[PATCH v3 2/3] ARM: dts: omap3-pandora: add OMAP3530 600 MHz version

2015-02-27 Thread Marek Belisko
From: "H. Nikolaus Schaller" Added Pandora Rebirth model which is based on Pandora Classic with 512 MiB DDR-333 SDRAM memory. Signed-off-by: H. Nikolaus Schaller Tested-by: Grazvydas Ignotas Reviewed-by: Grazvydas Ignotas --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/d

[PATCH v3 0/3] ARM: dts: add openpandora device support

2015-02-27 Thread Marek Belisko
changes from v2: - fix missing PIN_INPUT for penirq node - added Reviewed-by and Tested-by changes from v1: - add new boards to makefile in patch 2,3 (don't add them in separate commit together), fix gpmc issues (reported by Tony Lindgren) - fix various issues reported by Grazvydas Ignotas (drop

[PATCH v3 3/3] ARM: dts: omap3-pandora: add DM3730 1 GHz version

2015-02-27 Thread Marek Belisko
From: "H. Nikolaus Schaller" Added Pandora 1 GHz model which is based on Classic/Rebirth with following changes: - upgraded cpu to dm3730 runs on 1GHz - 512 MiB DDR-333 SDRAM @ 200 MHz Signed-off-by: H. Nikolaus Schaller Tested-by: Grazvydas Ignotas Reviewed-by: Grazvydas Ignotas --- arch/ar

[PATCH v3 1/3] ARM: dts: omap3-pandora: add common device tree

2015-02-27 Thread Marek Belisko
U specific device trees. Signed-off-by: H. Nikolaus Schaller Signed-off-by: Marek Belisko Tested-by: Grazvydas Ignotas Reviewed-by: Grazvydas Ignotas --- arch/arm/boot/dts/omap3-pandora-common.dtsi | 640 1 file changed, 640 insertions(+) create mode 100644 arch/ar

[PATCH v2 1/3] ARM: dts: omap3-pandora: add common device tree

2015-02-20 Thread Marek Belisko
U specific device trees. Signed-off-by: H. Nikolaus Schaller Signed-off-by: Marek Belisko --- arch/arm/boot/dts/omap3-pandora-common.dtsi | 640 1 file changed, 640 insertions(+) create mode 100644 arch/arm/boot/dts/omap3-pandora-common.dtsi diff --git a/arch/ar

[PATCH v2 1/3] ARM: dts: omap3-pandora: add common device tree

2015-02-17 Thread Marek Belisko
U specific device trees. Signed-off-by: H. Nikolaus Schaller Signed-off-by: Marek Belisko --- arch/arm/boot/dts/omap3-pandora-common.dtsi | 640 1 file changed, 640 insertions(+) create mode 100644 arch/arm/boot/dts/omap3-pandora-common.dtsi diff --git a/arch/ar

[PATCH v2 3/3] ARM: dts: omap3-pandora: add DM3730 1 GHz version

2015-02-17 Thread Marek Belisko
From: "H. Nikolaus Schaller" Added Pandora 1 GHz model which is based on Classic/Rebirth with following changes: - upgraded cpu to dm3730 runs on 1GHz - 512 MiB DDR-333 SDRAM @ 200 MHz Signed-off-by: H. Nikolaus Schaller --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/om

[PATCH v2 2/3] ARM: dts: omap3-pandora: add OMAP3530 600 MHz version

2015-02-17 Thread Marek Belisko
From: "H. Nikolaus Schaller" Added Pandora Rebirth model which is based on Pandora Classic with 512 MiB DDR-333 SDRAM memory. Signed-off-by: H. Nikolaus Schaller --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/omap3-pandora-600mhz.dts | 65 +

[PATCH v2 0/3] ARM: dts: add openpandora device support

2015-02-17 Thread Marek Belisko
changes from v1: - add new boards to makefile in patch 2,3 (don't add them in separate commit together), fix gpmc issues (reported by Tony Lindgren) - fix various issues reported by Grazvydas Ignotas (drop internal pullups from pinmux as external are in place, fix gpio buttons active state ...) T

[PATCH 2/4] ARM: dts: omap3-pandora: add OMAP3530 600 MHz version

2015-02-12 Thread Marek Belisko
From: "H. Nikolaus Schaller" Signed-off-by: H. Nikolaus Schaller --- arch/arm/boot/dts/omap3-pandora-600mhz.dts | 65 ++ 1 file changed, 65 insertions(+) create mode 100644 arch/arm/boot/dts/omap3-pandora-600mhz.dts diff --git a/arch/arm/boot/dts/omap3-pandora-600m

[PATCH 4/4] ARM: dts: omap3-pandora: include in dts Makefile

2015-02-12 Thread Marek Belisko
From: "H. Nikolaus Schaller" Signed-off-by: H. Nikolaus Schaller --- arch/arm/boot/dts/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 91bd5bd..69f3106 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Ma

[PATCH 3/4] ARM: dts: omap3-pandora: add DM3730 1 GHz version

2015-02-12 Thread Marek Belisko
From: "H. Nikolaus Schaller" Signed-off-by: H. Nikolaus Schaller --- arch/arm/boot/dts/omap3-pandora-1ghz.dts | 65 1 file changed, 65 insertions(+) create mode 100644 arch/arm/boot/dts/omap3-pandora-1ghz.dts diff --git a/arch/arm/boot/dts/omap3-pandora-1ghz.d

[PATCH 1/4] ARM: dts: omap3-pandora: add common device tree

2015-02-12 Thread Marek Belisko
U specific device trees. Signed-off-by: H. Nikolaus Schaller Signed-off-by: Marek Belisko --- arch/arm/boot/dts/omap3-pandora-common.dtsi | 641 1 file changed, 641 insertions(+) create mode 100644 arch/arm/boot/dts/omap3-pandora-common.dtsi diff --git a/arch/ar

[PATCH 0/4] add openpandora device support

2015-02-12 Thread Marek Belisko
This series of patches adds initial device tree support for the OpenPandora. The most important parts are working (display, keyboard, touch, charging, fuel gauge, musb port, sd/mmc ports, leds, buttons). Not yet supported are: usb host port, nubs, wifi, bluetooth, audio. First patch add common dts

[PATCH v3 2/6] power: twl4030_madc_battery: Add device tree support

2015-02-04 Thread Marek Belisko
Signed-off-by: Marek Belisko --- drivers/power/twl4030_madc_battery.c | 81 1 file changed, 81 insertions(+) diff --git a/drivers/power/twl4030_madc_battery.c b/drivers/power/twl4030_madc_battery.c index 6af28b5..ec14bc6 100644 --- a/drivers/power

[PATCH v3 3/6] Documentation: DT: Document twl4030-madc-battery bindings

2015-02-04 Thread Marek Belisko
Signed-off-by: Marek Belisko --- .../bindings/power_supply/twl4030_madc_battery.txt | 43 ++ 1 file changed, 43 insertions(+) create mode 100644 Documentation/devicetree/bindings/power_supply/twl4030_madc_battery.txt diff --git a/Documentation/devicetree/bindings

[PATCH v3 5/6] power: twl4030_madc_battery: Add of_twl4030_madc_match to MODULE_DEVICE_TABLE

2015-02-04 Thread Marek Belisko
When twl_4030_madc_battery is build as module, MODULE_DEVICE_TABLE allow the module to be auto-loaded since the module will match the devices instantiated from device tree. Signed-off-by: Marek Belisko --- drivers/power/twl4030_madc_battery.c | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH v3 4/6] ARM: dts: omap3-gta04: Add battery support

2015-02-04 Thread Marek Belisko
Signed-off-by: Marek Belisko --- arch/arm/boot/dts/omap3-gta04.dtsi | 30 ++ 1 file changed, 30 insertions(+) diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch/arm/boot/dts/omap3-gta04.dtsi index 655d6e9..f81ca27 100644 --- a/arch/arm/boot/dts/omap3-gta04.dtsi

[PATCH v3 6/6] power: twl4030_madc_battery: Add missing MODULE_ALIAS

2015-02-04 Thread Marek Belisko
Without MODULE_ALIAS twl4030_madc_battery won't get loaded automatically. Signed-off-by: Marek Belisko --- drivers/power/twl4030_madc_battery.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/power/twl4030_madc_battery.c b/drivers/power/twl4030_madc_battery.c index e6075ae..ce

[PATCH v3 1/6] power: twl4030-madc-battery: Convert to iio consumer.

2015-02-04 Thread Marek Belisko
Because of added iio error handling private data allocation was converted to managed to simplify code. Signed-off-by: Marek Belisko Reviewed-By: Sebastian Reichel --- drivers/power/twl4030_madc_battery.c | 99 +++- 1 file changed, 64 insertions(+), 35 deletions

[PATCH v3 0/6] Convert twl4030_madc_battery to IIO consumer and add DT aupport

2015-02-04 Thread Marek Belisko
] - https://lkml.org/lkml/2014/2/26/482dd Marek Belisko (6): power: twl4030-madc-battery: Convert to iio consumer. power: twl4030_madc_battery: Add device tree support Documentation: DT: Document twl4030-madc-battery bindings ARM: dts: omap3-gta04: Add battery support power

[PATCH 06/13] ARM: dts: omap3-gta04: Enable power-off using twl4030

2015-01-22 Thread Marek Belisko
From: "H. Nikolaus Schaller" Enabled poweroff through PMIC on GTA04. Signed-off-by: H. Nikolaus Schaller --- arch/arm/boot/dts/omap3-gta04.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch/arm/boot/dts/omap3-gta04.dtsi index 0265474..b56c8

[PATCH 03/13] ARM: dts: omap3-gta04: Enable mcbps2 necessary for audio

2015-01-22 Thread Marek Belisko
From: "H. Nikolaus Schaller" mcbsp2 is used in gta04 soundcard config and by default is disabled so enable it for gta04. Signed-off-by: H. Nikolaus Schaller --- arch/arm/boot/dts/omap3-gta04.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch

[PATCH 00/13] ARM: dts: omap3-gta04: Various DT fixes

2015-01-22 Thread Marek Belisko
in devicetree file. ARM: dts: omap3-gta04: Fix audio node malformatting ARM: dts: omap3-gta04: Enable mcbps2 necessary for audio ARM: dts: omap3-gta04: Enable twl audio vibra support ARM: dts: omap3-gta04: Enable power-off using twl4030 Marek Belisko (2): ARM: dts: omap3-gta04: Fix a

[PATCH 08/13] ARM: dts: omap3-gta04: add comments about gpios

2015-01-22 Thread Marek Belisko
From: NeilBrown Add comments to state which GPIO is used for some interrupts. Signed-off-by: NeilBrown --- arch/arm/boot/dts/omap3-gta04.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch/arm/boot/dts/omap3-gta04.dtsi index

[PATCH 02/13] ARM: dts: omap3-gta04: Fix audio node malformatting

2015-01-22 Thread Marek Belisko
From: "H. Nikolaus Schaller" Audio should be child of twl node. Signed-off-by: H. Nikolaus Schaller --- arch/arm/boot/dts/omap3-gta04.dtsi | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch/arm/boot/dts/omap3-gta04.dtsi index

[PATCH 09/13] ARM: dts: omap3-gta04: enable power-off for wifi card.

2015-01-22 Thread Marek Belisko
From: NeilBrown Signed-off-by: NeilBrown --- arch/arm/boot/dts/omap3-gta04.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch/arm/boot/dts/omap3-gta04.dtsi index b65b5ed..ab5dd98 100644 --- a/arch/arm/boot/dts/omap3-gta04.dtsi +++ b/arch/arm/boot

[PATCH 05/13] ARM: dts: omap3-gta04: Fix a GPIO line for bma180 node

2015-01-22 Thread Marek Belisko
GPIO_115 used as irq is in &gpio4, not &gpio3. Signed-off-by: Marek Belisko --- arch/arm/boot/dts/omap3-gta04.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch/arm/boot/dts/omap3-gta04.dtsi index fd6ac80..0265474 1006

[PATCH 04/13] ARM: dts: omap3-gta04: Enable twl audio vibra support

2015-01-22 Thread Marek Belisko
From: "H. Nikolaus Schaller" Signed-off-by: H. Nikolaus Schaller --- arch/arm/boot/dts/omap3-gta04.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch/arm/boot/dts/omap3-gta04.dtsi index 7272591..fd6ac80 100644 --- a/arch/arm/boot/dts/omap3-gta04.

[PATCH 13/13] ARM: dts: omap3-gta04: Disable keypad

2015-01-22 Thread Marek Belisko
From: NeilBrown The twl4030 keypad is not wired up in the gta04, so mark it disabled to avoid pointless initialization. Signed-off-by: NeilBrown --- arch/arm/boot/dts/omap3-gta04.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch/arm/boot/dt

[PATCH 11/13] ARM: dts: omap3-gta04: only power DSS when necessary.

2015-01-22 Thread Marek Belisko
From: NeilBrown i.e. configure vpll2 as a supply for the dss rather than being always-on. Signed-off-by: NeilBrown --- arch/arm/boot/dts/omap3-gta04.dtsi | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch/arm/boot/dts/omap3-gta04

[PATCH 12/13] ARM: dts: omap3-gta04: uart4 is not connected, so mark it "disabled"

2015-01-22 Thread Marek Belisko
From: NeilBrown Signed-off-by: NeilBrown --- arch/arm/boot/dts/omap3-gta04.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch/arm/boot/dts/omap3-gta04.dtsi index 228e79b..8d2b0a1 100644 --- a/arch/arm/boot/dts/omap3-gta04.dtsi +++ b/arch/arm/

[PATCH 07/13] ARM: dts: omap3-gta04: Add ramp value for twl4030 audio

2015-01-22 Thread Marek Belisko
Signed-off-by: Marek Belisko --- arch/arm/boot/dts/omap3-gta04.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch/arm/boot/dts/omap3-gta04.dtsi index b56c85b..6f5fcbb 100644 --- a/arch/arm/boot/dts/omap3-gta04.dtsi +++ b/arch/arm/boot/dts/omap3

[PATCH 10/13] ARM: dts: omap3-gta04: add gyroscope

2015-01-22 Thread Marek Belisko
From: NeilBrown Signed-off-by: NeilBrown --- arch/arm/boot/dts/omap3-gta04.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch/arm/boot/dts/omap3-gta04.dtsi index ab5dd98..08f0b25 100644 --- a/arch/arm/boot/dts/omap3-gta04.dtsi +++ b/arch/

[PATCH 01/13] ARM: dts: omap3-gta04: Fix backup-battery charging in devicetree file.

2015-01-22 Thread Marek Belisko
From: "H. Nikolaus Schaller" Fix attribute names. Signed-off-by: H. Nikolaus Schaller --- arch/arm/boot/dts/omap3-gta04.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch/arm/boot/dts/omap3-gta04.dtsi index 655d6e9..fa39232 1

[PATCH v4 1/3] video: omapdss: Add opa362 driver

2014-12-03 Thread Marek Belisko
opa362 is amplifier for video and can be connected to the tvout pads of the OMAP3. It has one gpio control for enable/disable of the output (high impedance). Signed-off-by: H. Nikolaus Schaller Signed-off-by: Marek Belisko --- drivers/video/fbdev/omap2/displays-new/Kconfig | 6 + drivers

[PATCH v4 2/3] Documentation: DT: Add documentation for ti,opa362 bindings

2014-12-03 Thread Marek Belisko
Signed-off-by: Marek Belisko --- .../devicetree/bindings/video/ti,opa362.txt| 38 ++ 1 file changed, 38 insertions(+) create mode 100644 Documentation/devicetree/bindings/video/ti,opa362.txt diff --git a/Documentation/devicetree/bindings/video/ti,opa362.txt b

  1   2   3   >