Re: [PATCH v3 1/2] i2c: mediatek: Register i2c adapter driver earlier

2018-09-10 Thread Jun Gao
On Thu, 2018-09-06 at 20:31 +0200, Wolfram Sang wrote: > On Thu, Sep 06, 2018 at 09:15:28PM +0800, Jun Gao wrote: > > From: Jun Gao > > > > In order not to block the initializations of some i2c devices. > > Register i2c adapter driver at appropriate time. >

[PATCH v3 0/2] Register i2c adapter driver earlier and use DMA safe buffers

2018-09-06 Thread Jun Gao
the initializations for DMA safe buffer pointers Jun Gao (2): i2c: mediatek: Register i2c adapter driver earlier i2c: mediatek: Use DMA safe buffers for i2c transactions drivers/i2c/busses/i2c-mt65xx.c | 74 - 1 file changed, 66 insertions(+), 8

[PATCH v3 1/2] i2c: mediatek: Register i2c adapter driver earlier

2018-09-06 Thread Jun Gao
From: Jun Gao In order not to block the initializations of some i2c devices. Register i2c adapter driver at appropriate time. Signed-off-by: Jun Gao --- drivers/i2c/busses/i2c-mt65xx.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c

[PATCH v3 2/2] i2c: mediatek: Use DMA safe buffers for i2c transactions

2018-09-06 Thread Jun Gao
From: Jun Gao DMA mode will always be used in i2c transactions, try to allocate a DMA safe buffer if the buf of struct i2c_msg used is not DMA safe. Signed-off-by: Jun Gao --- drivers/i2c/busses/i2c-mt65xx.c | 62 - 1 file changed, 55 insertions(+), 7

[PATCH v2 3/3] i2c: mediatek: Use DMA safe buffers for i2c transactions

2018-07-07 Thread Jun Gao
From: Jun Gao DMA mode will always be used in i2c transactions, try to allocate a DMA safe buffer if the buf of struct i2c_msg used is not DMA safe. Signed-off-by: Jun Gao --- drivers/i2c/busses/i2c-mt65xx.c | 62 - 1 file changed, 55 insertions(+), 7

[PATCH v2 0/3] Register i2c adapter driver earlier and use DMA safe buffers

2018-07-07 Thread Jun Gao
This patch series based on v4.18-rc1, include i2c adapter driver register time modification, DMA safe buffer free function and DMA safe buffers used for i2c transactions. changes since v1: - Add the initializations for DMA safe buffer pointers Jun Gao (3): i2c: mediatek: Register i2c adapter

[PATCH v2 2/3] i2c: Add helper to ease DMA handling

2018-07-07 Thread Jun Gao
From: Jun Gao This function is needed by i2c_get_dma_safe_msg_buf() potentially. It is used to free DMA safe buffer when DMA operation fails. Signed-off-by: Jun Gao --- drivers/i2c/i2c-core-base.c | 14 ++ include/linux/i2c.h | 1 + 2 files changed, 15 insertions(+) diff

[PATCH v2 1/3] i2c: mediatek: Register i2c adapter driver earlier

2018-07-07 Thread Jun Gao
From: Jun Gao As i2c adapter, i2c slave devices will depend on it. In order not to block the initializations of i2c slave devices, register i2c adapter driver at appropriate time. Signed-off-by: Jun Gao --- drivers/i2c/busses/i2c-mt65xx.c | 12 +++- 1 file changed, 11 insertions(+), 1

[PATCH 3/3] i2c: mediatek: Use DMA safe buffers for i2c transactions

2018-07-06 Thread Jun Gao
From: Jun Gao DMA mode will always be used in i2c transactions, try to allocate a DMA safe buffer if the buf of struct i2c_msg used is not DMA safe. Signed-off-by: Jun Gao --- drivers/i2c/busses/i2c-mt65xx.c | 62 - 1 file changed, 55 insertions(+), 7

[PATCH 0/3] Register i2c adapter driver earlier and use DMA safe buffers

2018-07-06 Thread Jun Gao
This patch series based on v4.18-rc1, include i2c adapter driver register time modification, DMA safe buffer free function and DMA safe buffers used for i2c transactions. Jun Gao (3): i2c: mediatek: Register i2c adapter driver earlier i2c: Add helper to ease DMA handling i2c: mediatek: Use

