1
0
Fork 0
Commit Graph

525113 Commits (steinar/releases/milestone-yocto-brcmfmac4330-fu-fix)

Author SHA1 Message Date
Martin T. H. Sandsmark 8fb0dd60a7 Update defconfig 2016-08-23 12:19:48 +02:00
Martin T. H. Sandsmark bbbacc7c2f Update USDHC settings as advised by Kaifa 2016-08-23 12:19:48 +02:00
Martin T. H. Sandsmark 38f98fd9d3 Disable low voltage gpio for fuel gauge for now 2016-08-23 12:19:47 +02:00
Martin T. H. Sandsmark f55327c2e2 Fix I2C addresses for EPDC PMIC and fuel gauge 2016-08-23 12:19:47 +02:00
Martin T. H. Sandsmark e5e9c62b4f Use defines for pad control for usdhc in dts 2016-08-23 12:19:46 +02:00
Martin T. H. Sandsmark 1147ca5320 Set correct memory size in dts 2016-08-23 12:19:46 +02:00
Martin T. H. Sandsmark 0e6fb1cf09 Use defines to improve readability of pad controls 2016-08-23 12:19:45 +02:00
Martin T. H. Sandsmark 79f4bf2bee Try to bring up the SD 2016-08-23 12:19:31 +02:00
Martin T. H. Sandsmark 40835bad56 Add DDR3 support 2016-08-16 10:36:19 +02:00
Martin T. H. Sandsmark 3c6d0ad038 dts: Leave gpio pins for max17135 alone 2016-07-31 15:31:52 +02:00
Martin T. H. Sandsmark a020936099 fix syntax errors 2016-07-30 21:57:07 +02:00
Martin T. H. Sandsmark a0127c2ff2 dts: Update pins and remove components we don't have 2016-07-30 21:53:32 +02:00
Martin T. H. Sandsmark f1a3480d33 dts: Update name of device 2016-07-30 21:52:32 +02:00
Martin T. H. Sandsmark 1f1be16e23 Quick and dirty import of rtl8821au driver 2016-07-28 20:53:23 +02:00
Martin T. H. Sandsmark 6d8be52bfb dts: usdhc is is debugging SD card, does not have write protection according to specs 2016-07-28 19:22:05 +02:00
Martin T. H. Sandsmark d5eaa12084 dts: Expand usdhc2 for emmc to 8 pins 2016-07-28 19:19:06 +02:00
Martin T. H. Sandsmark 7e478e4c5b dts: Enable i2c3 2016-07-28 19:18:04 +02:00
Martin T. H. Sandsmark c6e6d7b183 dts: Reorder sequencing variables for max17135 for readability 2016-07-28 19:17:55 +02:00
Martin T. H. Sandsmark 5a2cb1af19 dts: Update sw2 minimum voltage from specs 2016-07-28 19:17:21 +02:00
Martin T. H. Sandsmark ccb6718554 dts: Update GPIO address for USB OTG1 regulator 2016-07-28 19:16:46 +02:00
Martin T. H. Sandsmark ceac04e3c4 dts: Add an assumption on resistor value for battery gauge 2016-07-28 19:16:04 +02:00
Martin T. H. Sandsmark e521dd23b2 dts: Add wacom reset GPIO, not used yet 2016-07-28 19:14:54 +02:00
Martin T. H. Sandsmark 53a3283c37 Update our default config 2016-07-28 13:27:21 +02:00
Martin T. H. Sandsmark bbe96994b9 Add a default config based on imx6 default config 2016-07-28 13:27:21 +02:00
Martin T. H. Sandsmark e2d1a1c01b Add our DTS to the Makefile 2016-07-28 13:27:21 +02:00
Martin T. H. Sandsmark a631b2446b dts: let uboot set up and configure ldo 2016-07-28 13:27:20 +02:00
Martin T. H. Sandsmark aaf267a241 dts: Remove camera controller 2016-07-28 13:27:20 +02:00
Martin T. H. Sandsmark 660c64f31e dts: re-add ethernet controller 2016-07-28 13:27:19 +02:00
Martin T. H. Sandsmark 787ee94714 dts: Add digitizer 2016-07-28 13:27:19 +02:00
Martin T. H. Sandsmark 71de99f382 dts: Update i2c address of EPDC PMIC 2016-07-28 13:27:18 +02:00
Martin T. H. Sandsmark 73ef0f7c4a dts: Remove key rows we don't have 2016-07-28 13:27:18 +02:00
Martin T. H. Sandsmark a2f2f25ce7 dts: Remove hdmi and audio controllers 2016-07-28 13:27:17 +02:00
Martin T. H. Sandsmark dec3b828a8 dts: Set correct battery component 2016-07-28 13:27:17 +02:00
Pali Rohár d1cd0b23f4 power_supply: bq27xxx_battery: Add of modalias and match table when CONFIG_OF is enabled
Signed-off-by: Pali Rohár <pali.rohar@gmail.com>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
2016-07-28 13:27:17 +02:00
Liu Xiang fa1657e2d4 power: bq27xxx_battery: Fix bq27541 AveragePower register address
Currently in bq27541 driver, the average power register address is
incorrectly set to 0x76, which would result in an error:
bq27xxx-battery 2-0055: error reading average power register  10: -11
According to the bq27541 datasheet, fix this problem by setting
the average power register address to 0x24.

