r8a7796 I2C integration
Subsystems (5)
v2 cover r8a7796 I2C integration
Hi!
This revision is based on renesas-devel-20161024-v4.9-rc2. It adds the Reviewed-bys and the entries for SYS-DMAC2 in the applicable I2C nodes. I have also made sure it works with 64-bit memory enabled.
CU
Uli
Changes since v1:
- added sys-dmac2 entries to i2c0-2
- added Reviewed-bys
- dropped "i2c: rcar: add support for r8a7796 (R-Car M3-W)" (picked up)
Ulrich Hecht (5):
clk: renesas: r8a7796: Add I2C clocks
pinctrl: sh-pfc: r8a7796: add I2C pin support
arm64: renesas: r8a7796: add I2C support
arm64: renesas: r8a7796: Enable I2C DMA
arm64: renesas: r8a7796: salvator-x: enable I2C
arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts | 12 +++ arch/arm64/boot/dts/renesas/r8a7796.dtsi | 111 +++++++++++++++++++++ drivers/clk/renesas/r8a7796-cpg-mssr.c | 7 ++ drivers/pinctrl/sh-pfc/pfc-r8a7796.c | 77 ++++++++++++++ 4 files changed, 207 insertions(+)
Signature · 1 line
2.7.4
PATCH v2 1/5 clk: renesas: r8a7796: Add I2C clocks
--- drivers/clk/renesas/r8a7796-cpg-mssr.c | 7 +++++++ 1 file changed, 7 insertions(+)
drivers/clk/renesas/r8a7796-cpg-mssr.c +7 -0
@@ -133,6 +133,13 @@ static const struct mssr_mod_clk r8a7796_mod_clks[] __initconst = {DEF_MOD ("gpio2" ,910 ,R8A7796_CLK_S3D4 ),DEF_MOD ("gpio1" ,911 ,R8A7796_CLK_S3D4 ),DEF_MOD ("gpio0" ,912 ,R8A7796_CLK_S3D4 ), +DEF_MOD ("i2c6" ,918 ,R8A7796_CLK_S0D6 ), +DEF_MOD ("i2c5" ,919 ,R8A7796_CLK_S0D6 ), +DEF_MOD ("i2c4" ,927 ,R8A7796_CLK_S0D6 ), +DEF_MOD ("i2c3" ,928 ,R8A7796_CLK_S0D6 ), +DEF_MOD ("i2c2" ,929 ,R8A7796_CLK_S3D2 ), +DEF_MOD ("i2c1" ,930 ,R8A7796_CLK_S3D2 ), + DEF_MOD("i2c0", 931, R8A7796_CLK_S3D2), }; static const unsigned int r8a7796_crit_mod_clks[] __initconst = {
Signature · 1 line
2.7.4
PATCH v2 2/5 pinctrl: sh-pfc: r8a7796: add I2C pin support
In reply to Ulrich Hecht--- drivers/pinctrl/sh-pfc/pfc-r8a7796.c | 77 ++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+)
drivers/pinctrl/sh-pfc/pfc-r8a7796.c +77 -0
@@ -1490,6 +1490,57 @@ static const struct sh_pfc_pin pinmux_pins[] = { PINMUX_GPIO_GP_ALL(), }; +/* - I2C -------------------------------------------------------------------- */ +static const unsigned int i2c1_a_pins[] = { +/* SDA, SCL */ +RCAR_GP_PIN (5 ,11 ),RCAR_GP_PIN (5 ,10 ), +}; +static const unsigned int i2c1_a_mux[] = { +SDA1_A_MARK ,SCL1_A_MARK , +}; +static const unsigned int i2c1_b_pins[] = { +/* SDA, SCL */ +RCAR_GP_PIN (5 ,24 ),RCAR_GP_PIN (5 ,23 ), +}; +static const unsigned int i2c1_b_mux[] = { +SDA1_B_MARK ,SCL1_B_MARK , +}; +static const unsigned int i2c2_a_pins[] = { +/* SDA, SCL */ +RCAR_GP_PIN (5 ,0 ),RCAR_GP_PIN (5 ,4 ), +}; +static const unsigned int i2c2_a_mux[] = { +SDA2_A_MARK ,SCL2_A_MARK , +}; +static const unsigned int i2c2_b_pins[] = { +/* SDA, SCL */ +RCAR_GP_PIN (3 ,13 ),RCAR_GP_PIN (3 ,12 ), +}; +static const unsigned int i2c2_b_mux[] = { +SDA2_B_MARK ,SCL2_B_MARK , +}; +static const unsigned int i2c6_a_pins[] = { +/* SDA, SCL */ +RCAR_GP_PIN (1 ,8 ),RCAR_GP_PIN (1 ,11 ), +}; +static const unsigned int i2c6_a_mux[] = { +SDA6_A_MARK ,SCL6_A_MARK , +}; +static const unsigned int i2c6_b_pins[] = { +/* SDA, SCL */ +RCAR_GP_PIN (1 ,26 ),RCAR_GP_PIN (1 ,25 ), +}; +static const unsigned int i2c6_b_mux[] = { +SDA6_B_MARK ,SCL6_B_MARK , +}; +static const unsigned int i2c6_c_pins[] = { +/* SDA, SCL */ +RCAR_GP_PIN (0 ,15 ),RCAR_GP_PIN (0 ,14 ), +}; +static const unsigned int i2c6_c_mux[] = { +SDA6_C_MARK ,SCL6_C_MARK , +}; +/* - SCIF0 ------------------------------------------------------------------ */ static const unsigned int scif0_data_pins[] = {/* RX, TX */
@@ -1912,6 +1963,13 @@ static const unsigned int sdhi3_ds_mux[] = { };static const struct sh_pfc_pin_group pinmux_groups[] = { +SH_PFC_PIN_GROUP (i2c1_a), +SH_PFC_PIN_GROUP (i2c1_b), +SH_PFC_PIN_GROUP (i2c2_a), +SH_PFC_PIN_GROUP (i2c2_b), +SH_PFC_PIN_GROUP (i2c6_a), +SH_PFC_PIN_GROUP (i2c6_b), +SH_PFC_PIN_GROUP (i2c6_c),SH_PFC_PIN_GROUP (scif0_data),SH_PFC_PIN_GROUP (scif0_clk),SH_PFC_PIN_GROUP (scif0_ctrl),
@@ -1969,6 +2027,22 @@ static const struct sh_pfc_pin_group pinmux_groups[] = { SH_PFC_PIN_GROUP(sdhi3_ds), }; +static const char *const i2c1_groups[] = { +"i2c1_a" , +"i2c1_b" , +}; + +static const char *const i2c2_groups[] = { +"i2c2_a" , +"i2c2_b" , +}; + +static const char *const i2c6_groups[] = { +"i2c6_a" , +"i2c6_b" , +"i2c6_c" , +}; +static const char *const scif0_groups[] = {"scif0_data" ,"scif0_clk" ,
@@ -2058,6 +2132,9 @@ static const char * const sdhi3_groups[] = { };static const struct sh_pfc_function pinmux_functions[] = { +SH_PFC_FUNCTION (i2c1), +SH_PFC_FUNCTION (i2c2), +SH_PFC_FUNCTION (i2c6),SH_PFC_FUNCTION (scif0),SH_PFC_FUNCTION (scif1),SH_PFC_FUNCTION (scif2),
Signature · 1 line
2.7.4
PATCH v2 3/5 arm64: renesas: r8a7796: add I2C support
In reply to Ulrich Hecht--- arch/arm64/boot/dts/renesas/r8a7796.dtsi | 94 ++++++++++++++++++++++++++++++++ 1 file changed, 94 insertions(+)
arch/arm64/boot/dts/renesas/r8a7796.dtsi +94 -0
@@ -17,6 +17,16 @@ #address-cells = <2>; #size-cells = <2>; + aliases { + i2c0 = &i2c0; + i2c1 = &i2c1; + i2c2 = &i2c2; + i2c3 = &i2c3; + i2c4 = &i2c4; + i2c5 = &i2c5; + i2c6 = &i2c6; + }; + psci { compatible = "arm,psci-0.2"; method = "smc";
@@ -239,6 +249,90 @@ #power-domain-cells = <1>; }; + i2c0: i2c@e6500000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "renesas,i2c-r8a7796"; + reg = <0 0xe6500000 0 0x40>; + interrupts = <GIC_SPI 287 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 931>; + power-domains = <&sysc R8A7796_PD_ALWAYS_ON>; + i2c-scl-internal-delay-ns = <110>; + status = "disabled"; + }; + + i2c1: i2c@e6508000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "renesas,i2c-r8a7796"; + reg = <0 0xe6508000 0 0x40>; + interrupts = <GIC_SPI 288 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 930>; + power-domains = <&sysc R8A7796_PD_ALWAYS_ON>; + i2c-scl-internal-delay-ns = <6>; + status = "disabled"; + }; + + i2c2: i2c@e6510000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "renesas,i2c-r8a7796"; + reg = <0 0xe6510000 0 0x40>; + interrupts = <GIC_SPI 286 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 929>; + power-domains = <&sysc R8A7796_PD_ALWAYS_ON>; + i2c-scl-internal-delay-ns = <6>; + status = "disabled"; + }; + + i2c3: i2c@e66d0000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "renesas,i2c-r8a7796"; + reg = <0 0xe66d0000 0 0x40>; + interrupts = <GIC_SPI 290 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 928>; + power-domains = <&sysc R8A7796_PD_ALWAYS_ON>; + i2c-scl-internal-delay-ns = <110>; + status = "disabled"; + }; + + i2c4: i2c@e66d8000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "renesas,i2c-r8a7796"; + reg = <0 0xe66d8000 0 0x40>; + interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 927>; + power-domains = <&sysc R8A7796_PD_ALWAYS_ON>; + i2c-scl-internal-delay-ns = <110>; + status = "disabled"; + }; + + i2c5: i2c@e66e0000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "renesas,i2c-r8a7796"; + reg = <0 0xe66e0000 0 0x40>; + interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 919>; + power-domains = <&sysc R8A7796_PD_ALWAYS_ON>; + i2c-scl-internal-delay-ns = <110>; + status = "disabled"; + }; + + i2c6: i2c@e66e8000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "renesas,i2c-r8a7796"; + reg = <0 0xe66e8000 0 0x40>; + interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 918>; + power-domains = <&sysc R8A7796_PD_ALWAYS_ON>; + i2c-scl-internal-delay-ns = <6>; + status = "disabled"; + }; + scif2: serial@e6e88000 { compatible = "renesas,scif-r8a7796", "renesas,rcar-gen3-scif", "renesas,scif";
Signature · 1 line
2.7.4
PATCH v2 4/5 arm64: renesas: r8a7796: Enable I2C DMA
In reply to Ulrich Hecht--- arch/arm64/boot/dts/renesas/r8a7796.dtsi | 17 +++++++++++++++++ 1 file changed, 17 insertions(+)
arch/arm64/boot/dts/renesas/r8a7796.dtsi +17 -0
@@ -257,6 +257,9 @@ interrupts = <GIC_SPI 287 IRQ_TYPE_LEVEL_HIGH>; clocks = <&cpg CPG_MOD 931>; power-domains = <&sysc R8A7796_PD_ALWAYS_ON>; + dmas = <&dmac1 0x91>, <&dmac1 0x90>, + <&dmac2 0x91>, <&dmac2 0x90>; + dma-names = "tx", "rx", "tx", "rx"; i2c-scl-internal-delay-ns = <110>; status = "disabled"; };
@@ -269,6 +272,9 @@ interrupts = <GIC_SPI 288 IRQ_TYPE_LEVEL_HIGH>; clocks = <&cpg CPG_MOD 930>; power-domains = <&sysc R8A7796_PD_ALWAYS_ON>; + dmas = <&dmac1 0x93>, <&dmac1 0x92>, + <&dmac2 0x93>, <&dmac2 0x92>; + dma-names = "tx", "rx", "tx", "rx"; i2c-scl-internal-delay-ns = <6>; status = "disabled"; };
@@ -281,6 +287,9 @@ interrupts = <GIC_SPI 286 IRQ_TYPE_LEVEL_HIGH>; clocks = <&cpg CPG_MOD 929>; power-domains = <&sysc R8A7796_PD_ALWAYS_ON>; + dmas = <&dmac1 0x95>, <&dmac1 0x94>, + <&dmac2 0x95>, <&dmac2 0x94>; + dma-names = "tx", "rx", "tx", "rx"; i2c-scl-internal-delay-ns = <6>; status = "disabled"; };
@@ -293,6 +302,8 @@ interrupts = <GIC_SPI 290 IRQ_TYPE_LEVEL_HIGH>; clocks = <&cpg CPG_MOD 928>; power-domains = <&sysc R8A7796_PD_ALWAYS_ON>; + dmas = <&dmac0 0x97>, <&dmac0 0x96>; + dma-names = "tx", "rx"; i2c-scl-internal-delay-ns = <110>; status = "disabled"; };
@@ -305,6 +316,8 @@ interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>; clocks = <&cpg CPG_MOD 927>; power-domains = <&sysc R8A7796_PD_ALWAYS_ON>; + dmas = <&dmac0 0x99>, <&dmac0 0x98>; + dma-names = "tx", "rx"; i2c-scl-internal-delay-ns = <110>; status = "disabled"; };
@@ -317,6 +330,8 @@ interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>; clocks = <&cpg CPG_MOD 919>; power-domains = <&sysc R8A7796_PD_ALWAYS_ON>; + dmas = <&dmac0 0x9b>, <&dmac0 0x9a>; + dma-names = "tx", "rx"; i2c-scl-internal-delay-ns = <110>; status = "disabled"; };
@@ -329,6 +344,8 @@ interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>; clocks = <&cpg CPG_MOD 918>; power-domains = <&sysc R8A7796_PD_ALWAYS_ON>; + dmas = <&dmac0 0x9d>, <&dmac0 0x9c>; + dma-names = "tx", "rx"; i2c-scl-internal-delay-ns = <6>; status = "disabled"; };
Signature · 1 line
2.7.4
Re: [PATCH v2 4/5] arm64: renesas: r8a7796: Enable I2C DMA
Quoted 1 line · Ulrich Hecht
Signed-off-by Ulrich Hecht <[email protected]>
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
PATCH v2 5/5 arm64: renesas: r8a7796: salvator-x: enable I2C
In reply to Ulrich Hecht--- arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+)
arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts +12 -0
@@ -111,6 +111,11 @@ function = "scif_clk"; }; + i2c2_pins: i2c2 { + groups = "i2c2_a"; + function = "i2c2"; + }; + sdhi0_pins: sd0 { groups = "sdhi0_data4", "sdhi0_ctrl"; function = "sdhi0";
@@ -209,6 +214,13 @@ status = "okay"; }; +&i2c2 { + pinctrl-0 = <&i2c2_pins>; + pinctrl-names = "default"; + + status = "okay"; +}; + &wdt0 { timeout-sec = <60>; status = "okay";
Signature · 1 line
2.7.4
Re: [PATCH v2 5/5] arm64: renesas: r8a7796: salvator-x: enable I2C
Quoted 12 lines · Ulrich Hecht
Signed-off-by Ulrich Hecht <[email protected]>Reviewed-by Geert Uytterhoeven <[email protected]>--- arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+)arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts +0
-0@@ -111,6 +111,11 @@ function = "scif_clk";
arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts line 121
Quoted 10 lines
arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts +5
-0}; + i2c2_pins: i2c2 { + groups = "i2c2_a"; + function = "i2c2"; + }; + sdhi0_pins: sd0 { groups = "sdhi0_data4", "sdhi0_ctrl"; function = "sdhi0";
BTW, do we have a policy about (alphabetical) ordering?
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Re: [PATCH v2 5/5] arm64: renesas: r8a7796: salvator-x: enable I2C
Quoted 16 lines · Geert Uytterhoeven
Quoted 14 lines · Ulrich Hecht
Signed-off-by Ulrich Hecht <[email protected]>Reviewed-by Geert Uytterhoeven <[email protected]>--- arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+)arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts +0
-0@@ -111,6 +111,11 @@ function = "scif_clk"; };
Quoted 10 lines
arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts line 121
Quoted 8 lines
arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts +5
-0+ i2c2_pins: i2c2 { + groups = "i2c2_a"; + function = "i2c2"; + }; + sdhi0_pins: sd0 { groups = "sdhi0_data4", "sdhi0_ctrl"; function = "sdhi0";BTW, do we have a policy about (alphabetical) ordering?
FWIW I think we should aim to have notes sorted by a) base address and
b) alphabetically.
Re: [PATCH v2 5/5] arm64: renesas: r8a7796: salvator-x: enable I2C
Hi Simon,
Quoted 28 lines · Simon Horman
Quoted 16 lines · Geert Uytterhoeven
Quoted 14 lines · Ulrich Hecht
Signed-off-by Ulrich Hecht <[email protected]>Reviewed-by Geert Uytterhoeven <[email protected]>--- arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+)arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts +0
-0@@ -111,6 +111,11 @@ function = "scif_clk"; };Quoted 10 lines
arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts line 121
Quoted 8 lines
arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts +5
-0+ i2c2_pins: i2c2 { + groups = "i2c2_a"; + function = "i2c2"; + }; + sdhi0_pins: sd0 { groups = "sdhi0_data4", "sdhi0_ctrl"; function = "sdhi0";BTW, do we have a policy about (alphabetical) ordering?
Quoted 2 lines
FWIW I think we should aim to have notes sorted by a) base address and
b) alphabetically.
I think "nodes" comes first, before "notes" ;-)
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Re: [PATCH v2 5/5] arm64: renesas: r8a7796: salvator-x: enable I2C
Quoted 31 lines · Geert Uytterhoeven
Hi Simon,
Quoted 28 lines · Simon Horman
Quoted 26 lines · Geert Uytterhoeven
Quoted 12 lines · Ulrich Hecht
Signed-off-by Ulrich Hecht <[email protected]>Reviewed-by Geert Uytterhoeven <[email protected]>--- arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+)arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts +0
-0@@ -111,6 +111,11 @@ function = "scif_clk";arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts line 121
Quoted 10 lines
arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts +5
-0}; + i2c2_pins: i2c2 { + groups = "i2c2_a"; + function = "i2c2"; + }; + sdhi0_pins: sd0 { groups = "sdhi0_data4", "sdhi0_ctrl"; function = "sdhi0";BTW, do we have a policy about (alphabetical) ordering?
Quoted 4 lines
Quoted 2 lines
FWIW I think we should aim to have notes sorted by a) base address and
b) alphabetically.I think "nodes" comes first, before "notes" ;-)
Yes, that's the spirit.
Hi Uli,
Quoted 3 lines
This revision is based on renesas-devel-20161024-v4.9-rc2. It adds the Reviewed-bys and the entries for SYS-DMAC2 in the applicable I2C nodes. I have also made sure it works with 64-bit memory enabled.
I am currently on the road, will check them on Monday.
Thanks!
Wolfram
Quoted 4 lines
This revision is based on renesas-devel-20161024-v4.9-rc2. It adds the Reviewed-bys and the entries for SYS-DMAC2 in the applicable I2C nodes. I have also made sure it works with 64-bit memory enabled.
I'd like to test, but: can you tell me which branches are needed to test DMA? Or is there a complete branch available somewhere? Or could you update the branch of this feature which is pulled in by renesas-drivers?
Quoted 8 lines · Wolfram Sang
Quoted 4 lines
This revision is based on renesas-devel-20161024-v4.9-rc2. It adds the Reviewed-bys and the entries for SYS-DMAC2 in the applicable I2C nodes. I have also made sure it works with 64-bit memory enabled.
I'd like to test, but: can you tell me which branches are needed to test DMA? Or is there a complete branch available somewhere? Or could you update the branch of this feature which is pulled in by renesas-drivers?
Thank you. Please check branch r8a7796-dmac-v2 at
https://github.com/uli/kernel.git, that should contain everything you need.
CU
Uli
Quoted 3 lines · Ulrich Hecht
Thank you. Please check branch r8a7796-dmac-v2 at
https://github.com/uli/kernel.git, that should contain everything you need.
FWIW, git://github.com/uli/kernel.git is much faster.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Hi Uli,
Quoted 6 lines · Ulrich Hecht
Quoted 5 lines · Wolfram Sang
Quoted 4 lines
This revision is based on renesas-devel-20161024-v4.9-rc2. It adds the Reviewed-bys and the entries for SYS-DMAC2 in the applicable I2C nodes. I have also made sure it works with 64-bit memory enabled.
Quoted 7 lines
Quoted 3 lines
I'd like to test, but: can you tell me which branches are needed to test DMA? Or is there a complete branch available somewhere? Or could you update the branch of this feature which is pulled in by renesas-drivers?
Thank you. Please check branch r8a7796-dmac-v2 at
https://github.com/uli/kernel.git, that should contain everything you need.
Dropped from renesas-drivers, as this branch is based on a very old tree (v4.9-rc2), and many (not all!) commits have found their way upstream.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Quoted 4 lines
This revision is based on renesas-devel-20161024-v4.9-rc2. It adds the Reviewed-bys and the entries for SYS-DMAC2 in the applicable I2C nodes. I have also made sure it works with 64-bit memory enabled.
Tested the whole series with I2C2 and I2C4 (manually activated) with DMA and without. Dumping memory, changing some registers, scanning the bus - all seems to work.
Quoted 16 lines · Ulrich Hecht
Hi!
This revision is based on renesas-devel-20161024-v4.9-rc2. It adds the Reviewed-bys and the entries for SYS-DMAC2 in the applicable I2C nodes. I have also made sure it works with 64-bit memory enabled.
CU
UliChanges since v1:
- added sys-dmac2 entries to i2c0-2
- added Reviewed-bys
- dropped "i2c: rcar: add support for r8a7796 (R-Car M3-W)" (picked up)
Quoted 6 lines
Ulrich Hecht (5):
clk: renesas: r8a7796: Add I2C clocks
pinctrl: sh-pfc: r8a7796: add I2C pin support
arm64: renesas: r8a7796: add I2C support
arm64: renesas: r8a7796: Enable I2C DMA
arm64: renesas: r8a7796: salvator-x: enable I2C
Thanks Ulrich,
I have queued up the "arm64" patches for v4.10.