[PATCH 2/3] i2c: Add helper to ease DMA handling

2018-07-06 Thread Jun Gao
From: Jun Gao This function is needed by i2c_get_dma_safe_msg_buf() potentially. It is used to free DMA safe buffer when DMA operation fails. Signed-off-by: Jun Gao --- drivers/i2c/i2c-core-base.c | 14 ++ include/linux/i2c.h | 1 + 2 files changed, 15 insertions(+) diff

[PATCH 1/3] i2c: mediatek: Register i2c adapter driver earlier

2018-07-06 Thread Jun Gao
From: Jun Gao As i2c adapter, i2c slave devices will depend on it. In order not to block the initializations of i2c slave devices, register i2c adapter driver at appropriate time. Signed-off-by: Jun Gao --- drivers/i2c/busses/i2c-mt65xx.c | 12 +++- 1 file changed, 11 insertions(+), 1

[PATCH 3/3] i2c: mediatek: Enable i2c module clock before i2c registers access.

2017-12-18 Thread Jun Gao
From: Jun Gao <jun@mediatek.com> Make sure i2c module clock has been enabled before i2c registers access. Signed-off-by: Jun Gao <jun@mediatek.com> --- drivers/i2c/busses/i2c-mt65xx.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/i2c/busses/i2c-mt65xx

[PATCH 0/3] Add i2c dt-binding and compatible for Mediatek MT2712

2017-12-18 Thread Jun Gao
This patch series based on v4.15-rc1, include MT2712 i2c dt-binding, compatible and i2c module clock enable. Jun Gao (3): dt-bindings: i2c: Add MediaTek MT2712 i2c binding i2c: mediatek: Add i2c compatible for MediaTek MT2712 i2c: mediatek: Enable i2c module clock before i2c registers

[PATCH 1/3] dt-bindings: i2c: Add MediaTek MT2712 i2c binding

2017-12-18 Thread Jun Gao
From: Jun Gao <jun@mediatek.com> Add MT2712 i2c binding to binding file. Compare to MT8173 i2c controller, MT2712 has timing adjust registers which can adjust the internal divider of i2c source clock, SCL duty cycle, SCL compare point, start(repeated start) and stop time, SDA chang

[PATCH 2/3] i2c: mediatek: Add i2c compatible for MediaTek MT2712

2017-12-18 Thread Jun Gao
From: Jun Gao <jun@mediatek.com> Add i2c compatible for MT2712. Compare to MT8173 i2c controller, internal divider of i2c source clock need to be configured for MT2712 i2c speed calculation. Signed-off-by: Jun Gao <jun@mediatek.com> --- drivers/i2c/busses/i2c-m

Re: [I2C] About warning 'DMA-API: device driver maps memory from stack'

2017-09-16 Thread Jun Gao
On Sat, 2017-09-02 at 23:58 +0200, Wolfram Sang wrote: > Hi, > > nice to see someone else interested in the I2C & DMA topic. > > Please check this series which I sent out recently: > > "[RFC PATCH v4 0/6] i2c: document DMA handling and add helpers for it" > > In that series, I proposed... > >

[I2C] About warning 'DMA-API: device driver maps memory from stack'

2017-09-02 Thread Jun Gao
Dear Wolfram, When we use i2c-tools command 'i2cset -y -f 0 0x50 0x00 0x11'(0:i2c bus number; 0x50:eeprom device addr; 0x00:device register addr; 0x11:write data)to write data, a warning appears as below if enable kernel config CONFIG_DMA_API_DEBUG=y. [ 11.872860] i2c-mt65xx 11007000.i2c:

[PATCH v4 0/3] Add i2c dt-binding and compatible for Mediatek MT7622 SoC

2017-08-20 Thread Jun Gao
: - Modify commit message - Revise dt-binding documentation Jun Gao (3): dt-bindings: i2c: modify information formats dt-bindings: i2c: Add MediaTek MT7622 i2c binding i2c: mediatek: Add i2c compatible for MediaTek MT7622 Documentation/devicetree/bindings/i2c/i2c-mtk.txt | 15

[PATCH v4 1/3] dt-bindings: i2c: modify information formats

