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.10' of git://git.kernel.org/pub/scm/linux/ker…
…nel/git/wsa/linux Pull i2c updates from Wolfram Sang: - the first series of making i2c_device_id optional instead of mandatory (in favor of alternatives like of_device_id). This involves adding a new probe callback (probe_new) which removes some peculiarities I2C had for a long time now. The new probe is matching the other subsystems now and the old one will be removed once all users are converted. It is expected to take a while but there is ongoing interest in that. - SMBus Host Notify introduced 4.9 got refactored. They are now using interrupts instead of the alert callback which solves multiple issues. - new drivers for iMX LowPower I2C, Mellanox CPLD and its I2C mux - significant refactoring for bcm2835 driver - the usual set of driver updates and improvements * 'i2c/for-4.10' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux: (46 commits) i2c: fsl-lpi2c: read lpi2c fifo size in probe() i2c: octeon: thunderx: Remove double-check after interrupt i2c: octeon: thunderx: TWSI software reset in recovery i2c: cadence: Allow Cadence I2C to be selected for Cadence Xtensa CPUs i2c: sh_mobile: Add per-Generation fallback bindings i2c: rcar: Add per-Generation fallback bindings i2c: imx-lpi2c: add low power i2c bus driver dt-bindings: i2c: imx-lpi2c: add devicetree bindings i2c: designware-pcidrv: Add 10bit address feature to medfield/merrifield i2c: pxa: Add support for the I2C units found in Armada 3700 i2c: pxa: Add definition of fast and high speed modes via the regs layout dt-bindings: i2c: pxa: Update the documentation for the Armada 3700 i2c: qup: support SMBus block read i2c: qup: add ACPI support i2c: designware: Consolidate default functionality bits i2c: i2c-mux-gpio: update mux with gpiod_set_array_value_cansleep i2c: mux: pca954x: Add ACPI support for pca954x i2c: use an IRQ to report Host Notify events, not alert i2c: i801: remove SMBNTFDDAT reads as they always seem to return 0 i2c: i801: use the BIT() macro for FEATURES_* also ...
- Loading branch information
Showing
42 changed files
with
2,264 additions
and
429 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,20 @@ | ||
* Freescale Low Power Inter IC (LPI2C) for i.MX | ||
|
||
Required properties: | ||
- compatible : | ||
- "fsl,imx7ulp-lpi2c" for LPI2C compatible with the one integrated on i.MX7ULP soc | ||
- "fsl,imx8dv-lpi2c" for LPI2C compatible with the one integrated on i.MX8DV soc | ||
- reg : address and length of the lpi2c master registers | ||
- interrupt-parent : core interrupt controller | ||
- interrupts : lpi2c interrupt | ||
- clocks : lpi2c clock specifier | ||
|
||
Examples: | ||
|
||
lpi2c7: lpi2c7@40A50000 { | ||
compatible = "fsl,imx8dv-lpi2c"; | ||
reg = <0x40A50000 0x10000>; | ||
interrupt-parent = <&intc>; | ||
interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>; | ||
clocks = <&clks IMX7ULP_CLK_LPI2C7>; | ||
}; |
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,47 @@ | ||
Driver i2c-mlxcpld | ||
|
||
Author: Michael Shych <[email protected]> | ||
|
||
This is the Mellanox I2C controller logic, implemented in Lattice CPLD | ||
device. | ||
Device supports: | ||
- Master mode. | ||
- One physical bus. | ||
- Polling mode. | ||
|
||
This controller is equipped within the next Mellanox systems: | ||
"msx6710", "msx6720", "msb7700", "msn2700", "msx1410", "msn2410", "msb7800", | ||
"msn2740", "msn2100". | ||
|
||
The next transaction types are supported: | ||
- Receive Byte/Block. | ||
- Send Byte/Block. | ||
- Read Byte/Block. | ||
- Write Byte/Block. | ||
|
||
Registers: | ||
CTRL 0x1 - control reg. | ||
Resets all the registers. | ||
HALF_CYC 0x4 - cycle reg. | ||
Configure the width of I2C SCL half clock cycle (in 4 LPC_CLK | ||
units). | ||
I2C_HOLD 0x5 - hold reg. | ||
OE (output enable) is delayed by value set to this register | ||
(in LPC_CLK units) | ||
CMD 0x6 - command reg. | ||
Bit 0, 0 = write, 1 = read. | ||
Bits [7:1] - the 7bit Address of the I2C device. | ||
It should be written last as it triggers an I2C transaction. | ||
NUM_DATA 0x7 - data size reg. | ||
Number of data bytes to write in read transaction | ||
NUM_ADDR 0x8 - address reg. | ||
Number of address bytes to write in read transaction. | ||
STATUS 0x9 - status reg. | ||
Bit 0 - transaction is completed. | ||
Bit 4 - ACK/NACK. | ||
DATAx 0xa - 0x54 - 68 bytes data buffer regs. | ||
For write transaction address is specified in four first bytes | ||
(DATA1 - DATA4), data starting from DATA4. | ||
For read transactions address is sent in a separate transaction and | ||
specified in the four first bytes (DATA0 - DATA3). Data is read | ||
starting from DATA0. |
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 |
---|---|---|
|
@@ -8023,6 +8023,15 @@ W: http://www.mellanox.com | |
Q: http://patchwork.ozlabs.org/project/netdev/list/ | ||
F: drivers/net/ethernet/mellanox/mlxsw/ | ||
|
||
MELLANOX MLXCPLD I2C AND MUX DRIVER | ||
M: Vadim Pasternak <[email protected]> | ||
M: Michael Shych <[email protected]> | ||
L: [email protected] | ||
S: Supported | ||
F: drivers/i2c/busses/i2c-mlxcpld.c | ||
F: drivers/i2c/muxes/i2c-mux-mlxcpld.c | ||
F: Documentation/i2c/busses/i2c-mlxcpld | ||
|
||
MELLANOX MLXCPLD LED DRIVER | ||
M: Vadim Pasternak <[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
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.