mirror of
https://github.com/torvalds/linux.git
synced 2024-12-26 12:52:30 +00:00
2d09581b4c
Make it possible to transfer i2c message buffers via DMA. Start/Stop/Sending_Slave_Address is still handled using the old state machine, it is sending the actual data that is done via DMA. This is least intrusive and allows us to work with the message buffers directly instead of preparing a custom buffer which involves copying the data around. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> [wsa: fixed an uninitialized var problem] Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
41 lines
1.3 KiB
Plaintext
41 lines
1.3 KiB
Plaintext
Device tree configuration for Renesas IIC (sh_mobile) driver
|
|
|
|
Required properties:
|
|
- compatible : "renesas,iic-<soctype>". "renesas,rmobile-iic" as fallback
|
|
Examples with soctypes are:
|
|
- "renesas,iic-r8a73a4" (R-Mobile APE6)
|
|
- "renesas,iic-r8a7740" (R-Mobile A1)
|
|
- "renesas,iic-r8a7790" (R-Car H2)
|
|
- "renesas,iic-r8a7791" (R-Car M2-W)
|
|
- "renesas,iic-r8a7792" (R-Car V2H)
|
|
- "renesas,iic-r8a7793" (R-Car M2-N)
|
|
- "renesas,iic-r8a7794" (R-Car E2)
|
|
- "renesas,iic-sh73a0" (SH-Mobile AG5)
|
|
- reg : address start and address range size of device
|
|
- interrupts : interrupt of device
|
|
- clocks : clock for device
|
|
- #address-cells : should be <1>
|
|
- #size-cells : should be <0>
|
|
|
|
Optional properties:
|
|
- clock-frequency : frequency of bus clock in Hz. Default 100kHz if unset.
|
|
- dmas : Must contain a list of two references to DMA
|
|
specifiers, one for transmission, and one for
|
|
reception.
|
|
- dma-names : Must contain a list of two DMA names, "tx" and "rx".
|
|
|
|
|
|
Pinctrl properties might be needed, too. See there.
|
|
|
|
Example:
|
|
|
|
iic0: i2c@e6500000 {
|
|
compatible = "renesas,iic-r8a7790", "renesas,rmobile-iic";
|
|
reg = <0 0xe6500000 0 0x425>;
|
|
interrupts = <0 174 IRQ_TYPE_LEVEL_HIGH>;
|
|
clocks = <&mstp3_clks R8A7790_CLK_IIC0>;
|
|
clock-frequency = <400000>;
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
};
|