2017-08-20 Thread Jun Gao
From: Jun Gao <jun@mediatek.com> Use common name MediaTek and modify the compatible information formats of all SoCs to the same. Signed-off-by: Jun Gao <jun@mediatek.com> --- Documentation/devicetree/bindings/i2c/i2c-mtk.txt | 14 +++--- 1 file changed, 7 inse

[PATCH v4 3/3] i2c: mediatek: Add i2c compatible for MediaTek MT7622

2017-08-20 Thread Jun Gao
From: Jun Gao <jun@mediatek.com> Add i2c compatible for MT7622. Compare to MT8173 i2c controller, MT7622 limits message numbers to 255, and does not support 4GB DMA mode. Signed-off-by: Jun Gao <jun@mediatek.com> Reviewed-by: Yingjoe Chen <yingjoe.c...@mediatek.com>

[PATCH v4 2/3] dt-bindings: i2c: Add MediaTek MT7622 i2c binding

2017-08-20 Thread Jun Gao
From: Jun Gao <jun@mediatek.com> Add MT7622 i2c binding to binding file. Compare to MT8173 i2c controller, MT7622 limits message numbers to 255, and does not support 4GB DMA mode. Signed-off-by: Jun Gao <jun@mediatek.com> --- Documentation/devicetree/bindings/i2c/i2c-mtk.

[PATCH v3 0/2] Add i2c dt-binding and compatible for Mediatek MT7622 SoC

2017-08-15 Thread Jun Gao
This patch series based on v4.13-rc1, include MT7622 i2c dt-binding and compatible. changes since v2: - Remove all the length settings from mt7622_i2c_quirks changes since v1: - Modify commit message - Revise dt-binding documentation Jun Gao (2): dt-bindings: i2c: Add MediaTek MT7622 i2c

[PATCH v3 2/2] i2c: mediatek: Add i2c compatible for MediaTek MT7622

2017-08-15 Thread Jun Gao
From: Jun Gao <jun@mediatek.com> Add i2c compatible for MT7622. Compare to MT8173 i2c controller, MT7622 limits message numbers to 255, and does not support 4GB DMA mode. Signed-off-by: Jun Gao <jun@mediatek.com> --- drivers/i2c/busses/i2c-mt65xx.c | 14 ++ 1

[PATCH v3 1/2] dt-bindings: i2c: Add MediaTek MT7622 i2c binding

2017-08-15 Thread Jun Gao
From: Jun Gao <jun@mediatek.com> Add MT7622 i2c binding to binding file and change the compatible information formats of all SoCs to the same. Signed-off-by: Jun Gao <jun@mediatek.com> --- Documentation/devicetree/bindings/i2c/i2c-mtk.txt | 11 ++- 1 file changed,

Re: [PATCH 1/2] dt-bindings: i2c: Add MediaTek MT7622 i2c binding

2017-08-14 Thread Jun Gao
On Mon, 2017-08-14 at 11:36 +0200, Matthias Brugger wrote: > > On 08/09/2017 09:43 AM, Jun Gao wrote: > > From: Jun Gao <jun@mediatek.com> > > > > Add MT7622 i2c binding to binding file. Compare to MT8173 i2c > > controller, MT7622 limit message size to 2

Re: [PATCH v2 2/2] i2c: mediatek: Add i2c compatible for MediaTek MT7622

2017-08-13 Thread Jun Gao
On Sat, 2017-08-12 at 16:44 +0200, Wolfram Sang wrote: > > +static const struct i2c_adapter_quirks mt7622_i2c_quirks = { > > + .max_num_msgs = 255, > > + .max_write_len = 65535, > > + .max_read_len = 65535, > > + .max_comb_1st_msg_len = 65535, > > + .max_comb_2nd_msg_len = 65535, > > +};

[PATCH v2 0/2] Add i2c dt-binding and compatible for Mediatek MT7622 SoC

2017-08-11 Thread Jun Gao
This patch series based on v4.13-rc1, include MT7622 i2c dt-binding and compatible. changes since v1: - Modify commit message - Revise dt-binding documentation Jun Gao (2): dt-bindings: i2c: Add MediaTek MT7622 i2c binding i2c: mediatek: Add i2c compatible for MediaTek MT7622 Documentation

[PATCH v2 1/2] dt-bindings: i2c: Add MediaTek MT7622 i2c binding

