Add driver for Synopsys DesignWare I3C master IP
Subsystems (6)
v4 cover Add driver for Synopsys DesignWare I3C master IP
This patch series is a proposal for the I3C master driver for Synopsys IP. This patch is to be applied on top of I3C subsystem RFC V10 submitted by Boris Brezillon.
Supported features:
Regular CCC commands.
I3C private transfers.
I2C transfers.
Missing functionalities:
Support DMA interface.
Support for I3C_BUS_MODE_MIXED_SLOW.
Hot-join.
IBI.
Main change between v3 and v4:
- Minor fixes. They are described in each patch
Main change between v2 and v3:
- Minor fixes. They are described in each patch
Main change between v1 and v2:
- Add controller version on dt-binding
- The driver now calls writesl/readsl() instead readl/writel
- Rename some variables in the driver
Vitor Soares (3):
i3c: master: Add driver for Synopsys DesignWare IP
dt-binding: i3c: Document Synopsys DesignWare I3C
MAINTAINERS: Add myself as the dw-i3c-master module maintainer
.../devicetree/bindings/i3c/snps,dw-i3c-master.txt | 41 + MAINTAINERS | 6 + drivers/i3c/master/Kconfig | 14 + drivers/i3c/master/Makefile | 1 + drivers/i3c/master/dw-i3c-master.c | 1216 ++++++++++++++++++++ 5 files changed, 1278 insertions(+) create mode 100644 Documentation/devicetree/bindings/i3c/snps,dw-i3c-master.txt create mode 100644 drivers/i3c/master/dw-i3c-master.c
Signature · 1 line
2.7.4
PATCH v4 1/3 i3c: master: Add driver for Synopsys DesignWare IP
Add driver for Synopsys DesignWare I3C master IP
---
Change in v4:
- Change email [email protected] to [email protected]
Change in v3:
- Use struct_size() (suggested by Matthew)
Change in v2:
- Rename some variables
- Remove dw_i3c_master_dev_set_info()
- Ajust code to match the changes made of i3c subsystem
- Use readsl/writesl() to populate TX/RX buffers
drivers/i3c/master/Kconfig | 14 + drivers/i3c/master/Makefile | 1 + drivers/i3c/master/dw-i3c-master.c | 1216 ++++++++++++++++++++++++++++++++++++ 3 files changed, 1231 insertions(+) create mode 100644 drivers/i3c/master/dw-i3c-master.c
drivers/i3c/master/Kconfig +14 -0
@@ -4,3 +4,17 @@ config CDNS_I3C_MASTER depends on !(ALPHA || PARISC) help Enable this driver if you want to support Cadence I3C master block. + +config DW_I3C_MASTER + tristate "Synospsys DesignWare I3C master driver" + depends on I3C + depends on !(ALPHA || PARISC) + # ALPHA and PARISC needs {read,write}sl() + help + Support for Synopsys DesignWare MIPI I3C Controller. + + For details please see + https://www.synopsys.com/dw/ipdir.php?ds=mipi_i3c + + This driver can also be built as a module. If so, the module + will be called dw-i3c-master.
drivers/i3c/master/Makefile +1 -0
@@ -1 +1,2 @@ obj-$(CONFIG_CDNS_I3C_MASTER) += i3c-master-cdns.o +obj-$(CONFIG_DW_I3C_MASTER) += dw-i3c-master.o
drivers/i3c/master/dw-i3c-master.c new file +1216 -0
1,216 lines not on this page · raw message
Signature · 1 line
2.7.4
PATCH v4 2/3 dt-binding: i3c: Document Synopsys DesignWare I3C
In reply to Vitor SoaresDocument Synopsys DesignWare I3C master module
---
Changes in v4:
- Change email [email protected] to [email protected]
- Add Rob Herring R-b
Changes in v3:
- Remove dummy characters
Changes in v2:
- Address the changes in Documentation/devicetree/bindings/i3c/i3c.txt
- Add controller version on compatible string
.../devicetree/bindings/i3c/snps,dw-i3c-master.txt | 41 ++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 Documentation/devicetree/bindings/i3c/snps,dw-i3c-master.txt
Documentation/devicetree/bindings/i3c/snps,dw-i3c-master.txt new file +41 -0
@@ -0,0 +1,41 @@ +Bindings for Synopsys DesignWare I3C master block +================================================= + +Required properties: +-------------------- +- compatible: shall be "snps,dw-i3c-master-1.00a" +- clocks: shall reference the core_clk +- interrupts: the interrupt line connected to this I3C master +- reg: Offset and length of I3C master registers + +Mandatory properties defined by the generic binding (see +Documentation/devicetree/bindings/i3c/i3c.txt for more details): + +- #address-cells: shall be set to 3 +- #size-cells: shall be set to 0 + +Optional properties defined by the generic binding (see +Documentation/devicetree/bindings/i3c/i3c.txt for more details): + +- i2c-scl-hz +- i3c-scl-hz + +I3C device connected on the bus follow the generic description (see +Documentation/devicetree/bindings/i3c/i3c.txt for more details). + +Example: + + i3c-master@2000 { + compatible = "snps,dw-i3c-master-1.00a"; + #address-cells = <3>; + #size-cells = <0>; + reg = <0x02000 0x1000>; + interrupts = <0>; + clocks = <&i3cclk>; + + eeprom@57{ + compatible = "atmel,24c01"; + reg = <0x57 0x0 0x10>; + pagesize = <0x8>; + }; + };
Signature · 1 line
2.7.4
PATCH v4 3/3 MAINTAINERS: Add myself as the dw-i3c-master module maintainer
In reply to Vitor Soares---
Change in v4:
- Change email [email protected] to [email protected]
Change in v3:
- Remove dummy characters
Change in v2:
- None
MAINTAINERS | 6 ++++++ 1 file changed, 6 insertions(+)
MAINTAINERS +6 -0
@@ -6930,6 +6930,12 @@ F: drivers/i3c/ F: include/linux/i3c/ F: include/dt-bindings/i3c/ +I3C DRIVER FOR SYNOPSYS DESIGNWARE +M: Vitor Soares <[email protected]> +S: Maintained +F: Documentation/devicetree/bindings/i3c/snps,dw-i3c-master.txt +F: drivers/i3c/master/dw* + IA64 (Itanium) PLATFORM M: Tony Luck <[email protected]> M: Fenghua Yu <[email protected]>
Signature · 1 line
2.7.4
Quoted 9 lines · On Tue, 13 Nov 2018 14:09:50 +0000 Vitor Soares <[email protected]>…
This patch series is a proposal for the I3C master driver for Synopsys IP. This patch is to be applied on top of I3C subsystem RFC V10 submitted by Boris Brezillon.
Supported features:
Regular CCC commands.
I3C private transfers.
I2C transfers.
Quoted 5 lines
Missing functionalities:
Support DMA interface.
Support forI3C_BUS_MODE_MIXED_SLOW.
Hot-join.
IBI.
Patchset queued to i3c/next.
Thanks,
Boris
Quoted 26 lines
Main change between v3 and v4:
- Minor fixes. They are described in each patchMain change between v2 and v3:
- Minor fixes. They are described in each patchMain change between v1 and v2:
- Add controller version on dt-binding
- The driver now calls writesl/readsl() instead readl/writel
- Rename some variables in the driverVitor Soares (3):
i3c: master: Add driver for Synopsys DesignWare IP
dt-binding: i3c: Document Synopsys DesignWare I3C
MAINTAINERS: Add myself as the dw-i3c-master module maintainer.../devicetree/bindings/i3c/snps,dw-i3c-master.txt | 41 + MAINTAINERS | 6 + drivers/i3c/master/Kconfig | 14 + drivers/i3c/master/Makefile | 1 + drivers/i3c/master/dw-i3c-master.c | 1216 ++++++++++++++++++++ 5 files changed, 1278 insertions(+) create mode 100644 Documentation/devicetree/bindings/i3c/snps,dw-i3c-master.txt create mode 100644 drivers/i3c/master/dw-i3c-master.c