From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Lunn Subject: Re: [PATCHv2 5/8] arm: mvebu: add common uart0 and spi0 pintcrl entries for Armada 370 Date: Sun, 16 Nov 2014 22:10:34 +0100 Message-ID: <20141116211034.GJ15870@lunn.ch> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Arnaud Ebalard Cc: Jason Cooper , Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Ben Peddell , Mark Rutland , devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Russell King , Pawel Moll , Stephen Warren , Ian Campbell , Rob Herring , linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org List-Id: devicetree@vger.kernel.org On Sun, Nov 16, 2014 at 06:37:33PM +0100, Arnaud Ebalard wrote: > > pinctrl entries for uart0 using MPP0-1 and spi0 using MPP33-36 are > common configurations. Instead of replicating them in each .dts file, > put those in armada-370.dtsi file so that they can be referenced. > > Suggested-by: Andrew Lunn > Signed-off-by: Arnaud Ebalard > --- > arch/arm/boot/dts/armada-370.dtsi | 11 +++++++++++ > 1 file changed, 11 insertions(+) > > diff --git a/arch/arm/boot/dts/armada-370.dtsi b/arch/arm/boot/dts/armada-370.dtsi > index 6b3c23b1e138..d9f5d59e463e 100644 > --- a/arch/arm/boot/dts/armada-370.dtsi > +++ b/arch/arm/boot/dts/armada-370.dtsi > @@ -115,6 +115,17 @@ > compatible = "marvell,mv88f6710-pinctrl"; > reg = <0x18000 0x38>; > > + uart0_pins: uart0-pins { > + marvell,pins = "mpp0", "mpp1"; > + marvell,function = "uart0"; > + }; Thanks for these. We can go one stage further. kirkwood.dts has: uart0: serial@12000 { compatible = "ns16550a"; reg = <0x12000 0x100>; reg-shift = <2>; interrupts = <33>; clocks = <&gate_clk 7>; pinctrl-0 = <&pmx_uart0>; pinctrl-names = "default"; status = "disabled"; }; i.e actually references them. This is safe because a board .dts file can override the pins if needed. We should do the same here, both for 370 and XP. Andrew > + > + spi0_pins: spi0-pins { > + marvell,pins = "mpp33", "mpp34", > + "mpp35", "mpp36"; > + marvell,function = "spi0"; > + }; > + > sdio_pins1: sdio-pins1 { > marvell,pins = "mpp9", "mpp11", "mpp12", > "mpp13", "mpp14", "mpp15"; > -- > 2.1.1 > > > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel -- 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