2017-08-11 Thread Jun Gao
From: Jun Gao <jun@mediatek.com> Add MT7622 i2c binding to binding file and change the compatible information formats of all SoCs to the same. Signed-off-by: Jun Gao <jun@mediatek.com> --- Documentation/devicetree/bindings/i2c/i2c-mtk.txt | 11 ++- 1 file changed,

[PATCH v2 2/2] i2c: mediatek: Add i2c compatible for MediaTek MT7622

2017-08-11 Thread Jun Gao
From: Jun Gao <jun@mediatek.com> Add i2c compatible for MT7622. Compare to MT8173 i2c controller, MT7622 limits message numbers to 255, and does not support 4GB DMA mode. Signed-off-by: Jun Gao <jun@mediatek.com> --- drivers/i2c/busses/i2c-mt65xx.c | 18 ++

Re: [RESEND PATCH 1/2] dt-bindings: i2c: Add MediaTek MT7622 i2c binding

2017-08-10 Thread Jun Gao
On Thu, 2017-08-10 at 16:19 +0800, Honghui Zhang wrote: > On Thu, 2017-08-10 at 10:27 +0800, Jun Gao wrote: > > From: Jun Gao <jun@mediatek.com> > > > > Add MT7622 i2c binding to binding file. Compare to MT8173 i2c > > controller, MT7622 limits message numbers

Re: [RESEND PATCH 2/2] i2c: mediatek: Add i2c compatible for MediaTek MT7622

2017-08-10 Thread Jun Gao
On Thu, 2017-08-10 at 10:27 +0800, Jun Gao wrote: > From: Jun Gao <jun@mediatek.com> > > Add i2c compatible for MT7622. Compare to MT8173 i2c controller, > MT7622 limits message numbers to 255, and does not support 4GB > DMA mode. > These two resend patches on

[RESEND PATCH 2/2] i2c: mediatek: Add i2c compatible for MediaTek MT7622

2017-08-09 Thread Jun Gao
From: Jun Gao <jun@mediatek.com> Add i2c compatible for MT7622. Compare to MT8173 i2c controller, MT7622 limits message numbers to 255, and does not support 4GB DMA mode. Signed-off-by: Jun Gao <jun@mediatek.com> --- drivers/i2c/busses/i2c-mt65xx.c | 18 ++

[RESEND PATCH 1/2] dt-bindings: i2c: Add MediaTek MT7622 i2c binding

2017-08-09 Thread Jun Gao
From: Jun Gao <jun@mediatek.com> Add MT7622 i2c binding to binding file. Compare to MT8173 i2c controller, MT7622 limits message numbers to 255, and does not support 4GB DMA mode. Signed-off-by: Jun Gao <jun@mediatek.com> --- Documentation/devicetree/bindings/i2c/i2c-

[RESEND PATCH 0/2] Add i2c dt-binding and compatible for Mediatek MT7622 SoC

2017-08-09 Thread Jun Gao
This patch series based on v4.13-rc1, include MT7622 i2c dt-binding and compatible. Jun Gao (2): dt-bindings: i2c: Add MediaTek MT7622 i2c binding i2c: mediatek: Add i2c compatible for MediaTek MT7622 Documentation/devicetree/bindings/i2c/i2c-mtk.txt | 11 ++- drivers/i2c/busses/i2c

Re: [PATCH 2/2] i2c: mediatek: Add i2c compatible for MediaTek MT7622

2017-08-09 Thread Jun Gao
On Wed, 2017-08-09 at 17:40 +0800, Yingjoe Chen wrote: > On Wed, 2017-08-09 at 15:43 +0800, Jun Gao wrote: > > From: Jun Gao <jun@mediatek.com> > > > > Add i2c compatible for MT7622. Compare to MT8173 i2c controller, > > MT7622 limit message size to

[PATCH 0/2] Add i2c dt-binding and compatible for Mediatek MT7622 SoC

2017-08-09 Thread Jun Gao
This patch series based on v4.13-rc1, include MT7622 i2c dt-binding and compatible. Jun Gao (2): dt-bindings: i2c: Add MediaTek MT7622 i2c binding i2c: mediatek: Add i2c compatible for MediaTek MT7622 Documentation/devicetree/bindings/i2c/i2c-mtk.txt | 11 ++- drivers/i2c/busses/i2c

[PATCH 2/2] i2c: mediatek: Add i2c compatible for MediaTek MT7622

