-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'i2c/for-4.15' of ssh://gitolite.kernel.org/pub/scm/linu…
…x/kernel/git/wsa/linux Pull i2c updates from Wolfram Sang: "This contains two bigger than usual tree-wide changes this time. They all have proper acks, caused no merge conflicts in linux-next where they have been for a while. They are namely: - to-gpiod conversion of the i2c-gpio driver and its users (touching arch/* and drivers/mfd/*) - adding a sbs-manager based on I2C core updates to SMBus alerts (touching drivers/power/*) Other notable changes: - i2c_boardinfo can now carry a dev_name to be used when the device is created. This is because some devices in ACPI world need fixed names to find the regulators. - the designware driver got a long discussed overhaul of its PM handling. img-scb and davinci got PM support, too. - at24 driver has way better OF support. And it has a new maintainer. Thanks Bartosz for stepping up! The rest is regular driver updates and fixes" * 'i2c/for-4.15' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/wsa/linux: (55 commits) ARM: sa1100: simpad: Correct I2C GPIO offsets i2c: aspeed: Deassert reset in probe eeprom: at24: Add OF device ID table MAINTAINERS: new maintainer for AT24 driver i2c: nuc900: remove platform_data, too i2c: thunderx: Remove duplicate NULL check i2c: taos-evm: Remove duplicate NULL check i2c: Make i2c_unregister_device() NULL-aware i2c: xgene-slimpro: Support v2 i2c: mpc: remove useless variable initialization i2c: omap: Trigger bus recovery in lockup case i2c: gpio: Add support for named gpios in DT dt-bindings: i2c: i2c-gpio: Add support for named gpios i2c: gpio: Local vars in probe i2c: gpio: Augment all boardfiles to use open drain i2c: gpio: Enforce open drain through gpiolib gpio: Make it possible for consumers to enforce open drain i2c: gpio: Convert to use descriptors power: supply: sbs-message: fix some code style issues power: supply: sbs-battery: remove unchecked return var ...
- Loading branch information
Showing
70 changed files
with
1,685 additions
and
600 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
66 changes: 66 additions & 0 deletions
66
Documentation/devicetree/bindings/power/supply/sbs,sbs-manager.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
Binding for sbs-manager | ||
|
||
Required properties: | ||
- compatible: "<vendor>,<part-number>", "sbs,sbs-charger" as fallback. The part | ||
number compatible string might be used in order to take care of vendor | ||
specific registers. | ||
- reg: integer, i2c address of the device. Should be <0xa>. | ||
Optional properties: | ||
- gpio-controller: Marks the port as GPIO controller. | ||
See "gpio-specifier" in .../devicetree/bindings/gpio/gpio.txt. | ||
- #gpio-cells: Should be <2>. The first cell is the pin number, the second cell | ||
is used to specify optional parameters: | ||
See "gpio-specifier" in .../devicetree/bindings/gpio/gpio.txt. | ||
|
||
From OS view the device is basically an i2c-mux used to communicate with up to | ||
four smart battery devices at address 0xb. The driver actually implements this | ||
behaviour. So standard i2c-mux nodes can be used to register up to four slave | ||
batteries. Channels will be numerated starting from 1 to 4. | ||
|
||
Example: | ||
|
||
batman@a { | ||
compatible = "lltc,ltc1760", "sbs,sbs-manager"; | ||
reg = <0x0a>; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
gpio-controller; | ||
#gpio-cells = <2>; | ||
|
||
i2c@1 { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
reg = <1>; | ||
|
||
battery@b { | ||
compatible = "ti,bq2060", "sbs,sbs-battery"; | ||
reg = <0x0b>; | ||
sbs,battery-detect-gpios = <&batman 1 1>; | ||
}; | ||
}; | ||
|
||
i2c@2 { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
reg = <2>; | ||
|
||
battery@b { | ||
compatible = "ti,bq2060", "sbs,sbs-battery"; | ||
reg = <0x0b>; | ||
sbs,battery-detect-gpios = <&batman 2 1>; | ||
}; | ||
}; | ||
|
||
i2c@3 { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
reg = <3>; | ||
|
||
battery@b { | ||
compatible = "ti,bq2060", "sbs,sbs-battery"; | ||
reg = <0x0b>; | ||
sbs,battery-detect-gpios = <&batman 3 1>; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.