Fixes: d74534c277 ("power: bq27xxx_battery: Add support for additional bq27xxx family devices")
Signed-off-by: Liu Xiang <liu.xiang6@zte.com.cn>
Acked-by: Andrew F. Davis <afd@ti.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
2016-07-28 13:27:16 +02:00
H. Nikolaus Schaller b43aef19f3 power: bq27xxx: fix register numbers of bq27500
bug: according to data sheet some register numbers are wrong.

tested: no

Fixes: d74534c277 ("power: bq27xxx_battery: Add support for additional bq27xxx family devices")
Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
Acked-by: Andrew F. Davis <afd@ti.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
2016-07-28 13:27:16 +02:00
H. Nikolaus Schaller b51e7a7b2a power: bq27xxx: fix reading for bq27000 and bq27010
bug: the driver reports funny capacity values:

root@letux:/sys/class/power_supply/bq27000-battery# cat uevent
POWER_SUPPLY_NAME=bq27000-battery
POWER_SUPPLY_STATUS=Charging
POWER_SUPPLY_PRESENT=1
POWER_SUPPLY_VOLTAGE_NOW=3702000
POWER_SUPPLY_CURRENT_NOW=-464635
POWER_SUPPLY_CAPACITY=1536			<- over 100% is magic
POWER_SUPPLY_CAPACITY_LEVEL=Normal
POWER_SUPPLY_TEMP=311
POWER_SUPPLY_TIME_TO_FULL_NOW=10440
POWER_SUPPLY_TECHNOLOGY=Li-ion
POWER_SUPPLY_CHARGE_FULL=805450
POWER_SUPPLY_CHARGE_NOW=1068
POWER_SUPPLY_CHARGE_FULL_DESIGN=8844998	<- battery has just 1200 mAh
POWER_SUPPLY_CYCLE_COUNT=21
POWER_SUPPLY_ENERGY_NOW=0
POWER_SUPPLY_POWER_AVG=0
POWER_SUPPLY_HEALTH=Good
POWER_SUPPLY_MANUFACTURER=Texas Instruments

reason: the state of charge and the design capacity register are single
byte only. The design capacity returns the higer order byte.

tested: GTA04 with Openmoko/FIC HF08x battery (using hdq)

Fixes: d74534c277 ("power: bq27xxx_battery: Add support for additional bq27xxx family devices")
Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
Acked-by: Andrew F. Davis <afd@ti.com>
Reviewed-by: Pali Rohár <pali.rohar@gmail.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
2016-07-28 13:27:15 +02:00
Andrew F. Davis 2b88c9bda2 power: bq27xxx_battery: Reorganize I2C into a module
Separate out I2C functionality into a module. This fixes several small
issues and simplifies the driver initialization.

Signed-off-by: Andrew F. Davis <afd@ti.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
2016-07-28 13:27:15 +02:00
NeilBrown 9b4d9c947b power: bq27xxx: don't fill system log by missing battery
Print message that battery is not calibrated only once
to avoid spamming the log.

Suggested-By: H. Nikolaus Schaller <hns@goldelico.com>
Suggested-By: Pali Rohár <pali.rohar@gmail.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
2016-07-28 13:27:14 +02:00
Sebastian Reichel feb14f6e28 power: bq27xxx_battery: move irq handler to i2c section
The IRQ handler is not used by the platform based
code resulting in a 'defined but not used' warning,
if CONFIG_BQ27XXX_I2C is not enabled.

