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.13' of git://git.kernel.org/pub/scm/linux/ker…
…nel/git/wsa/linux Pull i2c updates from Wolfram Sang: "This pull request contains: - i2c core reorganization. One source file became too monolithic. It is now split up, yet we still have the same named object as the final output. This should ease maintenance. - new drivers: ZTE ZX2967 family, ASPEED 24XX/25XX - designware driver gained slave mode support - xgene-slimpro driver gained ACPI support - bigger overhaul for pca-platform driver - the algo-bit module now supports messages with enforced STOP - slightly bigger than usual set of driver updates and improvements and with much appreciated quality assurance from Andy Shevchenko" * 'i2c/for-4.13' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux: (51 commits) i2c: Provide a stub for i2c_detect_slave_mode() i2c: designware: Let slave adapter support be optional i2c: designware: Make HW init functions static i2c: designware: fix spelling mistakes i2c: pca-platform: propagate error from i2c_pca_add_numbered_bus i2c: pca-platform: correctly set algo_data.reset_chip i2c: acpi: Do not create i2c-clients for LNXVIDEO ACPI devices i2c: designware: enable SLAVE in platform module i2c: designware: add SLAVE mode functions i2c: zx2967: drop COMPILE_TEST dependency i2c: zx2967: always use the same device when printing errors i2c: pca-platform: use dev_warn/dev_info instead of printk i2c: pca-platform: use device managed allocations i2c: pca-platform: add devicetree awareness i2c: pca-platform: switch to struct gpio_desc dt-bindings: add bindings for i2c-pca-platform i2c: cadance: fix ctrl/addr reg write order i2c: zx2967: add i2c controller driver for ZTE's zx2967 family dt: bindings: add documentation for zx2967 family i2c controller i2c: algo-bit: add support for I2C_M_STOP ...
- Loading branch information
Showing
41 changed files
with
4,969 additions
and
2,508 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,48 @@ | ||
Device tree configuration for the I2C busses on the AST24XX and AST25XX SoCs. | ||
|
||
Required Properties: | ||
- #address-cells : should be 1 | ||
- #size-cells : should be 0 | ||
- reg : address offset and range of bus | ||
- compatible : should be "aspeed,ast2400-i2c-bus" | ||
or "aspeed,ast2500-i2c-bus" | ||
- clocks : root clock of bus, should reference the APB | ||
clock | ||
- interrupts : interrupt number | ||
- interrupt-parent : interrupt controller for bus, should reference a | ||
aspeed,ast2400-i2c-ic or aspeed,ast2500-i2c-ic | ||
interrupt controller | ||
|
||
Optional Properties: | ||
- bus-frequency : frequency of the bus clock in Hz defaults to 100 kHz when not | ||
specified | ||
- multi-master : states that there is another master active on this bus. | ||
|
||
Example: | ||
|
||
i2c { | ||
compatible = "simple-bus"; | ||
#address-cells = <1>; | ||
#size-cells = <1>; | ||
ranges = <0 0x1e78a000 0x1000>; | ||
|
||
i2c_ic: interrupt-controller@0 { | ||
#interrupt-cells = <1>; | ||
compatible = "aspeed,ast2400-i2c-ic"; | ||
reg = <0x0 0x40>; | ||
interrupts = <12>; | ||
interrupt-controller; | ||
}; | ||
|
||
i2c0: i2c-bus@40 { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
#interrupt-cells = <1>; | ||
reg = <0x40 0x40>; | ||
compatible = "aspeed,ast2400-i2c-bus"; | ||
clocks = <&clk_apb>; | ||
bus-frequency = <100000>; | ||
interrupts = <0>; | ||
interrupt-parent = <&i2c_ic>; | ||
}; | ||
}; |
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
29 changes: 29 additions & 0 deletions
29
Documentation/devicetree/bindings/i2c/i2c-pca-platform.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,29 @@ | ||
* NXP PCA PCA9564/PCA9665 I2C controller | ||
|
||
The PCA9564/PCA9665 serves as an interface between most standard | ||
parallel-bus microcontrollers/microprocessors and the serial I2C-bus | ||
and allows the parallel bus system to communicate bi-directionally | ||
with the I2C-bus. | ||
|
||
Required properties : | ||
|
||
- reg : Offset and length of the register set for the device | ||
- compatible : one of "nxp,pca9564" or "nxp,pca9665" | ||
|
||
Optional properties | ||
- interrupts : the interrupt number | ||
- interrupt-parent : the phandle for the interrupt controller. | ||
If an interrupt is not specified polling will be used. | ||
- reset-gpios : gpio specifier for gpio connected to RESET_N pin. As the line | ||
is active low, it should be marked GPIO_ACTIVE_LOW. | ||
- clock-frequency : I2C bus frequency. | ||
|
||
Example: | ||
i2c0: i2c@80000 { | ||
compatible = "nxp,pca9564"; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
reg = <0x80000 0x4>; | ||
reset-gpios = <&gpio1 0 GPIO_ACTIVE_LOW>; | ||
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,22 @@ | ||
ZTE zx2967 I2C controller | ||
|
||
Required properties: | ||
- compatible: must be "zte,zx296718-i2c" | ||
- reg: physical address and length of the device registers | ||
- interrupts: a single interrupt specifier | ||
- clocks: clock for the device | ||
- #address-cells: should be <1> | ||
- #size-cells: should be <0> | ||
- clock-frequency: the desired I2C bus clock frequency. | ||
|
||
Examples: | ||
|
||
i2c@112000 { | ||
compatible = "zte,zx296718-i2c"; | ||
reg = <0x00112000 0x1000>; | ||
interrupts = <GIC_SPI 112 IRQ_TYPE_LEVEL_HIGH>; | ||
clocks = <&osc24m>; | ||
#address-cells = <1> | ||
#size-cells = <0>; | ||
clock-frequency = <1600000>; | ||
}; |
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 |
---|---|---|
|
@@ -1139,6 +1139,18 @@ F: arch/arm/mach-aspeed/ | |
F: arch/arm/boot/dts/aspeed-* | ||
F: drivers/*/*aspeed* | ||
|
||
ARM/ASPEED I2C DRIVER | ||
M: Brendan Higgins <[email protected]> | ||
R: Benjamin Herrenschmidt <[email protected]> | ||
R: Joel Stanley <[email protected]> | ||
L: [email protected] | ||
L: [email protected] | ||
S: Maintained | ||
F: drivers/irqchip/irq-aspeed-i2c-ic.c | ||
F: drivers/i2c/busses/i2c-aspeed.c | ||
F: Documentation/devicetree/bindings/interrupt-controller/aspeed,ast2400-i2c-ic.txt | ||
F: Documentation/devicetree/bindings/i2c/i2c-aspeed.txt | ||
|
||
ARM/ATMEL AT91RM9200, AT91SAM9 AND SAMA5 SOC SUPPORT | ||
M: Nicolas Ferre <[email protected]> | ||
M: Alexandre Belloni <[email protected]> | ||
|
@@ -6382,6 +6394,7 @@ M: Mika Westerberg <[email protected]> | |
L: [email protected] | ||
L: [email protected] | ||
S: Maintained | ||
F: drivers/i2c/i2c-core-acpi.c | ||
|
||
I2C-TAOS-EVM DRIVER | ||
M: Jean Delvare <[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
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.