Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Driver for the I3C Controller IP Core #2480

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions Documentation/devicetree/bindings/i3c/adi,i3c-master.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/i3c/adi,i3c-master.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Analog Devices I3C Controller

maintainers:
- Jorge Marques <jorge.marques@analog.com>

allOf:
- $ref: i3c.yaml#

properties:
compatible:
const: adi,i3c-master

reg:
maxItems: 1

clocks:
maxItems: 1

clock-names:
items:
- const: s_axi_aclk
- const: i3c_clk

interrupts:
maxItems: 1

required:
- compatible
- reg
- clocks
- clock-names
- interrupts

unevaluatedProperties: false

examples:
- |
i3c-master@44a00000 {
compatible = "adi,i3c-master";
reg = <0x44a00000 0x1000>;
interrupts = <0 56 4>;
clocks = <&clkc 15>;
clock-names = "s_axi_aclk", "i3c_clk";

#address-cells = <3>;
#size-cells = <0>;

/* I3C/I²C devices */
};
6 changes: 6 additions & 0 deletions MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -9796,6 +9796,12 @@ L: linux-i2c@vger.kernel.org
S: Maintained
F: drivers/i2c/i2c-stub.c

I3C DRIVER FOR ANALOG DEVICES I3C CONTROLLER IP
M: Jorge Marques <jorge.marques@analog.com>
S: Maintained
F: Documentation/devicetree/bindings/i3c/adi,i3c-master.yaml
F: drivers/i3c/master/adi-i3c-master.c

I3C DRIVER FOR CADENCE I3C MASTER IP
M: Przemysław Gaj <pgaj@cadence.com>
S: Maintained
Expand Down
13 changes: 13 additions & 0 deletions drivers/i3c/master/Kconfig
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
# SPDX-License-Identifier: GPL-2.0-only
config ADI_I3C_MASTER
tristate "Analog Devices I3C master driver"
depends on I3C
depends on HAS_IOMEM
depends on !(ALPHA || PARISC)
help
Support for Analog Devices I3C Controller IP, an AXI-interfaced IP
core that supports I3C and I2C devices, multiple speed-grades and
I3C IBIs.

This driver can also be built as a module. If so, the module
will be called adi-i3c-master.

config CDNS_I3C_MASTER
tristate "Cadence I3C master driver"
depends on I3C
Expand Down
1 change: 1 addition & 0 deletions drivers/i3c/master/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-only
obj-$(CONFIG_ADI_I3C_MASTER) += adi-i3c-master.o
obj-$(CONFIG_CDNS_I3C_MASTER) += i3c-master-cdns.o
obj-$(CONFIG_DW_I3C_MASTER) += dw-i3c-master.o
obj-$(CONFIG_SVC_I3C_MASTER) += svc-i3c-master.o
Expand Down
Loading
Loading