* [PATCH v2 0/2] Add i2c DT binding and device node for Mediatek MT2701 Soc @ 2017-02-15 2:32 Jun Gao 2017-02-15 2:32 ` [PATCH v2 1/2] Documentation: devicetree: Add i2c binding for mediatek MT2701 Soc Platform Jun Gao 2017-02-15 2:32 ` [PATCH v2 2/2] arm: dts: mt2701: Add i2c device node Jun Gao 0 siblings, 2 replies; 5+ messages in thread From: Jun Gao @ 2017-02-15 2:32 UTC (permalink / raw) To: Wolfram Sang, Matthias Brugger Cc: srv_heupstream-NuS5LvNUpcJWk0Htik3J/w, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-i2c-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-mediatek-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r 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.html Jun Gao (2): Documentation: devicetree: Add i2c binding for mediatek MT2701 Soc Platform arm: dts: mt2701: Add i2c device node .../devicetree/bindings/i2c/i2c-mt6577.txt | 11 ++--- arch/arm/boot/dts/mt2701-evb.dts | 44 ++++++++++++++++++++ arch/arm/boot/dts/mt2701.dtsi | 42 +++++++++++++++++++ 3 files changed, 92 insertions(+), 5 deletions(-) -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v2 1/2] Documentation: devicetree: Add i2c binding for mediatek MT2701 Soc Platform 2017-02-15 2:32 [PATCH v2 0/2] Add i2c DT binding and device node for Mediatek MT2701 Soc Jun Gao @ 2017-02-15 2:32 ` Jun Gao 2017-02-27 17:14 ` Rob Herring 2017-02-27 17:15 ` Rob Herring 2017-02-15 2:32 ` [PATCH v2 2/2] arm: dts: mt2701: Add i2c device node Jun Gao 1 sibling, 2 replies; 5+ messages in thread From: Jun Gao @ 2017-02-15 2:32 UTC (permalink / raw) To: Wolfram Sang, Matthias Brugger Cc: srv_heupstream, devicetree, linux-i2c, linux-arm-kernel, linux-kernel, linux-mediatek, Jun Gao From: Jun Gao <jun.gao@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.gao@mediatek.com> --- .../devicetree/bindings/i2c/i2c-mt6577.txt | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/i2c/i2c-mt6577.txt b/Documentation/devicetree/bindings/i2c/i2c-mt6577.txt index 0ce6fa3..ef22ecf 100644 --- a/Documentation/devicetree/bindings/i2c/i2c-mt6577.txt +++ b/Documentation/devicetree/bindings/i2c/i2c-mt6577.txt @@ -4,11 +4,12 @@ The Mediatek's I2C controller is used to interface with I2C devices. Required properties: - compatible: value should be either of the following. - (a) "mediatek,mt6577-i2c", for i2c compatible with mt6577 i2c. - (b) "mediatek,mt6589-i2c", for i2c compatible with mt6589 i2c. - (c) "mediatek,mt8127-i2c", for i2c compatible with mt8127 i2c. - (d) "mediatek,mt8135-i2c", for i2c compatible with mt8135 i2c. - (e) "mediatek,mt8173-i2c", for i2c compatible with mt8173 i2c. + "mediatek,mt2701-i2c", for i2c compatible with mt2701 i2c. + "mediatek,mt6577-i2c", for i2c compatible with mt6577 i2c. + "mediatek,mt6589-i2c", for i2c compatible with mt6589 i2c. + "mediatek,mt8127-i2c", for i2c compatible with mt8127 i2c. + "mediatek,mt8135-i2c", for i2c compatible with mt8135 i2c. + "mediatek,mt8173-i2c", for i2c compatible with mt8173 i2c. - reg: physical base address of the controller and dma base, length of memory mapped region. - interrupts: interrupt number to the cpu. -- 1.7.9.5 ^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH v2 1/2] Documentation: devicetree: Add i2c binding for mediatek MT2701 Soc Platform 2017-02-15 2:32 ` [PATCH v2 1/2] Documentation: devicetree: Add i2c binding for mediatek MT2701 Soc Platform Jun Gao @ 2017-02-27 17:14 ` Rob Herring 2017-02-27 17:15 ` Rob Herring 1 sibling, 0 replies; 5+ messages in thread From: Rob Herring @ 2017-02-27 17:14 UTC (permalink / raw) To: Jun Gao Cc: devicetree, srv_heupstream, Wolfram Sang, linux-kernel, linux-mediatek, linux-i2c, Matthias Brugger, linux-arm-kernel On Wed, Feb 15, 2017 at 10:32:55AM +0800, Jun Gao wrote: > From: Jun Gao <jun.gao@mediatek.com> > > Add i2c DT binding to i2c-mt6577.txt for MT2701 and there is no need to modify i2c driver. Wrap your lines. > > Change-Id: I892f866d755aa3865bffd1a80884cd41b6ecc1f1 Remove Gerrit Ids. > Signed-off-by: Jun Gao <jun.gao@mediatek.com> > --- > .../devicetree/bindings/i2c/i2c-mt6577.txt | 11 ++++++----- > 1 file changed, 6 insertions(+), 5 deletions(-) > > diff --git a/Documentation/devicetree/bindings/i2c/i2c-mt6577.txt b/Documentation/devicetree/bindings/i2c/i2c-mt6577.txt > index 0ce6fa3..ef22ecf 100644 > --- a/Documentation/devicetree/bindings/i2c/i2c-mt6577.txt > +++ b/Documentation/devicetree/bindings/i2c/i2c-mt6577.txt > @@ -4,11 +4,12 @@ The Mediatek's I2C controller is used to interface with I2C devices. > > Required properties: > - compatible: value should be either of the following. > - (a) "mediatek,mt6577-i2c", for i2c compatible with mt6577 i2c. > - (b) "mediatek,mt6589-i2c", for i2c compatible with mt6589 i2c. > - (c) "mediatek,mt8127-i2c", for i2c compatible with mt8127 i2c. > - (d) "mediatek,mt8135-i2c", for i2c compatible with mt8135 i2c. > - (e) "mediatek,mt8173-i2c", for i2c compatible with mt8173 i2c. > + "mediatek,mt2701-i2c", for i2c compatible with mt2701 i2c. > + "mediatek,mt6577-i2c", for i2c compatible with mt6577 i2c. > + "mediatek,mt6589-i2c", for i2c compatible with mt6589 i2c. > + "mediatek,mt8127-i2c", for i2c compatible with mt8127 i2c. > + "mediatek,mt8135-i2c", for i2c compatible with mt8135 i2c. > + "mediatek,mt8173-i2c", for i2c compatible with mt8173 i2c. All the parts after the compatible strings are a bit redundant. Just drop them. > - reg: physical base address of the controller and dma base, length of memory > mapped region. > - interrupts: interrupt number to the cpu. > -- > 1.7.9.5 > > -- > To unsubscribe from this list: send the line "unsubscribe devicetree" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2 1/2] Documentation: devicetree: Add i2c binding for mediatek MT2701 Soc Platform 2017-02-15 2:32 ` [PATCH v2 1/2] Documentation: devicetree: Add i2c binding for mediatek MT2701 Soc Platform Jun Gao 2017-02-27 17:14 ` Rob Herring @ 2017-02-27 17:15 ` Rob Herring 1 sibling, 0 replies; 5+ messages in thread From: Rob Herring @ 2017-02-27 17:15 UTC (permalink / raw) To: Jun Gao Cc: devicetree, srv_heupstream, Wolfram Sang, linux-kernel, linux-mediatek, linux-i2c, Matthias Brugger, linux-arm-kernel On Wed, Feb 15, 2017 at 10:32:55AM +0800, Jun Gao wrote: > From: Jun Gao <jun.gao@mediatek.com> And for the subject, please use "dt-bindings: i2c: ..." ^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v2 2/2] arm: dts: mt2701: Add i2c device node 2017-02-15 2:32 [PATCH v2 0/2] Add i2c DT binding and device node for Mediatek MT2701 Soc Jun Gao 2017-02-15 2:32 ` [PATCH v2 1/2] Documentation: devicetree: Add i2c binding for mediatek MT2701 Soc Platform Jun Gao @ 2017-02-15 2:32 ` Jun Gao 1 sibling, 0 replies; 5+ messages in thread From: Jun Gao @ 2017-02-15 2:32 UTC (permalink / raw) To: Wolfram Sang, Matthias Brugger Cc: srv_heupstream, devicetree, linux-i2c, linux-arm-kernel, linux-kernel, linux-mediatek, Jun Gao From: Jun Gao <jun.gao@mediatek.com> Add i2c device node for MT2701. Change-Id: Idd33ad9010c43809328814350f9c29284891d171 Signed-off-by: Jun Gao <jun.gao@mediatek.com> --- arch/arm/boot/dts/mt2701-evb.dts | 44 ++++++++++++++++++++++++++++++++++++++ arch/arm/boot/dts/mt2701.dtsi | 42 ++++++++++++++++++++++++++++++++++++ 2 files changed, 86 insertions(+) diff --git a/arch/arm/boot/dts/mt2701-evb.dts b/arch/arm/boot/dts/mt2701-evb.dts index 082ca88..a908e94 100644 --- a/arch/arm/boot/dts/mt2701-evb.dts +++ b/arch/arm/boot/dts/mt2701-evb.dts @@ -24,6 +24,50 @@ }; }; +&i2c0 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c0_pins_a>; + status = "okay"; +}; + +&i2c1 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c1_pins_a>; + status = "okay"; +}; + +&i2c2 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c2_pins_a>; + status = "okay"; +}; + +&pio { + i2c0_pins_a: i2c0@0 { + pins1 { + pinmux = <MT2701_PIN_75_SDA0__FUNC_SDA0>, + <MT2701_PIN_76_SCL0__FUNC_SCL0>; + bias-disable; + }; + }; + + i2c1_pins_a: i2c1@0 { + pins1 { + pinmux = <MT2701_PIN_57_SDA1__FUNC_SDA1>, + <MT2701_PIN_58_SCL1__FUNC_SCL1>; + bias-disable; + }; + }; + + i2c2_pins_a: i2c2@0 { + pins1 { + pinmux = <MT2701_PIN_77_SDA2__FUNC_SDA2>, + <MT2701_PIN_78_SCL2__FUNC_SCL2>; + bias-disable; + }; + }; +}; + &uart0 { status = "okay"; }; diff --git a/arch/arm/boot/dts/mt2701.dtsi b/arch/arm/boot/dts/mt2701.dtsi index bdf8954..0d1539f 100644 --- a/arch/arm/boot/dts/mt2701.dtsi +++ b/arch/arm/boot/dts/mt2701.dtsi @@ -227,6 +227,48 @@ status = "disabled"; }; + i2c0: i2c@11007000 { + compatible = "mediatek,mt2701-i2c", + "mediatek,mt6577-i2c"; + reg = <0 0x11007000 0 0x70>, + <0 0x11000200 0 0x80>; + interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_LOW>; + clock-div = <16>; + clocks = <&pericfg CLK_PERI_I2C0>, <&pericfg CLK_PERI_AP_DMA>; + clock-names = "main", "dma"; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + i2c1: i2c@11008000 { + compatible = "mediatek,mt2701-i2c", + "mediatek,mt6577-i2c"; + reg = <0 0x11008000 0 0x70>, + <0 0x11000280 0 0x80>; + interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_LOW>; + clock-div = <16>; + clocks = <&pericfg CLK_PERI_I2C1>, <&pericfg CLK_PERI_AP_DMA>; + clock-names = "main", "dma"; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + i2c2: i2c@11009000 { + compatible = "mediatek,mt2701-i2c", + "mediatek,mt6577-i2c"; + reg = <0 0x11009000 0 0x70>, + <0 0x11000300 0 0x80>; + interrupts = <GIC_SPI 46 IRQ_TYPE_LEVEL_LOW>; + clock-div = <16>; + clocks = <&pericfg CLK_PERI_I2C2>, <&pericfg CLK_PERI_AP_DMA>; + clock-names = "main", "dma"; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + mmsys: syscon@14000000 { compatible = "mediatek,mt2701-mmsys", "syscon"; reg = <0 0x14000000 0 0x1000>; -- 1.7.9.5 ^ permalink raw reply related [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-02-27 17:15 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2017-02-15 2:32 [PATCH v2 0/2] Add i2c DT binding and device node for Mediatek MT2701 Soc Jun Gao 2017-02-15 2:32 ` [PATCH v2 1/2] Documentation: devicetree: Add i2c binding for mediatek MT2701 Soc Platform Jun Gao 2017-02-27 17:14 ` Rob Herring 2017-02-27 17:15 ` Rob Herring 2017-02-15 2:32 ` [PATCH v2 2/2] arm: dts: mt2701: Add i2c device node Jun Gao
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).