2017-08-09 Thread Jun Gao
From: Jun Gao <jun@mediatek.com> Add i2c compatible for MT7622. Compare to MT8173 i2c controller, MT7622 limit message size to 255, and not support 4GB DMA mode. Signed-off-by: Jun Gao <jun@mediatek.com> --- drivers/i2c/busses/i2c-mt65xx.c | 18 ++ 1 file

[PATCH 1/2] dt-bindings: i2c: Add MediaTek MT7622 i2c binding

2017-08-09 Thread Jun Gao
From: Jun Gao <jun@mediatek.com> Add MT7622 i2c binding to binding file. Compare to MT8173 i2c controller, MT7622 limit message size to 255, and not support 4GB DMA mode. Signed-off-by: Jun Gao <jun@mediatek.com> --- Documentation/devicetree/bindings/i2c/i2c-mtk.txt | 11 ++

[RESEND PATCH v1] i2c: mediatek: send i2c master code at 400k

2017-07-17 Thread Jun Gao
From: Jun Gao <jun@mediatek.com> The speed of sending i2c master code in high-speed mode depends on source clock, clock-div and TIMING register. The source clock and clock-div of different SoC are not all the same. In order to send i2c master code at 400k in high-speed mode, a appro

[PATCH v1] i2c: mediatek: send i2c master code at 400k

2017-07-06 Thread Jun Gao
From: Jun Gao <jun@mediatek.com> The speed of sending i2c master code in high-speed mode depends on source clock, clock-div and TIMING register. The source clock and clock-div of different SoC are not all the same. In order to send i2c master code at 400k in high-speed mode, a appro

Re: [PATCH v4 2/2] arm: dts: Add Mediatek MT2701 i2c device node

2017-06-14 Thread Jun Gao
On Wed, 2017-06-14 at 11:24 +0200, Matthias Brugger wrote: > > On 14/06/17 03:11, Jun Gao wrote: > > On Tue, 2017-06-13 at 15:45 +0200, Matthias Brugger wrote: > >> > >> On 13/06/17 15:23, Jun Gao wrote: > >>> On Tue, 2017-06-13 at 14:52 +0200, Matthias B

Re: [PATCH v4 2/2] arm: dts: Add Mediatek MT2701 i2c device node

2017-06-13 Thread Jun Gao
On Tue, 2017-06-13 at 15:45 +0200, Matthias Brugger wrote: > > On 13/06/17 15:23, Jun Gao wrote: > > On Tue, 2017-06-13 at 14:52 +0200, Matthias Brugger wrote: > >> > >> On 13/06/17 12:24, Jun Gao wrote: > >>> On Tue, 2017-06-13 at 11:36 +0200, Matthias B

Re: [PATCH v4 2/2] arm: dts: Add Mediatek MT2701 i2c device node

2017-06-13 Thread Jun Gao
On Tue, 2017-06-13 at 14:52 +0200, Matthias Brugger wrote: > > On 13/06/17 12:24, Jun Gao wrote: > > On Tue, 2017-06-13 at 11:36 +0200, Matthias Brugger wrote: > >> > >> On 12/06/17 13:54, Jun Gao wrote: > >>> On Fri, 2017-05-26 at 15:35 +0800

Re: [PATCH v4 2/2] arm: dts: Add Mediatek MT2701 i2c device node

2017-06-13 Thread Jun Gao
On Tue, 2017-06-13 at 11:36 +0200, Matthias Brugger wrote: > > On 12/06/17 13:54, Jun Gao wrote: > > On Fri, 2017-05-26 at 15:35 +0800, Jun Gao wrote: > >> From: Jun Gao <jun@mediatek.com> > >> > >> Add MT2701 i2c device node. > >

Re: [PATCH v4 2/2] arm: dts: Add Mediatek MT2701 i2c device node

2017-06-12 Thread Jun Gao
On Fri, 2017-05-26 at 15:35 +0800, Jun Gao wrote: > From: Jun Gao <jun@mediatek.com> > > Add MT2701 i2c device node. > > Signed-off-by: Jun Gao <jun@mediatek.com> > --- > arch/arm/boot/dts/mt2701-evb.dts | 42 > +

Re: [PATCH v4 1/2] dt-bindings: i2c: Add Mediatek MT2701 i2c binding

