Skip to content

Commit 273cbf6

Browse files
committed
Merge branch 'i2c/for-5.3' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux
Pull i2c updates from Wolfram Sang: "New stuff from the I2C world: - in the core, getting irqs from ACPI is now similar to OF - new driver for MediaTek MT7621/7628/7688 SoCs - bcm2835, i801, and tegra drivers got some more attention - GPIO API cleanups - cleanups in the core headers - lots of usual driver updates" * 'i2c/for-5.3' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux: (74 commits) i2c: mt7621: Fix platform_no_drv_owner.cocci warnings i2c: cpm: remove casting dma_alloc dt-bindings: i2c: sun6i-p2wi: Fix the binding example dt-bindings: i2c: mv64xxx: Fix the example compatible i2c: i801: Documentation update i2c: i801: Add support for Intel Tiger Lake i2c: i801: Fix PCI ID sorting dt-bindings: i2c-stm32: document optional dmas i2c: i2c-stm32f7: Add I2C_SMBUS_I2C_BLOCK_DATA support i2c: core: Tidy up handling of init_irq i2c: core: Move ACPI gpio IRQ handling into i2c_acpi_get_irq i2c: core: Move ACPI IRQ handling to probe time i2c: acpi: Factor out getting the IRQ from ACPI i2c: acpi: Use available IRQ helper functions i2c: core: Allow whole core to use i2c_dev_irq_from_resources eeprom: at24: modify a comment referring to platform data dt-bindings: i2c: omap: Add new compatible for J721E SoCs dt-bindings: i2c: mv64xxx: Add YAML schemas dt-bindings: i2c: sun6i-p2wi: Add YAML schemas i2c: mt7621: Add MediaTek MT7621/7628/7688 I2C driver ...
2 parents 5fe7b60 + cc6b9df commit 273cbf6

51 files changed

Lines changed: 1605 additions & 644 deletions

Some content is hidden

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

‎Documentation/ABI/testing/sysfs-platform-i2c-demux-pinctrl‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
What: /sys/devices/platform/<i2c-demux-name>/available_masters
22
Date: January 2016
33
KernelVersion: 4.6
4-
Contact: Wolfram Sang <wsa@the-dreams.de>
4+
Contact: Wolfram Sang <wsa+renesas@sang-engineering.com>
55
Description:
66
Reading the file will give you a list of masters which can be
77
selected for a demultiplexed bus. The format is
@@ -12,7 +12,7 @@ Description:
1212
What: /sys/devices/platform/<i2c-demux-name>/current_master
1313
Date: January 2016
1414
KernelVersion: 4.6
15-
Contact: Wolfram Sang <wsa@the-dreams.de>
15+
Contact: Wolfram Sang <wsa+renesas@sang-engineering.com>
1616
Description:
1717
This file selects/shows the active I2C master for a demultiplexed
1818
bus. It uses the <index> value from the file 'available_masters'.
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/i2c/allwinner,sun6i-a31-p2wi.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Allwinner A31 P2WI (Push/Pull 2 Wires Interface) Device Tree Bindings
8+
9+
maintainers:
10+
- Chen-Yu Tsai <wens@csie.org>
11+
- Maxime Ripard <maxime.ripard@bootlin.com>
12+
13+
allOf:
14+
- $ref: /schemas/i2c/i2c-controller.yaml#
15+
16+
properties:
17+
compatible:
18+
const: allwinner,sun6i-a31-p2wi
19+
20+
reg:
21+
maxItems: 1
22+
23+
interrupts:
24+
maxItems: 1
25+
26+
clocks:
27+
maxItems: 1
28+
29+
resets:
30+
maxItems: 1
31+
32+
clock-frequency:
33+
minimum: 1
34+
maximum: 6000000
35+
36+
required:
37+
- compatible
38+
- reg
39+
- interrupts
40+
- clocks
41+
- resets
42+
43+
# FIXME: We should set it, but it would report all the generic
44+
# properties as additional properties.
45+
# additionalProperties: false
46+
47+
examples:
48+
- |
49+
i2c@1f03400 {
50+
compatible = "allwinner,sun6i-a31-p2wi";
51+
reg = <0x01f03400 0x400>;
52+
interrupts = <0 39 4>;
53+
clocks = <&apb0_gates 3>;
54+
clock-frequency = <100000>;
55+
resets = <&apb0_rst 3>;
56+
#address-cells = <1>;
57+
#size-cells = <0>;
58+
59+
axp221: pmic@68 {
60+
compatible = "x-powers,axp221";
61+
reg = <0x68>;
62+
};
63+
};
64+
65+
...
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
MediaTek MT7621/MT7628 I2C master controller
2+
3+
Required properties:
4+
5+
- compatible: Should be one of the following:
6+
- "mediatek,mt7621-i2c": for MT7621/MT7628/MT7688 platforms
7+
- #address-cells: should be 1.
8+
- #size-cells: should be 0.
9+
- reg: Address and length of the register set for the device
10+
- resets: phandle to the reset controller asserting this device in
11+
reset
12+
See ../reset/reset.txt for details.
13+
14+
Optional properties :
15+
16+
Example:
17+
18+
i2c: i2c@900 {
19+
compatible = "mediatek,mt7621-i2c";
20+
reg = <0x900 0x100>;
21+
#address-cells = <1>;
22+
#size-cells = <0>;
23+
resets = <&rstctrl 16>;
24+
reset-names = "i2c";
25+
};

