Skip to content

Commit b86406d

Browse files
committed
Merge tag 'i2c-for-6.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux
Pull i2c updates from Wolfram Sang: - 'remove' callback converted to return void. Big change with trivial fixes all over the tree. Other subsystems depending on this change have been asked to pull an immutable topic branch for this. - new driver for Microchip PCI1xxxx switch - heavy refactoring of the Mellanox BlueField driver - we prefer async probe in the i801 driver now - the rest is usual driver updates (support for more SoCs, some refactoring, some feature additions) * tag 'i2c-for-6.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux: (37 commits) i2c: pci1xxxx: prevent signed integer overflow i2c: acpi: Replace zero-length array with DECLARE_FLEX_ARRAY() helper i2c: i801: Prefer async probe i2c: designware-pci: Use standard pattern for memory allocation i2c: designware-pci: Group AMD NAVI quirk parts together i2c: microchip: pci1xxxx: Add driver for I2C host controller in multifunction endpoint of pci1xxxx switch docs: i2c: slave-interface: return errno when handle I2C_SLAVE_WRITE_REQUESTED i2c: mlxbf: remove device tree support i2c: mlxbf: support BlueField-3 SoC i2c: cadence: Add standard bus recovery support i2c: mlxbf: add multi slave functionality i2c: mlxbf: support lock mechanism macintosh/ams: Adapt declaration of ams_i2c_remove() to earlier change i2c: riic: Use devm_platform_ioremap_resource() i2c: mlxbf: remove IRQF_ONESHOT dt-bindings: i2c: rockchip: add rockchip,rk3128-i2c dt-bindings: i2c: renesas,rcar-i2c: Add r8a779g0 support i2c: tegra: Add GPCDMA support i2c: scmi: Convert to be a platform driver i2c: rk3x: Add rv1126 support ...
2 parents 0326074 + 228336f commit b86406d

File tree

648 files changed

+2551
-2321
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

648 files changed

+2551
-2321
lines changed

Documentation/devicetree/bindings/i2c/i2c-imx-lpi2c.yaml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ properties:
2323
- fsl,imx8dxl-lpi2c
2424
- fsl,imx8qm-lpi2c
2525
- fsl,imx8ulp-lpi2c
26+
- fsl,imx93-lpi2c
2627
- const: fsl,imx7ulp-lpi2c
2728

2829
reg:
@@ -37,10 +38,22 @@ properties:
3738
clock-frequency: true
3839

3940
clock-names:
40-
maxItems: 1
41+
items:
42+
- const: per
43+
- const: ipg
4144

4245
clocks:
43-
maxItems: 1
46+
maxItems: 2
47+
48+
dmas:
49+
items:
50+
- description: DMA controller phandle and request line for TX
51+
- description: DMA controller phandle and request line for RX
52+
53+
dma-names:
54+
items:
55+
- const: tx
56+
- const: rx
4457

4558
power-domains:
4659
maxItems: 1
@@ -63,5 +76,6 @@ examples:
6376
reg = <0x40A50000 0x10000>;
6477
interrupt-parent = <&intc>;
6578
interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
66-
clocks = <&clks IMX7ULP_CLK_LPI2C7>;
79+
clocks = <&clks IMX7ULP_CLK_LPI2C7>,
80+
<&clks IMX7ULP_CLK_NIC1_BUS_DIV>;
6781
};

Documentation/devicetree/bindings/i2c/i2c-imx.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,17 @@ properties:
1818
- const: fsl,imx1-i2c
1919
- const: fsl,imx21-i2c
2020
- const: fsl,vf610-i2c
21+
- items:
22+
- enum:
23+
- fsl,ls1012a-i2c
24+
- fsl,ls1021a-i2c
25+
- fsl,ls1028a-i2c
26+
- fsl,ls1043a-i2c
27+
- fsl,ls1046a-i2c
28+
- fsl,ls1088a-i2c
29+
- fsl,ls208xa-i2c
30+
- fsl,lx2160a-i2c
31+
- const: fsl,vf610-i2c
2132
- items:
2233
- const: fsl,imx35-i2c
2334
- const: fsl,imx1-i2c

Documentation/devicetree/bindings/i2c/i2c-rk3x.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ properties:
2929
- items:
3030
- enum:
3131
- rockchip,rk3036-i2c
32+
- rockchip,rk3128-i2c
3233
- rockchip,rk3368-i2c
3334
- const: rockchip,rk3288-i2c
3435
- items:

