Skip to content

Commit 55fe921

Browse files
committed
Merge tag 'i3c/for-5.19' of git://git.kernel.org/pub/scm/linux/kernel/git/i3c/linux
Pull i3c updates from Alexandre Belloni: "Only clean ups and no functional change this cycle. A couple of yaml conversions of the DT bindings, and a couple of code cleanups" * tag 'i3c/for-5.19' of git://git.kernel.org/pub/scm/linux/kernel/git/i3c/linux: MAINTAINERS: rectify entries for some i3c drivers after dt conversion i3c: master: svc: fix returnvar.cocci warning i3c/master: simplify the return expression of i3c_hci_remove() dt-bindings: i3c: Convert snps,dw-i3c-master to DT schema dt-bindings: i3c: Convert cdns,i3c-master to DT schema
2 parents fa78526 + 66ed42c commit 55fe921

File tree

7 files changed

+116
-94
lines changed

7 files changed

+116
-94
lines changed

Documentation/devicetree/bindings/i3c/cdns,i3c-master.txt

Lines changed: 0 additions & 43 deletions
This file was deleted.
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/i3c/cdns,i3c-master.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Cadence I3C master block
8+
9+
maintainers:
10+
- Boris Brezillon <[email protected]>
11+
12+
allOf:
13+
- $ref: i3c.yaml#
14+
15+
properties:
16+
compatible:
17+
const: cdns,i3c-master
18+
19+
reg:
20+
maxItems: 1
21+
22+
clocks:
23+
maxItems: 2
24+
25+
clock-names:
26+
items:
27+
- const: pclk
28+
- const: sysclk
29+
30+
interrupts:
31+
maxItems: 1
32+
33+
required:
34+
- compatible
35+
- reg
36+
- clocks
37+
- clock-names
38+
- interrupts
39+
40+
unevaluatedProperties: false
41+
42+
examples:
43+
- |
44+
i3c-master@d040000 {
45+
compatible = "cdns,i3c-master";
46+
clocks = <&coreclock>, <&i3csysclock>;
47+
clock-names = "pclk", "sysclk";
48+
interrupts = <3 0>;
49+
reg = <0x0d040000 0x1000>;
50+
#address-cells = <3>;
51+
#size-cells = <0>;
52+
i2c-scl-hz = <100000>;
53+
54+
eeprom@57{
55+
compatible = "atmel,24c01";
56+
reg = <0x57 0x0 0x10>;
57+
pagesize = <0x8>;
58+
};
59+
};
60+
...

Documentation/devicetree/bindings/i3c/snps,dw-i3c-master.txt

Lines changed: 0 additions & 41 deletions
This file was deleted.
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/i3c/snps,dw-i3c-master.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Synopsys DesignWare I3C master block
8+
9+
maintainers:
10+
- Alexandre Belloni <[email protected]>
11+
12+
allOf:
13+
- $ref: i3c.yaml#
14+
15+
properties:
16+
compatible:
17+
const: snps,dw-i3c-master-1.00a
18+
19+
reg:
20+
maxItems: 1
21+
22+
clocks:
23+
maxItems: 1
24+
25+
interrupts:
26+
maxItems: 1
27+
28+
required:
29+
- compatible
30+
- reg
31+
- clocks
32+
- interrupts
33+
34+
unevaluatedProperties: false
35+
36+
examples:
37+
- |
38+
i3c-master@2000 {
39+
compatible = "snps,dw-i3c-master-1.00a";
40+
#address-cells = <3>;
41+
#size-cells = <0>;
42+
reg = <0x02000 0x1000>;
43+
interrupts = <0>;
44+
clocks = <&i3cclk>;
45+
46+
eeprom@57{
47+
compatible = "atmel,24c01";
48+
reg = <0x57 0x0 0x10>;
49+
pagesize = <0x8>;
50+
};
51+
};
52+
...

MAINTAINERS

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9319,13 +9319,13 @@ F: drivers/i2c/i2c-stub.c
93199319
I3C DRIVER FOR CADENCE I3C MASTER IP
93209320
M: Przemysław Gaj <[email protected]>
93219321
S: Maintained
9322-
F: Documentation/devicetree/bindings/i3c/cdns,i3c-master.txt
9322+
F: Documentation/devicetree/bindings/i3c/cdns,i3c-master.yaml
93239323
F: drivers/i3c/master/i3c-master-cdns.c
93249324

93259325
I3C DRIVER FOR SYNOPSYS DESIGNWARE
93269326
M: Vitor Soares <[email protected]>
93279327
S: Maintained
9328-
F: Documentation/devicetree/bindings/i3c/snps,dw-i3c-master.txt
9328+
F: Documentation/devicetree/bindings/i3c/snps,dw-i3c-master.yaml
93299329
F: drivers/i3c/master/dw*
93309330

93319331
I3C SUBSYSTEM

drivers/i3c/master/mipi-i3c-hci/core.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -768,13 +768,8 @@ static int i3c_hci_probe(struct platform_device *pdev)
768768
static int i3c_hci_remove(struct platform_device *pdev)
769769
{
770770
struct i3c_hci *hci = platform_get_drvdata(pdev);
771-
int ret;
772771

773-
ret = i3c_master_unregister(&hci->master);
774-
if (ret)
775-
return ret;
776-
777-
return 0;
772+
return i3c_master_unregister(&hci->master);
778773
}
779774

780775
static const __maybe_unused struct of_device_id i3c_hci_of_match[] = {

drivers/i3c/master/svc-i3c-master.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1597,12 +1597,11 @@ static int __maybe_unused svc_i3c_runtime_suspend(struct device *dev)
15971597
static int __maybe_unused svc_i3c_runtime_resume(struct device *dev)
15981598
{
15991599
struct svc_i3c_master *master = dev_get_drvdata(dev);
1600-
int ret = 0;
16011600

16021601
pinctrl_pm_select_default_state(dev);
16031602
svc_i3c_master_prepare_clks(master);
16041603

1605-
return ret;
1604+
return 0;
16061605
}
16071606

16081607
static const struct dev_pm_ops svc_i3c_pm_ops = {

0 commit comments

Comments
 (0)