‎Documentation/devicetree/bindings/i2c/i2c-mv64xxx.txt‎

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

‎Documentation/devicetree/bindings/i2c/i2c-ocores.txt‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
Device tree configuration for i2c-ocores
22

33
Required properties:
4-
- compatible : "opencores,i2c-ocores" or "aeroflexgaisler,i2cmst"
4+
- compatible : "opencores,i2c-ocores"
5+
"aeroflexgaisler,i2cmst"
6+
"sifive,fu540-c000-i2c", "sifive,i2c0"
7+
For Opencore based I2C IP block reimplemented in
8+
FU540-C000 SoC. Please refer to sifive-blocks-ip-versioning.txt
9+
for additional details.
510
- reg : bus address start and address range size of device
6-
- interrupts : interrupt number
711
- clocks : handle to the controller clock; see the note below.
812
Mutually exclusive with opencores,ip-clock-frequency
913
- opencores,ip-clock-frequency: frequency of the controller clock in Hz;
@@ -12,6 +16,7 @@ Required properties:
1216
- #size-cells : should be <0>
1317

1418
Optional properties:
19+
- interrupts : interrupt number.
1520
- clock-frequency : frequency of bus clock in Hz; see the note below.
1621
Defaults to 100 KHz when the property is not specified
1722
- reg-shift : device register offsets are shifted by this value

‎Documentation/devicetree/bindings/i2c/i2c-omap.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Required properties :
77
"ti,omap3-i2c" for OMAP3 SoCs
88
"ti,omap4-i2c" for OMAP4+ SoCs
99
"ti,am654-i2c", "ti,omap4-i2c" for AM654 SoCs
10+
"ti,j721e-i2c", "ti,omap4-i2c" for J721E SoCs
1011
- ti,hwmods : Must be "i2c<n>", n being the instance number (1-based)
1112
- #address-cells = <1>;
1213
- #size-cells = <0>;

‎Documentation/devicetree/bindings/i2c/i2c-stm32.txt‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ Optional properties:
2121
100000 and 400000.
2222
For STM32F7, STM32H7 and STM32MP1 SoCs, Standard-mode, Fast-mode and Fast-mode
2323
Plus are supported, possible values are 100000, 400000 and 1000000.
24+
- dmas: List of phandles to rx and tx DMA channels. Refer to stm32-dma.txt.
25+
- dma-names: List of dma names. Valid names are: "rx" and "tx".
2426
- i2c-scl-rising-time-ns: I2C SCL Rising time for the board (default: 25)
2527
For STM32F7, STM32H7 and STM32MP1 only.
2628
- i2c-scl-falling-time-ns: I2C SCL Falling time for the board (default: 10)