2017-05-30 Thread Jun Gao
On Tue, 2017-05-30 at 16:38 -0500, Rob Herring wrote: > On Mon, May 29, 2017 at 05:30:26PM +0200, Matthias Brugger wrote: > g> > > > > On 26/05/17 09:35, Jun Gao wrote: > > > From: Jun Gao <jun@mediatek.com> > > > > > > Add MT2

[PATCH v4 2/2] arm: dts: Add Mediatek MT2701 i2c device node

2017-05-26 Thread Jun Gao
From: Jun Gao <jun@mediatek.com> Add MT2701 i2c device node. Signed-off-by: Jun Gao <jun@mediatek.com> --- arch/arm/boot/dts/mt2701-evb.dts | 42 arch/arm/boot/dts/mt2701.dtsi| 42 2 files

[PATCH v4 1/2] dt-bindings: i2c: Add Mediatek MT2701 i2c binding

2017-05-26 Thread Jun Gao
From: Jun Gao <jun@mediatek.com> Add MT2701 i2c binding to i2c-mt6577.txt and there is no need to modify i2c driver. Signed-off-by: Jun Gao <jun@mediatek.com> --- Documentation/devicetree/bindings/i2c/i2c-mt6577.txt | 11 ++- 1 file changed, 6 insertions(+), 5 deleti

[PATCH v4 0/2] Add i2c dt-binding and device node for Mediatek MT2701 Soc

2017-05-26 Thread Jun Gao
power domain DT nodes for Mediatek MT2701"[1]. [1] http://lists.infradead.org/pipermail/linux-mediatek/2016-December/007637.html Jun Gao (2): dt-bindings: i2c: Add Mediatek MT2701 i2c binding arm: dts: Add Mediatek MT2701 i2c device node .../devicetree/bindings/i2c/i2c-mt6577.txt

Re: [RESEND PATCH v3 1/2] dt-bindings: i2c: Add Mediatek MT2701 i2c binding

2017-05-22 Thread Jun Gao
On Wed, 2017-05-10 at 12:35 +0200, Matthias Brugger wrote: > > On 28/03/17 21:22, Wolfram Sang wrote: > > On Tue, Mar 28, 2017 at 05:50:12PM +0800, Jun Gao wrote: > >> On Wed, 2017-03-22 at 10:05 +0100, Wolfram Sang wrote: > >>> On Thu, Mar 09, 2017 at 11:13:04AM

Re: [RESEND PATCH v3 1/2] dt-bindings: i2c: Add Mediatek MT2701 i2c binding

2017-03-28 Thread Jun Gao
On Wed, 2017-03-22 at 10:05 +0100, Wolfram Sang wrote: > On Thu, Mar 09, 2017 at 11:13:04AM +0800, Jun Gao wrote: > > From: Jun Gao <jun@mediatek.com> > > > > Add MT2701 i2c binding to i2c-mt6577.txt and there is no need to > > modify i2c driver. >

[RESEND PATCH v3 2/2] arm: dts: Add Mediatek MT2701 i2c device node

2017-03-08 Thread Jun Gao
From: Jun Gao <jun@mediatek.com> Add MT2701 i2c device node. Signed-off-by: Jun Gao <jun@mediatek.com> --- arch/arm/boot/dts/mt2701-evb.dts | 42 ++ arch/arm/boot/dts/mt2701.dtsi| 42 ++ 2 files

[RESEND PATCH v3 1/2] dt-bindings: i2c: Add Mediatek MT2701 i2c binding

2017-03-08 Thread Jun Gao
From: Jun Gao <jun@mediatek.com> Add MT2701 i2c binding to i2c-mt6577.txt and there is no need to modify i2c driver. Signed-off-by: Jun Gao <jun@mediatek.com> --- .../devicetree/bindings/i2c/i2c-mt6577.txt | 11 ++- 1 file changed, 6 insertions(+), 5 deleti

[RESEND PATCH v3 0/2] Add i2c dt-binding and device node for Mediatek MT2701 Soc

2017-03-08 Thread Jun Gao
[1] http://lists.infradead.org/pipermail/linux-mediatek/2016-December/007637.html Jun Gao (2): dt-bindings: i2c: Add Mediatek MT2701 i2c binding arm: dts: Add Mediatek MT2701 i2c device node .../devicetree/bindings/i2c/i2c-mt6577.txt | 11 ++--- arch/arm/boot/dts/mt27