Signed-off-by: Sebastian Reichel <sre@kernel.org>
Acked-by: Pali Rohár <pali.rohar@gmail.com>
Acked-by: Andrew F. Davis <afd@ti.com>
2016-07-28 13:27:14 +02:00
Sebastian Reichel bd7b740c59 power: bq27xxx_battery: fix platform probe
Add missing initialization of register mapping table to
platform probe function.

Signed-off-by: Sebastian Reichel <sre@kernel.org>
Acked-by: Pali Rohár <pali.rohar@gmail.com>
Acked-by: Andrew F. Davis <afd@ti.com>
2016-07-28 13:27:14 +02:00
Andrzej Hajda 63c0266711 power: bq27xxx_battery: fix signedness bug in bq27xxx_battery_read_health()
We need flags to be signed for the error handling to work.

The problem has been detected using proposed semantic patch
scripts/coccinelle/tests/unsigned_lesser_than_zero.cocci [1].

[1]: http://permalink.gmane.org/gmane.linux.kernel/2038576

Fixes: 74aab849f3 ('power: bq27xxx_battery: Cleanup health checking')
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-By: Pali Rohár <pali.rohar@gmail.com>
Acked-by: Andrew F. Davis <afd@ti.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
2016-07-28 13:27:13 +02:00
Andrew F. Davis b71e73833a power: bq27xxx_battery: Add interrupt handling support
Some devices have a pin that can generate an interrupt when
the battery's status changes. Add an interrupt handler to
read the new battery status.

Signed-off-by: Andrew F. Davis <afd@ti.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
2016-07-28 13:27:13 +02:00
Andrew F. Davis adb40ce783 power: bq27xxx_battery: Cleanup health checking
Reorganize the logic checking battery health and add under temperature
condition checking.

Signed-off-by: Andrew F. Davis <afd@ti.com>
Acked-by: Pali Rohár <pali.rohar@gmail.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
2016-07-28 13:27:12 +02:00
Andrew F. Davis a54a37f565 power: bq27xxx_battery: Add support for additional bq27xxx family devices
Add support for additional devices and register equivalent family devices
including the bq27010, bq27210, bq27500, bq27510, bq27520, bq27530,
bq27531, bq27541, bq27542, bq27546, bq27545, bq27441, bq27421, and the
bq27641.

To facilitate this process the register mapings have been moved to tables
and other small cleanups have been made.

Signed-off-by: Andrew F. Davis <afd@ti.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
2016-07-28 13:27:12 +02:00
Andrew F. Davis 02c1df11c4 power: bq27xxx_battery: Fix typos and change naming for state of charge functions
Fix typos and change "relative state of charge" to "state of charge" as not
all supported devices use relative state of charge.

Signed-off-by: Andrew F. Davis <afd@ti.com>
Acked-by: Pali Rohár <pali.rohar@gmail.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
2016-07-28 13:27:12 +02:00
Andrew F. Davis bb64740518 power: bq27xxx_battery: Platform initialization must declare a device
When initialized as a platform device the initializer must now specify
a device. An empty device name is no longer valid.

Signed-off-by: Andrew F. Davis <afd@ti.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
2016-07-28 13:27:11 +02:00
Andrew F. Davis 84c2d7d76e power: bq27x00_battery: Renaming for consistency
Rename functions that are used by multiple devices. New devices
have been added and the function names and driver name are no longer
general enough for the functionality they provide.

Signed-off-by: Andrew F. Davis <afd@ti.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Acked-by: GUAN Xuetao <gxt@mprc.pku.edu.cn>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
2016-07-28 13:27:11 +02:00
Andrew F. Davis 64f71c5e04 power: bq27x00_battery: Remove unneeded i2c MODULE_ALIAS
The MODULE_DEVICE_TABLE macro automatically adds all needed
i2c MODULE_ALIASes so remove the extra MODULE_ALIAS.

Signed-off-by: Andrew F. Davis <afd@ti.com>
Acked-by: Pali Rohár <pali.rohar@gmail.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
2016-07-28 13:27:10 +02:00
Andrew F. Davis 71cfc19f47 power: bq27x00_battery: Checkpatch fixes
Remove space before tab.
Remove unnecessary line continuations.
Add braces to else statement.
Remove unnecessary parentheses.
Remove unneeded blank lines.
Remove unnecessary 'out of memory' message.
Add missing line after declarations.
Change use of printk to pr_err.

Signed-off-by: Andrew F. Davis <afd@ti.com>
Acked-by: Pali Rohár <pali.rohar@gmail.com>
Acked-by: Dan Murphy <dmurphy@ti.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
2016-07-28 13:27:10 +02:00