* [PATCH 0/2] ARM: mediatek: Enable uart for mt6589 @ 2015-01-02 18:48 Matthias Brugger 2015-01-02 18:48 ` [PATCH 1/2] ARM: mediatek: dts: Add uart to mt6589 Matthias Brugger 2015-01-02 18:48 ` [PATCH 2/2] ARM: mediatek: dts: Add uart to Aquaris5 Matthias Brugger 0 siblings, 2 replies; 4+ messages in thread From: Matthias Brugger @ 2015-01-02 18:48 UTC (permalink / raw) To: linux-kernel-u79uwXL29TY76Z2rM5mHXA, robh+dt-DgEjT+Ai2ygdnm+yROfE0A, pawel.moll-5wv7dgnIgG8, mark.rutland-5wv7dgnIgG8, ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg, galak-sgV2jX0FEOL9JmXXK+q4OQ, linux-lFZ/pmaqli7XmaaqVzeoHQ, matthias.bgg-Re5JQEeQqe8AvxtiuMwx3w Cc: devicetree-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r This patch series adds uart ports for the mt6589 SoC from Mediatek. It also enables the uart port for the mt6589 based Aquaris5 mobile phone. This series is based on 3.19-rc1 and assumes that sysirq patch from Yingjoe Chen is added to the SoC [0]. [0] https://lkml.org/lkml/2014/11/25/132 Matthias Brugger (2): ARM: mediatek: dts: Add uart to mt6589 ARM: mediatek: dts: Add uart to Aquaris5 arch/arm/boot/dts/mt6589-aquaris5.dts | 8 +++++++- arch/arm/boot/dts/mt6589.dtsi | 38 +++++++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+), 1 deletion(-) -- 1.9.1 -- 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] 4+ messages in thread
* [PATCH 1/2] ARM: mediatek: dts: Add uart to mt6589 2015-01-02 18:48 [PATCH 0/2] ARM: mediatek: Enable uart for mt6589 Matthias Brugger @ 2015-01-02 18:48 ` Matthias Brugger 2015-01-02 18:48 ` [PATCH 2/2] ARM: mediatek: dts: Add uart to Aquaris5 Matthias Brugger 1 sibling, 0 replies; 4+ messages in thread From: Matthias Brugger @ 2015-01-02 18:48 UTC (permalink / raw) To: linux-kernel, robh+dt, pawel.moll, mark.rutland, ijc+devicetree, galak, linux, matthias.bgg Cc: devicetree, linux-arm-kernel This patch adds the uart ports to the device tree of Mediatek mt6589 SoC. Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com> --- arch/arm/boot/dts/mt6589.dtsi | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/arch/arm/boot/dts/mt6589.dtsi b/arch/arm/boot/dts/mt6589.dtsi index c91b2a9..106b61b 100644 --- a/arch/arm/boot/dts/mt6589.dtsi +++ b/arch/arm/boot/dts/mt6589.dtsi @@ -65,6 +65,12 @@ clock-frequency = <32000>; #clock-cells = <0>; }; + + uart_clk: dummy26m { + compatible = "fixed-clock"; + clock-frequency = <26000000>; + #clock-cells = <0>; + }; }; soc { @@ -100,5 +106,37 @@ <0x10214000 0x2000>, <0x10216000 0x2000>; }; + + uart0: serial@11006000 { + compatible = "mediatek,mt6577-uart"; + reg = <0x11006000 0x400>; + interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_LOW>; + clocks = <&uart_clk>; + status = "disabled"; + }; + + uart1: serial@11007000 { + compatible = "mediatek,mt6577-uart"; + reg = <0x11007000 0x400>; + interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_LOW>; + clocks = <&uart_clk>; + status = "disabled"; + }; + + uart2: serial@11008000 { + compatible = "mediatek,mt6577-uart"; + reg = <0x11008000 0x400>; + interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_LOW>; + clocks = <&uart_clk>; + status = "disabled"; + }; + + uart3: serial@11009000 { + compatible = "mediatek,mt6577-uart"; + reg = <0x11009000 0x400>; + interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_LOW>; + clocks = <&uart_clk>; + status = "disabled"; + }; }; }; -- 1.9.1 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] ARM: mediatek: dts: Add uart to Aquaris5 2015-01-02 18:48 [PATCH 0/2] ARM: mediatek: Enable uart for mt6589 Matthias Brugger 2015-01-02 18:48 ` [PATCH 1/2] ARM: mediatek: dts: Add uart to mt6589 Matthias Brugger @ 2015-01-02 18:48 ` Matthias Brugger 2015-01-05 12:28 ` Sascha Hauer 1 sibling, 1 reply; 4+ messages in thread From: Matthias Brugger @ 2015-01-02 18:48 UTC (permalink / raw) To: linux-kernel, robh+dt, pawel.moll, mark.rutland, ijc+devicetree, galak, linux, matthias.bgg Cc: devicetree, linux-arm-kernel This patch enables uart port for the Aquaris5 mobile phone. Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com> --- arch/arm/boot/dts/mt6589-aquaris5.dts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/mt6589-aquaris5.dts b/arch/arm/boot/dts/mt6589-aquaris5.dts index 0da0470..d5cbfda 100644 --- a/arch/arm/boot/dts/mt6589-aquaris5.dts +++ b/arch/arm/boot/dts/mt6589-aquaris5.dts @@ -21,10 +21,16 @@ compatible = "mundoreader,bq-aquaris5", "mediatek,mt6589"; chosen { - bootargs = "earlyprintk"; + bootargs = "console=ttyS0,921600n8 earlyprintk"; }; memory { reg = <0x80000000 0x40000000>; }; + + soc { + uart0: serial@11006000 { + status = "okay"; + }; + }; }; -- 1.9.1 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 2/2] ARM: mediatek: dts: Add uart to Aquaris5 2015-01-02 18:48 ` [PATCH 2/2] ARM: mediatek: dts: Add uart to Aquaris5 Matthias Brugger @ 2015-01-05 12:28 ` Sascha Hauer 0 siblings, 0 replies; 4+ messages in thread From: Sascha Hauer @ 2015-01-05 12:28 UTC (permalink / raw) To: Matthias Brugger Cc: linux-kernel, robh+dt, pawel.moll, mark.rutland, ijc+devicetree, galak, linux, devicetree, linux-arm-kernel Hi Matthias, On Fri, Jan 02, 2015 at 07:48:05PM +0100, Matthias Brugger wrote: > This patch enables uart port for the Aquaris5 mobile phone. > > Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com> > --- > arch/arm/boot/dts/mt6589-aquaris5.dts | 8 +++++++- > 1 file changed, 7 insertions(+), 1 deletion(-) > > diff --git a/arch/arm/boot/dts/mt6589-aquaris5.dts b/arch/arm/boot/dts/mt6589-aquaris5.dts > index 0da0470..d5cbfda 100644 > --- a/arch/arm/boot/dts/mt6589-aquaris5.dts > +++ b/arch/arm/boot/dts/mt6589-aquaris5.dts > @@ -21,10 +21,16 @@ > compatible = "mundoreader,bq-aquaris5", "mediatek,mt6589"; > > chosen { > - bootargs = "earlyprintk"; > + bootargs = "console=ttyS0,921600n8 earlyprintk"; > }; stdout-path = &uart0; Should work aswell and makes you independent from the way the kernel decides to number the UARTs. > > memory { > reg = <0x80000000 0x40000000>; > }; > + > + soc { > + uart0: serial@11006000 { > + status = "okay"; > + }; > + }; By using the & notation you don't have to resemble the tree structure in the board file, like this: &uart0 { status = "okay"; }; See for example the omap, i.MX or other dts files. Sascha -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-01-05 12:28 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2015-01-02 18:48 [PATCH 0/2] ARM: mediatek: Enable uart for mt6589 Matthias Brugger 2015-01-02 18:48 ` [PATCH 1/2] ARM: mediatek: dts: Add uart to mt6589 Matthias Brugger 2015-01-02 18:48 ` [PATCH 2/2] ARM: mediatek: dts: Add uart to Aquaris5 Matthias Brugger 2015-01-05 12:28 ` Sascha Hauer
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).