[PATCH v3 0/2] Add i2c dt-binding and device node for Mediatek MT2701 Soc

2017-03-02 Thread Jun Gao
[1] http://lists.infradead.org/pipermail/linux-mediatek/2016-December/007637.html Jun Gao (2): dt-bindings: i2c: Add Mediatek MT2701 i2c binding arm: dts: Add Mediatek MT2701 i2c device node .../devicetree/bindings/i2c/i2c-mt6577.txt | 11 ++--- arch/arm/boot/dts/mt27

[PATCH v3 1/2] dt-bindings: i2c: Add Mediatek MT2701 i2c binding

2017-03-02 Thread Jun Gao
From: Jun Gao <jun@mediatek.com> Add MT2701 i2c binding to i2c-mt6577.txt and there is no need to modify i2c driver. Signed-off-by: Jun Gao <jun@mediatek.com> --- .../devicetree/bindings/i2c/i2c-mt6577.txt | 11 ++- 1 file changed, 6 insertions(+), 5 deleti

[PATCH v3 2/2] arm: dts: Add Mediatek MT2701 i2c device node

2017-03-02 Thread Jun Gao
From: Jun Gao <jun@mediatek.com> Add MT2701 i2c device node. Signed-off-by: Jun Gao <jun@mediatek.com> --- arch/arm/boot/dts/mt2701-evb.dts | 44 ++ arch/arm/boot/dts/mt2701.dtsi| 42 2 files

[PATCH v2 2/2] arm: dts: mt2701: Add i2c device node

2017-02-14 Thread Jun Gao
From: Jun Gao <jun@mediatek.com> Add i2c device node for MT2701. Change-Id: Idd33ad9010c43809328814350f9c29284891d171 Signed-off-by: Jun Gao <jun@mediatek.com> --- arch/arm/boot/dts/mt2701-evb.dts | 44 ++ arch/arm/boot/dts/mt2701.dt

[PATCH v2 0/2] Add i2c DT binding and device node for Mediatek MT2701 Soc

2017-02-14 Thread Jun Gao
This patch series based on v4.10-rc2, include MT2701 i2c DT binding and device node. changes since v1: - Modify commit message Dependent on "Add clock and power domain DT nodes for Mediatek MT2701"[1]. [1] http://lists.infradead.org/pipermail/linux-mediatek/2016-December/007637.htm

[PATCH v2 1/2] Documentation: devicetree: Add i2c binding for mediatek MT2701 Soc Platform

2017-02-14 Thread Jun Gao
From: Jun Gao <jun@mediatek.com> Add i2c DT binding to i2c-mt6577.txt for MT2701 and there is no need to modify i2c driver. Change-Id: I892f866d755aa3865bffd1a80884cd41b6ecc1f1 Signed-off-by: Jun Gao <jun@mediatek.com> --- .../devicetree/bindings/i2c/i2c-mt6577.txt

[RESEND PATCH 0/2] Add i2c DT binding and device node for Mediatek MT2701 Soc

2017-01-18 Thread Jun Gao
This patch series based on v4.10-rc2, include MT2701 i2c DT binding and device node. Dependent on "Add clock and power domain DT nodes for Mediatek MT2701"[1]. [1] http://lists.infradead.org/pipermail/linux-mediatek/2016-December/007637.html Jun Gao (2): Documentation: devicetre

[RESEND PATCH 2/2] arm: dts: mt2701: Add i2c device node

2017-01-18 Thread Jun Gao
From: Jun Gao <jun@mediatek.com> Add i2c device node for MT2701. Signed-off-by: Jun Gao <jun@mediatek.com> --- arch/arm/boot/dts/mt2701-evb.dts | 44 ++ arch/arm/boot/dts/mt2701.dtsi| 42 2 f

[RESEND PATCH 1/2] Documentation: devicetree: Add i2c binding for mediatek MT2701 Soc Platform

2017-01-18 Thread Jun Gao
From: Jun Gao <jun@mediatek.com> This add i2c DT binding to i2c-mt6577.txt for MT2701. Signed-off-by: Jun Gao <jun@mediatek.com> --- .../devicetree/bindings/i2c/i2c-mt6577.txt | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/D