From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Molton Subject: Re: [PATCH v3 0/7] mv643xx.c: Add basic device tree support. Date: Wed, 08 Aug 2012 10:40:56 +0100 Message-ID: <50223428.6030506@codethink.co.uk> References: <1344350092-24050-1-git-send-email-ian.molton@codethink.co.uk> <20120807.162923.34400427265666163.davem@davemloft.net> <201208080816.29218.arnd@arndb.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: David Miller , linux-arm-kernel@lists.infradead.org, andrew@lunn.ch, thomas.petazzoni@free-electrons.com, ben.dooks@codethink.co.uk, netdev@vger.kernel.org To: Arnd Bergmann Return-path: Received: from ducie-dc1.codethink.co.uk ([37.128.190.40]:35616 "EHLO ducie-dc1.codethink.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752556Ab2HHJlG (ORCPT ); Wed, 8 Aug 2012 05:41:06 -0400 In-Reply-To: <201208080816.29218.arnd@arndb.de> Sender: netdev-owner@vger.kernel.org List-ID: On 08/08/12 09:16, Arnd Bergmann wrote: > I'd prefer to take the entire series through the arm-soc tree from > the kirkwood maintainers. We first have to work out the bindings > though, since the current patch introduces a new one that is > incompatible with the one we were using on powerpc with open firmware > before. Looking at the ethernet-group stuff, specifically from arch/powerpc/boot/dts/prpmc2800.dts, which I've taken as a base for the below: I think we can (and should) do something similar. Sadly, there is no code present to describe marvell,mv64360-mdio, however the device tree looks basically sane. mdio@2000 { #address-cells = <1>; #size-cells = <0>; device_type = "mdio"; compatible = "marvell,mv643xx-mdio"; PHY0: ethernet-phy@1 { device_type = "ethernet-phy"; compatible = "broadcom,bcm5421"; interrupts = <76>; /* GPP 12 */ interrupt-parent = <&PIC>; reg = <1>; }; PHY1: ethernet-phy@3 { device_type = "ethernet-phy"; compatible = "broadcom,bcm5421"; interrupts = <76>; /* GPP 12 */ interrupt-parent = <&PIC>; reg = <3>; }; }; ethernet-group@2400 { #address-cells = <1>; #size-cells = <0>; compatible = "marvell,mv64360-eth-group"; reg = <0x2400 0x2000>; ethernet@0 { device_type = "network"; compatible = "marvell,mv64360-eth"; reg = <0>; interrupts = <32>; interrupt-parent = <&mpic>; phy = <&phy0>; local-mac-address = [ 00 00 00 00 00 00 ]; }; ethernet@1 { device_type = "network"; compatible = "marvell,mv64360-eth"; reg = <1>; interrupts = <33>; interrupt-parent = <&mpic>; phy = <&phy1>; local-mac-address = [ 00 00 00 00 00 00 ]; }; };