Documentation/devicetree/bindings/i2c/marvell,mv64xxx-i2c.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,19 @@ properties:
6666
resets:
6767
maxItems: 1
6868

69+
dmas:
70+
items:
71+
- description: RX DMA Channel
72+
- description: TX DMA Channel
73+
74+
dma-names:
75+
items:
76+
- const: rx
77+
- const: tx
78+
79+
dependencies:
80+
dmas: [ dma-names ]
81+
6982
required:
7083
- compatible
7184
- reg

Documentation/devicetree/bindings/i2c/mellanox,i2c-mlxbf.yaml

Lines changed: 0 additions & 77 deletions
This file was deleted.

Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ allOf:
126126
contains:
127127
enum:
128128
- qcom,sm8250-cci
129+
- qcom,sm8450-cci
129130
then:
130131
properties:
131132
clocks:

Documentation/devicetree/bindings/i2c/renesas,rcar-i2c.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ properties:
5252
- enum:
5353
- renesas,i2c-r8a779a0 # R-Car V3U
5454
- renesas,i2c-r8a779f0 # R-Car S4-8
55+
- renesas,i2c-r8a779g0 # R-Car V4H
5556
- const: renesas,rcar-gen4-i2c # R-Car Gen4
5657

5758
reg:

Documentation/i2c/slave-interface.rst

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,15 @@ Event types:
7272

7373
'val': unused
7474

75-
'ret': always 0
75+
'ret': 0 if the backend is ready, otherwise some errno
7676

7777
Another I2C master wants to write data to us. This event should be sent once
7878
our own address and the write bit was detected. The data did not arrive yet, so
79-
there is nothing to process or return. Wakeup or initialization probably needs
80-
to be done, though.
79+
there is nothing to process or return. After returning, the bus driver must
80+
always ack the address phase. If 'ret' is zero, backend initialization or
81+
wakeup is done and further data may be received. If 'ret' is an errno, the bus
82+
driver should nack all incoming bytes until the next stop condition to enforce
83+
a retry of the transmission.
8184

8285
* I2C_SLAVE_READ_REQUESTED (mandatory)
8386

Documentation/i2c/writing-clients.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ those devices, and a remove() method to unbind.
156156
::
157157

158158
static int foo_probe(struct i2c_client *client);
159-
static int foo_remove(struct i2c_client *client);
159+
static void foo_remove(struct i2c_client *client);
160160

161161
Remember that the i2c_driver does not create those client handles. The
162162
handle may be used during foo_probe(). If foo_probe() reports success

MAINTAINERS

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12982,9 +12982,9 @@ F: drivers/input/touchscreen/melfas_mip4.c
1298212982

1298312983
MELLANOX BLUEFIELD I2C DRIVER
1298412984
M: Khalil Blaiech <kblaiech@nvidia.com>
12985+
M: Asmaa Mnebhi <asmaa@nvidia.com>
1298512986
L: linux-i2c@vger.kernel.org
1298612987
S: Supported
12987-
F: Documentation/devicetree/bindings/i2c/mellanox,i2c-mlxbf.yaml
1298812988
F: drivers/i2c/busses/i2c-mlxbf.c
1298912989

1299012990
MELLANOX ETHERNET DRIVER (mlx4_en)
@@ -13433,6 +13433,14 @@ F: Documentation/devicetree/bindings/nvmem/microchip,sama7g5-otpc.yaml
1343313433
F: drivers/nvmem/microchip-otpc.c
1343413434
F: include/dt-bindings/nvmem/microchip,sama7g5-otpc.h
1343513435

13436+
MICROCHIP PCI1XXXX I2C DRIVER
13437+
M: Tharun Kumar P <tharunkumar.pasumarthi@microchip.com>
13438+
M: Kumaravel Thiagarajan <kumaravel.thiagarajan@microchip.com>
13439+
M: Microchip Linux Driver Support <UNGLinuxDriver@microchip.com>
13440+
L: linux-i2c@vger.kernel.org
13441+
S: Maintained
13442+
F: drivers/i2c/busses/i2c-mchp-pci1xxxx.c
13443+
1343613444
MICROCHIP PWM DRIVER
1343713445
M: Claudiu Beznea <claudiu.beznea@microchip.com>
1343813446
L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers)

0 commit comments

Comments
 (0)