forked from torvalds/linux
-
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.4' of git://git.kernel.org/pub/scm/linux/kern…
…el/git/wsa/linux Pull i2c updates from Wolfram Sang: - New drivers: UniPhier (with and without FIFO) - some drivers got some bigger rework: ismt, designware, img-scb (rcar had to be reverted because issues were showing up just lately) - ACPI: reworked the device scanning and added support for muxes ... and quite a lot of driver bugfixes and cleanups this time. All files touched outside of the i2c realm have proper acks. * 'i2c/for-4.4' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux: (70 commits) i2c: rcar: Revert the latest refactoring series i2c: pnx: remove superfluous assignment MAINTAINERS: i2c: drop i2c-pnx maintainer MAINTAINERS: i2c: mark also subdirectories as maintained i2c: cadence: enable driver for ARM64 i2c: i801: Document Intel DNV and Broxton i2c: at91: manage unexpected RXRDY flag when starting a transfer i2c: pnx: Use setup_timer instead of open coding it i2c: add ACPI support for I2C mux ports acpi: add acpi_preset_companion() stub i2c: pxa: Add support for pxa910/988 & new configuration features i2c: au1550: Convert to devm_kzalloc and devm_ioremap_resource i2c-dev: Fix I2C_SLAVE ioctl comment i2c-dev: Fix typo in ioctl name reference i2c: sirf: tune the divider to make i2c bus freq more accurate i2c: imx: Use -ENXIO as error in the NACK case i2c: i801: Add support for Intel Broxton i2c: i801: Add support for Intel DNV i2c: mediatek: add i2c resume support i2c: imx: implement bus recovery ...
- Loading branch information
Showing
44 changed files
with
1,683 additions
and
379 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
ACPI I2C Muxes | ||
-------------- | ||
|
||
Describing an I2C device hierarchy that includes I2C muxes requires an ACPI | ||
Device () scope per mux channel. | ||
|
||
Consider this topology: | ||
|
||
+------+ +------+ | ||
| SMB1 |-->| MUX0 |--CH00--> i2c client A (0x50) | ||
| | | 0x70 |--CH01--> i2c client B (0x50) | ||
+------+ +------+ | ||
|
||
which corresponds to the following ASL: | ||
|
||
Device (SMB1) | ||
{ | ||
Name (_HID, ...) | ||
Device (MUX0) | ||
{ | ||
Name (_HID, ...) | ||
Name (_CRS, ResourceTemplate () { | ||
I2cSerialBus (0x70, ControllerInitiated, I2C_SPEED, | ||
AddressingMode7Bit, "^SMB1", 0x00, | ||
ResourceConsumer,,) | ||
} | ||
|
||
Device (CH00) | ||
{ | ||
Name (_ADR, 0) | ||
|
||
Device (CLIA) | ||
{ | ||
Name (_HID, ...) | ||
Name (_CRS, ResourceTemplate () { | ||
I2cSerialBus (0x50, ControllerInitiated, I2C_SPEED, | ||
AddressingMode7Bit, "^CH00", 0x00, | ||
ResourceConsumer,,) | ||
} | ||
} | ||
} | ||
|
||
Device (CH01) | ||
{ | ||
Name (_ADR, 1) | ||
|
||
Device (CLIB) | ||
{ | ||
Name (_HID, ...) | ||
Name (_CRS, ResourceTemplate () { | ||
I2cSerialBus (0x50, ControllerInitiated, I2C_SPEED, | ||
AddressingMode7Bit, "^CH01", 0x00, | ||
ResourceConsumer,,) | ||
} | ||
} | ||
} | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
UniPhier I2C controller (FIFO-builtin) | ||
|
||
Required properties: | ||
- compatible: should be "socionext,uniphier-fi2c". | ||
- #address-cells: should be 1. | ||
- #size-cells: should be 0. | ||
- reg: offset and length of the register set for the device. | ||
- interrupts: a single interrupt specifier. | ||
- clocks: phandle to the input clock. | ||
|
||
Optional properties: | ||
- clock-frequency: desired I2C bus frequency in Hz. The maximum supported | ||
value is 400000. Defaults to 100000 if not specified. | ||
|
||
Examples: | ||
|
||
i2c0: i2c@58780000 { | ||
compatible = "socionext,uniphier-fi2c"; | ||
reg = <0x58780000 0x80>; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
interrupts = <0 41 4>; | ||
clocks = <&i2c_clk>; | ||
clock-frequency = <100000>; | ||
}; |
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,25 @@ | ||
UniPhier I2C controller (FIFO-less) | ||
|
||
Required properties: | ||
- compatible: should be "socionext,uniphier-i2c". | ||
- #address-cells: should be 1. | ||
- #size-cells: should be 0. | ||
- reg: offset and length of the register set for the device. | ||
- interrupts: a single interrupt specifier. | ||
- clocks: phandle to the input clock. | ||
|
||
Optional properties: | ||
- clock-frequency: desired I2C bus frequency in Hz. The maximum supported | ||
value is 400000. Defaults to 100000 if not specified. | ||
|
||
Examples: | ||
|
||
i2c0: i2c@58400000 { | ||
compatible = "socionext,uniphier-i2c"; | ||
reg = <0x58400000 0x40>; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
interrupts = <0 41 1>; | ||
clocks = <&i2c_clk>; | ||
clock-frequency = <100000>; | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1626,6 +1626,7 @@ L: [email protected] (moderated for non-subscribers) | |
S: Maintained | ||
F: arch/arm/boot/dts/uniphier* | ||
F: arch/arm/mach-uniphier/ | ||
F: drivers/i2c/busses/i2c-uniphier* | ||
F: drivers/pinctrl/uniphier/ | ||
F: drivers/tty/serial/8250/8250_uniphier.c | ||
N: uniphier | ||
|
@@ -5163,6 +5164,7 @@ S: Maintained | |
F: Documentation/devicetree/bindings/i2c/ | ||
F: Documentation/i2c/ | ||
F: drivers/i2c/ | ||
F: drivers/i2c/*/ | ||
F: include/linux/i2c.h | ||
F: include/linux/i2c-*.h | ||
F: include/uapi/linux/i2c.h | ||
|
@@ -8418,12 +8420,6 @@ M: "Rafael J. Wysocki" <[email protected]> | |
S: Maintained | ||
F: drivers/pnp/ | ||
|
||
PNXxxxx I2C DRIVER | ||
M: Vitaly Wool <[email protected]> | ||
L: [email protected] | ||
S: Maintained | ||
F: drivers/i2c/busses/i2c-pnx.c | ||
|
||
PPP PROTOCOL DRIVERS AND COMPRESSORS | ||
M: Paul Mackerras <[email protected]> | ||
L: [email protected] | ||
|
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.