‎Documentation/devicetree/bindings/i2c/i2c-sun6i-p2wi.txt‎

Lines changed: 0 additions & 41 deletions
This file was deleted.
Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/i2c/marvell,mv64xxx-i2c.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Marvell MV64XXX I2C Controller Device Tree Bindings
8+
9+
maintainers:
10+
- Gregory CLEMENT <gregory.clement@bootlin.com>
11+
12+
properties:
13+
compatible:
14+
oneOf:
15+
- const: allwinner,sun4i-a10-i2c
16+
- items:
17+
- const: allwinner,sun7i-a20-i2c
18+
- const: allwinner,sun4i-a10-i2c
19+
- const: allwinner,sun6i-a31-i2c
20+
- items:
21+
- const: allwinner,sun8i-a23-i2c
22+
- const: allwinner,sun6i-a31-i2c
23+
- items:
24+
- const: allwinner,sun8i-a83t-i2c
25+
- const: allwinner,sun6i-a31-i2c
26+
- items:
27+
- const: allwinner,sun50i-a64-i2c
28+
- const: allwinner,sun6i-a31-i2c
29+
30+
- const: marvell,mv64xxx-i2c
31+
- const: marvell,mv78230-i2c
32+
- const: marvell,mv78230-a0-i2c
33+
34+
description:
35+
Only use "marvell,mv78230-a0-i2c" for a very rare, initial
36+
version of the SoC which had broken offload support. Linux
37+
auto-detects this and sets it appropriately.
38+
39+
reg:
40+
maxItems: 1
41+
42+
interrupts:
43+
maxItems: 1
44+
45+
clocks:
46+
minItems: 1
47+
maxItems: 2
48+
items:
49+
- description: Reference clock for the I2C bus
50+
- description: Bus clock (Only for Armada 7K/8K)
51+
52+
clock-names:
53+
minItems: 1
54+
maxItems: 2
55+
items:
56+
- const: core
57+
- const: reg
58+
description:
59+
Mandatory if two clocks are used (only for Armada 7k and 8k).
60+
61+
resets:
62+
maxItems: 1
63+
64+
required:
65+
- compatible
66+
- reg
67+
- interrupts
68+
69+
allOf:
70+
- $ref: /schemas/i2c/i2c-controller.yaml#
71+
- if:
72+
properties:
73+
compatible:
74+
contains:
75+
enum:
76+
- allwinner,sun4i-a10-i2c
77+
- allwinner,sun6i-a31-i2c
78+
79+
then:
80+
required:
81+
- clocks
82+
83+
- if:
84+
properties:
85+
compatible:
86+
contains:
87+
const: allwinner,sun6i-a31-i2c
88+
89+
then:
90+
required:
91+
- resets
92+
93+
# FIXME: We should set it, but it would report all the generic
94+
# properties as additional properties.
95+
# additionalProperties: false
96+
97+
examples:
98+
- |
99+
i2c@11000 {
100+
compatible = "marvell,mv64xxx-i2c";
101+
reg = <0x11000 0x20>;
102+
interrupts = <29>;
103+
clock-frequency = <100000>;
104+
};
105+
106+
- |
107+
i2c@11000 {
108+
compatible = "marvell,mv78230-i2c";
109+
reg = <0x11000 0x100>;
110+
interrupts = <29>;
111+
clock-frequency = <100000>;
112+
};
113+
114+
- |
115+
i2c@701000 {
116+
compatible = "marvell,mv78230-i2c";
117+
reg = <0x701000 0x20>;
118+
interrupts = <29>;
119+
clock-frequency = <100000>;
120+
clock-names = "core", "reg";
121+
clocks = <&core_clock>, <&reg_clock>;
122+
};
123+
124+
...

0 commit comments

Comments
 (0)